lkml.org 
[lkml]   [2007]   [Sep]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: USB autosuspend and turning of usb pendrive leds
<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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-21 16:39    [W:0.058 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site