<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dirk</id>
	<title>ThinkWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dirk"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Dirk"/>
	<updated>2026-04-28T11:22:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_enable_the_integrated_fingerprint_reader_with_ThinkFinger&amp;diff=43149</id>
		<title>How to enable the integrated fingerprint reader with ThinkFinger</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_enable_the_integrated_fingerprint_reader_with_ThinkFinger&amp;diff=43149"/>
		<updated>2009-05-06T20:09:47Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* Configuring PAM to use ThinkFinger */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[How to enable the fingerprint reader]] has a good explanation for using the fingerprint reader with the closed-source binary driver. But there is also an opensource project called [http://thinkfinger.sourceforge.net ThinkFinger] which does the same, but open.&lt;br /&gt;
&lt;br /&gt;
However: The fingerprint reader is an INSECURE device and gives a false sense of security! There has been quite a bit of research by a hacker named Starbug, a member of the Chaos Computer Club, Berlin, Germany. He outlined in two very good talks how to forge each and every available fingerprint sensor available at the cost of a few euros, using materials from your local hardware store, a digicam and a laser printer! Here's some links:&lt;br /&gt;
* [http://www.ccc.de/updates/2007/umsonst-im-supermarkt?language=en  Fingerprint recognition in supermarkets]&lt;br /&gt;
* [ftp://ftp.ccc.de/pub/documentation/Fingerabdruck_Hack/fingerabdruck.mpg Video tutorial for forging fingerprints]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
=== From source ===&lt;br /&gt;
&lt;br /&gt;
Download thinkfinger-0.3.tar.gz from the [http://thinkfinger.sourceforge.net/ homepage] and unpack it somewhere, make sure you have the gcc compiler, libtool, pkg-config, libusb-dev and libpam0g-dev installed, then:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|cd thinkfinger-0.3}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code style=&amp;quot;white-space:nowrap;color:#495988;background-color:white;&amp;quot;&amp;gt;&amp;lt;nowiki&amp;gt;$&amp;lt;/nowiki&amp;gt; ./configure --prefix=/usr --sysconfdir=/etc --with-securedir=/lib/security --with-birdir=/etc/pam_thinkfinger&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{cmduser|make}}&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|make install}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|/lib/security is the directory, where PAM assumes its modules on Debian and openSUSE, it may vary for your distro!}}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;make install&amp;quot; doesn't create the birdir we specified (where thinkfinger will store users' biometric info), so create it:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|mkdir /etc/pam_thinkfinger}}&lt;br /&gt;
&lt;br /&gt;
If everything went OK assert that you find pam_thinkfinger.so in /lib/security typing:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|ls /lib/security}}&lt;br /&gt;
&lt;br /&gt;
=== From package ===&lt;br /&gt;
&lt;br /&gt;
==== Debian ====&lt;br /&gt;
[http://packages.debian.org/source/experimental/thinkfinger Packages] arrived in Debian experimental on Aug 2nd, 2007 (cf. [http://bugs.debian.org/409563 bug #409563]). To access the experimental packages via apt, add the following lines to your sources.list:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# experimental&lt;br /&gt;
deb ftp://mirrors.kernel.org/debian/ experimental main contrib non-free&lt;br /&gt;
deb-src ftp://mirrors.kernel.org/debian/ experimental main contrib non-free&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where of course you may replace mirrors.kernel.org with your mirror of choice. Just make sure that it hosts the experimental repositories.&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|aptitude update}}&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|aptitude install libthinkfinger0 libpam-thinkfinger thinkfinger-tools}}&lt;br /&gt;
&lt;br /&gt;
should then get you up and running.&lt;br /&gt;
&lt;br /&gt;
To make everything work you'll have to have permission to work the device ({{cmduser|sudo adduser myself plugdev}} worked for me), and you'll also have to follow instructions below about adding the device to your PAM methods.&lt;br /&gt;
&lt;br /&gt;
==== Ubuntu ====&lt;br /&gt;
&lt;br /&gt;
===== Gutsy =====&lt;br /&gt;
&lt;br /&gt;
From https://wiki.ubuntu.com/ThinkFinger&lt;br /&gt;
&lt;br /&gt;
Add PPA repositories to your sources.list:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb     http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse&lt;br /&gt;
deb-src http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Install necessary packages:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-get install thinkfinger-tools  libpam-thinkfinger}}&lt;br /&gt;
&lt;br /&gt;
===== Hardy =====&lt;br /&gt;
&lt;br /&gt;
Hardy includes the latest thinkfinger and it is up to date with subversion.  Install packages:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-get install thinkfinger-tools libpam-thinkfinger}}&lt;br /&gt;
&lt;br /&gt;
Update the pam configuration files:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable}}&lt;br /&gt;
&lt;br /&gt;
Enroll your fingerprint (creates $HOME/.thinkfinger.bir).  If this gives an error about claiming the USB device then a reboot was claimed to work, but in fact it may just be a permissions problem.  {{NOTE|Do not try to enroll using 'sudo' - it will cause hidden permission problems}}&lt;br /&gt;
&lt;br /&gt;
{{cmduser|tf-tool --acquire}}&lt;br /&gt;
&lt;br /&gt;
Check fingerprint enrollment&lt;br /&gt;
&lt;br /&gt;
{{cmduser|tf-tool --verify}}&lt;br /&gt;
&lt;br /&gt;
You can expect everything to work correctly.  Note that you still have to enter your username if prompted but will be able&lt;br /&gt;
to swipe your finger instead of the password.  The prompt will usually be &amp;quot;Password or swipe finger&amp;quot;&lt;br /&gt;
&lt;br /&gt;
* Graphical login&lt;br /&gt;
* Text console login&lt;br /&gt;
* sudo&lt;br /&gt;
* screen lock/screen saver&lt;br /&gt;
* Administrative password prompt (eg for update or package managers).  (Note no &amp;quot;or swipe finger&amp;quot; in prompt).&lt;br /&gt;
&lt;br /&gt;
===== Intrepid =====&lt;br /&gt;
After installing from the normal repositories coming with Ubuntu 8.10, you would have to press enter after sweeping finger. (This bug: [https://bugs.launchpad.net/ubuntu/+source/thinkfinger/+bug/256429 https://bugs.launchpad.net/ubuntu/+source/thinkfinger/+bug/256429])&lt;br /&gt;
Therefore Jon Oberheide made an update that can be found here: &lt;br /&gt;
[https://launchpad.net/~jon-oberheide/+archive https://launchpad.net/~jon-oberheide/+archive]&lt;br /&gt;
(As of 2/3/09, this no longer seems to be the case. Just proceed to the install step.)&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your source.list (/etc/apt/source.list):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://ppa.launchpad.net/jon-oberheide/ubuntu intrepid main&lt;br /&gt;
deb-src http://ppa.launchpad.net/jon-oberheide/ubuntu intrepid main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-get update}}&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-get install thinkfinger-tools}}&lt;br /&gt;
&lt;br /&gt;
===== Jaunty =====&lt;br /&gt;
&lt;br /&gt;
The same package by Jon Oberheide is necessary, as with Intrepid, though the package thinkfinger-tools is installed by default.&lt;br /&gt;
&lt;br /&gt;
Add key:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F2A12FABE936A7BBDC4EA33351DB180D1323E149}}&lt;br /&gt;
&lt;br /&gt;
Add the PPA repositories to your source.list (/etc/apt/source.list):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
deb http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
deb-src http://ppa.launchpad.net/jon-oberheide/ppa/ubuntu jaunty main&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update installer:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-get update}}&lt;br /&gt;
&lt;br /&gt;
And install:&lt;br /&gt;
&lt;br /&gt;
{{cmduser|sudo apt-get install thinkfinger-tools libpam-thinkfinger}}&lt;br /&gt;
&lt;br /&gt;
==== Fedora/Fedora Core ====&lt;br /&gt;
{{cmdroot|yum install thinkfinger}}&lt;br /&gt;
&lt;br /&gt;
==== Gentoo ====&lt;br /&gt;
{{cmdroot|emerge sys-auth/thinkfinger}}&lt;br /&gt;
&lt;br /&gt;
==== OpenSUSE ====&lt;br /&gt;
openSUSE 10.2 includes the package &amp;quot;libthinkfinger&amp;quot; (version 0.1-7) - you will find newer packages [http://beta1.suse.com/private/thoenig/10.2/thinkfinger/ here].&lt;br /&gt;
&lt;br /&gt;
== Testing the driver ==&lt;br /&gt;
&lt;br /&gt;
Now the driver is installed and should be working. You can try it (as root) with&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|tf-tool --acquire}}&lt;br /&gt;
&lt;br /&gt;
and&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|tf-tool --verify}}&lt;br /&gt;
&lt;br /&gt;
This will ask you to swipe your finger three times, save the fingerprint to /tmp/test.bir and then verify your fingerprint with the bir-file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuring PAM to use ThinkFinger ==&lt;br /&gt;
Now you can configure PAM to use ThinkFinger:&lt;br /&gt;
&lt;br /&gt;
Open {{path|/etc/pam.d/common-auth}} (In FC6, F7, and Gentoo, this file is {{path|/etc/pam.d/system-auth}}):&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|nano -w /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Add this line before any pam_unix or pam_unix2 directives:&lt;br /&gt;
 auth     sufficient     pam_thinkfinger.so&lt;br /&gt;
