Turn off power to USB port?
Is it possible to turn off the power to the USB ports in Linux?
If so, how?
Let me put this into context:
I'm still playing with this udev idea I had with another member on the forum. However, because of how digital cameras work (however they work), it seems the digital camera gets noticed each time it is hooked up to the USB port.
My interest is in turning off the USB port temporarily with some key commands, which I would setup within xmacro or xnee and xbindkeys. Afterwards, when I want to activate the camera again, I will use some key commands.
The idea behind this is that I won't have to attach, detach, and reattach the camera each time I want to upload images. That process gets annoying when you start becoming an intermediate photographer. Trust me, it's a serious annoyance when you do this maybe over 20 times in one day. It's all about getting the perfect shot.
Also, I assume there could be more implementation to this, such as using an extended numberpad or keyboard to simply upload pictures. I mean, I've got a lot of ideas for a new way to manage images, I just need to know a couple simple things:
1. How do I turn off the USB port?
How do I make the computer and camera think the port is nonexistant?
I was reading a way to do this is through the BIOS. And, of course, that's not going to be a solution when inside of an operating system. I don't remember being taught any way to reconfigure the BIOS settings once inside of the operating system.
Another I read about was changing the kernel. This was just a comment on some website I saw, but I don't think I want to do that. I could do that. But if I have to restart the computer each time, then I don't think I'm going to like that.
Anyone have ideas as to how to turn off the USB in Linux?
Other than that, I found these threads on linuxquestions:
1) HowDoI? Turn on/off usb light by time - LinuxQuestions.org
2) Power off USB - LinuxQuestions.org
Not the most mood lifting.
I just plugged a digital camera into the USB right after the computer was turned off. It wasn't past BIOS, and it still believed it was connected to the computer and ready to transfer files. Hmm, perhaps this is a failed effort: It can't be done by software.