Installing Ubuntu 8.04 (Hardy Heron) on a ThinkPad R61

From ThinkWiki
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>

If the above method does not work, restart hal ('sudo /etc/init.d/hal restart') and check if the modifications are loaded correctly with 'lshal | grep quirk'. If power_management.quirk.s3_bios is still set to true, try editing /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-lenovo.fdi.

Change

<merge key="power_management.quirk.s3_bios" type="bool">true</merge>

to

<merge key="power_management.quirk.s3_bios" type="bool">false</merge>

on line 9 (under section X60 / X60s / T61 / T61p / R61 / R61s / X61(s/Tablet) / X300).

Don't forget to restart hal and check if the modifications are loaded correctly this time!

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