Ability to turn off/on USB port (Ubuntu)

Hi,

i have laptop with Ubuntu, i want to be able to turn off/on 1 or all usb ports,
i want connect FAN to the ports and if the temp is more than X, i will turn the port on.

any options?
tnx

A quick Google search found this, and there’s probably more. This of course is the kind of question best asked in an Ubuntu forum :wink: