LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-04-2015, 08:25 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Rep: Reputation: 174Reputation: 174
udisks --detach ... How do I do the reverse?


My latest toy is a Dell Inspiron Micro - about the size of a CD wallet. I am running it headless with Ubuntu Mate 15.04 as a jobs/download server and basically a test/toy. The measured power consumption is less than 4 watts at idle. Quite amazing I think. I have added a Seagate 1TB usb drive to the machine. This bumps up the power consumption to just under 6 watts. A 50% increase So, as this is for testing and experimenting I tried unmounting the drive and powering it down with udisks --detach. This does not seem to work - the light stays on on the drive and the power consumption does not change. I will work on that later or try a Toshiba drive which seems to be better at actually powering down. The drive has in fact disappeared as I can no longer mount it. But I digress...

As this machine is run headless and "remote" (it is tucked away under the desk and not convenient to get physical access to) I am wondering how I can power on the drive without unplugging and plugging the USB cable or rebooting the machine.

I have looked at the man page for udisks and I have not found any option which seems to do the trick. I see reference to "device_file", however, I do not know what this file refers to. Is is something created by the system? something I need to create? Is it totally irrelevant to my need? Any and all advice appreciated.

TIA,

Ken
 
Old 08-04-2015, 06:37 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Changes have been made at the kernel level with regards to USB power management

https://www.kernel.org/doc/Documenta...management.txt

I haven't had the need to turn a device off completely, and from what I've read the attached devices are supposed to implement power management, with the kernel driver just responsible for the signalling to do so. Anyway, I can really only help by pointing you at some discussions on this topic with various approaches employed (and why things may or may not work as expected)...

http://askubuntu.com/questions/34206...-off-usb-ports
http://unix.stackexchange.com/questi...-usb-subsystem
http://stackoverflow.com/questions/4...off-with-linux
 
Old 08-04-2015, 08:03 PM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 2,127

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks ferrari,

I will give those links a read.

Ken
 
  


Reply



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
Udisks + Udisks2 hpfeil Linux - Newbie 2 04-22-2014 12:56 PM
hal vs udev vs udisks [ITA]freeware Linux - Software 1 06-25-2013 05:55 PM
[udisks] Can't automount disks littlebigman Linux - Software 2 03-11-2013 08:12 AM
Automounting problem - udisks Skyer Linux - Newbie 0 03-11-2012 04:35 AM
udisks-ssh??? lotsofquestions Linux - Networking 1 08-20-2011 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:59 AM.

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
Open Source Consulting | Domain Registration