Thread (6 messages) 6 messages, 2 authors, 2008-10-28

Re: [patch]aggessive autosuspend for HID devices (resent due to corruption)

From: Yi Yang <hidden>
Date: 2008-10-28 10:08:57

On Tue, 2008-10-28 at 01:47 -0700, Oliver Neukum wrote:
Am Dienstag, 28. Oktober 2008 17:26:02 schrieb Yi Yang:
quoted
quoted
This uses the USB busy mechanism for aggessive autosuspend of USB
HID devices. It autosuspends all opened devices supporting remote wakeup
after a timeout unless

- output is being done to the device
- a key is being held down (remote wakeup isn't triggered upon key release)
- LED(s) are lit
Why we shouldn't autosuspend it if it has LED lit?
If you suspend LEDs go dark. You'd hit e.g. caps lock, the LED would go
bright and two seconds later dark. That's no good.
we can set longer intervel to aviod it to autosuspend in short interval.

I don't think lighting LED is one reason we can't autosuspend, display
is a good example for this, the system will suspend to ram or hibernate
if the user leaves very long although display is bright.
	Regards
		Oliver
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help