Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Oct 2020
    Posts
    3

    piCorePlayer - Include rotary_encoder.ko

    Hi;

    I'm trying to put together a piCorePlayer that will hopefully sport a couple of rotary encoders.
    I've installed piCorePlayer 6.1.0 and got the LCD, touchscreen and sound working. These forums have been invaluable! My thanks to everyone who has posted their trials and tribulations.

    Unfortunately the rotary encoders are giving me problems.
    To get them working I've enabled the appropriate device-tree overlay but it appears that the kernel module for the driver isn't present in the base load and I can't find it any of the extensions.
    I can see that older releases (such as this one: https://repo.picoreplayer.org/repo/10.x/armv6/releases/RPi/src/kernel/4.19.40-pcpCore_modules.tar.xz[/url]) does have the rotary_encoder.ko module so I assume it is produced by the build. Unfortunately I don't see an equivalent release package for the kernel I'm using (4.19.122-pcpCore_v7).

    Is possible to get the module included in the base package or an extension? I'm not setup to build the kernel but I can probably figure that out if necessary. I'm just not looking forward to doing it every time I upgrade

    Thanks
    Tact

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,427
    What are you trying to do, I've used encoders before, and do not need that module.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Junior Member
    Join Date
    Oct 2020
    Posts
    3
    Thanks for replying Paul.

    I'm trying to hook the encoders to function as volume up/down and up/down events within Jivelite. Essentially to replicate some of the behaviour of a Squeezebox Radio.

    I know the device-tree overlay loaded fine as I can see it under /proc/device-tree but no actual input device under /proc/bus/input/devices got created. I believe that is the job of the kernel module.
    Once that actual device was available I was hoping to pipe it into jivelite and have it process the events from the relative axis into the desired effect.

    I've seen sbpd mentioned in other forum posts but it seems to only handle a single encoder and it maps it directly to volume. I suppose I could extend it to do what I want but it seemed like duplicated effort when there was already a kernel module available that would provide input events in a standard linux way.

    You mentioned that you had this working with other means. Could you provide details please?

    Thanks
    Tact

  4. #4
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,427
    spbd can handle 2 encoders, at least a few already do this.

    I would start about here in the thread. https://forums.slimdevices.com/showt...l=1#post949965

    But definately read mostly to the end of the thread.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #5
    Junior Member
    Join Date
    Oct 2020
    Posts
    3
    Great, thank you Paul. I will give that a try.

    I was looking at the original repo which was referenced at the beginning of that thread and it hasn't been updated. I guess I should have hunted down your fork and looked there for a more current view.

    Is there a way for users to contribute content to the piCorePlayer help pages? I'd be happy to write up a short summary of sbpd and possible uses based on the information in the thread for the 'Components' section of the help.
    Save someone else having to dig for this information in the future.

    Thanks
    Tact

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,427
    Coming soon, just working out some setup issues

    https://forums.slimdevices.com/showt...-Documentation
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

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