Installing openSUSE 10.2 on a ThinkPad X60
Contents
Lenovo ThinkPad X60 (model 1707-CTO)
Hardware Details
- Intel Core Duo T2400 (1.83GHz, 2MB L2, 667MHz FSB)
- 2GB RAM (2 NonParity DDR2 SDRAM SoDIMM PC2-5300)
- Intel Graphics Media Accelerator 950
- 12.1 inch XGA (1024x768) (Lenovo LTN121XJ-L07)
- 80GB, 5400rpm Serial ATA (Hitachi HTS541080G9SA00)
- Intel PRO/1000 Gigabit Ethernet
- Intel PRO/Wireless 3945ABG
- Bluetooth
- Firewire
- SD Card Reader
- 56K V.92 Modem
Software Details
- openSUSE 10.2 retail DVD9 iso
Installation procedure
Setup
Since I didn't get a dock or usb CDROM with this machine, I started the installation procedure using a USB Stick. I followed these instructions to set up a boot USB key. This contains GRUB and the loader for the installer. The actual installation media was on an NFS share. To set this up, copy the contents of the CDS/DVD into a directory (or mount the DVD iso image loopback) then share the directory containing CD1 via NFS, is the simplest way. Sharing the DVD as a SMB share works from windows, too.
Installation
Press F12 during POST to get the boot selector menu up, choose the USB Key. This boots into GRUB. Press F4 here to set the installation source to NFS or SMB as needed, and enter the server details. For example, with SMB, enter the server name, the name of the share, and the directory where the first CD's contents are, eg 'CD1'. Now the installer is loaded from the share and proceeds as a usual SUSE install. No special steps are required during the install, but read the documentation about preserving or moving the ThinkVantage rescue partition before you commit to the installation.
What works out of the box
Hardware
- Ethernet adaptor
- Intel 3945ABG Wireless ethernet adapter
- GMA950 graphics with 3D acceleration with integral monitor
- Sound playback
- USB
- Bluetooth (with kbluetoothd, gets about 55kB/s with OBEXFTP)
- Trackpoint
- SD card reader
Power management etc
- Suspend to disk (Fn+F12)
- Suspend to RAM (Fn+F4)
- Disable display (Fn+F3)
- CPU speed stepping (required BIOS update to 2.05 though)
- LCD Brightness depending on current power scheme, via KPowersave and HAL
Extra keys
- Volume control, keyboard light and screen brightness control
- Lid switch (LCD off when lid closed, resume from suspend to RAM when opened)
- Multimedia keys with KMix and Amarok
- Browser back/forward keys with Konqueror
What had to be configured by hand
- Mouse wheel emulation, set "Emulate Mouse wheel with button 2" in SaX2 mouse settings
- Keyboard dead keys for international characters, set "Right Alt is Compose" in SaX2 keyboard settings, then ralt-shift-2, a => ä
- Sound recording, using KMix or other mixer, set the mic as capture source, turn it up, enable and turn up 'Capture' channel.
- FN-F2 initially does nothing. This requires extra tweaking.
- FN-F7 doesn't work either. Even though ibm-acpi module may be loaded, the video-switch facility does not work.
- The finger print reader, a working driver is existing.
- By default the fan runs all the time. If power management on the ipw3945 is enabled, it only runs about 1/3 of the time. Use 'iwpriv eth1 set_power 7' to enable power management - this comes at the cost of increasing latency when using wireless. See the ipw3495 README for details.
Automatic power switching for ipw3495
This procedure can be automatized:
Create a script switch_wireless_mode in /usr/lib/powersave/scripts and make it executeable:
#!/bin/bash
###########################################################################
# #
# Powersave Daemon #
# #
# Copyright (C) 2004,2005 SUSE Linux Products GmbH #
# #
# This program is free software; you can redistribute it and/or modify it #
# under the terms of the GNU General Public License as published by the #
# Free Software Foundation; either version 2 of the License, or (at you #
# option) any later version. #
# #
# This program is distributed in the hope that it will be useful, but #
# WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License along #
# with this program; if not, write to the Free Software Foundation, Inc., #
# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #
# #
###########################################################################
#
# change mode for the wireless network card on X60 lenovo laptop
# currently the interface name needs to be set manually.
#
#
IWPRIV="/usr/sbin/iwpriv"
MODEPARAM="set_power"
POWERSCHEME="6"
BATTERYSCHEME="7"
IF="eth1"
. ${0%/*}/helper_functions
if [ $EVENT_TYPE != ACADAPTER ]; then
DEBUG "switch_wireless_mode only makes sense for acadapter events ;-)" WARN
else
if [ "$1" = "acadapter.online" ]; then
${IWPRIV} ${IF} ${MODEPARAM} ${POWERSCHEME}
fi
if [ "$1" = "acadapter.offline" ]; then
${IWPRIV} ${IF} ${MODEPARAM} ${BATTERYSCHEME}
fi
fi
$SCRIPT_RETURN $EV_ID 0 "switch_wireless_mode finished"
EXIT 0
Finally only two lines have to be modified "on top" of this to make powersaved aware of this script. This ought to happen in /etc/sysconfig/powersave/events:
## Path: System/Powermanagement/Powersave/Events
## Type: string
EVENT_ACADAPTER_ONLINE="reread_cpu_capabilities switch_wireless_mode"
EVENT_ACADAPTER_OFFLINE="reread_cpu_capabilities switch_wireless_mode"
"switch_wireless_mode" should be added to the EVENT_ACADAPTER_ONLINE and EVENT_ACADAPTER_OFFLINE as shown above. Given this, the x60 will switch to low power mode when running on battery and back to high power mode when running on mains automatically.
But be warned: if for any reason the device ID of the wireless adapter should differ from eth1 you will have to edit the file switch_wireless_mode accordingly.
Doing a test
iwpriv eth1 get_power
should make it clear whether everything works as expected, the return values should differ between mains plugged and mains unplugged.
What doesn't work yet
- Xinerama with external LCD
- Dual head with external LCD
What I haven't tested yet
- Firewire
- PCMCIA slot
- Embedded Security Subsystem (TCPA)
- Active Protection System (HDAPS)
- Modem
- Maximum battery life
lscpi
> lspci 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS/940GML and 945GT Express Memory Controller Hub (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02) 00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02) 00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02) 00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02) 00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) 00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) 00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA Storage Controller AHCI (rev 02) 00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02) 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet Controller 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network Connection (rev 02) 15:00.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4) 15:00.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 09) 15:00.2 Generic system peripheral [Class 0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 18)