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.


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?
 # Should we attempt to warm-boot the video hardware on resume?
 # Set the following to "platform" if you want to use ACPI to shut down
 # your machine on hibernation
 # Save and restore video state?

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

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.


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


<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
  # ACM 1-Jul-2008 Explicitly specify all the wifi modules to be shutdown
  MODULES="iwl4965 iwlwifi_mac80211 cfg80211"
  # ACM 1-Jul-2008 specify netapplet be restarted
vi /boot/grub/menu.lst
  # defoptions=quiet splash acpi_sleep=s3_mode