Power off a specific usb port

Hello guys I'm trying to power off one usb port of my laptop. So far, I only managed to power off one  of them through this command:
#off:
echo "1-1" > /sys/bus/usb/drivers/usb/unbind
#on:
echo "1-1" > /sys/bus/usb/drivers/usb/bind
The problem is that I can't get the other usb to power off. I also tried with this command
echo suspend > /sys/bus/usb/devices/1-1/power/level
bash: echo: write error: Invalid argument
as you see unfortunately I get an error..
Any suggestions?
Thanks

Does it have the same file structure? Have you tried powering off a USB port, that has, say, a mouse plugged in or a keyboard?

Similar Messages

  • Can you turn power off of the USB ports

    I have a powerbook g4 800 and it has an external fan that is powered by USB. When I put the computer to sleep and have the power adapter not plugged in, the fan still gets power. So I occasionally have the power completely drained after the laptop was in sleep. Usually I remember to shut off the fan, but it's an extra step that seems like it could be solved by setting something somewhere to power down USB on sleep.

    Unfortunately the Mac holds the USB ports in an active state to allow mice and keyboards to wake the machine - I don't know of any way to change this.

  • How much power can deliver the USB port on AirPort Express?

    I am developing an appliance that requieres access to a WiFi router and a power source (UL 60950-1 compliant) of less than one watt (100-200 mA @ 3.3V) to power my own WiFi device, and the AirPort Express can be the right device to solve both problems with minimun overhead. The problem is that I cannot find the specification of the current / power limits of its USB port.
    To check if it can provide the usual five unit loads, I tried to charge an iPhone 4, but it fails showing the message "Charging is not supported with this accessory", and an external 2.5" HD which requires 500 mA causes the following message to appear on AirPort Utility:
    USB Power
    A device connected to this AirPort base station's USB port requires more power than this AirPort base station can provide. Plug the device into a power supply if possible, or connect it to a powered USB hub.
    Any insight will be welcome.

    Never mind - I tried "rebooting". I hate it how that always works!

  • Mouse only works when plugged into a specific USB port

    Hello. I'm using a HP optical mouse that connects via USB plugin.
    HP PIN: 505062-001 Rev.A
    Operating System: Windows 7 Home Premium SP1
    It only has full functionality when plugged into a specific USB port on my desktop. I can't get it to work with any other ports or chained with a HUB plugged into the port it likes. All of my other USB devices work fine with those ports and my HUBs. The red light on the bottom lights up but the mouse pointer does not respond to movement and clicking the buttons does nothing either.
    1) I'm confident, that it's not a problem with the desktop hardware
    2) I'm confident, that it's not a problem with the mouse hardware
    When the mouse is fully functional, it's displayed under Devices and Printers, in the Devices category as "USB OPTICAL MOUSE".
    When connected with the other ports or through a HUB, it appears as TWO entries in the Devices category:  "HID-compliant mouse" and - here's the suspicious part - "HID-compliant keyboard"
    I suspect that something's up with the driver for the mouse. Any clues, as to which driver I need? Or, is the cause of the problem something else entirely?

    Hello Tick_Noby,
    Your mouse only works in certain usb ports.
    Has the mouse ever worked in the ports?
    You can go to device manager and uninstall the fake keyboard and the mouse and restart the computer.
    It seems that the driver is not correct for the mouse.
    Also reset BIOS defaults.
    Turn off the computer.
    As you turn it back on tap the F10 key. This will load BIOS setup utility.
    Press F9 to load defaults.
    Press F10 to save and exit.
    When the computer boots back up, check to see if everything is working.
    If it has not been to long since the problem started, you can run a system restore.
    This will take the system back to when everything was working correctly without affecting your personal files.
    Here is a link on how to do a restore.
    Let me know how everything goes
    Have a good day.

  • "iPad not charging Connect to a power adapter or a USB port on this mac to charge" Maverick issue!

    Ever since we updated to mavericks our deployment of 60 iPad's flashes "iPad not charging Connect to a power adapter or a USB port on this mac to charge" on the screen every time one is plugged in. It is a false alarm because the iPad does in fact trickle charge and it does update the device like it is supposed to. At this point it's more of an annoyance then an actual problem. However I would like it to stop popping up every time one is plugged in.
    Does anybody have any ideas to stop it?

    Your computer USB port typically provides only 2.5W of power. iPads require 10-12W of charging power. That's why you get the "Not Charging" message. However, the iPad is charging, but much slower. There's no way to stop it.
     Cheers, Tom

  • External HD (FreeAgent) flickers on & off on either USB port.

    Hi everyone
    I just purchased 320gb FreeAgent external HD from Seagate. I realized when I plugged it into the USB port on the right side, it would power on for a sec...then flicker off. When I began pulling it out, it turned on and stayed on.
    The HD won't stay on unless its slightly, partially pulled out..
    I tried it on the left USB port, and its the exact same thing.
    What do you guys think? It's probably the External HD right? Has anyone else had this problem or similar? Should I return this?

    Hah, yeah I know. It's running consistently as long as its very partially pulled out, but I'm scared that one day someone will bump my computer in the middle of an important process...and it disconnects.

  • Mid 2011 Macbook Air - Yosemite keyboard and trackpad stopped working, the only button that worked was the power button, only one USB port works.

    I have a Mid 2011 Macbook Air.
    Upgraded to Yosemite last week.
    Three days ago I was using my Macbook Air for the first time since upgrading to Yosemite. I had been using my Macbook Air for approximately 30 minutes, I was using safari and the keyboard and trackpad stopped working (would not respond). The only button that worked was the power button.
    I rebooted and they were still not working. I plugged in a USB mouse and external USB keyboard, only one USB port would work (the Left USB port if looking at the screen) so I had to swap between keyboard and mouse.
    After logging in there is a bluetooth icon at the top of the screen with a sawtooth line through it. Bluetooth is unavailable and the bluetooth icon is missing from the system preferences menu.
    If I run a hardware test by holding D (on USB keyboard) at startup it says that no problems are found and at the conclusion of the test the keyboard and trackpad start working again. When I log on the bluetooth is working again.
    I shut down the Macbook Air and when I started it again the keyboard and trackpad and right side USB ports were all not working again. I logged in using the USB keyboard and mouse and the bluetooth not available sawtooth icon had returned.
    I ran the hardware test again and at the conclusion of the test the trackpad and keyboard started working again.
    I have tried deleting com.apple.Bluetooth.plist and com.apple.Bluetooth.plist.lockfile from /Library/Preferences/ and tried resetting SMC and Power Functions but this did not fix the issue. The only thing that seems to work is running a hardware test - obviously I don't want to do this every time I use the computer.
    I do not believe any hardware is faulty/damaged - I think it has something to do with bluetooth/Yosemite.
    I do not have the Macbook with me at the moment, if you have suggestions that I can try or additional checks/info you require please let me know and I can get back to you.
    Thanks,
    John

    Hi!
    I have exactly the same problem, and I can't find any solution.
    I can't even track down the root of the problem: the Bluetooth/Wifi module? The trackpad? The keyboard/top case? The logicboard?
    I've tried all the usual: SMC/PRAM reset, clean install, kext cache clearing.
    Any suggestion is greatly appreciated!

  • Power surge to a USB port

    I plugged my brand new iPhone 5 USB cable into my laptop and it displayed a message about a power surge to that port. i dismissed the message and removed the cable. Now none of my USB ports are working.

    Are you using an official Apple wall charger and an official apple usb adaptor? Some of the unofficial ones have been known to do that. If it's an official one take it down to the Apple store to get a replacement. If the problem persists it could be related to your phone.

  • Power Surge on the USB Port.

    Well, for the first time ever in my 2 years of having this IPOD plug for my 5th Gen...I wanted to upload some pics on my ipod, but i plugged the port into the computer and the other part into my ipod, and it said my port had a power surge of some sort. So i can't charge my ipod via computer, but it works in my ipod player (which is my deck that i have in my bedroom to play music through speakers) and it works...And other USB items (i.e webcam) work in any port...So its seems its just the plug.
    It all of a sudden worked when i just plugged it in as i wrote this to be sure what it said, but does anyone know why this happened?

    When you say "port" do you mean the iPod cable that has a dock connector on one end and a USB connector on the other end? When you have your iPod connected to your iPod player does the player have a dock connector on it such that the iPod plugs directly into the player? If the answer to both of these questions is yes then I would suspect that the iPod cable is bad or on its way out. Another test of the cable would be to connect it to an iPod power adapter that plugs into the wall and see if the iPod charges.
    The other possibility is that there are other USB devices connected to your computer and when the iPod is connected the USB ports on the computer are unable to supply sufficient power to all of those devices.

  • The device was drawing too much power and that the USB port will be shut down

    New to forum, help,
    Cannot add a USB hub, powered or not, keep getting message
    The device was drawing too much power and the USB port will shut down.

    Hi
    Is your machine connected to AC power? If not, connect it, and it should work. You may also try resetting the SMC.
    If it still doesn't work when connected to AC, then the hub most likely is drawing too much power (i.e you have too many devices connected to it)
    Taylor

  • Will power interruptions cause iMac usb ports to fail?

    When electrical power is disrupted and subsequently restored can iMac on board USB ports be damaged to the point of total failure? If so, how can these
    ports be properly protected? Thanks for any advice.

    APC is the big name. You can find them at all sorts of places. They make quite a few models.  If you live someplace where power failure is common it's probably best to shut down before leaving but assuming your home, if your battery backup is good for 10-20min tha'ts plenty of time to shut down. I have my computer and external drives on battery backup. My second monitor, printer and such are simply on surge protector circuits. Most UPS units have some plugs that are just surge and other plugs that include battery backup. You will want to find out how many watts your computer uses and any other peripherals you use to guage which battery backup system you need to provide as many minutes of backup as you want.

  • The WD My Passport USB3.0 portable external drive fails to recognise on 13" MBP Retina, why when it works off iMac 27" USB port?

    Just bought a new WD My Passport Mac compatible drive, USB3.0 cable included.  The drive is not recognised on my 13" Retina at all, on disk utilitiy it comes up as a superdrive.  moved to the 27" iMac, recognised only as superdrive through USB2 hub, connected directly to iMac USB port and disk utility picked up the drive.  Updated all WD driver detail as described in WD manual, partitioned drive and copied data from iMac.  Move drive to connect directly to 13" Retina, and it is not seen anywhere.  Same cable used, smae HDD.
    Is this a USB bus issue, power issue or 13" Retina USB i/f configuraiton issue?

    Thought this may be the issue, problem is the USB3.0 connector is 2 micro USB side by side in a single plastic moulding, have searched for separate USB cables but cannot find them. 

  • My usb broke off in my usb port

    what do i do my shuffle is ruined. i cant charge it or download songs of course. the little plastic tape on the inside than connects to the usb is torn too. do i need to get a replacement part or does the whole thing need to be replaced. i just bought the thing less than a month ago!

    Under normal circumstances that shouldn't have happened; the fact that it did has to mean that there was something wrong with either the plug or the port.
    Let's just assume that it was the plug: Tell Apple that, that you couldn't unplug the thing using normal force and that when you applied just a bit more force the glue holding the base/plug in failed and it all separated, breaking the ribbon connector also. You're also going to assure them that it didn't get any lateral/shear stresses, nothing unusual happened, that you were just unplugging in the normal way. They'd view that as a manufacturing defect and replace it without question but might, perhaps, ask that you ship the failed parts back for examination. OTOH, they might not (similar failures have happened before).
    Now assume it was the port: Tell your h/w manufacturer that you plugged something in and couldn't unplug it and, in the process of trying to unplug it, you ruined it. It's not your fault, and you want them to pay to replace the thing you just broke when you were muscling it around. They'll probably yawn and politely refer you back to your warranty documents.
    Answer? Work with Apple, who will probably just replace it for you. I would, in their place. Just carry it into an Apple Store (make a Genius Bar appointment first if yours is a busy one) or start the replacement process at this page.
    I'd recommend trying something else in that port before plugging your new Shuffle back into it, that and also to just be generally more careful.

  • My display is black but all of the power is working and usb ports please help

    I HAVE MY DISPLAY PLUGGED UP AND IT JUST HAS A BLACK SCREEN BUT EVERYTHING IS WORKING ON THE ACTUAL DISPLAY PLEASE HELP

    Hello there Kevin,
    I was researching the issue you describe and found 2 resources that may help. First there is this section from Apple Cinema Display: Troubleshooting steps found here: http://support.apple.com/kb/HT2810
    No image on the screen
    Make sure the computer is turned on.
    Make sure the power cord is plugged in properly.
    Make sure the display cables are connected to your computer properly.
    Make sure the DVI or Mini DisplayPort display cable is connected securely.
    Make sure your computer is not in sleep mode.
    Make sure the brightness is set properly. The brightness control is under the right front edge of the display.
    Check for and install all available software updates. Software updates may provide solutions to many common issues.
    Note: If the display power cord is plugged into a grounded wall outlet or power strip, find out if power to the outlet has been interrupted. You can test the outlet by plugging in something that you know works, like a desk lamp or radio.
    If those steps don't get the display working then here is another article, with some pretty in depth troubleshooting for displays named Apple computers: Troubleshooting issues with video on internal or external displays from http://http://support.apple.com/kb/ht1573
    Cheers,
    Sterling

  • USB ports power management settings

    An All-In-One HP Printer, Scanner, Copier is connected via USB cable, directly to one of the two USB ports in the Macbook. When the Macbook is put in sleep mode, the connection between the HP and the Macbook is interruped (I presume) because in sleep mode, the power (from the computer) to the USB ports is turned OFF, instead of being kept alive, or even reduced. Upon waking up, the HP's functions are partially disabled, e.g. there is no possibility of scanning a document. Restoring all the functions requires uninstalling the HP software, when some of its components have to be trashed manually, and reinstall the software. HP technical support has been very responsive both in contents and in speed, but suggest that the problem might be caused by the power being turned OFF to the USB ports, when the Macbook goes into sleep mode. They suggest either to power OFF the AIO HP before putting the Macbook to sleep, and powering ON the AIO after the Macbook wakes up and regains complete functionality. They also suggest to change the settings of Power Management to the USB ports. I have searched the forums here, and the web in general, but have found no indication that it is possible to change or even access the settings of the power that feeds the USB ports of the Macbook. After this long introduction, for which I apologize, here come two questions. 1) Is there a way, maybe via Terminal, to change the USB power management settings, and how? 2) If there is no such way, would it be possible to work around the problem by connecting the AIO, via USB cable, to a powered USB hub (connected to the Macbook), instead of connecting it directly to the Macbook's USB port, the "rationale" being that the USB hub is always powered, and stays powered when the Macbook is put in sleeping mode. Thanks in advance.

    I have solved the issue by turning OFF the printer before sleeping or turning off the computer itself.

Maybe you are looking for