ubutnu - laptop - suspend mode howto
Jan Morén
jan.moren at lucs.lu.se
Wed Oct 27 23:45:12 UTC 2004
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.
--
Trust the Computer. The Computer is your friend.
Tel. (Japan) 090-3622 8920 Dr. Jan Morén (mr)
Dept. of Cognitive Science
http://lucs.lu.se/people/jan.moren Lund, Sweden
More information about the ubuntu-users
mailing list