LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-03-2012, 04:16 PM   #1
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Rep: Reputation: Disabled
Question Turn off USB power


Hi,

I have realized that the 5V on the USB are always present, even when the host system reboots. Now, I was wondering, is there any way that I can turn off the 5>V onb the USB port explicitly? I have a usb client device and I would like it to go through a reeboot as well when I reboot the host as the system is supposed to be self-surviving 24/7/365 and I can only "guarantee" this, if I also can power cycle my usb client...
Any hints?

Thanks!!!
Ron
 
Old 07-03-2012, 04:37 PM   #2
Doc CPU
Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 999

Rep: Reputation: 292Reputation: 292Reputation: 292
Hi there,

Quote:
Originally Posted by cerr View Post
I have realized that the 5V on the USB are always present, even when the host system reboots.
yes, that's by design. Some notebooks, however, switch USB power off when they're powered down themselves and not on AC power for recharging.

Quote:
Originally Posted by cerr View Post
Now, I was wondering, is there any way that I can turn off the 5>V onb the USB port explicitly?
You can't. At least there's no standard way. All RESET-aware USB devices depend on "being told" to reset themselves by their driver.

Quote:
Originally Posted by cerr View Post
I have a usb client device and I would like it to go through a reeboot as well when I reboot the host as the system is supposed to be self-surviving 24/7/365 and I can only "guarantee" this, if I also can power cycle my usb client...
That would require some hardware tricks. Problem is, you can't detect a simple restart of the host system by its power lines, least of all USB power. Instead, you'll have to monitor the status of the system's RESET line, which is available on PCI expansion slots (possibly on PCI-e, too, but I'm not sure) and on legacy IDE ports.

Actually, that's a tough one. But maybe we can find a solution if you tell us a bit more about the limiting conditions.

[X] Doc CPU
 
Old 07-03-2012, 04:48 PM   #3
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Unhappy

Quote:
Originally Posted by Doc CPU View Post
Actually, that's a tough one. But maybe we can find a solution if you tell us a bit more about the limiting conditions.
NHi Doc,
We'rehere to find solutions for the tough problems, are we not? However, as for the conditions:
I have a little embedded box running an Atmel AT91SAM ARM processor. I compiled a mini distro using buildroot and busssybox, featuring kernel 3.2.7. Tthe system is supposed to be connected to the cloud with a cell phone stick. I got that going fine, meaning i can dial up and send ands receive data just fine for a while and then it loses connection, i redial and it will reconnect some times, other times, it says that the ppd pid is locked already so i built a watchdog script that gets executed by cron every 5 minutes. It will check if it can ping 8.8.8.8 and in case of a negative feedback, I reboot my little box (which will trigger it to redial on init) but every now and then, the system seems to hang itself up on boot aand i believe it might be because the usb cell stick requires a power cycle every now and then too (I wanbted to power cycle it on every reboot). Now how can I get this accomplished?
Aany hints?
Please advise, Doctor!
 
Old 07-03-2012, 04:50 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,062

Rep: Reputation: 362Reputation: 362Reputation: 362Reputation: 362
just out of curiosity, what is the client device? can you issue commands to reboot the device via the USB interface? if you can send it a reboot signal then you could perhaps set the computer to send a reboot signal to the device when it reboots, just a thought, couldn't tell you if this would work or not since none of the specifics about the device in question were provided.
 
Old 07-03-2012, 04:54 PM   #5
cerr
LQ Newbie
 
Registered: Apr 2012
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frieza View Post
just out of curiosity, what is the client device? can you issue commands to reboot the device via the USB interface? if you can send it a reboot signal then you could perhaps set the computer to send a reboot signal to the device when it reboots, just a thought, couldn't tell you if this would work or not since none of the specifics about the device in question were provided.
True, it's a cell phone stick from ZTE, type MF668A - I just sent the sales rep an email, asking him if he can get me in touch with a ZTE tech guy to get some additional info about its usb power management profile.
 
Old 07-03-2012, 07:45 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,013

Rep: Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356Reputation: 1356
It would be possible to use acpi I'd think to power down the port.

It has been an issue with computers forever. A reboot is not a power down.
 
  


Reply

Tags
power, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
turn usb power on off knobby67 Linux - Hardware 3 06-15-2008 09:11 AM
How do you turn off power saving royeo Linux - Newbie 1 08-20-2006 12:44 PM
How to turn off power saving royeo Linux - Newbie 5 08-06-2006 08:01 AM
turn off doesn't really turn and power off pcandpc Mandriva 11 05-30-2005 03:22 PM
Turn on power through network? trees Linux - Networking 6 01-21-2004 01:25 AM


All times are GMT -5. The time now is 02:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration