From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Jiri Kosina <jikos@jikos.cz>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
linux-usb-devel@lists.sourceforge.net,
Hans de Goede <j.w.r.degoede@hhs.nl>
Subject: Re: USB autosuspend and turning of usb pendrive leds
Date: Fri, 21 Sep 2007 16:20:22 +0200 [thread overview]
Message-ID: <46F3D326.6050804@hhs.nl> (raw)
In-Reply-To: <Pine.LNX.4.64.0709211615520.22331@twin.jikos.cz>
<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
next prev parent reply other threads:[~2007-09-21 14:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 13:28 USB autosuspend and turning of usb pendrive leds Hans de Goede
2007-09-21 14:18 ` Jiri Kosina
2007-09-21 14:20 ` Hans de Goede [this message]
2007-09-21 15:15 ` Jiri Kosina
2007-09-24 10:36 ` Oliver Neukum
2007-09-24 11:38 ` Hans de Goede
2007-09-24 13:25 ` Oliver Neukum
2007-09-21 19:47 ` [linux-usb-devel] " Oliver Neukum
2007-09-21 14:39 ` Alan Stern
2007-09-22 14:00 ` Hans de Goede
2007-09-22 14:29 ` Alan Stern
2007-09-22 17:08 ` Hans de Goede
2007-09-22 20:12 ` Alan Stern
2007-09-28 20:48 ` Bill Davidsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46F3D326.6050804@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=jikos@jikos.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox