[Pm-utils] [gpm] gnome-power-manger-2.26.0 suspend and hibernate
Robby Workman
rw at rlworkman.net
Wed Mar 25 19:10:15 PDT 2009
On Wed, 25 Mar 2009 21:01:25 -0500
Victor Lowther <victor.lowther at gmail.com> wrote:
> On Wed, 2009-03-25 at 19:03 +0000, Chris Vine wrote:
> > All is now revealed.
> >
> > I had made the mistake of thinking that /var/log/pm-suspend only
> > contains what was also sent to stdout/stderr. It doesn't, it
> > reports also on how the hooks behave.
>
> Handy, that. :)
>
> > /var/log/pm-suspend indicates that the problem was that the 55wicd
> > hook was hanging on thawing. I think this is a re-emergence of the
> > fact that the reloading of the wireless modules also tries to bring
> > up the wireless interface via udev and wicd could not handle two
> > such requests at the same time. udev always has to get there first
> > because the modules have to be loaded before any calls are made to
> > wicd.
>
> In that case, would you mind trying the following patch on 75modules
> with an unmodified 55wicd?
>
> BEGIN PATCH
> diff --git a/sleep.d/75modules b/sleep.d/75modules
> index 3f292e4..ed8bbcf 100755
> --- a/sleep.d/75modules
> +++ b/sleep.d/75modules
> @@ -15,6 +15,7 @@ suspend_modules()
> resume_modules()
> {
> modreload
> + udevadm settle --timeout=5
> }
>
> case "$1" in
> END PATCH
>
> > Simply commenting out the attempt to bring back the wireless
> > interface in 55wicd when thawing/resuming solves the problem. The
> > reloading of the wireless modules will bring up the interface by
> > itself (via udev).
>
> The above patch should wait up to 5 seconds for udev to settle after
> reloading modules. Can you see if that allows an unmodified 55wicd to
> work properly?
If it turns out that 55wicd needs to be modified, please CC me so that
I don't miss it; that area of wicd is pretty much my baby.
-RW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20090325/4448cbdc/attachment.pgp
More information about the Pm-utils
mailing list