mvp / uhubctl

uhubctl - USB hub per-port power control
Other
2.23k stars 232 forks source link

Lamp will not turn off no matter what #466

Closed caffeine01 closed 2 years ago

caffeine01 commented 2 years ago

I have a basic ikea "HÅRTE" usb lamp and i want to be able to automate it with a raspberry pi 4B. But no matter which port I turn off, it stays on. Any ideas????

I have the latest versions of everything and another important thing to note is that i use a sandisk usb for storage and not an SD card.

Potentially i could turn off just the usb 2 hubs but i need the usb 3 ones to stay on.

mvp commented 2 years ago

As explained in FAQ, Raspberry Pi has hardware limitation: https://github.com/mvp/uhubctl#raspberry-pi-turns-power-off-on-all-ports-not-just-the-one-i-specified You have to turn off all hub ports:

uhubctl -l 2 -a 0

Note - do make sure you use uhubctl 2.4.0 or later. Any previous version will not work correctly for RPi4.