Installing Ubuntu on a ThinkPad X22
Contents
Ubuntu 7.04, Feisty
Ubuntu 7.04 (Feisty) Just Works on the X22.
Video
Driver
By default, the installation select the "ati" driver, everything is fine but if you select "radeon" instead, XGL give less error.
Check it by 'grep "WW\|EE" /var/log/Xorg.0.log'
The xorg.conf that works for X22 should look like this:
Section "Device" Identifier "Card0" VendorName "ATI Technologies Inc" BoardName "Radeon Mobility M6 LY" Driver "radeon" BusID "PCI:1:0:0" EndSection
Section "Monitor" Identifier "Generic Monitor" Option "DPMS" EndSection
Section "Screen" Identifier "Default Screen" Device "Card0" Monitor "Generic Monitor" DefaultDepth 16 SubSection "Display" Depth 16 Modes "1024x768" EndSubSection EndSection
DRI
By default in the section of your screen, the DefaultDepth is 24 but X22 don't have enough video memory to enable this setting, change it to 16 and DRI will be ok. You just double your FPS under glxgears :D
Power saving
Reporting by powertop, gnome is not so good for battery life and ibm_acpi neither, maybe you have to choose between comfort and some shortcuts ...
http://www.linuxpowertop.org/known.php
Emulate wheel
In /etc/X11/xorg.conf
Section "InputDevice" Option "EmulateWheel" "on" Option "EmulateWheelButton" "2" Option "YAxisMapping" "4 5" EndSection
Ubuntu 5.10, Breezy
Ubuntu 5.10 (Breezy) has problems with suspend to disk (hibernate) and suspend to ram (sleep) on the X22.
Suspend
However, Software Suspend 2 works well, and is fast enough to be a useful replacement for sleep. The following howto explains the installation process: http://ubuntuforums.org/showthread.php?t=75443
NOTE: during kernel configuration, in device drivers -> ata be sure to say N to 'generic/default IDE chipset support', and Y to 'Intel PIIXn chipsets support'. This will allow for much faster suspend.
To enable suspend by pressing FnF12 (instead of the power button recommended in the howto), edit /etc/acpi/events/ibm-hibernatebtn and change the action line to read
action=/usr/sbin/hibernate
Ubuntu 5.04, Hoary
Ubuntu 5.04 (Hoary) Just Works on the X22.
ACPI
However, ACPI suspend to ram is disabled by default. To enable it, edit /etc/default/acpi-support and uncomment the line
ACPI_SLEEP=true
This will allow suspend by pressing FnF4
By default, closing the lid blanks the screen, but does not suspend. To suspend on lid close, edit
/etc/acpi/events/lidbtn and change the action line to read
action=/etc/acpi/sleep.sh