Comment 26 for bug 1072234

Revision history for this message
James Brierley (jmb8710) wrote :

And a correction: sysfsutils doesn't actually support globbing; I pieced together this suggestion from several solutions, no wonder it didn't work... The correct version of this workaround is to do something such as this:

james@rainbowphoenix:~$ ls -1 /sys/bus/usb/devices/*/power/autosuspend
/sys/bus/usb/devices/1-1.1/power/autosuspend
/sys/bus/usb/devices/1-1.2/power/autosuspend
/sys/bus/usb/devices/1-1/power/autosuspend
/sys/bus/usb/devices/2-1.7.1/power/autosuspend
/sys/bus/usb/devices/2-1.7.2/power/autosuspend
/sys/bus/usb/devices/2-1.7.3/power/autosuspend
/sys/bus/usb/devices/2-1.7/power/autosuspend
/sys/bus/usb/devices/2-1/power/autosuspend
/sys/bus/usb/devices/4-1/power/autosuspend
/sys/bus/usb/devices/usb1/power/autosuspend
/sys/bus/usb/devices/usb2/power/autosuspend
/sys/bus/usb/devices/usb3/power/autosuspend
/sys/bus/usb/devices/usb4/power/autosuspend

You can then add them to /etc/sysfs.conf. In my case, the relevant paths are the ones which include 2-1.7.*.

More testing tomorrow.