Quote:
Originally Posted by rudra-b
yeah...i know the fan is not controllable....what I was thinking of to disable the power of that given usb port
|
It is possible, but not quite straightforward. The definitive guide on this topic is this one from the kernel documentation:
http://www.mjmwired.net/kernel/Docum...management.txt
tl;dr version:
You need to first identify the usb device number, and locate the corresponding directory under the pseudo-filesystem /sys/bus/usb/devices. There's a "power" subdirectory under the device's directory. By writing to files in this dir, you can control the power usage of the device. If you're using a kernel up to 2.6.32 you can write the word "suspend" in the file power/level to disable the power. I'm running F12 kernel 2.6.32.10-94 and I've tested this with a USB thumb disk ,and it seemed to work. But this feature is removed in more recent kernels.
And this must be done with certain privileges...