LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Suspend/Hibernate on a desktop machine (https://www.linuxquestions.org/questions/fedora-35/suspend-hibernate-on-a-desktop-machine-450894/)

zeitounator 06-02-2006 08:27 AM

Suspend/Hibernate on a desktop machine
 
Hi Folks !

I run fedora core 5 on a x86_64 desktop machine which was upgraded using yum from a fedora core 4 install.

Browsing the web, I recently came accross some articles talking about suspend/hibernate being supported out of the box by fedora. Some people were talking about a suspend and and hibernate menu entry in the gnome menu. I do not have those entries.

I tried to dig a little more. I installed gnome-power-manager and launched it. I still can't see those menus nor any related settings in gnome-power-management widget in system settings.

I would really like to experiment with this feature. Can anybody point me in the right direction to get those menus ? Any link/info/help greatly appreciated.

zeitounator 06-03-2006 04:34 PM

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 :)

zeitounator 06-03-2006 04:37 PM

Yes !!!!!! It works :)

feusebio 07-20-2007 08:39 AM

Resume session Fedora 7 nc6400
 
Hi,

I have a Compaq nc6400, and i can hibernate or suspend session fine, i think, but when i try resume session, nothing happen. I don't know if a click the right combination keys or if my hibernate service is working right.

feusebio 07-25-2007 07:02 PM

Quote:

Originally Posted by feusebio
Hi,

I have a Compaq nc6400, and i can hibernate or suspend session fine, i think, but when i try resume session, nothing happen. I don't know if a click the right combination keys or if my hibernate service is working right.

I fixe already some part of the problem:
I add this line: resume=/dev/VolGroup00/LogVol01 on /boot/grub/menu.lst
/dev/VolGroup00/LogVol01 is my swap partition set in /etc/fstab

Now i can resume my session fine, i can suspend and hibernate, later i can resume and get up system, but if i suspend session when i turn on, the screen shows in a different resolution and i can't change with "Screen Resolution" option.


All times are GMT -5. The time now is 03:01 PM.