Answering to myself after a significant advance...
I Still don't have my entries in the system menu but... I now have a
suspend button in the shutdown widget (that appears when cliking system > shutdown). It looks like gnome-power-manager autostarts with my session now that it is installed.
My first try to hibernate lead to a notication window saying "hibernate problem" and nothing happened. I then ran gnome-power-manager in a console: I killed the currently running one and restarted with
Code:
gnome-power-manager --verbose --no-daemon
I then came accross the following errors/warnings:
The first one was trivial.
Code:
[gpm_screensaver_enable_throttle] gpm-screensaver.c:123 (22:12:39): setThrottleEnabled : 0
*** WARNING ***
[gpm_screensaver_enable_throttle] gpm-screensaver.c:134 (22:12:39): The name org.gnome.ScreenSaver was not provided by any .service files
GNOME Power Manager has encountered a non-critical warning.
Consult http://bugzilla.gnome.org/buglist.cgi?product=gnome-power-manager for any known issues or a possible fix.
Please file a bug with this complete message if not present
[gpm_screensaver_enable_throttle] gpm-screensaver.c:137 (22:12:39): gnome-screensaver service is not running.
[gpm_screensaver_enable_throttle] gpm-screensaver.c:142 (22:12:39): setThrottleEnabled failed
Althought this didn't look mandatory to succesfully hibernate, I fixed by installing gnome-screensaver.
Code:
yum install gnome-screensaver
This is the important part
Code:
[gpm_hal_handle_error] gpm-hal.c:192 (22:14:14): Hibernate failed
(No hibernate script found)
I had a look at directory
/usr/share/hal/scripts/ and found a file there
hal-system-power-hibernate. Examining that file I came accross the following line:
Code:
#RedHat/Fedora only support pm-utils
elif [ -f /etc/redhat-release ] || [ -f /etc/fedora-release ] ; then
if [ -x /usr/sbin/pm-hibernate ] ; then
/usr/sbin/pm-hibernate
RET=$?
else
unsupported
fi
And guess what... no
usr/sbin/pm-hibernate on my system. This is how I fixed:
Code:
yum install pm-utils
Now I can Hibernate ! Hurray ! And the password widget on screensaver once screen is locked is a lot more sexy
Upon first resume, I noticed I had some problems with my network and had to stop/start my ethernet interface. Diging arround in pm-utils scripts (/etc/pm/hooks) I saw a
10NetworkManager file and stopped on the following piece of code:
Code:
# Tell NetworkManager to shut down networking
dbus-send --system \
--print-reply \
--reply-timeout=2000 \
--dest=org.freedesktop.NetworkManager \
/org/freedesktop/NetworkManager \
org.freedesktop.NetworkManager.sleep >/dev/null 2>&1 0<&1
return $?
It came out there is a nice NetworkManager service which I started issuing a:
Code:
/etc/init.d/NetworkManager start
and configured for auto-start with:
Code:
chkconfig --level 5 NetworkManager on
Now I have a very sexy network icon in my notification area and I'm almost sure I will have no more network problems on the next resume. This is what I'm going to try just now.
See you later