Home of the Squeezebox™ & Transporter® network music players.
Page 35 of 35 FirstFirst ... 25333435
Results 341 to 346 of 346
  1. #341
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,365
    Power on/off in the spbd/lms context is just turning off the "Player Power" Just like hitting the power button on the LMS interface. Most would use it to control a relay that powers an amplifier on/off.

    To shutdown the complete pi, you could script it here with spbd, but other ways are easier.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  2. #342
    Junior Member
    Join Date
    Jul 2020
    Posts
    29
    Quote Originally Posted by paul- View Post
    Power on/off in the spbd/lms context is just turning off the "Player Power" Just like hitting the power button on the LMS interface. Most would use it to control a relay that powers an amplifier on/off.

    To shutdown the complete pi, you could script it here with spbd, but other ways are easier.
    Yes, I understand that this is only a "soft" power off. And this is exactly what I need. But it has an issue.

  3. #343
    Junior Member
    Join Date
    Aug 2020
    Posts
    6

    Rotary encoder is working but very sensitive

    My configuration:

    RPi 2B
    PCP 6.1.0
    pcp-sbpd
    jivelite (Waveshare 3.5")

    /home/tc/sbpd-script.sh
    ================================================== ===========================
    #!/bin/sh

    # start pigpiod daemon
    pigpiod

    # give the daemon a moment to start up before issuing the sbpd command
    sleep 1

    # load uinput module, then set the permission to group writable, so you don't need to run sbpd with root permissions
    sudo modprobe uinput
    sudo chmod g+w /dev/uinput

    # issue the sbpd command
    sbpd e,6,12,KEY:KEY_UP-KEY_DOWN,2 b,5,KEY:KEY_RIGHT,2,0,KEY:KEY_LEFT,500
    ================================================== ============================

    Name:  rotary.jpg
Views: 140
Size:  126.8 KB

    Rotary encoder working...key up and down, and button also working.
    BUT. when key up, down..jump 2 step down or up.
    I have to rotate very slowly to move 1 step.

    Does any options are available to fix this problem ?

  4. #344
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,365
    Check the optional mode setting for encoders.

    Code:
    For rotary encoders (one, volume only):
        e,pin1,pin2,CMD[,edge]
            "e" for "Encoder"
            p1, p2: GPIO PIN numbers in BCM-notation
            CMD: Command. one of. \n\
                VOLU for Volume\n\
                TRAC for Prev/Next track\n\
                KEY:<Positive key_name>-<Negative key_name>
            mode: Optional. one of\n\
                1   - Step mode (default)\n\
                2-9 - Detent mode - Assumes 1 dial click is x steps.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  5. #345
    Junior Member
    Join Date
    Aug 2020
    Posts
    6
    Quote Originally Posted by paul- View Post
    Check the optional mode setting for encoders.

    Code:
    For rotary encoders (one, volume only):
        e,pin1,pin2,CMD[,edge]
            "e" for "Encoder"
            p1, p2: GPIO PIN numbers in BCM-notation
            CMD: Command. one of. \n\
                VOLU for Volume\n\
                TRAC for Prev/Next track\n\
                KEY:<Positive key_name>-<Negative key_name>
            mode: Optional. one of\n\
                1   - Step mode (default)\n\
                2-9 - Detent mode - Assumes 1 dial click is x steps.
    It works after changing dent mode setting from 2 to 4.
    Thank you.

  6. #346
    Junior Member
    Join Date
    Jul 2020
    Posts
    29
    Quote Originally Posted by sakos View Post
    Yes, I understand that this is only a "soft" power off. And this is exactly what I need. But it has an issue.
    The above issue is solved by LMS update to latest. Now I have a working solution to control GPIO when the player is in "power off" status.

Posting Permissions

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