Installing Ubuntu 8.04 (Hardy Heron) on a ThinkPad R61

From ThinkWiki
Revision as of 15:23, 2 July 2008 by Andy987s (Talk | contribs) (ACM updates for automatic wifi connect after resume)
Jump to: navigation, search

Suspend with Nv140m

To Ram

Does not work by default.

I used the information from hereand here.

Summary:

Open the file /etc/default/acpi-support in your favorite editor and change the following lines:

 # Should we save and restore state using the VESA BIOS Extensions?
 SAVE_VBE_STATE=false
 ...
 # Should we attempt to warm-boot the video hardware on resume?
 POST_VIDEO=false
 ...
 # Set the following to "platform" if you want to use ACPI to shut down
 # your machine on hibernation
 HIBERNATE_MODE=platform
 ...
 # Save and restore video state?
 SAVE_VIDEO_PCI_STATE=true

Create a new file /etc/hal/fdi/information/lenovo.fdi with the following contents:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="system.hardware.vendor" string="LENOVO">
      <merge key="power_management.quirk.s3_mode" type="bool">true</merge>
      <merge key="power_management.quirk.s3_bios" type="bool">false</merge>
      <merge key="power_management.quirk.save_pci" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>

To Disc

Suspend to Disk (and RAM) worked out of the box for me. However when resuming, the wireless network would not reconnect automatically.

Note: I have the iwl4965 driver - you check the driver for your host with:

 lsmod | grep 80211

The following changes will ensure wifi is available after resuming:

vi /etc/default/acpi-support
  #MODULES=""
  # ACM 1-Jul-2008 Explicitly specify all the wifi modules to be shutdown
  MODULES="iwl4965 iwlwifi_mac80211 cfg80211"
  
  #STOP_SERVICES=""
  # ACM 1-Jul-2008 specify netapplet be restarted
  STOP_SERVICES="netapplet"
vi /boot/grub/menu.lst
  # defoptions=quiet splash acpi_sleep=s3_mode
update-grub