&lt;br /&gt;
If your PAM uses the pam_unix and not the pam_unix2 module, you need to pass a specific argument in&lt;br /&gt;
the /etc/pam.d/common-auth directive to make it consider the password entered at the pam_thinkfinger prompt.&lt;br /&gt;
 auth     required     pam_unix.so try_first_pass&lt;br /&gt;
&lt;br /&gt;
For instance, {{path|/etc/pam.d/common-auth}} looks like this:&lt;br /&gt;
 auth    sufficient      pam_thinkfinger.so&lt;br /&gt;
 auth    required        pam_unix.so nullok_secure try_first_pass&lt;br /&gt;
&lt;br /&gt;
On openSUSE 10.2, it looks like this now:&lt;br /&gt;
 auth    required        pam_env.so&lt;br /&gt;
 auth    sufficient      pam_thinkfinger.so&lt;br /&gt;
 auth    required        pam_unix2.so&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 8.10 - Intrepid Ibex you should just add the following line the the /etc/pam.d/common-auth file so it looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
....&lt;br /&gt;
# here are the per-package modules (the &amp;quot;Primary&amp;quot; block)&lt;br /&gt;
auth	sufficient	pam_thinkfinger.so&lt;br /&gt;
auth	[success=1 default=ignore]	pam_unix.so try_first_pass nullok_secure&lt;br /&gt;
# here's the fallback if no module succeeds&lt;br /&gt;
....&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On Ubuntu 9.04, you don't need to edit manually, just type:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|sudo /usr/lib/pam-thinkfinger/pam-thinkfinger-enable}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now we are ready to add users to thinkfinger. You can add a fingerprint for a user with:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|tf-tool --acquire $USERNAME}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|This may not work for you. Please read the Intrepid Ibex point in the discussion to this page.}}&lt;br /&gt;
&lt;br /&gt;
Now the user should be able to login with his finger instead of the password.&lt;br /&gt;
&lt;br /&gt;
If you would like to use thinkfinger for su, you have to enroll the fingerprint for root user with:&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|tf-tool --acquire root}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|You should see the &amp;quot;Password or swipe finger:&amp;quot; prompt when trying to sudo or su. If you don't, you probably do not have the &amp;quot;User level driver support&amp;quot; compiled into your kernel or the &amp;quot;uinput&amp;quot; module loaded!}}&lt;br /&gt;
&lt;br /&gt;
== xscreensaver/gnome-screensaver ==&lt;br /&gt;
{{NOTE|In Fedora 7, the package has been modified in such a way as to make doing this unnecessary.}}&lt;br /&gt;
&lt;br /&gt;
If you'd like to be able to unlock your screen using the fingerprint reader, you must have current versions of xscreesaver (&amp;gt;~5.03) or gnome-screensaver (&amp;gt;~2.18.2). Then you must give yourself access to the fingerprint reader and your bir-file, because unlike login/gdm/su/sudo, both gnome-screensaver and xscreensaver do not run as root. The following procedure will make the fingerprint reader accessible to members of the &amp;quot;fingerprint&amp;quot; group.&lt;br /&gt;
&lt;br /&gt;
Make the group: {{cmdroot|groupadd fingerprint}}&lt;br /&gt;
&lt;br /&gt;
Save the following as {{path|/etc/udev/rules.d/60-thinkfinger.rules}} and run {{cmdroot|sudo /sbin/udevtrigger}}. If you are using a Debian-based distribution, it is likely you are affected by the following [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=489831 bug] where you need to replace {{path|udevtrigger}} with {{path|udevadm trigger}} (with the space!) in order for the following to work. You may need to reboot for this to take effect.&lt;br /&gt;
 #&lt;br /&gt;
 # udev rules file for the thinkfinger fingerprint scanner&lt;br /&gt;
 # &lt;br /&gt;
 # gives access to the fingerprint reader to those in the &amp;quot;fingerprint&amp;quot; group&lt;br /&gt;
 #&lt;br /&gt;
 # Taken from:&lt;br /&gt;
 #  http://www.thinkwiki.org/wiki/How_to_enable_the_fingerprint_reader_with_ThinkFinger&lt;br /&gt;
 # which was taken and modified from:&lt;br /&gt;
 #  http://article.gmane.org/gmane.linux.drivers.thinkfinger/329&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # SGS Thomson Microelectronics Fingerprint Reader&lt;br /&gt;
 SYSFS{idVendor}==&amp;quot;0483&amp;quot;, SYSFS{idProduct}==&amp;quot;2016&amp;quot;, SYMLINK+=&amp;quot;input/thinkfinger-%k&amp;quot;, MODE=&amp;quot;0660&amp;quot;, GROUP=&amp;quot;fingerprint&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # the also-needed uinput device&lt;br /&gt;
 KERNEL==&amp;quot;uinput&amp;quot;, MODE=&amp;quot;0660&amp;quot;, GROUP=&amp;quot;fingerprint&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, edit {{path|/etc/pam.d/gnome-screensaver}} so that it looks like this:&lt;br /&gt;
 auth    sufficient      pam_thinkfinger.so&lt;br /&gt;
 auth    required        pam_unix.so try_first_pass nullok_secure&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Per user:&lt;br /&gt;
