Mast Kalandar

bandar's colander of random jamun aur aam

Mon, 02 Jan 2006

< Debian Application | · | Changing remote access rules >

Getting suspend to work on the Thinkpad R51


Tags: , [link] [comments (0)] [raw]

More on this mess. First of all the difficulties with suspend to ram are explained quite nicely in /usr/src/linux/Documentation/power/video.txt.

Secondly, there are a number of drivers that do not "play nice" with ACPI sleep. For the thinkpad this is the 'hsf*' modules for modem and the "nis-ircc" module for the infrared devices. Also check the driver for bluetooth as I don't have one so i can't check.

Thirdly, the behaviour is dependent on which video card one has and what driver one is using. Restore works more stably with the "vesa" driver (see Pavel's documentation on suspending in the same directory given above).

However, I have managed to get suspend to work somewhat stably with the i810 driver (glx!) as follows:

  1. Start in recovery mode and save video state with

    vbetool vbestate save > /usr/local/lib/vbe_base_state
  2. Your suspend script should save the contents of

    /proc/bus/pci/00/02.0

    before suspending and restore immediately afterwards.

  3. Your suspend script should after the above restoration run

    vbetool post" "vbetool vbestate restore < /usr/local/lib/vbe_base_state
  4. I also find it safer to send a "kill -STOP" to the X server before suspending and a "kill -CONT" at the end of the suspend script. This ensures that the "raw mode" keyboard and mouse inputs that are accidentally pressed when putting on the machine are not passed on to the X server.

  5. Finally, if all else fails, the following works. Suspend to disk after a failed restore from "sleep", kill and restart the X server. This may not help as you loose your working session but at least you don't loose your uptime record :)

By the suspend to disk is now working with the current unstable "linux-image-2.6-686" and "initramfs-tools" in Debian. For this you only need to stop hsfmodem before the suspend. The rest just "works".


Name
E-mail (will not be displayed)
OpenID (required)
Simple HTML and wiki markup are allowed.

Archives

< January 2006 >
SuMoTuWeThFrSa
1 2 3 4 5 6 7
8 91011121314
15161718192021
22232425262728
293031    

2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, 1997, 1995,