Killing power to a USB port

有没有办法通过编程方式关闭电源或在Mac上杀死USB端口?


I believe that the USB power typically comes directly from the power supply. It might go through the motherboard or some other hardware to combine it with the data lines, but I don't think the voltage ever goes through any programmable circuitry. If you wanted to deactivate the data transfer, that would probably be possible since that is handled by an extension file (IOUSBMassStorageClass.kext), but short of modifying the port physically, I don't think you will be able to deactivate the power.


If you're refering to USB storage devices, according to the Tiger Security Configuartion Manual (pdf):

6 To remove support for mass storage devices (eg USB flash drives, external USB hard drives, external FireWire Hard Drives), drag the following files to the Trash:

IOUSBMassStorageClass.kext

IOFireWireSerialBusProtocolTransport.kext

7 Open the /System/Library folder.

8 Drag the following files to the Trash: Extensions.kextcache Extensions.mkext

9 Choose Finder > Secure Empty Trash to delete the file.

10 Restart the system.

I've seen some other stuff around but it's all much harrier. Leading gluing the ports up to get suggested quite a bit.

链接地址: http://www.djcxy.com/p/81286.html

上一篇: Linux USB:打开和关闭电源?

下一篇: 杀死USB端口的电源