Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 10 of 45

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146

    Pcp and Ir control

    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.

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    5,991
    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

  3. #3
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by Paul Webster View Post
    Did you follow this?
    https://forums.slimdevices.com/showthread.php?105117

    Explain how far you have got and what happened.
    I saw this thread, and don't know if the procedure is still actual because:
    dtoverlay=lirc-rpi,gpio_in_pin=27
    but the pin is defined into PCP Tweeks IR

    This section is for squeezelite ONLY. See post #2 for Jivelite configuration.
    Squeezelite is installed on my PCP but also Jivelite for the vu-meter...

    If you don't have shairport-sync enabled you also need to install
    I have installed Shairtuens2. Does it the job ?

    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.
    Not necessary ? I'm using Pi4.

    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

  4. #4
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    2,578
    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.

  5. #5
    Senior Member
    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
    Now I should complete the keytable file. What is the name to add after table: ???

    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

  6. #6
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    3,036
    Quote Originally Posted by PaulH View Post
    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
    Now I should complete the keytable file. What is the name to add after table: ???

    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
    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).
    and

    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.
    The repeat (PERIOD) and delay are set using the ir-keytable utility. You can try different settings from the command line as the changes are immediate.

    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.

  7. #7
    Senior Member
    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
    Uploaded:
    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.
    Reboot
    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.

  8. #8
    Senior Member
    Join Date
    Jan 2022
    Location
    Switzerland
    Posts
    146
    Quote Originally Posted by ralphy View Post
    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.
    Name:  Capture dĺÚcran 2022-01-19 Ó 09.54.51.jpg
Views: 71
Size:  93.2 KB

    PcP is rebooting automatically.

    But I still get:
    Code:
    [   18.812803] Registered IR keymap rc-rc6-mce
    [   18.829030] IR RC6 protocol handler initialized
    not NEC.

    What miss I ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •