[conspire] Linux laptop vendors
Peter Knaggs
peter.knaggs at gmail.com
Fri Jun 22 08:34:37 PDT 2007
On 6/22/07, Nick Moffitt <nick at zork.net> wrote:
> Don Marti:
> > > Maybe hardware support has improved quite a bit since I last did a
> > > laptop installation. Did hibernate work "out-of-the-box" on the
> > > Ubuntu installation?
> >
> > Haven't tried it -- I've only done suspend to RAM.
>
> Ubuntu now suspends to disk on just about anything. It doesn't need
> much in the way of hardware support. Basically (if you wave your hands
> around *quite* a lot) it works like this:
>
> 1) Throw away your vm cache entirely
> 2) page *everything* out to swap
> 3) put a special flag on the volume
> 4) power off
>
Along with more hand-waving (and making sure your swap partition
is at least larger than your physical RAM in the box), the following
Ubuntu forum post may help get things working if you tend to "loose"
your swap partition after hibernating (due to the UUID mysteriously
changing under your feet):
http://ubuntuforums.org/showpost.php?p=1773316&postcount=3
To summarize:
First you need to restore swap:
sudo mkswap /dev/'swap partition'
sudo swapon -va
edit your /etc/fstab file
when you edit your /etc/fstab file make sure that your
swap partition has the new UUID.
UUID='your correct swap UUID' none swap sw 0 0
edit your /etc/initramfs-tools/conf.d/resume file
put this line in your /etc/initramfs.d/resume file
RESUME=UUID='your correct swap UUID'
Then do:
sudo update-initramfs -u
More information about the conspire
mailing list