Difference between revisions of "Installing Ubuntu 9.10 (Karmic Koala) on a ThinkPad X61"

From ThinkWiki
Jump to: navigation, search
(/sys/devices/platform/dock.*)
Line 84: Line 84:
 
Surprisingly, the content of the <tt>docked</tt> file does not depend on whether or not the machine is docked in the Ultrabase X6.
 
Surprisingly, the content of the <tt>docked</tt> file does not depend on whether or not the machine is docked in the Ultrabase X6.
 
{| border="1" cellspacing="0" cellpadding="2"
 
{| border="1" cellspacing="0" cellpadding="2"
|+ <tt>docked<tt> contents
+
|+ <tt>docked</tt> contents
 
! n !! content
 
! n !! content
 
|-
 
|-

Revision as of 08:49, 23 November 2009

I installed Ubuntu 9.10 on the same ThinkPad X61 model 7673-CTO that I installed Ubuntu 9.10 on last year.

This time I installed from DVD+R using the Ultrabay Slim Multi-Burner III Drive in the UltraBase X6.

In the coming days I will test various features and extend this page.

DMI info for this model

# dmidecode -s system-manufacturer
LENOVO
# dmidecode -s system-product-name
7673CTO
# dmidecode -s system-version
ThinkPad X61

Kernel misdetects memory

Right at the beginning there was an important obstacle to overcome. The installed kernel would panic on boot.

I ran memtest+ from the installation disc to see if I had a memory problem. It reported errors above 4 GiB. That's odd, because I only have 4 GiB of RAM installed.

I surmised that the new kernel, version 2.6.31-14-generic-pae, errs in reckoning the amount of installed RAM. And indeed, the solution to the kernel panic was to add mem=4096M to the kernel boot parameter list.

Adding the tp-smapi module

$ sudo aptitude install tp-smapi-source
$ sudo module-assistant build tp-smapi-source
$ sudo module-assistant install tp-smapi-source
$ sudo modprobe thinkpad_ec tp_smapi hdaps

Edit the file /etc/modules to add these lines:

 thinkpad_ec
 tp_smapi
 hdaps

Ubuntu 9.10 contains version 0.40 of tp-smapi.

There is currently (19 November 2009) no hdaps-utils package in Karmic and so no hdaps-gl application.

Increasing battery life

To make the battery last longer by reducing the number and depth of charge cycles, edit /etc/sysfs.conf to add the lines:

 # Make battery live longer
 devices/platform/smapi/BAT0/start_charge_thresh = 50
 devices/platform/smapi/BAT0/stop_charge_thresh = 90

To effect the change either reboot or do:

$ sudo su 
# echo 50 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
# echo 90 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh

Docking

The ThinkPad X61 can be docked in the UltraBase X6.

Unlike with the previous versions of Ubuntu, if the X61 is removed from the UltraBase X6 then the X61 does not freeze.

However, I find that when the X61 is returned to the UltraBase the USB devices attached to the UltraBase do not work.

No /proc/acpi/ibm/dock

The file /proc/acpi/ibm/dock does not exist even though the thinkpad-acpi module is loaded and the X61 is booted while docked in the UltraBase X6. So, instructions in the thinkpad-acpi README and elsewhere that make reference to this file cannot be followed.

/sys/devices/platform/dock.*

Under /sys/devices/platform there are directories dock.0 through dock.3 with these contents:

/sys/devices/platform$ ls -l dock.0
total 0
-r--r--r-- 1 root root 4096 2009-11-22 18:59 docked
-r--r--r-- 1 root root 4096 2009-11-22 19:22 flags
-r--r--r-- 1 root root 4096 2009-11-22 19:22 modalias
drwxr-xr-x 2 root root    0 2009-11-22 19:22 power
lrwxrwxrwx 1 root root    0 2009-11-22 18:59 subsystem -> ../../../bus/platform
-r--r--r-- 1 root root 4096 2009-11-22 19:22 type
-rw-r--r-- 1 root root 4096 2009-11-22 19:59 uevent
-r--r--r-- 1 root root 4096 2009-11-22 19:22 uid
--w------- 1 root root 4096 2009-11-22 19:22 undock

Surprisingly, the content of the docked file does not depend on whether or not the machine is docked in the Ultrabase X6.

docked contents
n content
0 1
1 0
2 1
3 1