ubutnu - laptop - suspend mode howto

Robert Brimhall rbrimhall at gmail.com
Thu Oct 28 00:40:22 UTC 2004


On Thu, 28 Oct 2004 08:45:12 +0900, Jan Morén <jan.moren at lucs.lu.se> wrote:
> ons 2004-10-27 klockan 18:25 -0500 skrev Santiago Erquicia:
> 
> 
> > On Wed, 2004-10-27 at 18:16 -0500, Robert Brimhall wrote:
> >
> > > I have a script that suspends to RAM (I think)... called sleep.sh in /etc/acpi
> > > #####begin#####
> > > #!/bin/sh
> > >
> > > rmmod ipw2200
> > > rmmod uhci_hcd
> > > rmmod ehci_hcd
> > >
> > > echo mem > /sys/power/state
> > >
> > > modprobe uhci_hcd
> > > modprobe ehci_hcd
> > > modprobe ipw2200
> > > #####end#####
> > >
> >
> > Why do you have those modules there?  What makes you do it?
> >
> > I'm asking because I would like to know which ones should I use.
> 
> They are kernel modules (for networking and usb) that will get confused
> and refuse to work after restart if you don't remove them first.
> 
> 
> 
> 
> > > make sure there is also a file called sleep in /etc/acpi/events that contains:
> > >
> > > #####start#####
> > > # /etc/acpid/events/sleep
> > >
> > > event=button[/]sleep
> > > action=/etc/acpi/sleep.sh %e
> > > #####end#####
> > >
> > > I have to switch virtual terminals when coming back from suspend to
> > > get my display back on... this is on an Inspiron 8500.
> 
> 
> I have this (from a tips page for my Latitude D800):
> 
> ...
> echo mem > /sys/power/state
>                                                                                                                                  
> # after waking up, move to terminal 1, this give some time to graphic
> card to get into sane state
> chvt 1
> sleep 0.5
> # change into gui terminal, graphic card is ok at this point
> chvt 7
> ...
> Let it switch by itself so I don't have to, in other words.
> 
> --

Thanks Jan! That skips a step I have to manually do...



-- 
Robert




More information about the ubuntu-users mailing list