lkml.org 
[lkml]   [2011]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [linux-pm] Resume hangs [was: mmotm 2010-12-02-16-34 uploaded]
On 02/04/2011 08:33 PM, Alan Stern wrote:
> On Fri, 4 Feb 2011, Jiri Slaby wrote:
>
>>>> It seems to suffice... No hangs still. Should I enable pm_async back
>>>> again to confirm the issue is still present?
>>>
>>> Yes, please, it would be good to know for sure.
>>
>> Ok, confirmed right now :).
>>
>> I disabled pm_async for USB again. What do you suggest next?
>
> What happens if you leave pm_async enabled but unplug all the USB
> devices before suspending? If there are any USB devices you can't
> unplug, you can get an equivalent result by unconfiguring the root
> hubs:
>
> for a in /sys/bus/usb/devices/usb* ; do
> echo 0 >$a/bConfigurationValue
> done

This doesn't seem to help. The hang happened 3 times during the 2 weeks.

I have /etc/pm/sleep.d/99usb-debug with:
#!/bin/bash

send() {
for a in /sys/bus/usb/devices/usb* ; do
echo $1 >$a/bConfigurationValue
done
}

case "$1" in
hibernate|suspend)
send 0
;;
thaw|resume)
send 1
;;
*)
;;
esac

exit 0

And it indeed properly enable/disable usb before/after suspend.

regards,
--
js


\
 
 \ /
  Last update: 2011-02-22 09:47    [W:0.149 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site