Disabling specific USB port
Using Debian with:
Linux mainLaptop 2.6.16-1-686 #1 Wed Mar 22 15:36:02 UTC 2006 i686 GNU/Linux
My laptop has 3 USB ports, 1 of which is attached to a cooler similar to what you might find here (url filtered cuz I'm a noob here). My particular fan isn't shown there, but that gives you the general idea.
... other stuff connected to the hub
Bus 001 Device 003: ID 046d:c506 Logitech, Inc. MX-700 Cordless Mouse Receiver
Bus 001 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 001 Device 001: ID 0000:0000
The cooler is plugged into Bus 1 Dev 1. The cooler does nothing but draw power through the USB port to spin the fans. Now my question:
Is there any way to specifically shut off power to that particular USB port? Why: I'd like to run a script that polls the temperature of the
CPU and will only enable power for that port at or above a certain temperature. Since I'm not always physically present at this computer (it has become a desktop/server due to an old battery), just unplugging the cooler is not an option.
Can this be done programmaticly?