If you don’t want to hold the button constantly, there’s another way, run the below.
echo 0 > /sys/bus/usb/devices/1-6/authorized echo 1 > /sys/bus/usb/devices/1-6/authorized
To get the path, use the below.
for X in /sys/bus/usb/devices/*; do echo "$X" cat "$X/idVendor" 2>/dev/null cat "$X/idProduct" 2>/dev/null echo done
All stolen from here.
Holding the power button, might restart it or something, so it’ll never work. Probably has to run all commands, without it rebooting. And replugging the cable would be easier.
while true; do echo 0 > /sys/bus/usb/devices/1-6/authorized echo 1 > /sys/bus/usb/devices/1-6/authorized sleep 30 done
Is thirty seconds of sleeping long enough? Or to long? Might be to long, at least I don’t have to mash the keyboard every time it stops now. I can easily run the blankflash 200+ times, until it magically works.
You could make a script to automate the entire thing, I’d use Python, check how long the output stays the same, if longer then 10 seconds, reset USB.