![]() ![]() So the same as your python scrypt would be #!/bin/bash a cycle is to powercycle that port and -d 2 is to leave 2 second between the power off and on (for example you can set an delay here or for the uhubctl command in your sript also with for example "sleep 7" So the -l is the number of the hub you select (for me that was 20-6) and the -p is the port on that hub (port 3 for me) Port 3: 0103 power enable connect Įxample to use wich you then can use in a script or whatever uhubctl -l 20-6 -p 3 -a cycle -d 2 Port 1: 0503 power highspeed enable connect Use uhubctl to give a list of your ports by typing in the terminal window uhubctlĬurrent status for hub 20-6 Install uhubctl by typing in a terminal window brew tap mvp/uhubctl Make sure you have the latest xcode command line tools, you can force this by typing in a terminal window sudo rm -rf /Library/Developer/CommandLineTools There is an much more easy way of thoing this : with uhubctl Which is clickable if saved with the extension. This script can then be called with a shell script: #!/bin/bash Product_name = _string(device, device.iProduct) I wrote a little Python3 script which will do this (to save my usb cables). Razer Synapse will say "Please connect a Razer Synapse enabled device" until I reconnect it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |