Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Enable sleep/hibernation

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
User avatar
dilberts_left_nut
Administrator
Administrator
Posts: 5346
Joined: 2009-10-05 07:54
Location: enzed
Has thanked: 13 times
Been thanked: 66 times

Re: Enable sleep/hibernation

#16 Post by dilberts_left_nut »

Been meaning to do it for some time, so I had a partition reshuffle, squeezed in a 4GB swap, set it up in /etc/fstab and mounted it with

Code: Select all

swapon -a
added a /etc/initramfs-tools/conf.d/resume containing

Code: Select all

RESUME=LABEL=swap
then ran

Code: Select all

update-initramfs -u
After logging out and back in, Hibernate was livened up in the xfce-power-manager menu so I pushed it and it hibernated and then resumed when I repowered. :D

I also discovered there is a 'hibernate' package in the repo, but I don't have it installed so I don't know what it could add, or if it just sets up the initramfs automatically.
AdrianTM wrote:There's no hacker in my grandma...

qeemat
Posts: 46
Joined: 2012-02-13 12:01

Re: Enable sleep/hibernation

#17 Post by qeemat »

To hibernate system, enter:
# pm-hibernate
To suspend system, enter:
# pm-suspend
You can use the at command as follows to put laptop to sleep after 30 minutes of time:
echo 'pm-suspend' | at now + 30 minutes
For further details check this site
http://www.cyberciti.biz/faq/linux-comm ... etbook-pc/

Post Reply