slartibartfast wrote:
> Never mind I figured it out but still get the audible pop.
>
> Sent from my Pixel 3a using Tapatalk
I was using this code but I am not sure it is working properly. I used a
sleep of 30 as a test and the USB port is turned on well before 30
seconds has elapsed. Why would that be?
Code:
--------------------
case $1 in
0) uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1 ;;
1) uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1
sleep 2
uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1
sleep 30
uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1 ;;
esac
--------------------
------------------------------------------------------------------------
slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=112760
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix