You are not logged in.

#1 2010-04-26 03:08:42

obankobi
Member
Registered: 2010-04-21
Posts: 26

[Solved] Sleep/hibernate?

Hi,

I was wondering how to make my computer go to sleep mode and hibernate. I found a couple ways to hibernate that involved swap partitions, but I don't have one. Is there a method that can write the data to a file? Couldn't find any method to enter sleep. It would be nice to not have to shutdown completely everyday.

Last edited by obankobi (2010-04-27 02:15:59)

Offline

#2 2010-04-26 03:12:34

piezoelectric
Member
Registered: 2009-09-08
Posts: 48

Re: [Solved] Sleep/hibernate?

pm-utils

I've never used it but some people like uswsusp

pacman -Ss suspend # is rather enlightening =)

Last edited by piezoelectric (2010-04-26 03:13:19)

Offline

#3 2010-04-26 06:01:03

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Sleep/hibernate?

I'd recommend suspend-to-ram over suspend-to-disk - details in the wiki.

Offline

#4 2010-04-26 06:09:15

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: [Solved] Sleep/hibernate?

A swap partition is not needed (nor useful) for suspension to ram. For suspension to disk it can be replaced with some effort with a swap file thanks to the tuxonice technology (you need a patched kernel).
www.tuxonice.net


Mortuus in anima, curam gero cutis

Offline

#5 2010-04-26 09:55:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Solved] Sleep/hibernate?

uswsusp also supports suspension to a swap file, and without patching the kernel.

Offline

#6 2010-04-26 10:00:45

archman-cro
Member
From: Croatia
Registered: 2010-04-04
Posts: 943
Website

Re: [Solved] Sleep/hibernate?

I just got pm-hibernate (suspend to disk (swap)) running by adding a resume thingie to grub and a "resume" before "filesystems" at HOOKS in mkinitcpio.conf. Then did a mkinitcpio -p kernel26 (as root!) and that was it! It works. I even have a swap smaller than ram and it's cool. smile

Offline

#7 2010-04-26 17:13:47

obankobi
Member
Registered: 2010-04-21
Posts: 26

Re: [Solved] Sleep/hibernate?

I'm so ashamed. I read through the documentation to quickly sad I was trying s2ram, I left off the -f. Works fine now, thanks everyone. I'll read more thoroughly in the future smile

Offline

Board footer

Powered by FluxBB