From: Andreas Mohr <andi@lisas.de>
To: Oliver Neukum <oliver@neukum.org>
Cc: Andreas Mohr <andi@lisas.de>,
Alan Stern <stern@rowland.harvard.edu>,
Greg Kroah-Hartman <gregkh@suse.de>,
laurent.pinchart@skynet.be, Matthew Garrett <mjg59@srcf.ucam.org>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: usb autosuspend is history after S2R (also on 2.6.31; UVC?)
Date: Wed, 16 Sep 2009 20:19:10 +0200 [thread overview]
Message-ID: <20090916181910.GA28260@rhlx01.hs-esslingen.de> (raw)
In-Reply-To: <200909152148.29662.oliver@neukum.org>
Hi,
On Tue, Sep 15, 2009 at 09:48:28PM +0200, Oliver Neukum wrote:
> Am Dienstag, 15. September 2009 20:51:45 schrieb Andreas Mohr:
>
> > So, does the uvc driver need a bit of handholding here?
> > It likely shouldn't simply forget about its autosuspend status after
> > resume...
>
> Can you please provide what you get when you read the "level" file
> of the device's power directory?
After boot:
# cat 5-5/product
Acer Crystal Eye webcam
# cat 5-5/power/level
on
After re-enabling disabled /etc/rc.local autosuspend tweaks:
# cat 5-5/power/level
auto
> Secondly, please verify, that it works before the STR cycle and post
It does:
Recent USB suspend statistics
Active Device name
0.0% USB device 5-5 : Acer Crystal Eye webcam (SuYin)
0.0% USB device usb5 : EHCI Host Controller (Linux 2.6.31 ehci_hcd)
0.0% USB device usb4 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
0.0% USB device usb3 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
0.0% USB device usb2 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
0.0% USB device usb1 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
> a syslog of a suspend/resume cycle with CONFIG_USB_DEBUG and
> only this device attached if possible. Thirdly, please verify that only
> uvc is affected.
Hmmmm...
I just did the first S2R after boot, and the result is this:
Recent USB suspend statistics
Active Device name
0.0% USB device 5-5 : Acer Crystal Eye webcam (SuYin)
0.0% USB device usb5 : EHCI Host Controller (Linux 2.6.31 ehci_hcd)
0.0% USB device usb4 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
0.0% USB device usb3 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
0.0% USB device usb2 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
0.0% USB device usb1 : UHCI Host Controller (Linux 2.6.31 uhci_hcd)
# cat 5-5/power/level
auto
Weird. Either it was always working and I'm just _very_ wrong,
or it's erratic and gets reset every couple S2Rs only.
Anyway, doesn't change the fact that the r8169 WOL PHY setting is toast
after every S2R as well ;)
# ethtool -s eth0 wol d
# ethtool eth0
...
Wake-on: d
...
which then reverts to
# ethtool eth0
...
Wake-on: g
...
thus wasting a wee bit of power(, too).
> > Or would Matthew's uvc autosuspend patch
> > http://osdir.com/ml/fedora-extras-commits/2009-07/msg06079.html
> > help here?
>
> Please test it. It shouldn't work, but if it works there's a fundamental
> flaw.
Hmm, rebuild (of patch plus CONFIG_USB_DEBUG) would take >> 2 hours,
will have to wait until later.
Thanks,
Andreas
next prev parent reply other threads:[~2009-09-16 18:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 18:51 Andreas Mohr
2009-09-15 19:00 ` Greg KH
2009-09-15 19:10 ` Matthew Garrett
2009-09-15 19:48 ` Oliver Neukum
2009-09-16 18:19 ` Andreas Mohr [this message]
2009-09-16 19:51 ` Francois Romieu
2009-09-16 19:54 ` Andreas Mohr
2009-09-16 20:43 ` Francois Romieu
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=20090916181910.GA28260@rhlx01.hs-esslingen.de \
--to=andi@lisas.de \
--cc=gregkh@suse.de \
--cc=laurent.pinchart@skynet.be \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=oliver@neukum.org \
--cc=stern@rowland.harvard.edu \
/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
all inboxes | Powered by JetHome®