Results 1 to 4 of 4

Thread: How to power of 5V from USB port?

  1. #1
    Join Date
    Jun 2007
    Location
    Gdynia, Poland
    Beans
    91

    How to power of 5V from USB port?

    Hi!

    I need to controll external device from my PC's USB, which will deliver power suply (+5V). I was looking for a way to controll it from bash (turning 5V on and off in USB socket). I've found solution for turning on and of plug-n-play usb devices:
    echo on|suspend > /sys/bus/usb/devices/device/power/level
    And it works like a charm, but when I connect my usb 'dummy' plug which works just as a supply of 5V current it is worthless. Do You guys know any other way of turning on/off usb line, that will work with 5V power supply from USB socket?

    I've tried to find solution for quite a long time, but nothing works

  2. #2
    Join Date
    Jul 2007
    Location
    WA State, US
    Beans
    67
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How to power of 5V from USB port?

    Very interesting. I love playing around with small electronics projects, particularly regarding the usb ports on my computer

    Perhaps you need to disable wakeup as well?

    Code:
    echo disabled > /sys/bus/usb/devices/device/power/wakeup
    Read the wiki first!Then use Google, then look for a README file!
    If you feel like this --> chill out and come at the problem another way
    If you haven't read about getting a good answer quickly, you should.

  3. #3
    Join Date
    Jun 2007
    Location
    Gdynia, Poland
    Beans
    91

    Re: How to power of 5V from USB port?

    Thanks for Your suggestion, but it also didn't work.

    I've finaly decided to buy one of those simple devices, that allow to turn on and off two external devices by USB. It's based on FT232B chip and is controlled by windows software... but I believe, that I will find a way to use it under linux :>

    Cheers,
    Robert

  4. #4
    Join Date
    Jun 2009
    Location
    0:0:0:0:0:0:0:1
    Beans
    4,110
    Distro
    Xubuntu 13.04 Raring Ringtail

    Re: How to power of 5V from USB port?

    this would be nice to know but not sure if possible my usb ports have power even after shut down as proven by my usb fan yet my ipod shuffle (2ed gen i think) will not charge while the computer is off
    Laptop: ASUS A54C-NB91 (Storage: WD3200BEKT + MKNSSDCR60GB-DX); Desktop: Custom Build - Images included; rPi Server
    Putting your Networked Printer's scanner software to shame PHP Scanner Server
    I frequently edit my post when I have the last post

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •