Enable sleep/hibernation

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

Re: Enable sleep/hibernation

Postby dilberts_left_nut » 2011-12-28 00:17

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
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...
User avatar
Posts: 4823
Joined: 2009-10-05 07:54
Location: enzed

Re: Enable sleep/hibernation

Postby qeemat » 2012-02-15 10:14

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
www.cyberciti.biz/faq/linux-command-to- ... etbook-pc/
Posts: 47
Joined: 2012-02-13 12:01


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 6 guests