Updated /usr/lib/pm-utils/sleep.d/50modules  with following and now
hibernate is working.  Although it takes 2-3 minutes for NetworkManager to
see the wifi networks then connect, but it works.

Still need me to post /var/log/pm-suspend.log ?


#!/bin/bash

. /usr/lib/pm-utils/functions

suspend_modules()
{
       /etc/init.d/NetworkManager stop
       modprobe -r iwl3945
       modprobe -r rc80211_simple
       modprobe -r cfg80211
       modprobe -r mac80211
       [ -z "$SUSPEND_MODULES" ] && return 0
       for x in $SUSPEND_MODULES ; do
               modunload $x
       done
       return 0
}

resume_modules()
{
       modprobe iwl3945
       sleep 3
       /etc/init.d/NetworkManager start
       [ -z "$RESUME_MODULES" ] && return 0
       for x in $RESUME_MODULES ; do
               modprobe $x
       done
}

case "$1" in
       hibernate|suspend)
               suspend_modules
               ;;
       thaw|resume)
               resume_modules
               ;;
       *)
               ;;
esac

exit $?

On 6/6/07, Stefan Seyfried <[EMAIL PROTECTED]> wrote:

On Wed, Jun 06, 2007 at 10:39:50AM -0700, Gilbert wrote:
> all i need to do is reload the iwl3945/80211 modules after resuming from
> suspend-to-disk but these new hal sleep quirks don't work. tried adding
the
> modules to /etc/pm/config.d/unoad_modules as suggested
> here<
http://people.freedesktop.org/%7Ehughsient/quirk/quirk-suspend-advanced.html
>but
> instead of helping it breaks suspend-to-disk. i was able to do this
> similar trick but for snd-hda-intel in fc6 but in f7 the /etc/pm/hooks
> directory is no longer there nor is the /etc/pm/functions file.

The pm-utils installation moved to /usr/lib/pm-utils/

Look in the /var/log/pm-suspend.log file, there should be traces in there
of the attempt to unload the modules.
Just post that logfile, so we can see what is going on.
--
Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg  | "Well, surrounding them's out."

This footer brought to you by insane German lawmakers:
SUSE Linux Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to