LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-02-2006, 08:27 AM   #1
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
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.
 
Old 06-03-2006, 04:34 PM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Original Poster
Rep: Reputation: 30
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
 
Old 06-03-2006, 04:37 PM   #3
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Original Poster
Rep: Reputation: 30
Yes !!!!!! It works
 
Old 07-20-2007, 08:39 AM   #4
feusebio
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
Question 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.
 
Old 07-25-2007, 07:02 PM   #5
feusebio
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless not working after suspend/hibernate fatbeaver SUSE / openSUSE 9 04-26-2006 02:16 PM
Suspend and HIbernate mode in Linux. saurabh777 Linux - General 1 04-18-2006 09:13 PM
Suspend / hibernate problems in FC5 cdhgee Fedora 2 04-11-2006 08:32 AM
Suspend/Hibernate in Fedora/Suse Anmol Linux - Laptop and Netbook 0 03-24-2004 04:23 AM
suspend a.k.a hibernate on kernel 2.6, how to use it? demmylls Linux - General 1 03-06-2004 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration