Re: patch to autosuspend mice #2

Pavel Machek <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
Hi!
> 
> this preliminary patch should suspend your mouse, if it supports remote
> wakeup. In fact it should do this to all devices which are HID, claimed by
> the input layer and support remote wakeup.
> 
> It works for me with my mouse. I've tested letting it autosuspend and
> resume. It survives going to a text console, init 3 and hotplugging.
> Anything else is untested. I think it'll crash and burn with PID devices.
> I am working on that.
> 
> I am pretty sure that it actually goes to sleep taking the root hub with it.
> I'd be interested in knowing how much power it really saves. Short of
> running dry my laptop's battery I have no way of telling.
> 
> You need to compile with EXPERIMENTAL & USB_SUSPEND.
> This is the corrected version.

Measurements on x60:

Idle machine, lowest backlight, no usb plugged in:           10813 mW

Feb  1 15:55:49 amd kernel: input<3>Added idle timer for firing in 10
seconds
Feb  1 15:55:49 amd kernel: : USB HID v1.10 Mouse [HID 062a:0000] on
usb-0000:00:1d.0-1
Feb  1 15:55:49 amd kernel: PM: Adding info for No Bus:usbdev2.2_ep81
Feb  1 15:55:59 amd kernel: state is 0
Feb  1 15:55:59 amd kernel: Modded idle timer for firing in 10 seconds
Feb  1 15:56:09 amd kernel: state is -1
Feb  1 15:56:09 amd kernel: Detected idleness
Feb  1 15:56:09 amd kernel: Putting idle interface.

Power consumption:					     10860 mW

...so yes, it seems to work. (Measurement error is ~300mW)

When I actually use the mouse

Feb  1 15:58:14 amd kernel: Added idle timer for firing in 10 seconds
^[ Feb  1 15:58:24 amd kernel: state is 0
Feb  1 15:58:24 amd kernel: Modded idle timer for firing in 10 seconds
Feb  1 15:58:34 amd kernel: state is 0
...

Power consumption:					     13918 mW


So yes, this is must-have for anyone using usb mouse on a notebook.

I do not even need to press buttons to wake the mouse up, good. (Maybe
it has something to do with mouse being wireless and powered by 2x
AA?)

									Pavel

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.