hibernate, suspend Thinkpads

Lee Tambiah l_tambiah at linuxmail.org
Mon Jun 19 22:22:50 UTC 2006


On Mon, 19 Jun 2006 19:51:51 +0100
ubuntu-users-request at lists.ubuntu.com wrote:

> Neither hibernate nor suspend work for me on my thinkpad x60s. If i
> echo mem > /sys/power/state, it goes into a sleep mode of sorts. when
> it comes back (quickly),
> 
> the screen off and it makes the login "drumroll" sound. It seems to be
> doing stuff
> 
> again, and i can switch to a console terminal blind and type in my
> password and
> 
> tell it to reboot. This seems close at least...
> 
> 
> 
> hibernate doesn't work so hot. i get the vertical brown lines talked
> about elsewhere.

I get same issue with hibernate, it does work but not very efficiently
and i get the vertical brown lines. My suspend didnt work but works
since I changed the sleep.sh code. The suspend works great now.
Try this:-

Add the VBE parameter to "xorg.conf", under the device section,
xorg.conf can be found at directory /etc/X11

Section "Device"
	Identifier	"Intel Corporation 82852/855GM Integrated
Graphics Device" Driver		"i810"
	BusID		"PCI:0:2:0"
	Option   "VBERestore"  "true" #ADD THIS OPTION!!!
EndSection

Now change the code of the sleep.sh, you should make a back up first to
keep original file. 

Copy file

cd /etc/acpi
sudo cp sleep.sh sleep_backup.sh

Edit file sleep.sh

sudo gedit /etc/acpi/sleep.sh

now delete code you see and replace with this code below:-

#!/bin/bash

/bin/sync

/sbin/rmmod uhci-hcd
/sbin/rmmod ehci-hcd

/usr/bin/chvt 1

cat /proc/bus/pci/00/02.0 > /var/cache/video.config

echo -n mem > /sys/power/state

cat /var/cache/video.config > /proc/bus/pci/00/02.0

rm -rf /var/cache/video.config

/usr/bin/chvt 7

/sbin/modprobe uhci-hcd
/sbin/modprobe ehci-hcd 

Save and exit of course. 

Hopefully your suspend will work now...;-)

Regards

L. Tambiah




More information about the ubuntu-users mailing list