Installing OpenSUSE 11.4 on a ThinkPad X220 Tablet

From ThinkWiki
Revision as of 08:16, 4 August 2011 by Markov (Talk | contribs) (Fixing the touchscreen)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Model

Lenovo Thinkpad X220 Tablet 4299-2PG (NYN2PMH) with

The Windows bit

Windows 7 Professional comes pre-installed. It works swift on this machine

Installation

There is no internal optical disk, so I used an external drive (Samsung, feeds from two USB ports). Worked flawlessly without the need to change BIOS settings.

Screen, network etc all detected correctly out of the box, except touchscreen. The package installation (GNOME and KDE together) only took about 15 minutes (!) WWAN not tested yet, but that did work well on my X301.

Disk partitioning

The system was shipped with an 160GB SSD disk (SSDSA2M160), with three partitions

  • 1 GB NTFS "System_DRV"
  • 132 GB NTFS "Windows7_OS", drive C: with 30GB used
  • 16 GB NTFS "Lenovo_Recovery"

No D: partition to sacrifice. The default partitioning change offered by SuSE installation seems ok, but I like to take it in my own hands. So, I

  • resized partition Windows7 back to 50GB, mounted on "/windows/c"
  • add extended partition for the rest
  • add 20GB partition for SuSE "/" with ext4 and noatime
  • add 20GB partition, later to be used for Debian/Qimo with ext4 and noatime
  • add 2GB partition for swap (hopefully not used)
  • add remaining 40GB for partition "/home" with ext4 and noatime

Configuration

Add "tabletpc" to the software selection. I also use both KDE and GNOME window managers via the software selection menu.

Fixing the touchscreen

Once OpenSuSE 12.1, the touchscreen will work out-of-the-box (very probably), but with 11.4 your kernel and X is just a little too old.

upgrade the X11 driver

You need a recent xf86-input-wacom driver to connect to the wacom interface as well. Run the script which is included in [1] Check that the wacom_drv.so module got installed in /usr/lib64, not /usr/lib

  ls -l /usr/lib/xorg/modules/input/wacom_drv.so /usr/lib64/xorg/modules/input/wacom_drv.so

Correct me if I am wrong: you need to change the following in /etc/X11/xorg.conf.d/50-wacom.conf

 Section "InputClass"
       Identifier "Wacom class"
 -     MatchProduct "Wacom|WACOM"
 +     MatchProduct "Wacom|WALTOP|WACOM|ISDv4"
       MatchDevicePath "/dev/input/event*"
       Driver "wacom"
 EndSection

upgrade the kernel

he script in the previous paragraph did not make the touch-screen devices appear, probably because it is a new kind of device: wacoms via usb. I decided to upgrade the whole kernel, which seems to work well.

First, uncomment (=remove the '#') in /etc/zypp/zypp.conf before

 # multiversion = provides:multiversion(kernel)

Add repository

 http://download.opensuse.org/repositories/Kernel:/stable/standard

Finally, run "zypper update" and reboot the system. I got a kernel 3.0.0 installed which does recognize the touchscreen out of the box. After a reboot, you will see the wacom interfaces with

  xinput --list

Install more

Additionally, you want to install more. Configure "automatic update" via YaST and then deselect the external DVD unit from the repository list. You may like my choices from below.

Skype

The default installation is 64bits. Skype does not offer a 64bit version for OpenSuSE (yet), so you have to install some additional libraries for it to work:

 # required for Skype 2.2beta
 zypper in xorg-x11-libXv-32bit libqt4-32bit libqt4-x11-32bit libpng12-0-32bit

Webcam, sound and microphone worked without further configuration.

Multimedia

Go to Community Restricted Formats for a one-click install of proprietary drivers. I selected both the KDE and GNOME extensions.

Modifications

Display Brightness

I really hate the automatic dimming the screen. With the excellent battery-life and working brightness-control buttons, there is no need for the frequent dimming.

Under GNOME, click on the battery image on the lower bar, select "Preferences". In "On Battery Power", untick the "Reduce backlight brightness" and "Dim display when idle".