Hello,
I would like to add the remote control to PCP.
Installed : Kernel Keytables, and LIRC.
Connected and IR receiver on GPIO pin.
And now ??? What to do exactly ??
Sorry I'm discovering linux and founded a lot of thread (sometimes very long) but I stay lost. In my opinion some tutorials will be very welcome.
I'm sure you think it's obvious, but if we don't know where to start it's not easy
Thanks a lot for your help.
Results 1 to 10 of 45
Thread: Pcp and Ir control
-
2022-01-17, 11:34 #1
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
Pcp and Ir control
-
2022-01-17, 11:38 #2
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 5,819
Did you follow this?
https://forums.slimdevices.com/showthread.php?105117
Explain how far you have got and what happened.Paul Webster
Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin
-
2022-01-17, 12:21 #3
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
I saw this thread, and don't know if the procedure is still actual because:
dtoverlay=lirc-rpi,gpio_in_pin=27
This section is for squeezelite ONLY. See post #2 for Jivelite configuration.
If you don't have shairport-sync enabled you also need to install
The lircd-jivelite config file is only for a squeezebox3, classic, or touch slimdevices/logitech remote. I've also included a lircd-jivelite-RMTD116A config file which is for a Sony RMT-D116A remote.
it's a recipe where I add totally unknown ingredients, which I don't know what results to expect.
But just founded this one more clear:
https://forums.slimdevices.com/showt...piCorePlayer-5
I'll try it
Thanks
-
2022-01-17, 12:29 #4
It should be just a matter of setting the GPIO on the [Tweaks] > [IR page] if you are using a Squeezebox remote.
The major confusion with IR is there is actually 2 systems, IR in the kernel and LIRC which is alternative.
IR is built into squeezelite and jivelite. If jivelite is installed, pCP controls it, otherwise pCP controls squeezelite.Last edited by Greg Erskine; 2022-01-17 at 12:33.
-
2022-01-18, 03:33 #5
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
Ir receiver is working and I see datas.
Code:# table: ??? , type: nec 0x1012 KEY_C 0x1011 KEY_POWER 0x87eee20b KEY_UP 0x87eee20d KEY_DOWN 0x87eee208 KEY_LEFT 0x87eee207 KEY_RIGHT 0x87eee20e KEY_P 0x87eee202 KEY_0
Shoud I modify the jivelight files (it's write protect) or should I create a new one, and how to activate it ?
Code:865.870047: lirc protocol(nec32): scancode = 0x87eee204 repeat 865.870079: event type EV_MSC(0x04): scancode = 0x87eee204 865.870079: event type EV_SYN(0x00).
What about the repeat code ?
Thanks
-
2022-01-18, 04:31 #6
From the URL you previously posted.
the first line contains a header with a descriptive name (you can choose that rather arbitrarily, but better avoid special characters, spaces and such) and the remote protocol to use (the type: - which is very important).
Now we need to upload the file using the piCorePlayer webgui Upload custom jivelite keytables to pCP on the IR page.
Click Browse and choose your new keytable file, select it and click upload.
If successful you should be able to use the remote immediately, no jivelite restart or reboot is required.
If you want to change the defaults you can run ir-keytable from the user commands on the tweaks page.Ralphy
1-Touch, 5-Classics, 3-Booms, 2-UE Radio
Squeezebox client builds donations always appreciated.
-
2022-01-18, 06:45 #7
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
Thanks ralphy !
Code:# table: Apple, type: nec 0x87eee20b KEY_UP 0x87eee20d KEY_DOWN 0x87eee208 KEY_LEFT 0x87eee207 KEY_RIGHT 0x87eee20e KEY_P 0x87eee202 KEY_0
Code:[ INFO ] Uploading: lirc.conf [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz / Done. [ OK ] Backup successful. [ INFO ] Backing up files to /mnt/mmcblk0p2/tce/mydata.tgz / Done. [ OK ] Backup successful.
but: LIRC IR remote control is not running
IR RC5(x/sz) protocol handler initialized but not NEC. As if the table was not downloaded correctly. Does this files has a specific extension (.xxx)?
Tried to uninstall LIRC and reinstall, no change.
What's wrong ?Last edited by PaulH; 2022-01-18 at 10:43.
-
2022-01-19, 02:00 #8
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146
-
2022-01-19, 02:28 #9
If you're using Jivelite don't use LIRC !
-
2022-01-19, 02:54 #10
- Join Date
- Jan 2022
- Location
- Switzerland
- Posts
- 146