&lt;br /&gt;
# Add him to the group: {{cmdroot|gpasswd -a $USERNAME fingerprint}}&lt;br /&gt;
{{NOTE|The following steps do not need to be done in Ubuntu Intrepid as the bir files are handled differently.}}&lt;br /&gt;
# Make him owner of his bir-file: {{cmdroot|chown $USERNAME:root /etc/pam_thinkfinger/$USERNAME.bir}}&lt;br /&gt;
# Give him read-only access to his bir-file: {{cmdroot|chmod 400 /etc/pam_thinkfinger/$USERNAME.bir}}&lt;br /&gt;
# Give &amp;quot;execute only&amp;quot; access to everyone for the /etc/pam_thinkfinger/ directory: {{cmdroot|chmod o+x /etc/pam_thinkfinger}} (WARNING: this opens up security a little).&lt;br /&gt;
&lt;br /&gt;
== GNOME ==&lt;br /&gt;
&lt;br /&gt;
{{NOTE|1=This problem should be solved if you're using sudo &amp;gt;= 1.6.9p9. Links: [http://savannah.nongnu.org/bugs/?19132], [http://www.sudo.ws/bugs/show_bug.cgi?id=180], [https://bugs.launchpad.net/ubuntu/+source/gksu/+bug/86843]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
gksu/gksudo doesn't work correctly. It just stays invisible. When starting a su privileged application such as synaptics you will not get prompted for the password. Nevertheless you can swipe your finger and it should authenticate you. Starting synaptics twice makes gksudo visible.&lt;br /&gt;
&lt;br /&gt;
There are two possibilities to solve it:&lt;br /&gt;
* Changing the string &amp;quot;Password or swipe finger:&amp;quot; to a plain &amp;quot;Password:&amp;quot; (like sudo normally would do) in the file pam/pam_thinkfinger.c of the thinkfinger source directory. Of course, in the console you will then only see a &amp;quot;Password:&amp;quot; instead of &amp;quot;Password or swipe finger:&amp;quot; but this is still more usefull than having gksu/gksudo crashing everytime.&lt;br /&gt;
* Patching libgksu with the following patch. This is also a nasty hack until a better solution is implemented.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--- libgksu-2.0.3/libgksu/libgksu.c.orig	2007-06-17 16:00:24.000000000 +0200&lt;br /&gt;
+++ libgksu-2.0.3/libgksu/libgksu.c		2007-06-17 16:00:47.000000000 +0200&lt;br /&gt;
@@ -2663,7 +2663,7 @@&lt;br /&gt;
        */&lt;br /&gt;
       for (counter = 0; counter &amp;lt; 50; counter++)&lt;br /&gt;
 	{&lt;br /&gt;
-	  if (strncmp (buffer, &amp;quot;GNOME_SUDO_PASS&amp;quot;, 15) == 0)&lt;br /&gt;
+	  if (strncmp (buffer, &amp;quot;GNOME_SUDO_PASS&amp;quot;, 15) == 0 || strncmp (buffer, &amp;quot;Password or swi&amp;quot;, 15) == 0)&lt;br /&gt;
 	    break;&lt;br /&gt;
 &lt;br /&gt;
 	  read_line (parent_pipe[0], buffer, 256);&lt;br /&gt;
@@ -2675,7 +2675,7 @@&lt;br /&gt;
       if (context-&amp;gt;debug)&lt;br /&gt;
 	fprintf (stderr, &amp;quot;brute force GNOME_SUDO_PASS ended...\n&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
-      if (strncmp(buffer, &amp;quot;GNOME_SUDO_PASS&amp;quot;, 15) == 0)&lt;br /&gt;
+      if (strncmp(buffer, &amp;quot;GNOME_SUDO_PASS&amp;quot;, 15) == 0 || strncmp(buffer, &amp;quot;Password or swi&amp;quot;, 15) == 0)&lt;br /&gt;
 	{&lt;br /&gt;
 	  gchar *password = NULL;&lt;br /&gt;
 	  gboolean prompt_grab;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== KDE ==&lt;br /&gt;
&lt;br /&gt;
Integration in KDE and kdm seems not to be easily possible now. There is a filed [https://bugs.kde.org/show_bug.cgi?id=116682 bug] at kde.org where you can vote for this.&lt;br /&gt;
&lt;br /&gt;
Moreover, kdm in openSUSE 10.3 and in Kubuntu 8.10 crashes when pam_thinkfinger is enabled. A possible &amp;quot;workaround&amp;quot; is downgrading to thinkfinger 0.2.2. &lt;br /&gt;
&lt;br /&gt;
Another workaround is to use Fprint from [http://www.reactivated.net/fprint/wiki/Main_Page] which works quite nicely on my X61s and Kubuntu Hardy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This Howto was copied from [[Installing Ubuntu 6.06 on a ThinkPad T43#Fingerprint_Reader]] and then slightly modified.&lt;br /&gt;
&lt;br /&gt;
== Fix for the fingerprint reader getting too hot ==&lt;br /&gt;
&lt;br /&gt;
If you notice that your fingerprint reader occasionally gets very hot then you might be interested in this section. Thanks to Tino Keitel, he actually gave me this solution through the linux-thinkpad mailing list.&lt;br /&gt;
&lt;br /&gt;
First we need to determine if the reader is not on autosuspend mode.&lt;br /&gt;
Open a terminal and run:&lt;br /&gt;
&lt;br /&gt;
 for i in `find /sys/devices/*/*/usb* -name level` ; do echo -n &amp;quot;$i: &amp;quot; ; cat $i ; done&lt;br /&gt;
&lt;br /&gt;
We care about the devices that are with &amp;quot;on&amp;quot; state and we need to determine if one of those is the reader. So for each of those run something like:&lt;br /&gt;
&lt;br /&gt;
 cat /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1/1-2/idVendor &lt;br /&gt;
 0483&lt;br /&gt;
 &lt;br /&gt;
 cat /sys/devices/pci0000\:00/0000\:00\:1a.0/usb1/1-2/idProduct &lt;br /&gt;
 2016&lt;br /&gt;
&lt;br /&gt;
Use the corresponding path of the devices that you got with &amp;quot;on&amp;quot; state and then compare the output with the output of the lsusb command. An example:&lt;br /&gt;
&lt;br /&gt;
 lsusb output: Bus 001 Device 004: ID 0483:2016 SGS Thomson Microelectronics Fingerprint Reader&lt;br /&gt;
&lt;br /&gt;
Which matches the output above (0483:2016). Once you have determined the path of your reader then become root with su - and:&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;auto&amp;quot; &amp;gt; /sys/&amp;lt;path-to-device&amp;gt;/power/level&lt;br /&gt;
&lt;br /&gt;
After this, the fingerprint reader should be in &amp;quot;autosuspend&amp;quot; and will not get hot anymore. And it will still work as normal.&lt;br /&gt;
&lt;br /&gt;
This will only work for the current session. If you want to make this change persistent and have [http://linux-diag.sourceforge.net/Sysfsutils.html sysfsutils] installed, edit the file {{path|/etc/sysfs.conf}} and add the line&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;path-to-device&amp;gt;/power/level = auto&lt;br /&gt;
&lt;br /&gt;
Following the above example, that would be &lt;br /&gt;
&lt;br /&gt;
 devices/pci0000\:00/0000\:00\:1a.0/usb1/1-2/power/level = auto&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can install an init script:&lt;br /&gt;
&lt;br /&gt;
 sudo gedit /etc/init.d/ReaderNoMoreHot&lt;br /&gt;
&lt;br /&gt;
Paste the following into it:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 #&lt;br /&gt;
 echo &amp;quot;auto&amp;quot; &amp;gt; /sys/&amp;lt;path-to-device&amp;gt;/power/level&lt;br /&gt;
&lt;br /&gt;
Save and close. Then:&lt;br /&gt;
&lt;br /&gt;
 sudo chmod 755 /etc/init.d/ReaderNoMoreHot&lt;br /&gt;
 sudo update-rc.d ReaderNoMoreHot defaults 90&lt;br /&gt;
&lt;br /&gt;
--[[User:Lunatico|Lunatico]] 19:19, 1 August 2008 (CEST), extended by --[[User:Michaelthomas h|Michaelthomas h]] 23:36, 9 August 2008 (CEST)&lt;br /&gt;
&lt;br /&gt;
For the init script above, you can use the following more elaborate script, which does all the work for you of identifying the &amp;lt;path-to-device&amp;gt;. This can be useful since the USB device id can change under various circumstances (kernel upgrade etc).&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 # Set to the proper device name for you as shown in lsusb output&lt;br /&gt;
 usbname=&amp;quot;SGS Thomson Microelectronics Fingerprint Reader&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 usbid=`lsusb |grep &amp;quot;$usbname&amp;quot; |cut -d' ' -f6`&lt;br /&gt;
 [ &amp;quot;d$usbid&amp;quot; = &amp;quot;d&amp;quot; ] &amp;amp;&amp;amp; echo USB Device $usbname not found &amp;amp;&amp;amp; exit 1&lt;br /&gt;
 #echo $usbid&lt;br /&gt;
 &lt;br /&gt;
 for i in `find /sys/devices/*/*/usb* -name idVendor` ; do &lt;br /&gt;
   dir=`dirname $i`&lt;br /&gt;
   ven=`cat $i`&lt;br /&gt;
   prod=`cat $dir/idProduct` &lt;br /&gt;
   [ &amp;quot;$ven:$prod&amp;quot; = &amp;quot;$usbid&amp;quot; ] &amp;amp;&amp;amp; devdir=$dir &amp;amp;&amp;amp; break&lt;br /&gt;
 done&lt;br /&gt;
 [ &amp;quot;d$devdir&amp;quot; = &amp;quot;d&amp;quot; ] &amp;amp;&amp;amp; echo sys dir not found for $usbid &amp;amp;&amp;amp; exit 1&lt;br /&gt;
 #echo $devdir&lt;br /&gt;
 &lt;br /&gt;
 devpw=$devdir/power/level&lt;br /&gt;
 &lt;br /&gt;
 echo Current power level: `cat $devpw`&lt;br /&gt;
 echo &amp;quot;auto&amp;quot; &amp;gt; $devpw || ( echo Failed to set powerlevel. You need to run as root. &amp;amp;&amp;amp; exit 1 )&lt;br /&gt;
 echo New power level:     `cat $devpw`&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33780</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33780"/>
		<updated>2007-10-10T08:48:18Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update (HDAPS AGAIN) ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
When you install the new kernel you get this messages:&lt;br /&gt;
&lt;br /&gt;
 [[Image:Kernel1.png]] &lt;br /&gt;
 [[Image:Kernel2.png]]&lt;br /&gt;
 [[Image:Kernel3.png]]&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
 {{cmduser|sudo cp /usr/src/linux-source-2.6.22/sound/pci/hda/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd/hda-intel.ko}}&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe snd-hda-intel}}&lt;br /&gt;
&lt;br /&gt;
To get my graphics card accelerated again I recompiled the kernel modules for it:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
After this I restarted my computer and checked the acceleration with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|glxgears}}&lt;br /&gt;
&lt;br /&gt;
You should get something around 3100 FPS in 5 seconds (without acceleration it is around 700 FPS per 5 seconds).&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33779</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33779"/>
		<updated>2007-10-10T08:33:53Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
When you install the new kernel you get this messages:&lt;br /&gt;
&lt;br /&gt;
 [[Image:Kernel1.png]] &lt;br /&gt;
 [[Image:Kernel2.png]]&lt;br /&gt;
 [[Image:Kernel3.png]]&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
 {{cmduser|sudo cp /usr/src/linux-source-2.6.22/sound/pci/hda/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd/hda-intel.ko}}&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe snd-hda-intel}}&lt;br /&gt;
&lt;br /&gt;
To get my graphics card accelerated again I recompiled the kernel modules for it:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
After this I restarted my computer and checked the acceleration with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|glxgears}}&lt;br /&gt;
&lt;br /&gt;
You should get something around 3100 FPS in 5 seconds (without acceleration it is around 700 FPS per 5 seconds).&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=File:Kernel3.png&amp;diff=33778</id>
		<title>File:Kernel3.png</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=File:Kernel3.png&amp;diff=33778"/>
		<updated>2007-10-10T08:33:05Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=File:Kernel2.png&amp;diff=33777</id>
		<title>File:Kernel2.png</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=File:Kernel2.png&amp;diff=33777"/>
		<updated>2007-10-10T08:32:49Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33776</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33776"/>
		<updated>2007-10-10T08:32:14Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
