linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: USB power usage
       [not found] <Pine.LNX.4.44L0.0612252245310.29662-100000@netrider.rowland.org>
@ 2006-12-26 14:40 ` Pavel Machek
  2006-12-26 23:46   ` [linux-pm] " David Brownell
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Machek @ 2006-12-26 14:40 UTC (permalink / raw)
  To: Alan Stern, kernel list; +Cc: Linux-pm mailing list

Hi!

> > Couple of watts is not that bad, considering usb still eats 4W more
> > than it should.
> 
> The USB autosuspend mechanism has been present for a while in -mm and is
> included in 2.6.20-rc (although you have to turn on CONFIG_USB_SUSPEND,
> which is off by default -- it would be nice to change that).  Has anybody
> tried doing some real-world measurements to see if it actually makes a
> significant improvement in power usage?

I did measurements while in -mm, and yes it helped. And yes,
it works in 2.6.20-rc2, too:

root@amd:~# cat /proc/acpi/battery/BAT0/state ; sleep 20; cat
/proc/acpi/battery/BAT0/state ; sleep 20; cat
/proc/acpi/battery/BAT0/state ; sleep 20
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            14245 mW
remaining capacity:      50020 mWh
present voltage:         15793 mV

(turned off bluetooth hanging off USB here).

present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            11650 mW
remaining capacity:      49940 mWh
present voltage:         15830 mV
present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            10935 mW
remaining capacity:      49870 mWh
present voltage:         15826 mV
root@amd:~#

As you can see, it saves ~3.5W, which is huge deal on machine that
eats 11W total.

(X60 owners, get 2.6.20, and _disable that bluetooth_ while not in use).
									Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-pm] USB power usage
  2006-12-26 14:40 ` USB power usage Pavel Machek
@ 2006-12-26 23:46   ` David Brownell
  0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2006-12-26 23:46 UTC (permalink / raw)
  To: linux-pm; +Cc: Pavel Machek, Alan Stern, kernel list

> > > Couple of watts is not that bad, considering usb still eats 4W more
> > > than it should.
> > 
> > The USB autosuspend mechanism has been present for a while in -mm and is
> > included in 2.6.20-rc (although you have to turn on CONFIG_USB_SUSPEND,
> > which is off by default -- it would be nice to change that).

Call me paranoid, but I'd like to leave it this way for for a while yet
to shake out bugs.  There are some complicated interactions here, some
of which are hardware-specific, and we've only just started to really
shake out the associated problems.  (But yes, eventually we do want to
see that option go away, and this behavior be standard with PM enabled.)


> > Has anybody 
> > tried doing some real-world measurements to see if it actually makes a
> > significant improvement in power usage?
> 
> I did measurements while in -mm, and yes it helped. And yes,
> it works in 2.6.20-rc2, too:
> 
> ...
> 
> As you can see, it saves ~3.5W, which is huge deal on machine that
> eats 11W total.

Hey, that's great to know.  Thanks for sharing the figures!

And special thanks to Alan, for reworking (and re-reworking) relevant
parts of usbcore so that these power savings can (mostly) be automated.
ISTR the first patches supporting USB suspend/resume/wakeup landed in
about the 2.6.10 kernel, and things look a LOT better than back then.

- Dave


> (X60 owners, get 2.6.20, and _disable that bluetooth_ while not in use).
> 									Pavel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-26 23:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <Pine.LNX.4.44L0.0612252245310.29662-100000@netrider.rowland.org>
2006-12-26 14:40 ` USB power usage Pavel Machek
2006-12-26 23:46   ` [linux-pm] " David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).