Laptop sleep gone bad in Gutsy

Jonathan Hudson jh+ubuntu at daria.co.uk
Fri Nov 23 16:39:51 GMT 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
> suspend.
> 
> 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.
> 
> -jh
> 

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:

#!/bin/sh

case $1 in
suspend|hiberate)
  sync; sync ; sync
  chvt 11
  echo "suspend" > /tmp/vt.sleep
  sync
  sleep 1
  ;;
resume|thaw)
   chvt 12
   sleep 1
   chvt 11
   VT=`grep 'using VT' /var/log/Xorg.0.log | cut -d ' ' -f 5`
   echo $VT > /tmp/vt.resume
   chvt "$VT"
   ;;
esac

2. I have an /etc/pm/config.d/config which contains:

S2RAM_OPTS="-f -a3 -m"
HIBERNATE_RESUME_POST_VIDEO=yes
DISPLAY_QUIRK_S3_BIOS=true

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
effects enabled. 

HTH,

-jonathan
 





More information about the ubuntu-users mailing list