When you install the new kernel you get this messages:&lt;br /&gt;
&lt;br /&gt;
 [[Image:Kernel1.png]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
 {{cmduser|sudo cp /usr/src/linux-source-2.6.22/sound/pci/hda/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd/hda-intel.ko}}&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe snd-hda-intel}}&lt;br /&gt;
&lt;br /&gt;
To get my graphics card accelerated again I recompiled the kernel modules for it:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
After this I restarted my computer and checked the acceleration with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|glxgears}}&lt;br /&gt;
&lt;br /&gt;
You should get something around 3100 FPS in 5 seconds (without acceleration it is around 700 FPS per 5 seconds).&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=File:Kernel1.png&amp;diff=33775</id>
		<title>File:Kernel1.png</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=File:Kernel1.png&amp;diff=33775"/>
		<updated>2007-10-10T08:30:15Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33774</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33774"/>
		<updated>2007-10-10T08:26:02Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
 {{cmduser|sudo cp /usr/src/linux-source-2.6.22/sound/pci/hda/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd/hda-intel.ko}}&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe snd-hda-intel}}&lt;br /&gt;
&lt;br /&gt;
To get my graphics card accelerated again I recompiled the kernel modules for it:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
After this I restarted my computer and checked the acceleration with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|glxgears}}&lt;br /&gt;
&lt;br /&gt;
You should get something around 3100 FPS in 5 seconds (without acceleration it is around 700 FPS per 5 seconds).&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33773</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33773"/>
		<updated>2007-10-10T08:16:15Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
 {{cmduser|sudo cp /usr/src/linux-source-2.6.22/sound/pci/hda/snd-hda-intel.ko&lt;br /&gt;
                   /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd/hda-intel.ko}}&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe snd-hda-intel}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33772</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33772"/>
		<updated>2007-10-10T08:15:24Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
 {{cmduser|sudo cp /usr/src/linux-source-2.6.22/sound/pci/hda/snd-hda-intel.ko /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd/hda-intel.ko}}&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe snd-hda-intel}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33771</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33771"/>
		<updated>2007-10-10T08:09:37Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
Now I had to get my sound-card working. The module from ubuntu is not working, I don't know why. So I did this:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo mv /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko /lib/modules/2.6.22-14-generic/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.orginal}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33770</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33770"/>
		<updated>2007-10-10T08:02:01Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
After this I load the modules with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
And test it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|hdaps-gl}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33769</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33769"/>
		<updated>2007-10-10T07:54:00Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33768</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33768"/>
		<updated>2007-10-10T07:52:54Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -r linux-headers-generic linux-headers-2.6.22-14-generic}}&lt;br /&gt;
 {{cmduser|cd ..}}&lt;br /&gt;
 {{cmduser|sudo dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33767</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33767"/>
		<updated>2007-10-10T07:40:36Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 $ sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33766</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33766"/>
		<updated>2007-10-10T07:40:16Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # sudo fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33765</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33765"/>
		<updated>2007-10-10T07:01:09Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The Brightness Buttons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: You don't need to do this since kernel version 2.6.22 on Ubuntu&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33763</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33763"/>
		<updated>2007-10-10T06:58:24Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The Browser Buttons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33761</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33761"/>
		<updated>2007-10-10T06:55:08Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Wireless Card ==&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33759</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33759"/>
		<updated>2007-10-10T06:53:20Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Graphics Card ==&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33757</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33757"/>
		<updated>2007-10-10T06:49:56Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33756</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33756"/>
		<updated>2007-10-10T06:48:38Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* After The Kernel Update */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
On 9.October 2007 Ubuntu released the Kernelpackage linux-image-2.6.22-14-generic and I installed it. So here is what I have done to get it working:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install linux-headers-generic}}&lt;br /&gt;
 {{cmduser|sudo ln -s /usr/src/linux-source-2.6.22 /lib/modules/2.6.22-14-generic/source}}&lt;br /&gt;
 {{cmduser|sudo cd /usr/src/linux}}&lt;br /&gt;
 {{cmduser|sudo make clean}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic .config}}&lt;br /&gt;
 {{cmduser|sudo cp /boot/config-2.6.22-14-generic /lib/modules/2.6.22-14-generic/.config}}&lt;br /&gt;
 {{cmduser|sudo gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -14-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|gedit .config}}&lt;br /&gt;
