Laptop sleep gone bad in Gutsy
jh+ubuntu at daria.co.uk
Fri Nov 23 16:39:51 UTC 2007
On Wed, 21 Nov 2007 18:53:51 +0000
Jonathan Hudson <jh+ubuntu at daria.co.uk> wrote:
> On Wed, 21 Nov 2007 08:10:00 +0100
> Han Pilmeyer <pilux at pilmeyer.nl> wrote:
> > I have the same thing on a HP nc6220. I'm not using the visual effects.
> > I'm pretty sure it is related to my switch from the i810 graphics driver
> > to the intel graphics driver (which I did shortly after moving to
> > Gutsy). I will switch back later today and see if that helps.
> I initially had some problems with a nc6220, but after disabling
> otherwise hacking some of the default suspend/resume stuff
> it's been 100% OK since [compiz/intel] (modulo the psychedelic coloured
> squares on the LCD during suspend). This is for both hibernate and
> Unfortunately I don't have access to the machine at the moment, but if
> I haven't posted a followup of what was necessary to make the nc6220
> reliable by Sunday, drop me an email to remind me.
So I remembered. This is what I did to make suspend / hibernate solid
on my HP nc6220. YMMV etc.
0. Added an empty file /etc/pm/sleep.d/00clear
1. Added a new file, /etc/pm/sleep.d/000vt, which contains:
case $1 in
sync; sync ; sync
echo "suspend" > /tmp/vt.sleep
VT=`grep 'using VT' /var/log/Xorg.0.log | cut -d ' ' -f 5`
echo $VT > /tmp/vt.resume
2. I have an /etc/pm/config.d/config which contains:
S2RAM_OPTS="-f -a3 -m"
Don't recall if I made this, or why, but it works for me. Likewise, the
000vt file looks like my normal debugging technique of "add a 'sleep 1'
until it works" ... but it now does, for me at least.
Using the intel Xorg driver, compiz with more than the default
More information about the ubuntu-users