I have Ubuntu 10.04 based portable touchscreen computers at workplace and sometimes people would use USB data cable to charge their phones from the USB port.
Now I have usb storage access disabled ($sudo leafpad /etc/modprobe.d/blacklist.conf and entering blacklist usb_storage at the very end) but now we have a requirement to stop this USB-Phone-Charging also.
Any solutions to this bizarre requirement i.e. to power OFF usb ports completely ???
The same I posted on unix - exchange but did not get any favorable solutions other than using a stick of glue to shut off the port or to de-solder USB terminal from motherboard.
Kindly give me some ideas to achieve my target without creating an absolute mess out of the piece of hardware.
Before testing on the actual touchscreen computers (ubuntu 10.04), I did some work on my laptop (ubuntu 12.04). It has 3 USB ports, I HAVE SUCCESSFULLY DISABLED ONE PORT USING;
echo '2-1' |sudo tee /sys/bus/usb/drivers/usb/unbind
so IT IS POSSIBLE TO TURN OFF USB. My kernel version -- 3.13.0-32-generic
Now I am looking how to disable the rest TWO.