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

Hybrid View

  1. #1
    Junior Member
    Join Date
    Aug 2020
    Posts
    10

    [piCorePlayer] Turn off USB output when turning off player?

    I am using a Raspberry Pi 4 with piCorePlayer. It is directly connected to the USB input of my speakers. The speakers support auto turn off when the USB goes powerless.

    Is there a possibility like HDMI off for USB when turning off the player run on this Raspberry Pi?

  2. #2
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,008
    Depends on which pi you have.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  3. #3
    Senior Member
    Join Date
    Dec 2018
    Location
    The Netherlands
    Posts
    167
    This post on raspberrypi.stackexchange.com refers to a tool called uhubctl that should be able to power on and off USB ports of Raspberry Pi models B+, 2B, 3B, 3B+ and 4B. You may need help to compile this tool for piCorePlayer c.q. Tiny Core Linux.
    | LMS 8.1.2 | Squeezebox Boom | RPi0W + pCP 6.1.0 + HiFiBerry DAC Zero | SqueezeAMP |

  4. #4
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,008
    That's correct, it works well on a 4, not as good on the older versions. But I see now you said 4, so that works fine..... BUT
    Please read the notes on that github page. As when turning off the power on the pi ports, it will kill more than one USB port, and in some boards all of the USB ports.

    I've added uhubctl.tcz to our repo. Download it from the extension page

    Paul
    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
    Aug 2020
    Posts
    10
    I installed the extension.
    Now I am not sure when exactly the USB ports will be turned off. In the LMS Material Skin I can choose to power off the wanted piCorePlayer. But this does not lead to unpowered USB ports and therefore speakers.
    Stopping and restarting Squeezelite does also not affect it.
    Rebooting or shutting down the piCorePlayer does lead to turned off and then on again speakers.
    But after shutting down I would have to manually reconnect the power supply the next time I want to listen with it.
    My goal would be to have that effect with the LMS Material Skin power button.

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,008
    It’s not automatic, you have to learn how to use the program, and write scripts to do what you want.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #7
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    6,614
    Quote Originally Posted by paul- View Post
    That's correct, it works well on a 4, not as good on the older versions. But I see now you said 4, so that works fine..... BUT
    Please read the notes on that github page. As when turning off the power on the pi ports, it will kill more than one USB port, and in some boards all of the USB ports.

    I've added uhubctl.tcz to our repo. Download it from the extension page

    Paul
    Is uhubctl.tcz available in pCP7? I can't find it but I am probably missing something being a piCorePlayer newbie.

    Sent from my Pixel 3a using Tapatalk

  8. #8
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    4,008
    Iĺll get it on the todo list. Should get it this weekend.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Tags for this Thread

Posting Permissions

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