LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-30-2013, 12:44 PM   #1
sekarlinux
Member
 
Registered: Dec 2011
Posts: 47

Rep: Reputation: Disabled
Power on/off power for USB


Hello Friends,

How to power on/off the USB drive on CentOS-6?

Thanks,
Sekar
 
Old 05-30-2013, 01:07 PM   #2
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,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
that would actually be an OS independent feature, well powering off via USB could be done by a daemon that listens for a specific signal via the USB port, in fact this is done with UPSes (uninterupted power supplies) telling a machine to shut down when the power goes off and the battery is running low to prevent a sudden drop of power from causing an improper shutdown of the unit, but powering on a computer on the other hand would have to be supported in BIOS, and there are some BIOSes that support power on via keyboard (my home unit, a gigabyte ga-ma78gm-sh2 motherboard, has such a feature in it's bios), but doing so via OS would be impossible when the OS isn't resident in memory
the best you could hope for is a suspend/unsuspend.
 
Old 05-30-2013, 02:08 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,967

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
@freiza: This isn't about powering off the computer, just turning off power to a USB drive while the computer remains running. Nice try, though.
 
Old 05-30-2013, 05:50 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,398

Rep: Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207Reputation: 2207
I'd guess acpi tools might do that.

Other ways might work like this. http://stackoverflow.com/questions/4...off-with-linux

http://stackoverflow.com/questions/1...wer-on-and-off

Not sure if usbtools would work.
 
Old 05-31-2013, 02:25 AM   #5
sekarlinux
Member
 
Registered: Dec 2011
Posts: 47

Original Poster
Rep: Reputation: Disabled
Yes. I am looking for turning off the power off/on the USB moedm when my computer is running since it is hanged sometime and it required manually unplugged and plugged back. Also it should not go to suspend even i was not using for sometime.
 
Old 05-31-2013, 08:15 PM   #6
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,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
hmm, perhaps not power but rmmod/insmod might work
 
  


Reply


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
Power off USB storage device/port to avoid power consumption johndir Linux - Hardware 4 11-15-2011 06:04 PM
Power Management not working on embedded MIPS when using /sys/power/state RichardS Programming 1 01-21-2011 08:18 AM
power company idiots cut power while system was on, now hangs at boot with # prompt shroomy_bee Linux - Newbie 10 07-04-2008 01:12 AM
USB IR receivers supporting power on/off via mb power header dblade Linux - Hardware 0 09-16-2007 02:22 AM
LXer: Linux Networx partners with CEI to power 2X visualization power of ... LXer Syndicated Linux News 0 04-26-2006 04:03 AM


All times are GMT -5. The time now is 04:58 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration