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

From ThinkWiki
Jump to: navigation, search
(←Created page with 'I installed Ubuntu 9.10 on the same ThinkPad {{X61}} model 7673-CTO that [[Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61|I installed Ubuntu...')
 
Line 1: Line 1:
 
[[User:Jdthood|I]] installed Ubuntu 9.10 on the same ThinkPad {{X61}} model [[7673-CTO]] that [[Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61|I installed Ubuntu 9.10 on last year]].
 
[[User:Jdthood|I]] installed Ubuntu 9.10 on the same ThinkPad {{X61}} model [[7673-CTO]] that [[Installing Ubuntu 8.10 (Intrepid Ibex) on a ThinkPad X61|I installed Ubuntu 9.10 on last year]].
  
Right at the beginning there was an important obstacle to overcome.  The installed kernel would panic on boot.  The solution was to add <tt>mem=4096M</tt> to the kernel boot parameter list.
+
In the coming days I will test various features and extend this page.
 +
 
 +
== DMI info for this model ==
 +
<pre>
 +
# dmidecode -s system-manufacturer
 +
LENOVO
 +
# dmidecode -s system-product-name
 +
7673CTO
 +
# dmidecode -s system-version
 +
ThinkPad X61
 +
</pre>
 +
 
 +
== Kernel misdetects memory ==
 +
Right at the beginning there was an important obstacle to overcome.  The installed kernel would panic on boot.
 +
 
 +
I ran memtest to see if I had a memory problem.  It reported errors above 4 GiBThat'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 RAM.  And indeed, the
 +
solution to the kernel panic was to add <tt>mem=4096M</tt> to the kernel boot parameter list.
 +
 
 +
== Adding the <tt>tp-smapi</tt> 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 <tt>/etc/modules</tt> to add these lines:
 +
 
 +
  thinkpad_ec
 +
  tp_smapi
 +
  hdaps
 +
 
 +
There is currently (19 November 2009) no hdaps-utils package in Karmic and so no hdaps-gl application.
 +
 
 +
== Increasing battery life ==
  
In the coming days I will test various features and extend this page.
+
To make the battery last longer by reducing the number and depth of charge cycles, edit <tt>/etc/sysfs.conf</tt> 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

Revision as of 19:01, 19 November 2009

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

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

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