&lt;br /&gt;
In the .config file I changed the entry &amp;quot; # CONFIG_SND_HDA_INTEL is not set &amp;quot; to &amp;quot; CONFIG_SND_HDA_INTEL=m &amp;quot;. This was needed to compile the module for my sound card.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo make oldconfig}}&lt;br /&gt;
 {{cmduser|sudo fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I copied my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo cp -R /lib/modules/2.6.22-14-generic /lib/modules/2.6.22-14-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|dpkg -i linux-image-2.6.22-14-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /home/dirk/tp_smapi-0.32}}&lt;br /&gt;
 {{cmduser|sudo make install HDAPS=1}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33755</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33755"/>
		<updated>2007-10-10T06:29:52Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== After The Kernel Update ==&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33754</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33754"/>
		<updated>2007-10-10T06:03:09Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (next try) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I compiled the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33753</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33753"/>
		<updated>2007-10-10T06:02:30Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (next try) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-16-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33361</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=33361"/>
		<updated>2007-09-25T05:41:39Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=32955</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=32955"/>
		<updated>2007-09-06T08:47:23Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdaps}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }}&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31782</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31782"/>
		<updated>2007-08-06T11:45:12Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (next try) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }} &lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
After some days Ubuntu updated the kernel to version 2.6.22-9-generic, so I need to do the steps described above again, with &amp;quot;EXTRAVERSION = -9-generic&amp;quot;. But now my wireless card and my grapics card did not work. The restricted-manager crashes when I start it.&lt;br /&gt;
So I downloaded the packages ipw3945-1.2.1.tgz and ati-driver-installer-8.39.4-x86.x86_64.run.&lt;br /&gt;
&lt;br /&gt;
First I extracted and installed the Intel Pro Wireless Package:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|tar xzvf ipw3945-1.2.1.tgz}}&lt;br /&gt;
 {{cmduser|cd ipw3945-1.2.1}}&lt;br /&gt;
 {{cmduser|make}}&lt;br /&gt;
 {{cmduser|sudo make install}}&lt;br /&gt;
&lt;br /&gt;
After this I could do :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo modprobe ipw3945}}&lt;br /&gt;
&lt;br /&gt;
The module was loaded, and i was able to use my wireless card now.&lt;br /&gt;
&lt;br /&gt;
For my Radeon Mobility X1400 I did the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt get update}}&lt;br /&gt;
 {{cmduser|sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5}}&lt;br /&gt;
&lt;br /&gt;
Created a Debian Package with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo bash ati-driver-installer-8.39.4-x86.x86_64.run --buildpkg Ubuntu/gutsy}}&lt;br /&gt;
&lt;br /&gt;
And blacklisted the old fglrx module with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo gedit /etc/default/linux-restricted-modules-common}}&lt;br /&gt;
&lt;br /&gt;
I added &amp;quot;fglrx&amp;quot; to the line with &amp;quot;DISABLED_MODULES&amp;quot;. Then I installed the created Debian Packages with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo dpkg -i xorg-driver-fglrx_8.39.4-1_i386.deb fglrx-kernel-source_8.39.4-1_i386.deb fglrx-amdcccle_8.39.4-1_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I compiled the kernel Modules:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo module-assistant prepare}}&lt;br /&gt;
 {{cmduser|sudo module-assistant update}}&lt;br /&gt;
 {{cmduser|sudo module-assistant build fglrx}}&lt;br /&gt;
 {{cmduser|sudo module-assistant install fglrx}}&lt;br /&gt;
 {{cmduser|sudo depmod -a}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The helpful informations for this was found at http://wiki.cchtml.com/index.php/Ubuntu_Feisty_Installation_Guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After this steps my wifi-card and my graphics-card was working and restricted-manager was not crashing when I tried to start it.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31361</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31361"/>
		<updated>2007-07-18T12:06:19Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (next try) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }} &lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
My wireless-card is working now !&lt;br /&gt;
My ATI Card cannot be configured with restricted-manager!&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31326</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31326"/>
		<updated>2007-07-16T13:40:30Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (next try) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }} &lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
I think my wireless-card is working now, I check it when I'm at home again.&lt;br /&gt;
But my ATI Card is still not working correct.&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31324</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31324"/>
		<updated>2007-07-16T13:36:47Z</updated>

		<summary type="html">&lt;p&gt;Dirk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section  &amp;quot;The hdapsd - Deamon (next try)&amp;quot;. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{HELP| }} &lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (next try) ==&lt;br /&gt;
&lt;br /&gt;
I am not satisfied with the above result, because I cannot use the accelerated xorg-fglrx driver for my ATI Graphics Card and I cannot use my wireless Intel card ipw3945 driver. And the Ubuntu restricted-manager is not working. PLEASE can someone help me to compile a Ubuntu kernel in the correct way, so that I can use the whole hardware ?&lt;br /&gt;
&lt;br /&gt;
I have done a - I think really ugly hack - to get the restricted-manager working :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic /lib/modules/2.6.20-generic/.config}}&lt;br /&gt;
 {{cmdroot|gedit /usr/src/linux/Makefile}}&lt;br /&gt;
&lt;br /&gt;
In the Makefile I changed the entry EXTRAVERSION to my running kernel version like this &amp;quot;EXTRAVERSION = -16-generic&amp;quot;.&lt;br /&gt;
Then I did compile the kernel again with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --revision=4711 kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
Then I moved my modules with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|mv /lib/modules/2.6.20-16-generic /lib/modules/2.6.20-16-generic.orginal}}&lt;br /&gt;
&lt;br /&gt;
And installed the kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20-16-generic_4711_i386.deb}}&lt;br /&gt;
&lt;br /&gt;
Then I rebooted the computer and recompiled the tp_smapi drivers as described above.&lt;br /&gt;
Finally I copied the ipw3945.ucode with&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cp /lib/firmware/2.6.22-7-generic/ipw3945.ucode /lib/firmware/2.6.20-16-generic/ipw3945.ucode}}&lt;br /&gt;
&lt;br /&gt;
I think my wireless-card is working now, I check it when I'm at home again.&lt;br /&gt;
But my ATI Card is still not working correct.&lt;br /&gt;
&lt;br /&gt;
{{HELP|Please can someone who is conform in compiling Ubuntu kernels and restricted modules help me to do it in the correct way ! And can someone recheck the things described above, because I am not sure about all things that I have written here.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31321</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31321"/>
		<updated>2007-07-16T12:58:14Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
{{HELP|I think the last command (with --append-to-version was an error ! I need help from an specialist in kernel compiling. Please read ahead at the next section. }}&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31318</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31318"/>
		<updated>2007-07-16T06:45:29Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.3-ubuntu1.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31236</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31236"/>
		<updated>2007-07-13T13:45:28Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
So far so good !!! After I got this running I tried the same steps with the normal Gutsy Kernel (2.6.22-7-generic) on the same way, and it worked ! To my surprise with the same kernel patch.&lt;br /&gt;
&lt;br /&gt;
The only Problem that I now have is that I cannot use restricted modules with my new kernels. Now I have to figure out how to compile restricted modules agains selfmade kernels.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31235</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31235"/>
		<updated>2007-07-13T13:37:05Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; [[Image:Hdaps-paused-small.png]] Symbol, otherwise it shows &amp;quot;Play&amp;quot; [[Image:Hdaps-running-small.png]].&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=File:Hdaps-running-small.png&amp;diff=31234</id>
		<title>File:Hdaps-running-small.png</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=File:Hdaps-running-small.png&amp;diff=31234"/>
		<updated>2007-07-13T13:36:32Z</updated>

		<summary type="html">&lt;p&gt;Dirk: gnome-hdaps running&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;gnome-hdaps running&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=File:Hdaps-paused-small.png&amp;diff=31233</id>
		<title>File:Hdaps-paused-small.png</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=File:Hdaps-paused-small.png&amp;diff=31233"/>
		<updated>2007-07-13T13:35:05Z</updated>

		<summary type="html">&lt;p&gt;Dirk: gnome-hdaps paused&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;gnome-hdaps paused&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31232</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31232"/>
		<updated>2007-07-13T13:29:07Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty and maybe you have to do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo update-rc.d hdapsd defaults}}&lt;br /&gt;
&lt;br /&gt;
to create the init links for the hdapsd init script. My links was already there. My /etc/default/hdapsd script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; Symbol, otherwise it shows &amp;quot;Play&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31231</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31231"/>
		<updated>2007-07-13T13:22:52Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty. My script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now I could use the gnome-hdaps-applet with the following comands:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|mkdir gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|cd gnome-hdaps-applet}}&lt;br /&gt;
 {{cmduser|wget http://www.zen24593.zen.co.uk/hdaps/gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|tar -xzf gnome-hdaps-applet-20060120.tar.gz}}&lt;br /&gt;
 {{cmduser|sudo apt-get install libpanel-applet2-dev}}&lt;br /&gt;
 {{cmduser|gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet gnome-hdaps-applet.c}}&lt;br /&gt;
 {{cmduser|sudo cp gnome-hdaps-applet /usr/bin/}}&lt;br /&gt;
 {{cmduser|sudo mkdir /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 {{cmduser|sudo cp *.png /usr/share/pixmaps/gnome-hdaps-applet/}}&lt;br /&gt;
 $ sudo cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/&lt;br /&gt;
&lt;br /&gt;
Now after a restart of the Gnome Session I could find a &amp;quot;HDAPS Status&amp;quot; applet in the &amp;quot;Add to Panel&amp;quot; dialog. I added it, and when I move the Thinkpad it shows me the &amp;quot;Pause&amp;quot; Symbol, otherwise it shows &amp;quot;Play&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31230</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31230"/>
		<updated>2007-07-13T13:06:53Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
Now, after I have a working hdaps-deamon I want it to be started at boot time. Because I have upgraded to Gutsy and installed the hdapsd - Package I have a script called /etc/default/hdapsd. Here I have to change some things. HINT: Remember that you still need the /etc/init.d/hdapsd file if you try this on Feisty. My script now looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# hdapsd default file&lt;br /&gt;
&lt;br /&gt;
# start hdapsd at boottime?&lt;br /&gt;
START=&amp;quot;yes&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# the name of the disk device that hdapsd should monitor.&lt;br /&gt;
#&lt;br /&gt;
# usually this is 'hda' the primary master or 'sda'&lt;br /&gt;
# on SATA ThinkPads.&lt;br /&gt;
DISK=&amp;quot;sda&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# sensitivity&lt;br /&gt;
SENSITIVITY=12&lt;br /&gt;
&lt;br /&gt;
# other options to pass to hdapsd.&lt;br /&gt;
# the -d $DISK, -s $SENSITIVITY, -b and -p $PIDFILE options are always passed.&lt;br /&gt;
OPTIONS=&amp;quot;-a&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31228</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31228"/>
		<updated>2007-07-13T11:40:32Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* New Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} key within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31227</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31227"/>
		<updated>2007-07-13T11:36:40Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* My Thinkpad */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could take so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31226</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31226"/>
		<updated>2007-07-13T11:29:58Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The Fingerprint Reader */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31225</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31225"/>
		<updated>2007-07-13T11:29:13Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The Browser Buttons */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31224</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31224"/>
		<updated>2007-07-13T11:28:26Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The Upgrade to Gutsy Gibbon */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo apt-get update}}&lt;br /&gt;
 {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31223</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31223"/>
		<updated>2007-07-13T11:25:22Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo apt-get update}}&lt;br /&gt;
: {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a -v}}&lt;br /&gt;
&lt;br /&gt;
Should show this:&lt;br /&gt;
&lt;br /&gt;
[[Image:hdapsd.png]]&lt;br /&gt;
&lt;br /&gt;
If you load it with :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|sudo hdapsd -d sda -s 12 -a}}&lt;br /&gt;
&lt;br /&gt;
You get nothing until you move your Thinkpad, then you see:&lt;br /&gt;
&lt;br /&gt;
 Fri Jul 13 12:30:42 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:43 2007: un-parking&lt;br /&gt;
 Fri Jul 13 12:30:44 2007: parking&lt;br /&gt;
 Fri Jul 13 12:30:45 2007: un-parking&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=File:Hdapsd.png&amp;diff=31221</id>
		<title>File:Hdapsd.png</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=File:Hdapsd.png&amp;diff=31221"/>
		<updated>2007-07-13T11:22:04Z</updated>

		<summary type="html">&lt;p&gt;Dirk: hdapsd Deamon working&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;hdapsd Deamon working&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31220</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31220"/>
		<updated>2007-07-13T10:47:27Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo apt-get update}}&lt;br /&gt;
: {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
Now we are ready to try out the hdapsd Deamon which is included in the Gutsy repositories, if you are using Feisty you have to compile it yourself like described here: [http://www.thinkwiki.org/wiki/How_to_protect_the_harddisk_through_APS| How to protect the harddisk through APS].&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31219</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31219"/>
		<updated>2007-07-13T10:42:32Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo apt-get update}}&lt;br /&gt;
: {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 $ sudo make install HDAPS=1&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31218</id>
		<title>Installing Ubuntu (Gutsy Gibbon) 7.10 on a ThinkPad R60</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_(Gutsy_Gibbon)_7.10_on_a_ThinkPad_R60&amp;diff=31218"/>
		<updated>2007-07-13T10:41:17Z</updated>

		<summary type="html">&lt;p&gt;Dirk: /* The hdapsd - Deamon (IBM Active Disk Protection) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== My Thinkpad ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Lenovo Thinkpad R60 9461 HRG&lt;br /&gt;
Intel Core2Duo (Merom) 1.83 CPU&lt;br /&gt;
120 GB SATA Hitachi HTS54161 Harddisk&lt;br /&gt;
2 GB RAM&lt;br /&gt;
ATI Mobility X1400&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Originally equipped with a preinstalled MS Windows Vista Business. So the Harddisk was parted into two Partitions.&lt;br /&gt;
&lt;br /&gt;
1. The Rescue &amp;amp; Recovery Partition&lt;br /&gt;
&lt;br /&gt;
2. The preinstalled Windows Vista Partition&lt;br /&gt;
&lt;br /&gt;
And as the parcel with my new Thinkpad arrived I was surprized, that there was a Windows Vista DVD (only 32 Bit Version) with it.&lt;br /&gt;
So I tried Vista - but I was a little bit shocked by it's performance. I never thought that a new computer could thake so much time to boot up completely.&lt;br /&gt;
&lt;br /&gt;
I decided to do a clean install of Vista, but I want to have Windows XP and Ubuntu Feisty on the Harddisk too.&lt;br /&gt;
&lt;br /&gt;
== New Installation ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use all Space of the Harddisk, so I decided to kill the Rescue &amp;amp; and Recovery Partition, but to have the chance to go back to the factory default state I ordered Recovery DVD's at the  [http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=MIGR-4HWSE3#Lenovo Support Call Center for Germany].&lt;br /&gt;
They shipped the 3 DVD's to me - free of charge - but I think it's only free if your Thinkpad is still in the warranty. I don't know exactly.&lt;br /&gt;
&lt;br /&gt;
Then I created 2 Partitions on my Harddisk, 64 GB for Vista, 20 GB for XP, so 29 GB left free for Linux.&lt;br /&gt;
&lt;br /&gt;
I installed Vista and XP and all the Thinkpad Stuff for each system.&lt;br /&gt;
&lt;br /&gt;
When this was finished I took a Ubuntu Feisty Fawn installation CD and boot my Notebook with it. I created a 4 GB linux-swap partition and a 25 GB root / partition.&lt;br /&gt;
&lt;br /&gt;
Because I want to boot my Ubuntu with the Windows Vista Boot Loader, I decided to install Grub to /dev/sda4 which is my Linux root partition.&lt;br /&gt;
&lt;br /&gt;
The installation of Ubuntu Feisty Fawn works fine, NO PROBLEMS.&lt;br /&gt;
&lt;br /&gt;
NOW I want to boot Linux from the Vista Bootloader, because I don't want to wait for two Bootscreens, and I wan't to have the chance to access the Repair Console of Windows Vista.&lt;br /&gt;
&lt;br /&gt;
First I have to copy the Bootsector of my Linux Partition with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo dd if=/dev/sda4 of=/tmp/bootsect.lin bs=512 count=1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Copy the bootsect.lin file to a USB-Stick or a writable partition which you can access from Windows Vista.&lt;br /&gt;
&lt;br /&gt;
Now boot Windows Vista and copy the file bootsect.lin to your Systemdrive. In an Command Window with Administrator privileges type:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
copy bootsect.lin %SYSTEMDRIVE%\&lt;br /&gt;
&lt;br /&gt;
bcdedit /create /d “Ubuntu” /application BOOTSECTOR&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You will receice an ID like this {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} from bcdedit. This is a uniqe identifier for your new Boot Entry in the Vista Bootloader. Now you will have to manipulate the entry with the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} device boot&lt;br /&gt;
bcdedit /set {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926}  PATH \bootsect.lin&lt;br /&gt;
bcdedit /displayorder {4cdcfd5b-1f3a-11dc-bb90-0019d2b3e926} /addlast&lt;br /&gt;
bcdedit /timeout 10&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then I booted my Ubuntu an did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /boot/grub/menu.lst}}&lt;br /&gt;
&lt;br /&gt;
In this file I canged the entry the following entries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
timeout     2&lt;br /&gt;
hiddenmenu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So the computer starts up with the Windows Vista bootloader and gives me the option to start Windows XP, Windows Vista, Ubuntu and I have the option to do the repair tasks with  the {{key|F8}} button on Vista if something fails. If I choose to boot Ubuntu I have the option to press the {{key|ESC}} within the two seconds delay of the hidden Grub Menu. I.E. to boot another Linux Kernel.&lt;br /&gt;
&lt;br /&gt;
== The tp_smapi modules ==&lt;br /&gt;
&lt;br /&gt;
I did it under Feisty and, after the Upgrade under Gutsy, like described here : [http://www.thinkwiki.org/wiki/Tp_smapi#Installation TP SMAPI] in the Section &amp;quot;Installation on Ubuntu/Debian&amp;quot;&lt;br /&gt;
It worked, hdaps-gl and hdaps-pivot shows me now the movements of my Thinkpad. Like you can see here:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-pivot.png]]   &lt;br /&gt;
&lt;br /&gt;
[[Image:Hdaps-gl.png]]&lt;br /&gt;
&lt;br /&gt;
== The Upgrade to Gutsy Gibbon ==&lt;br /&gt;
&lt;br /&gt;
NO PROBLEMS. So why should I upgrade ?&lt;br /&gt;
&lt;br /&gt;
OK I really wanted to get hdapsd (Harddisk Active Protection) to work. I tried a lot of things with Feisty, but I didn't get it going. And after a lot of seach through the Internet I found out that Gutsy Gibbon, the next Release of Ubuntu should have the Package for hdapsd on board.&lt;br /&gt;
SO I decided to upgrade to Gutsy - with the knowledge that it is still in Beta Stadium.&lt;br /&gt;
&lt;br /&gt;
Upgrading Ubuntu is really simple, you only have to do the following steps:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/apt/sources.list}}&lt;br /&gt;
&lt;br /&gt;
Search all feisty entries and change them to gutsy. Save and Close the file.&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo apt-get update}}&lt;br /&gt;
: {{cmduser| sudo apt-get upgrade}}&lt;br /&gt;
&lt;br /&gt;
Go and drink a cup of Tea or Coffee. When you are back you have a message, that you should reboot your System, to get all packages active. So do it.&lt;br /&gt;
&lt;br /&gt;
After the reboot I installed the hdapsd package and I tried to activate the Harddisk Protection with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo hdapsd -d sda -s 14 -a -v}}&lt;br /&gt;
&lt;br /&gt;
But I still get the message &amp;quot;open(protect_file): No such file or directory&amp;quot;. ---- The Same Message that I get in Feisty before I did the Upgrade. So I banged my head on the table and noticed that I'm not tough enough to get this thing working. Maybe someone else.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I decided to get the other things to work.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
UPDATE: After some days I tried to get hdapsd to work, again !&lt;br /&gt;
&lt;br /&gt;
== The hdapsd - Deamon (IBM Active Disk Protection) ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Because I never had compiled or patched a kernel under Ubuntu I had to find out how this works ! After a lot of search in the Internet, the Ubuntu Help and at Thinkwiki.org I found the (hopefully) correct way to do it.&lt;br /&gt;
&lt;br /&gt;
The best information I found was this :&lt;br /&gt;
[http://www.thinkwiki.org/wiki/Installing_Ubuntu_7.04_on_a_ThinkPad_T43#Active_Protection_System_.28acceleration_monitor.29|Installing Ubuntu 7.04 on a ThinkPad T43] in section &amp;quot;Disk protection&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Here is what I did to get it to work:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Make sure that you have the required packages, with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo apt-get install build-essential fakeroot kernel-package libncurses5-dev wget bzip2 linux-source}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Get the correct kernel patch for your running kernel from here : [http://www.thinkwiki.org/wiki/HDAPS#Kernel_patch_.28apply_using_.27patch_-p1_-l_.3C_hdaps_xx.patch.27.29| HDAPS] section  &amp;quot;8.1.1 Kernel patch (apply using 'patch -p1 -l &amp;lt; hdaps_xx.patch')&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After all my experiences I was not sure that there was a patch available for my Gutsy-kernel (2.6.22-7-generic), but I still had my old  kernel on the disk. So I booted up the old one (2.6.20-16-generic). Check the running kernel with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see something like:   2.6.20-7-generic&lt;br /&gt;
&lt;br /&gt;
Now change to /usr/src and look that the sources for the running kernel are there with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd /usr/src}}&lt;br /&gt;
 {{cmduser|ls -d linux-source*}}&lt;br /&gt;
&lt;br /&gt;
You should see a file with the name &amp;quot;linux-source-2.6.20.tar.bz2&amp;quot; wich includes the packed kernel sources. You have to extract it, so  do:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|sudo su}}&lt;br /&gt;
 {{cmdroot|tar xvfj linux-source-2.6.20.tar.bz2}}&lt;br /&gt;
&lt;br /&gt;
Now you have the kernel sources in the /usr/src/linux-source-2.6.20 directory. Take a look if there is a link from /usr/src/linux to an other kernel source directory (It's maybe there if you tried to compile a kernel some time before).&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|ls -l linux}}&lt;br /&gt;
&lt;br /&gt;
If you see that linux is linked to an other source than your running kernel remove the link and create a new one with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|rm -r linux}}&lt;br /&gt;
 {{cmdroot|ln -s /usr/src/linux-source-2.6.20 linux}}&lt;br /&gt;
&lt;br /&gt;
Change to the source directory and patch the kernel with this:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src/linux}}&lt;br /&gt;
 {{cmdroot|patch -p1 -l &amp;lt; /home/dirk/993-001.bin}}&lt;br /&gt;
&lt;br /&gt;
The file &amp;quot;993-001.bin&amp;quot; is the kernel patch for the 2.6.20 and 2.6.21 kernels, I downloaded it here : [http://article.gmane.org/gmane.linux.drivers.hdaps.devel/993]&lt;br /&gt;
&lt;br /&gt;
After the patchwork I did this :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|make clean}}&lt;br /&gt;
 {{cmdroot|cp /boot/config-2.6.20-16-generic .config}}&lt;br /&gt;
 {{cmdroot|make oldconfig}}&lt;br /&gt;
 {{cmdroot|fakeroot make-kpkg clean}}&lt;br /&gt;
 # fakeroot make-kpkg --append-to-version=.hdapscustom kernel_image --initrd binary&lt;br /&gt;
&lt;br /&gt;
This would take its time, so go and clean up your house  ;-)&lt;br /&gt;
After your house is clean you can do :&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|cd /usr/src}}&lt;br /&gt;
 {{cmdroot|ls -l linux*.deb}}&lt;br /&gt;
&lt;br /&gt;
You should see some newly builded Debian Pakage files. Install them with:&lt;br /&gt;
&lt;br /&gt;
 {{cmdroot|dpkg -i linux-headers-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-doc-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-image-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_i386.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-manual-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
 {{cmdroot|dpkg -i linux-source-2.6.20.3-ubuntu.hdapscustom_2.6.20.3-ubuntu1.hdapscustom-10.00.Custom_all.deb}}&lt;br /&gt;
&lt;br /&gt;
After the installation you should reboot your computer, when Grub comes up make sure that you select your newly builded kernel.&lt;br /&gt;
Check it with:&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|uname -r}}&lt;br /&gt;
&lt;br /&gt;
You should see this &amp;quot;2.6.20.hdapscustom&amp;quot;. But now you have the Problem, that you have to recompile the tp_smapi driver.&lt;br /&gt;
&lt;br /&gt;
 {{cmduser|cd tp_smapi-0.31}}&lt;br /&gt;
 {{cmduser|sudo make install HDAPS=1}}&lt;br /&gt;
 {{cmduser|sudo modprobe tp_smapi}}&lt;br /&gt;
 {{cmduser|sudo modprobe hdpas}}&lt;br /&gt;
&lt;br /&gt;
After :&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 $ dmesg | grep hdaps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should see something like this:&lt;br /&gt;
&lt;br /&gt;
 [  893.752000] hdaps: initial mode latch is 0x05&lt;br /&gt;
 [  893.752000] hdaps: setting ec_rate=250, filter_order=2&lt;br /&gt;
 [  893.752000] hdaps: fake_data_mode set to 0&lt;br /&gt;
 [  893.756000] hdaps: device successfully initialized.&lt;br /&gt;
 [  893.756000] input: hdaps as /class/input/input10&lt;br /&gt;
 [  893.756000] hdaps: driver successfully loaded.&lt;br /&gt;
&lt;br /&gt;
== The Browser Buttons ==&lt;br /&gt;
&lt;br /&gt;
I wanted to use the Browser Forward &amp;amp; Backward Buttons within Firefox. After the upgrade my Firefox had version 2.0.0.4&lt;br /&gt;
&lt;br /&gt;
I did :&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit ~/.Xmodmap}}&lt;br /&gt;
&lt;br /&gt;
and added the following lines :&lt;br /&gt;
&lt;br /&gt;
keycode 234 = F19&lt;br /&gt;
&lt;br /&gt;
keycode 233 = F20&lt;br /&gt;
&lt;br /&gt;
I saved and closed the file. HINT: You have to re-login to Gnome to get the .Xmodmap file active.&lt;br /&gt;
&lt;br /&gt;
Then I did the things described in [http://www.thinkwiki.org/wiki/How_to_get_special_keys_to_work#Firefox How to get special keys to work].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the Windows Key I added &amp;quot;keycode 115 = F13&amp;quot; to my .Xmodmap File, then I klicked on &amp;quot;System - Einstellungen - Tastenkombinationen&amp;quot;&lt;br /&gt;
sorry I don't know how it is called in English. And changed the Entry &amp;quot;Das Panelmenü anzeigen&amp;quot; to F13&lt;br /&gt;
&lt;br /&gt;
== The Brightness Buttons ==&lt;br /&gt;
&lt;br /&gt;
When I wanted to control the brightness, I was not able to change it with {{key|Fn}}{{key|End}}.&lt;br /&gt;
&lt;br /&gt;
So I did the Workaround menitioned here [http://thinkwiki.org/wiki/Problem_with_LCD_brightness_buttons#Workaround for Fedora Core 6 Users].&lt;br /&gt;
After this I was able to change the brightness with {{key|Fn}}{{key|Home}} and {{key|Fn}}{{key|End}}, but I don't have the OSD anymore.&lt;br /&gt;
&lt;br /&gt;
== The Fingerprint Reader ==&lt;br /&gt;
&lt;br /&gt;
Do the steps which are described in [http://www.thinkwiki.org/wiki/Installing_Ubuntu_6.10_%28Edgy_Eft%29_on_a_ThinkPad_T60#The_Fingerprint_Reader Installing Ubuntu 6.10 (Edgy Eft) on a ThinkPad T60] until you get to the Point where Keithvassallo says:&lt;br /&gt;
 &amp;quot;Phew. Now, to make applications actually use the fingerprint reader.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I have done the following things instead of his version:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/gdm}}&lt;br /&gt;
&lt;br /&gt;
Change the file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
auth	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/&lt;br /&gt;
auth	requisite	pam_nologin.so&lt;br /&gt;
auth	required	pam_env.so&lt;br /&gt;
@include common-auth&lt;br /&gt;
@include common-account&lt;br /&gt;
session	required	pam_limits.so&lt;br /&gt;
@include common-session&lt;br /&gt;
@include common-password&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/common-auth}}&lt;br /&gt;
&lt;br /&gt;
Change this file as following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# /etc/pam.d/common-auth - authentication settings common to all services&lt;br /&gt;
#&lt;br /&gt;
# This file is included from other service-specific PAM config files,&lt;br /&gt;
# and should contain a list of the authentication modules that define&lt;br /&gt;
# the central authentication scheme for use on the system&lt;br /&gt;
# (e.g., /etc/shadow, LDAP, Kerberos, etc.).  The default is to use the&lt;br /&gt;
# traditional Unix authentication mechanisms.&lt;br /&gt;
#&lt;br /&gt;
auth		sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam&lt;br /&gt;
auth		required	pam_unix.so nullok_secure&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this changes you have the advantage, that you are now able to login to Gnome or KDE whitout entering your password. But if you cancel the &amp;quot;Fingerprint Login&amp;quot;, you are still able to login whit your username/password combination.&lt;br /&gt;
&lt;br /&gt;
After I was able to login to my desktop I was unsatisfied, because my Computer still wants to get passwords i.e. when I tried to open Synaptic or when I do any sudo actions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So I tried to figure out how this sudo thing works. I did the following change to /etc/pam.d/sudo with:&lt;br /&gt;
&lt;br /&gt;
: {{cmduser| sudo gedit /etc/pam.d/sudo}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#%PAM-1.0&lt;br /&gt;
&lt;br /&gt;
auth	        sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam/ :0&lt;br /&gt;
password	sufficient	pam_bioapi.so {5550454b-2054-464d-2f45-535320425350} /etc/bioapi/pam :0&lt;br /&gt;
auth	        required	pam_unix.so	nillock_secure&lt;br /&gt;
@include common-account&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With this change I was able to open System Administration tasks with my fingerprint, but the ugly thing is, that you get no information to swipe your finger over the reader when you have switched to a console session with {{Key|Ctrl}}+{{Key|Alt}}+{{Key|F1}}. The fingerprint scanner software will appear at your running X session.&lt;/div&gt;</summary>
		<author><name>Dirk</name></author>
		
	</entry>
</feed>