Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Member
    Join Date
    Nov 2019
    Location
    Denmark
    Posts
    55

    piCorePlayer USB off.

    Did a forum search with no luck.

    I'm pretty shure i once read how to turn off the USB ports while leaving the LAN port turned on, on a RPI3B by using the "User Commands" on the pCP tweaks page.
    Also quite shure i did the tweak with success. Just don't remember how it was done anymore.

    Anyone able to help?

  2. #2
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    Quote Originally Posted by dkskl View Post
    Did a forum search with no luck.

    I'm pretty shure i once read how to turn off the USB ports while leaving the LAN port turned on, on a RPI3B by using the "User Commands" on the pCP tweaks page.
    Also quite shure i did the tweak with success. Just don't remember how it was done anymore.

    Anyone able to help?
    Is it the uhubctl command? It is available as an extension while the exact command depends on the Pi being used.
    The command I use on a Pi3B to turn off USB port 4 is
    uhubctl -l 1-1 -p 4 -a 0


    Sent from my Pixel 3a using Tapatalk

  3. #3
    Member
    Join Date
    Nov 2019
    Location
    Denmark
    Posts
    55
    Quote Originally Posted by slartibartfast View Post
    Is it the uhubctl command? It is available as an extension while the exact command depends on the Pi being used.
    The command I use on a Pi3B to turn off USB port 4 is
    uhubctl -l 1-1 -p 4 -a 0


    Sent from my Pixel 3a using Tapatalk
    Thanks. Might be..
    I could give it a try. But i want to turn off all slots though, as they're not in use. Do you happen to know how to alter your command?

  4. #4
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    Quote Originally Posted by dkskl View Post
    Thanks. Might be..
    I could give it a try. But i want to turn off all slots though, as they're not in use. Do you happen to know how to alter your command?
    This is the info on GitHub about it.
    https://github.com/mvp/uhubctl#raspberry-pi-b2b3b
    The info says that on the Pi3 all ports are turned off by turning off port 2 but in my experience that is incorrect. When I tried turning off port 2 only port 2 turned off. If you ssh into the Pi you can try different commands on the command line. The result of the command will be shown. The USB ports are 2,3,4 and 5 I think. I don't know if you can turn off all the ports with one command but it might be possible. Running
    uhubctl ? might give options but it was a while ago when I messed around with this so I can't be sure.

    Sent from my Pixel 3a using Tapatalk

  5. #5
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    Quote Originally Posted by dkskl View Post
    Thanks. Might be..
    I could give it a try. But i want to turn off all slots though, as they're not in use. Do you happen to know how to alter your command?
    Looking at the screen shot I wonder if
    uhubctl -l 1-1 -p -a 0
    turns all the ports off and then
    uhubctl -l 1-1 -p 1 -a 1
    turns on port 1 which I think is the LAN.

    Sent from my Pixel 3a using Tapatalk

  6. #6
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    uhubctl -l 1-1 -p 2,3,4,5 -a 0
    might work to turn off all USB ports

    Sent from my Pixel 3a using Tapatalk

  7. #7
    Member
    Join Date
    Nov 2019
    Location
    Denmark
    Posts
    55
    Thank you very much slartibartfast!

    I'll try it first thing tomorrow.

    Just to be sure: I install the uhubctl extension and then c/p uhubctl -l 1-1 -p 2,3,4,5 -a 0 to a user command field on the tweaks page?

    Or do i have to ssh the command into the RPI?

  8. #8
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    Quote Originally Posted by dkskl View Post
    Thank you very much slartibartfast!

    I'll try it first thing tomorrow.

    Just to be sure: I install the uhubctl extension and then c/p uhubctl -l 1-1 -p 2,3,4,5 -a 0 to a user command field on the tweaks page?

    Or do i have to ssh the command into the RPI?
    Both should work. If you SSH in then run the command you can see the reported result so you can see if it works. Then add it to tweaks. I actually raised an issue on the GitHub page for uhubctl asking whether the ports were independent or ganged and the reply was they were ganged. When I tried following the instructions assuming they were ganged my USB DAC didn't go into standby. I had to turn off port 4 to turn off my DAC so I am still confused about that.
    uhubctl -l 1-1 -p 2-5 -a 0
    should also work.


    Sent from my Pixel 3a using Tapatalk

  9. #9
    Member
    Join Date
    Nov 2019
    Location
    Denmark
    Posts
    55
    Quote Originally Posted by slartibartfast View Post
    Both should work. If you SSH in then run the command you can see the reported result so you can see if it works. Then add it to tweaks. I actually raised an issue on the GitHub page for uhubctl asking whether the ports were independent or ganged and the reply was they were ganged. When I tried following the instructions assuming they were ganged my USB DAC didn't go into standby. I had to turn off port 4 to turn off my DAC so I am still confused about that.
    uhubctl -l 1-1 -p 2-5 -a 0
    should also work.


    Sent from my Pixel 3a using Tapatalk
    Ok. Did a SSH in and it worked. -But oddly only partly, as there is no status report for port 5

    Name:  Udklip 2.PNG
Views: 102
Size:  12.0 KB

  10. #10
    Senior Member
    Join Date
    Jan 2010
    Location
    Hertfordshire
    Posts
    8,007
    Quote Originally Posted by dkskl View Post
    Ok. Did a SSH in and it worked. -But oddly only partly, as there is no status report for port 5

    Name:  Udklip 2.PNG
Views: 102
Size:  12.0 KB
    What do you get if you just type uhubctl

    Sent from my Pixel 3a using Tapatalk

Posting Permissions

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