Gentoo Archives: gentoo-user

From: Iain Buchanan <iaindb@××××××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Turn off usb power on demand
Date: Thu, 27 Nov 2008 00:50:17
Message-Id: 492DEE7E.9040308@netspace.net.au
In Reply to: Re: [gentoo-user] Turn off usb power on demand by Peter Ruskin
1 Peter Ruskin wrote:
2 > On Wednesday 26 November 2008, Andrea Momesso wrote:
3 >>> You could use hdparm to put the drive to sleep.
4 >> I get something like this:
5 >>
6 >> cubotto ~ # hdparm -Y /dev/sdb
7 >>
8 >> /dev/sdb:
9 >> issuing sleep command
10 >> HDIO_DRIVE_CMD(sleep) failed: Invalid exchange
11 >
12 > How about hdparm -y /dev/sdb
13 > ?
14
15 AFAIR hdparm doesn't work on usb drives, as they use the SCSI transport
16 with a SCSI to ATA translation on a protocol bridge chip in the usb
17 enclosure.
18
19 You would think to use sdparm then, but the translation is apparently
20 minimal, so unfortunately you can't do things like spin down, etc.
21
22 I would guess you could unload the usb modules (uhci, ehci) but then you
23 would loose all usb...
24 --
25 Iain Buchanan <iaindb at netspace dot net dot au>
26
27 If voting could change the system, it would be illegal. If not voting
28 could change the system, it would be illegal.

Replies

Subject Author
Re: [gentoo-user] Turn off usb power on demand Neil Bothwick <neil@××××××××××.uk>