Re: autosuspend for HID devices, take #4

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Mon, 28 May 2007, Jiri Kosina wrote:

> Hi Alan,
> 
> you are right, however there is still a reason I think that this is not 
> the case. 
> 
> What I am seeing is that the keypresses are lost only if I hit a key (and 
> thus wake the autosuspended keyboard up) only after a short time it goes 
> to suspend. When I leave it autosuspended for 2 or more seconds 
> (approximately), it behaves nicely.
> 
> Sure, it still could be a HW issue (I have experienced this with two 
> random keyboards I used for testing), but I'd guess it would be something 
> different than what you describe. What do you think?

I don't know.  Perhaps there's some strange interaction with the parent
hub?  It would get autosuspended 2 seconds after the keyboard, unless
there was some other unsuspended USB device plugged into it.

You can prevent the parent hub from being autosuspended by doing:

	echo on >/sys/bus/usb/devices/D/power/level

where D is the device name of the parent hub.  Try various combinations 
to see what works.

Alan Stern


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[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.