Re: USB autosuspend and turning of usb pendrive leds

Hans de Goede <[email protected]>
Newsgroups gmane.linux.usb.devel,gmane.linux.kernel
Message-ID <[email protected]>
<please use reply to all to keep me cc-ed, I'm not subscribed>

Jiri Kosina wrote:
> 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.
> 

Thats not what I had in mind, autosuspend doesn't work (presumably because hal 
keeps polling for media change) maybe I should fix hal to not keep polling for 
devices which don't have removable media?

What one was able todo some time ago when there still was a power/state sysfs 
entry for usb devices, was suspend the device without changing the autosuspend 
state and then it would wake automatically when used again, I think it would be 
easiest for hal to see this behaviour back.

Note I'm not saying that this behaviour should be brought back, currently I'm 
mainly trying to find out what hal may / may not expect from the kernel with 
regards to usb suspend in the future so that I can write a hal patch based on that.

Regards,

Hans


-------------------------------------------------------------------------
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.