Re: USB autosuspend and turning of usb pendrive leds

Jiri Kosina <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.kernel
Message-ID <[email protected]>
(linux-usb-devel needs CC)

On Fri, 21 Sep 2007, Hans de Goede wrote:

> 1) Would it be possible to funtionality to the kernel to suspend a device in
>    such a way that it will automatically unsuspend when used again?

It is possible - USB now supports autosuspend. After a long debate, it was 
however devcided that it is explicitly turned off, and userspace is free 
to turn it on via sysfs interface for whatever devices the user likes to 
do so.

This is mainly because there is a huge load of USB devices out there that 
don't support this feature correctly, and we will break them if we perform 
autosuspend automatically.

> 2) Would it be possible to still make the polls succeed then with out 
>    unsuspending the device (or atleast without doing something that 
>    would make the led light again, what makes the led light exactly is 
>    unknown), or should hal stop polling then?

How would you know how exactly respond to poll() that no userspace program 
gets confused? There are many different kinds of USB devices.

-- 
Jiri Kosina

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
[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.