Enable sleep/hibernation

New to Debian (Or Linux in general)? Ask your questions here!

Enable sleep/hibernation

Postby firebirdsql » 2011-12-26 06:23

How do I enable sleep/hibernation in Debian? My PC is pretty recent and should support the ACPI specs (not sure why debian didn't enable this by default)
firebirdsql
 
Posts: 25
Joined: 2011-12-25 01:25

Re: Enable sleep/hibernation

Postby Randicus » 2011-12-26 07:49

Which version of Debian? Stable, Unstable or Testing?
Are you using Gnome, Kde, XFCE, LXDE or other?
If you are suffering from sudo abuse and would like to check into the Debian Rehabilitation Clinic:
su
Enter root password.
User avatar
Randicus
 
Posts: 2066
Joined: 2011-05-08 09:11
Location: Probably on your ignore list.

Re: Enable sleep/hibernation

Postby firebirdsql » 2011-12-26 16:54

I'm using Debian Sequeeze Stable.
Gnome-session (minimal), gnome-themes, gnome-icon-theme.

I just installed the pm-utils package and after a restart I get the suspend/hibernate options. Is this the correct way to enable sleep/hibernation or is it a workaround?
firebirdsql
 
Posts: 25
Joined: 2011-12-25 01:25

Re: Enable sleep/hibernation

Postby Randicus » 2011-12-26 22:39

Gnome, Kde, XFCE and LXDE should all have sleep and hibernation when Debian is installed. We shall both need to wait for ideas about what went wrong for you. As for installing pm-utils, if it works then it is not wrong.
If you are suffering from sudo abuse and would like to check into the Debian Rehabilitation Clinic:
su
Enter root password.
User avatar
Randicus
 
Posts: 2066
Joined: 2011-05-08 09:11
Location: Probably on your ignore list.

Re: Enable sleep/hibernation

Postby golinux » 2011-12-27 00:22

Suspend worked for me out of the box on Squeeze/Gnome. IIRC hibernation doesn't work so I've gotten used to suspend. Maybe I'll give it a try later and report back.
Blessed are the 'troublemakers' who strive to right wrongs and shine light into dark places.
User avatar
golinux
 
Posts: 546
Joined: 2010-12-09 00:56
Location: the corporate imperialist empire

Re: Enable sleep/hibernation

Postby Mr James » 2011-12-27 00:35

@Randicus: Buttons and menu items are one thing, whether the functionality of those elements are present and working correctly is another. You can also suspend and hibernate from the CLI by the way.

@OP: Yeah pm-utils is what's needed. However suspend (to RAM or disk) and resume from suspend are totally unreliable so do not be surprised. Kernel, graphics drivers (proprietary or not), USB devices, and BIOS settings - any one or all of them could be causing your issue. My system's resume from suspend borked upon last point upgrade. The best you can do is take a look at your dmesg and log files and look for errors and warnings and see if they lead you anywhere. These are located in /var/log/.
E8400 P5QL 4GB 9600GT 1TB 23" 1920x1080 Debian/Wheezy dwm i386*
* found myself pulling in truckloads of multiarch packages, so...
User avatar
Mr James
 
Posts: 1249
Joined: 2010-09-10 13:02

Re: Enable sleep/hibernation

Postby firebirdsql » 2011-12-27 00:44

After installing pm-utils and rebooting, the suspend/hibernation options were in the shutdown dialog. Maybe there didn't appear at first because I only installed the minimal gnome-session.
firebirdsql
 
Posts: 25
Joined: 2011-12-25 01:25

Re: Enable sleep/hibernation

Postby golinux » 2011-12-27 01:02

Mr James wrote:However suspend (to RAM or disk) and resume from suspend are totally unreliable so do not be surprised.

I can't remember suspend ever failing me. Well, maybe once after a kernel security update. Guess I'm lucky . . .
Blessed are the 'troublemakers' who strive to right wrongs and shine light into dark places.
User avatar
golinux
 
Posts: 546
Joined: 2010-12-09 00:56
Location: the corporate imperialist empire

Re: Enable sleep/hibernation

Postby Randicus » 2011-12-27 01:07

golinux wrote:
Mr James wrote:However suspend (to RAM or disk) and resume from suspend are totally unreliable so do not be surprised.

I can't remember suspend ever failing me. Well, maybe once after a kernel security update. Guess I'm lucky . . .

I have also never had a problem with suspend using Stable. As for Unstable and Testing, I have never been down those roads.
If you are suffering from sudo abuse and would like to check into the Debian Rehabilitation Clinic:
su
Enter root password.
User avatar
Randicus
 
Posts: 2066
Joined: 2011-05-08 09:11
Location: Probably on your ignore list.

Re: Enable sleep/hibernation

Postby Mr James » 2011-12-27 01:56

Randicus wrote:
golinux wrote:
Mr James wrote:However suspend (to RAM or disk) and resume from suspend are totally unreliable so do not be surprised.

I can't remember suspend ever failing me. Well, maybe once after a kernel security update. Guess I'm lucky . . .

I have also never had a problem with suspend using Stable. As for Unstable and Testing, I have never been down those roads.

Lucky is an understatement.
Great, now I hate the both of you...
E8400 P5QL 4GB 9600GT 1TB 23" 1920x1080 Debian/Wheezy dwm i386*
* found myself pulling in truckloads of multiarch packages, so...
User avatar
Mr James
 
Posts: 1249
Joined: 2010-09-10 13:02

Re: Enable sleep/hibernation

Postby golinux » 2011-12-27 03:16

OK. I just tested hibernation and it works fine too but is very slow. As I never leave unsaved files open, there's no risk in using suspend which is very fast (and reliable). :) Sometimes I don't reboot for weeks at a time!
Blessed are the 'troublemakers' who strive to right wrongs and shine light into dark places.
User avatar
golinux
 
Posts: 546
Joined: 2010-12-09 00:56
Location: the corporate imperialist empire

Re: Enable sleep/hibernation

Postby firebirdsql » 2011-12-27 03:49

Got a question...if it was in suspend mode and the power went out, what do you need to do?

On windows, you would schedule a full disk scan....what would you do in debian?
firebirdsql
 
Posts: 25
Joined: 2011-12-25 01:25

Re: Enable sleep/hibernation

Postby Randicus » 2011-12-27 07:42

Mr James wrote:Lucky is an understatement.
Great, now I hate the both of you...

You have made me curious. I do not use hibernate, so am not knowledgeable about any issues with it. However, whether using suspend with Gnome and XFCE or logging out of Openbox and Fluxbox and using suspend from the log-in window, I have never had any problems. I am curious about your set-up. Do you have a standard installation or have you added any packages that may cause problems? Could such problems be hardware-related? Or is it purely luck of the draw?
If you are suffering from sudo abuse and would like to check into the Debian Rehabilitation Clinic:
su
Enter root password.
User avatar
Randicus
 
Posts: 2066
Joined: 2011-05-08 09:11
Location: Probably on your ignore list.

Re: Enable sleep/hibernation

Postby Mr James » 2011-12-27 10:15

Randicus wrote:I am curious about your set-up. Do you have a standard installation or have you added any packages that may cause problems? Could such problems be hardware-related? Or is it purely luck of the draw?

Nah, I ain't gonna hijack this dude's thread. But I will say that my issue is the *resume* part. Logs say suspend was successful. Resume yields a kernel panic. Haven't really delved into the why as where I am the power is unreliable anyway - power outage renders suspend useless. I will also say that Squeeze is the *only* distro release I ever used (butnut, arch...you name it) that ever suspend and resumed correctly. That is, until the latest point release.
E8400 P5QL 4GB 9600GT 1TB 23" 1920x1080 Debian/Wheezy dwm i386*
* found myself pulling in truckloads of multiarch packages, so...
User avatar
Mr James
 
Posts: 1249
Joined: 2010-09-10 13:02

Re: Enable sleep/hibernation

Postby dilberts_left_nut » 2011-12-27 10:31

firebirdsql wrote:Got a question...if it was in suspend mode and the power went out, what do you need to do?

On windows, you would schedule a full disk scan....what would you do in debian?

You would watch as the disks get checked during the next boot (very quick on ext4).

My suspend works great on my laptop (Sid - xfce) but I haven't tried hibernate as I don't currently have a swap.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 2900
Joined: 2009-10-05 07:54
Location: enzed

Next

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable