<?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=Eater</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=Eater"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Eater"/>
	<updated>2026-05-05T22:41:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=40571</id>
		<title>How to configure the TrackPoint</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=40571"/>
		<updated>2009-01-10T20:11:39Z</updated>

		<summary type="html">&lt;p&gt;Eater: /* TrackPoint under Xorg-7.4+ using HAL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |The [[Patch to enable advanced trackpoint configuration|kernel trackpoint driver]] is controlled by echoing values to special files. Common configuration options are outlined below.&lt;br /&gt;
{{NOTE|&lt;br /&gt;
*'''With kernels 2.6.19 (Feb 2007) and later, config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio1&amp;lt;/tt&amp;gt;.'''&lt;br /&gt;
*With kernels 2.6.13 (inclusive) to 2.6.19 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio0/serio2&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.11 (inclusive) to 2.6.13 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio0&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.9 (inclusive) to 2.6.11 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/proc/trackpoint&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*Prior to kernel 2.6.9, configuration was not done through files but through command-line options to the psmouse module.  (Note this means you must compile psmouse as a module!)  See http://stephen.evanchik.com/node/16.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
='''2009'''=&lt;br /&gt;
&lt;br /&gt;
'''See [[TrackPoint]].'''&lt;br /&gt;
&lt;br /&gt;
==TrackPoint under Xorg-7.4+ using HAL==&lt;br /&gt;
&lt;br /&gt;
Because Xorg 7.4 uses HAL FDI policy files instead of xorg.conf for device configuration, you must do the following to get the scrolling working:&lt;br /&gt;
(see: http://forum.ubuntuusers.de/topic/mouse-wheel-emulation-in-xorg.conf/?highlight=hal+trackpoint#post-1558282 )&lt;br /&gt;
&lt;br /&gt;
Create the file '''/etc/hal/fdi/policy/mouse-wheel.fdi''' as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelTimeout&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;200&amp;lt;/merge&amp;gt;&lt;br /&gt;
&amp;lt;/match&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In Fedora 10, this fix also works, and with '''lshal''' you can see that the changes do indeed take effect.  However, you will need to update the evdev drivers ('''yum --enablerepo=rawhide update xorg-x11-drv-evdev''') before X will use these settings correctly. Alternatively you can use ('''yum install --enablerepo=updates-testing xorg-x11-drv-evdev'''). The xorg-x11-drv-evdev-2.1.0-1.fc10.i386 packet from rawhide repo caused X to loose all keyboard and mouse functionality on a T42.&lt;br /&gt;
&lt;br /&gt;
Note: You must restart both hal and X to see these changes, so it's probably easiest to just reboot.&lt;br /&gt;
&lt;br /&gt;
Confirmed to work in Gentoo as well. You MUST upgrade to x11-drivers/xf86-input-evdev-2.1.0. As of today (12/8/08), this package is only found in the x11 overlay. &lt;br /&gt;
&lt;br /&gt;
https://wiki.ubuntu.com/X/Config&lt;br /&gt;
&lt;br /&gt;
Note: After setting this up, scrolling seems to fail once in a while after resuming from suspend. Re-suspending and then re-resuming causes it to work again. So does quickly switching to another console with Ctrl-Alt-F2, then back to X. This glitch does not appear with the evdev driver from the testing repo.&lt;br /&gt;
&lt;br /&gt;
='''2008 and before'''=&lt;br /&gt;
&lt;br /&gt;
==General Configuration==&lt;br /&gt;
The configuration options are reflected by the files you can find in {{path|/sys/devices/platform/i8042/serio0/serio2}}. See the [[Patch to enable advanced trackpoint configuration|TrackPoint driver page]] for a complete list.&lt;br /&gt;
Configuration is done by echoing the appropriate values into these special files.&lt;br /&gt;
&lt;br /&gt;
If you want to set the sysfs parameters at boot, you can use the [http://linux-diag.sourceforge.net/Sysfsutils.html sysfsutils] and put the preferred value in /etc/sysfs.conf.&lt;br /&gt;
&lt;br /&gt;
==Most common Features==&lt;br /&gt;
The most common settings are '''Press to Select''', '''sensitivity''', '''speed''' and '''scrolling'''.&lt;br /&gt;
&lt;br /&gt;
===Press to Select===&lt;br /&gt;
Press to Select allows you to tap the control stick which will simulate a left click. You can enable this feature by typing the following in to a terminal (you may need to be root):&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select}}&lt;br /&gt;
&lt;br /&gt;
Press to Select should now be enabled. You can disable it in a similar manner:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select}}&lt;br /&gt;
&lt;br /&gt;
You can use this script to automate the operation&lt;br /&gt;
&lt;br /&gt;
        #!/bin/bash&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; = &amp;quot;1&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;Turning on tap on TrackPoint&amp;quot;&lt;br /&gt;
                echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
                exit 0&lt;br /&gt;
        fi&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; = &amp;quot;0&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;Turning off tap on TrackPoint&amp;quot;&lt;br /&gt;
                echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
                exit 0&lt;br /&gt;
        fi&lt;br /&gt;
        echo -n &amp;quot;Tap status: &amp;quot;&lt;br /&gt;
        cat /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
===Sensitivity &amp;amp; Speed===&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/sensitivity}}&lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting, add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots.&lt;br /&gt;
&lt;br /&gt;
===Scrolling===&lt;br /&gt;
====Using a kernel prior to 2.6.11====&lt;br /&gt;
The scrolling action is essentially the same as is used in the TrackPoint Windows drivers. To enable this feature, type the following in to a terminal (you may need to be root): &lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /proc/trackpoint/scroll}}&lt;br /&gt;
&lt;br /&gt;
Then press the middle button and push the stick up and down to scroll. Similarly, to disable scrolling:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /proc/trackpoint/scroll}}&lt;br /&gt;
&lt;br /&gt;
====Using the X server (kernel 2.6.11+)====&lt;br /&gt;
The scroll setting has been removed from the trackpoint driver in kernel versions 2.6.11 and above. Scroll emulation should now be handled in the X server.&lt;br /&gt;
&lt;br /&gt;
A nice side effect of that is, that middle button scrolling applies to any mouse and not just the TrackPoint interface, which can be a quite handy feature for desktop computers or people who prefer to use an external mouse, especially when scrolling through long lists or needing to use horizontal scrolling with a mouse which has only a vertical scroll wheel.&lt;br /&gt;
&lt;br /&gt;
The necessary functionality, known  as &amp;quot;EmulateWheelTimeout&amp;quot; allowing to use button 2 for a middle click, wasn't implemented in Xorg prior to 6.9/7.0. However, there was a patch included in most distributions packages of Xorg, which was announced [http://www.mail-archive.com/devel@xfree86.org/msg03333.html here]. You can find an updated version of the package in the experimental branch of {{Debian}} or try to build the mouse driver yourself with the information in the announcement. This has successfully been tried with FC3's 6.8.2 packages.&lt;br /&gt;
&lt;br /&gt;
Once this functionality is in the X.org, add these lines to your TrackPoint configuration section in {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
        Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;on&amp;quot;&lt;br /&gt;
        Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It may also be necessary to add these lines:&lt;br /&gt;
&lt;br /&gt;
        Option &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot;&lt;br /&gt;
        Option &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
&lt;br /&gt;
which specify which buttons are mapped to motion in the vertical (Y) and horizontal (X) directions, respectively, in wheel emulation mode (see http://www.xfree86.org/current/mouse.4.html).&lt;br /&gt;
&lt;br /&gt;
{{HINT| Use the program &amp;quot;xev&amp;quot; to see, what mouse button identifiers are sent by your mouse/touchpad/trackpoint.&amp;lt;br /&amp;gt;You might want to try: &amp;quot;xev &amp;amp;#124; grep button&amp;quot;}}&lt;br /&gt;
{{HINT| If it does not work see if evdev is installed and remove it. On gentoo do the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
eix xf86-input-evdev&amp;lt;br /&amp;gt;&lt;br /&gt;
emerge -C xf86-input-evdev&amp;lt;br /&amp;gt;&lt;br /&gt;
and then remove the evdev flag in make.conf INPUT_DEVICES}}&lt;br /&gt;
&lt;br /&gt;
So, a complete mouse section, that implements this nicely and works very well on my R51, even with a simultaneously connected USB mouse, looks like that (tried out today, 20th of September, 2006 on Dapper):&lt;br /&gt;
&lt;br /&gt;
  Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;Configured Mouse&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;mouse&amp;quot;&lt;br /&gt;
        Option      &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Device&amp;quot;              &amp;quot;/dev/input/mice&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Protocol&amp;quot;            &amp;quot;ExplorerPS/2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Emulate3Buttons&amp;quot;     &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Emulate3TimeOut&amp;quot;     &amp;quot;50&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheel&amp;quot;        &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelTimeOut&amp;quot; &amp;quot;200&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelButton&amp;quot;  &amp;quot;2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;YAxisMapping&amp;quot;        &amp;quot;4 5&amp;quot;&lt;br /&gt;
        Option      &amp;quot;XAxisMapping&amp;quot;        &amp;quot;6 7&amp;quot;&lt;br /&gt;
        Option      &amp;quot;ZAxisMapping&amp;quot;        &amp;quot;4 5&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
&lt;br /&gt;
The mappings for Y and Z are the same, since the &amp;quot;Z-Axis&amp;quot; refers to actual hardware scrolling wheels which usually scroll the screen along the Y-Axis. If there is no hardware scrolling wheel present, horizontal and vertical scrolling using the TrackPoint work fine without the Z-Axis line.&lt;br /&gt;
&lt;br /&gt;
Now restart X and hold down button 2 and move the mouse to scroll, or just press and release button 2 for a middle click.&lt;br /&gt;
&lt;br /&gt;
To make this work with the synaptics driver for the touchpad, you can add&lt;br /&gt;
        Option      &amp;quot;GuestMouseOff&amp;quot; &amp;quot;1&amp;quot;&lt;br /&gt;
to the synaptics device section. This will make the synaptics driver ignore the Trackpoint, so it will be handled by the mouse driver. This allowed me to disable the touchpad while making the TrackPoint work like it should.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| With the above mouse section in my xorg.conf all this works like a charm: &lt;br /&gt;
*I can press the wheel on my external USB mouse and move the mouse up and down for scrolling&lt;br /&gt;
*or I can just use the wheel on the external mouse for scrolling&lt;br /&gt;
*or pressing the MMB button of the trackpoint and use the trackpoint for scrolling.&lt;br /&gt;
*Even horizontal scrolling works automagically in Konqueror, for Firefox/Opera see below.&lt;br /&gt;
&lt;br /&gt;
Simultaneously I can use &lt;br /&gt;
*a press on the external mouse's wheel &lt;br /&gt;
*or the MMB of the trackpoint&lt;br /&gt;
&lt;br /&gt;
for pasting the buffer. Lovely! :) }}&lt;br /&gt;
&lt;br /&gt;
{{HINT| If you don't use the middle-mouse-button for pasting and sometimes pasting things by mistake while scrolling (witch is really odd) simply set the &amp;quot;EmulateWheelTimeOut&amp;quot; to &amp;quot;1&amp;quot; as a (bloody) workaround. Middle click will only possible with pressing left and right button simultaneously!}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== EmulateWheelTimeout temporarily broken (-&amp;gt; fix for Ubuntu Dapper) ===== &lt;br /&gt;
&lt;br /&gt;
Unfortunately, there was a regression so that EmulateWheelTimeout was broken in X.org 6.9.0, and fixed&lt;br /&gt;
on March 20th, 2006. &lt;br /&gt;
You can see the [https://bugs.freedesktop.org/show_bug.cgi?id=5071 primary bug report] here, and also reports on the [http://qa.mandriva.com/show_bug.cgi?id=21196 Mandriva] and [http://lists.debian.org/debian-x/2006/01/msg00249.html Debian] ([http://bugs.debian.org/346098 #346098], [http://bugs.debian.org/320136 #320136]) packages.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this bug is still present in Ubuntu Dapper Drake's xserver-xorg-input-mouse package (version 1.0.3.1+cvs.20060109-0ubuntu1)!&lt;br /&gt;
&lt;br /&gt;
{{HINT|xserver-xorg-input-mouse (version 1.0.3.1+cvs.20060109-0ubuntu1.1) is in dapper-updates since July 3rd, 2006. You don't need to patch it anymore.}}&lt;br /&gt;
&lt;br /&gt;
Use the following procedure to make it (middle button scrolling &amp;amp; middle button pasting) work:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cd /desired/path &amp;amp;&amp;amp; mkdir tmp &amp;amp;&amp;amp; cd tmp}} (create temporary directory somewhere)&lt;br /&gt;
:{{cmduser|sudo nano /etc/apt/sources.list}} (insert/uncomment the deb-src lines, save and exit)&lt;br /&gt;
:{{cmduser|sudo apt-get update}}&lt;br /&gt;
:{{cmduser|apt-get source xserver-xorg-input-mice}} (in order to get the source code)&lt;br /&gt;
:{{cmduser|sudo aptitude install xserver-xorg-dev}} (this package and the packages it depends on are needed in order to compile the source code, use aptitude for easy removal later on)&lt;br /&gt;
:{{cmduser|cd xserver-xorg-input-mouse-1.0.3.1+cvs.20060109/}}&lt;br /&gt;
:{{cmduser|wget http://librarian.launchpad.net/2639933/xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2.debdiff}} (downloads the patch that fixes the bug)&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2.debdiff}} (applies the bug fix)&lt;br /&gt;
:{{cmduser|fakeroot dpkg-buildpackage}} (rebuilds the package... watch out for errors and install other missing packages)&lt;br /&gt;
:{{cmduser|sudo dpkg -i ../xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2_i386.deb}} (installs the rebuilt built package)&lt;br /&gt;
:{{cmduser|sudo aptitude remove xserver-xorg-dev}} (removes the packages needed to rebuild the package)&lt;br /&gt;
&lt;br /&gt;
Hope it works for you, it did work for me!&lt;br /&gt;
CrypTom&lt;br /&gt;
&lt;br /&gt;
===== Older versions of X.org =====&lt;br /&gt;
&lt;br /&gt;
For older versions of Xorg or for Xfree86 ({{path|/etc/X11/XF86Config}}) try this:&lt;br /&gt;
&lt;br /&gt;
       Option          &amp;quot;Emulate3Buttons&amp;quot;       &amp;quot;true&amp;quot;&lt;br /&gt;
       Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;true&amp;quot;&lt;br /&gt;
       Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now restart X and hold down button two and move the mouse for scrolling. To get a middle click, press buttons 1 and 3 simultaneously.&lt;br /&gt;
&lt;br /&gt;
==Soft Transparent Mode==&lt;br /&gt;
If you wish to connect a special device to the external PS/2 port, you should consider using &amp;quot;Soft Transparent Mode&amp;quot; so that the TrackPoint controller does not interpret any commands sent to the external PS/2 port. You can enable soft transparent mode by typing the following in to a terminal:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/transparent}}&lt;br /&gt;
&lt;br /&gt;
Disabling soft transparent mode is similar:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/transparent}}&lt;br /&gt;
&lt;br /&gt;
==Modify trackpoint parameter permanently in trackpoint.h==&lt;br /&gt;
If you do not want to run a script to reconfigure the trackpoint&lt;br /&gt;
you can change the default settings in the trackpoint header file that is located in&lt;br /&gt;
 /usr/src/&amp;lt;KERNEL_VERSION&amp;gt;/drivers/input/mouse/trackpoint.h.&lt;br /&gt;
&lt;br /&gt;
First you must convert the values (decimal numbers) you normaly echo to /sys/[...] to hex:&lt;br /&gt;
&lt;br /&gt;
'''echo -e 'obase=16;&amp;lt;DECIMAL_NUMBER&amp;gt;' | bc'''&lt;br /&gt;
&lt;br /&gt;
Then simply replace the default hex values in trackpoint.h, run 'make &amp;amp;&amp;amp; make modules_install' to recompile and install psmouse.ko (should be compiled as module)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example patch (speed=100, sensitivity=190, press_to_select=1):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 --- trackpoint.h.orig   2006-01-17 16:18:30.000000000 +0100&lt;br /&gt;
+++ trackpoint.h        2006-01-17 16:25:47.000000000 +0100&lt;br /&gt;
@@ -108,9 +108,9 @@&lt;br /&gt;
 /*&lt;br /&gt;
  * Default power on values&lt;br /&gt;
  */&lt;br /&gt;
-#define TP_DEF_SENS            0x80&lt;br /&gt;
+#define TP_DEF_SENS            0xBE&lt;br /&gt;
 #define TP_DEF_INERTIA         0x06&lt;br /&gt;
-#define TP_DEF_SPEED           0x61&lt;br /&gt;
+#define TP_DEF_SPEED           0x64&lt;br /&gt;
 #define TP_DEF_REACH           0x0A&lt;br /&gt;
&lt;br /&gt;
 #define TP_DEF_DRAGHYS         0xFF&lt;br /&gt;
@@ -123,7 +123,7 @@&lt;br /&gt;
&lt;br /&gt;
 /* Toggles */&lt;br /&gt;
 #define TP_DEF_MB              0x00&lt;br /&gt;
-#define TP_DEF_PTSON           0x00&lt;br /&gt;
+#define TP_DEF_PTSON           0x01&lt;br /&gt;
 #define TP_DEF_SKIPBACK                0x00&lt;br /&gt;
 #define TP_DEF_EXT_DEV         0x01&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure firefox for using trackpoint horizontal scrolling==&lt;br /&gt;
Vertical Scrolling seems to work out of the box in firefox if you followed the steps above.&lt;br /&gt;
Anyway, there is a problem when you don't scroll exactly vertical, because horizontal scrolling turns into&lt;br /&gt;
browser BACK/FORWARD commands. &lt;br /&gt;
You can avoid this by typing about:config + ENTER in the address bar of firefox.&lt;br /&gt;
You have to adjust the following options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.action = 3;&lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.numlines = 1; &lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;&lt;br /&gt;
&lt;br /&gt;
mousewheel.horizscroll.withnokey.action = 0;&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines = 1;&lt;br /&gt;
mousewheel.horizscroll.withnokey.sysnumlines = true;&lt;br /&gt;
&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.action = 1;&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.numlines = 1;&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FWIW, you can change only the following value to remove the browser BACK/FORWARD commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mousewheel.horizscroll.withnokey.action = 0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With that, you can still go BACK/FORWARD by pressing together the shift or the alt key, while with the control key you increase or decrease the font size.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|This appears to be fixed by default in Firefox 3.}}&lt;br /&gt;
&lt;br /&gt;
==Configure Opera for using trackpoint horizontal scrolling==&lt;br /&gt;
You'll experience the same annoying problem with the popular browser Opera. To fix this you need to edit the configfile &amp;lt;tt&amp;gt;standard_mouse.ini&amp;lt;/tt&amp;gt; in e.g. /usr/share/opera/ini/ (Debian) or /opt/opera/share/opera/ini/ (Gentoo) and comment out the following lines&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button6                                                        = Back&lt;br /&gt;
Button7                                                        = Forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
so they look like that&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;Button6                                                        = Back&lt;br /&gt;
;Button7                                                        = Forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Remember, Button6 and Button7 do not so coincidental correspond with our X configuration we know from above:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Option &amp;quot;YAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
After this change you will be able to scroll vertically and horizontally with your middle button.&lt;br /&gt;
&lt;br /&gt;
==Fixing trackpoint under Ubuntu 7.10 Gutsy Gibbon==&lt;br /&gt;
===Using trackpoint deamon===&lt;br /&gt;
My default Ubuntu Gutsy (running on an X61s) would give the following error messages when running the trackpoint daemon. Running&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     /etc/init.d/trackpoint restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
caused a bunch of error messages, as the wrong device was in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        /etc/trackpoint/trackpoint.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I fixed this by changing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        echo -n  &amp;gt; /sys/devices/platform/i8042/serio0/serio2/sensitivity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        echo -n  &amp;gt; /sys/devices/platform/i8042/serio1/sensitivity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
in /etc/trackpoint/trackpoint.conf.&lt;br /&gt;
&lt;br /&gt;
In addition, Ubuntu ran the appropriate /etc/init.d/trackpoint script on booting, but would give a bunch of errors (which, oddly, I could never find in any of the log files).&lt;br /&gt;
&lt;br /&gt;
It seems that it was running the scripts too early in the boot sequence. The Gutsy package provided&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    /etc/rc2.d/S20trackpoint&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so I renamed this to S99trackpoint (and in all the other rc.? directories) and it now works on boot.&lt;br /&gt;
&lt;br /&gt;
===Editing the kernel config files===&lt;br /&gt;
Another way of configuring the trackpoint without using the trackpoint daemon is to edit the values of the trackpoint files which, BTW, are located in&lt;br /&gt;
 /sys/devices/platform/i8042/serio1/serio2.&lt;br /&gt;
&lt;br /&gt;
The script should be executed during boot. This can be done in an init script (e.g. /etc/bootmisc.sh in some distros)&lt;br /&gt;
&lt;br /&gt;
Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# configuration du trackpoint&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# vitesse&lt;br /&gt;
echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed&lt;br /&gt;
&lt;br /&gt;
# sensibilité&lt;br /&gt;
echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
# press to select&lt;br /&gt;
echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===An Ubuntu/Fedora example===&lt;br /&gt;
Another script that I've created seems to work with all versions of Ubuntu/Fedora that I've been able to try (comment out and uncomment the appropriate lines for fedora/ubuntu as necessary)&lt;br /&gt;
Place in /etc/rc.local or equivalent for your distro:&lt;br /&gt;
&lt;br /&gt;
Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#*************************&lt;br /&gt;
## START TRACKPOINT CONFIG&lt;br /&gt;
#*************************&lt;br /&gt;
&lt;br /&gt;
# For fedora (the slash after &amp;quot;speed&amp;quot; is returned)&lt;br /&gt;
# TRACKPATH=$(find /sys -print0 | grep -FzZ &amp;quot;/serio2/speed&amp;quot; | sed s^speed/^^)&lt;br /&gt;
&lt;br /&gt;
# For ubuntu (the slash after &amp;quot;speed&amp;quot; is not returned)&lt;br /&gt;
TRACKPATH=$(find /sys -print0 | grep -FzZ &amp;quot;/serio2/speed&amp;quot; | sed s/speed//)&lt;br /&gt;
&lt;br /&gt;
## Select &amp;quot;press_to_select&amp;quot; on the trackpoint input device&lt;br /&gt;
## We need to specify the TRACKPATH above because the device under &amp;quot;serio#&amp;quot;&lt;br /&gt;
## changes between system boots. (We first test to see if the file we want&lt;br /&gt;
## to modify exists, if it does, we make the change&lt;br /&gt;
#[ -f $TRACKPATH/press_to_select ] &amp;amp;&amp;amp; echo -n 1 &amp;gt; $TRACKPATH/press_to_select&lt;br /&gt;
&lt;br /&gt;
## Adjust the speed setting of the trackpoint input device&lt;br /&gt;
[ -f $TRACKPATH/speed ] &amp;amp;&amp;amp; echo -n 120 &amp;gt; $TRACKPATH/speed &lt;br /&gt;
## Adjust the sensitivity setting of the trackpoint input device&lt;br /&gt;
[ -f $TRACKPATH/sensitivity ] &amp;amp;&amp;amp; echo -n 200 &amp;gt; $TRACKPATH/sensitivity&lt;br /&gt;
&lt;br /&gt;
#***********************&lt;br /&gt;
## END TRACKPOINT CONFIG&lt;br /&gt;
#***********************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Eater</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=39771</id>
		<title>How to configure the TrackPoint</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=39771"/>
		<updated>2008-11-17T22:00:17Z</updated>

		<summary type="html">&lt;p&gt;Eater: /* TrackPoint under Ubuntu 8.10 using HAL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |The [[Patch to enable advanced trackpoint configuration|kernel trackpoint driver]] is controlled by echoing values to special files. Common configuration options are outlined below.&lt;br /&gt;
{{NOTE|&lt;br /&gt;
*With kernels 2.6.19 and above config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.13 (inclusive) to 2.6.19 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio0/serio2&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.11 (inclusive) to 2.6.13 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio0&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.9 (inclusive) to 2.6.11 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/proc/trackpoint&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*Prior to kernel 2.6.9, configuration was not done through files but through command-line options to the psmouse module.  (Note this means you must compile psmouse as a module!)  See http://stephen.evanchik.com/node/16.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==General Configuration==&lt;br /&gt;
The configuration options are reflected by the files you can find in {{path|/sys/devices/platform/i8042/serio0/serio2}}. See the [[Patch to enable advanced trackpoint configuration|TrackPoint driver page]] for a complete list.&lt;br /&gt;
Configuration is done by echoing the appropriate values into these special files.&lt;br /&gt;
&lt;br /&gt;
If you want to set the sysfs parameters at boot, you can use the [http://linux-diag.sourceforge.net/Sysfsutils.html sysfsutils] and put the preferred value in /etc/sysfs.conf.&lt;br /&gt;
&lt;br /&gt;
==Most common Features==&lt;br /&gt;
The most common settings are '''Press to Select''', '''sensitivity''', '''speed''' and '''scrolling'''.&lt;br /&gt;
&lt;br /&gt;
===Press to Select===&lt;br /&gt;
Press to Select allows you to tap the control stick which will simulate a left click. You can enable this feature by typing the following in to a terminal (you may need to be root):&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select}}&lt;br /&gt;
&lt;br /&gt;
Press to Select should now be enabled. You can disable it in a similar manner:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select}}&lt;br /&gt;
&lt;br /&gt;
You can use this script to automate the operation&lt;br /&gt;
&lt;br /&gt;
        #!/bin/bash&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; = &amp;quot;1&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;Turning on tap on TrackPoint&amp;quot;&lt;br /&gt;
                echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
                exit 0&lt;br /&gt;
        fi&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; = &amp;quot;0&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;Turning off tap on TrackPoint&amp;quot;&lt;br /&gt;
                echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
                exit 0&lt;br /&gt;
        fi&lt;br /&gt;
        echo -n &amp;quot;Tap status: &amp;quot;&lt;br /&gt;
        cat /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
===Sensitivity &amp;amp; Speed===&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/sensitivity}}&lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting , add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots.&lt;br /&gt;
&lt;br /&gt;
===Scrolling===&lt;br /&gt;
====Using a kernel prior to 2.6.11====&lt;br /&gt;
The scrolling action is essentially the same as is used in the TrackPoint Windows drivers. To enable this feature, type the following in to a terminal (you may need to be root): &lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /proc/trackpoint/scroll}}&lt;br /&gt;
&lt;br /&gt;
Then press the middle button and push the stick up and down to scroll. Similarly, to disable scrolling:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /proc/trackpoint/scroll}}&lt;br /&gt;
&lt;br /&gt;
====Using the X server (kernel 2.6.11+)====&lt;br /&gt;
The scroll setting has been removed from the trackpoint driver in kernel versions 2.6.11 and above. Scroll emulation should now be handled in the X server.&lt;br /&gt;
&lt;br /&gt;
A nice side effect of that is, that middle button scrolling applies to any mouse and not just the TrackPoint interface, which can be a quite handy feature for desktop computers or people who prefer to use an external mouse, especially when scrolling through long lists or needing to use horizontal scrolling with a mouse which has only a vertical scroll wheel.&lt;br /&gt;
&lt;br /&gt;
The necessary functionality, known  as &amp;quot;EmulateWheelTimeout&amp;quot; allowing to use button 2 for a middle click, wasn't implemented in Xorg prior to 6.9/7.0. However, there was a patch included in most distributions packages of Xorg, which was announced [http://www.mail-archive.com/devel@xfree86.org/msg03333.html here]. You can find an updated version of the package in the experimental branch of {{Debian}} or try to build the mouse driver yourself with the information in the announcement. This has successfully been tried with FC3's 6.8.2 packages.&lt;br /&gt;
&lt;br /&gt;
Once this functionality is in the X.org, add these lines to your TrackPoint configuration section in {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
        Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;on&amp;quot;&lt;br /&gt;
        Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It may also be necessary to add these lines:&lt;br /&gt;
&lt;br /&gt;
        Option &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot;&lt;br /&gt;
        Option &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
&lt;br /&gt;
which specify which buttons are mapped to motion in the vertical (Y) and horizontal (X) directions, respectively, in wheel emulation mode (see http://www.xfree86.org/current/mouse.4.html).&lt;br /&gt;
&lt;br /&gt;
{{HINT| Use the program &amp;quot;xev&amp;quot; to see, what mouse button identifiers are sent by your mouse/touchpad/trackpoint.&amp;lt;br /&amp;gt;You might want to try: &amp;quot;xev &amp;amp;#124; grep button&amp;quot;}}&lt;br /&gt;
{{HINT| If it does not work see if evdev is installed and remove it. On gentoo do the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
eix xf86-input-evdev&amp;lt;br /&amp;gt;&lt;br /&gt;
emerge -C xf86-input-evdev&amp;lt;br /&amp;gt;&lt;br /&gt;
and then remove the evdev flag in make.conf INPUT_DEVICES}}&lt;br /&gt;
&lt;br /&gt;
So, a complete mouse section, that implements this nicely and works very well on my R51, even with a simultaneously connected USB mouse, looks like that (tried out today, 20th of September, 2006 on Dapper):&lt;br /&gt;
&lt;br /&gt;
  Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;Configured Mouse&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;mouse&amp;quot;&lt;br /&gt;
        Option      &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Device&amp;quot;              &amp;quot;/dev/input/mice&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Protocol&amp;quot;            &amp;quot;ExplorerPS/2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Emulate3Buttons&amp;quot;     &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Emulate3TimeOut&amp;quot;     &amp;quot;50&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheel&amp;quot;        &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelTimeOut&amp;quot; &amp;quot;200&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelButton&amp;quot;  &amp;quot;2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;YAxisMapping&amp;quot;        &amp;quot;4 5&amp;quot;&lt;br /&gt;
        Option      &amp;quot;XAxisMapping&amp;quot;        &amp;quot;6 7&amp;quot;&lt;br /&gt;
        Option      &amp;quot;ZAxisMapping&amp;quot;        &amp;quot;4 5&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
&lt;br /&gt;
The mappings for Y and Z are the same, since the &amp;quot;Z-Axis&amp;quot; refers to actual hardware scrolling wheels which usually scroll the screen along the Y-Axis. If there is no hardware scrolling wheel present, horizontal and vertical scrolling using the TrackPoint work fine without the Z-Axis line.&lt;br /&gt;
&lt;br /&gt;
Now restart X and hold down button 2 and move the mouse to scroll, or just press and release button 2 for a middle click.&lt;br /&gt;
&lt;br /&gt;
To make this work with the synaptics driver for the touchpad, you can add&lt;br /&gt;
        Option      &amp;quot;GuestMouseOff&amp;quot; &amp;quot;1&amp;quot;&lt;br /&gt;
to the synaptics device section. This will make the synaptics driver ignore the Trackpoint, so it will be handled by the mouse driver. This allowed me to disable the touchpad while making the TrackPoint work like it should.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| With the above mouse section in my xorg.conf all this works like a charm: &lt;br /&gt;
*I can press the wheel on my external USB mouse and move the mouse up and down for scrolling&lt;br /&gt;
*or I can just use the wheel on the external mouse for scrolling&lt;br /&gt;
*or pressing the MMB button of the trackpoint and use the trackpoint for scrolling.&lt;br /&gt;
*Even horizontal scrolling works automagically in Konqueror, for Firefox/Opera see below.&lt;br /&gt;
&lt;br /&gt;
Simultaneously I can use &lt;br /&gt;
*a press on the external mouse's wheel &lt;br /&gt;
*or the MMB of the trackpoint&lt;br /&gt;
&lt;br /&gt;
for pasting the buffer. Lovely! :) }}&lt;br /&gt;
&lt;br /&gt;
{{HINT| If you don't use the middle-mouse-button for pasting and sometimes pasting things by mistake while scrolling (witch is really odd) simply set the &amp;quot;EmulateWheelTimeOut&amp;quot; to &amp;quot;1&amp;quot; as a (bloody) workaround. Middle click will only possible with pressing left and right button simultaneously!}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== EmulateWheelTimeout temporarily broken (-&amp;gt; fix for Ubuntu Dapper) ===== &lt;br /&gt;
&lt;br /&gt;
Unfortunately, there was a regression so that EmulateWheelTimeout was broken in X.org 6.9.0, and fixed&lt;br /&gt;
on March 20th, 2006. &lt;br /&gt;
You can see the [https://bugs.freedesktop.org/show_bug.cgi?id=5071 primary bug report] here, and also reports on the [http://qa.mandriva.com/show_bug.cgi?id=21196 Mandriva] and [http://lists.debian.org/debian-x/2006/01/msg00249.html Debian] ([http://bugs.debian.org/346098 #346098], [http://bugs.debian.org/320136 #320136]) packages.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this bug is still present in Ubuntu Dapper Drake's xserver-xorg-input-mouse package (version 1.0.3.1+cvs.20060109-0ubuntu1)!&lt;br /&gt;
&lt;br /&gt;
{{HINT|xserver-xorg-input-mouse (version 1.0.3.1+cvs.20060109-0ubuntu1.1) is in dapper-updates since July 3rd, 2006. You don't need to patch it anymore.}}&lt;br /&gt;
&lt;br /&gt;
Use the following procedure to make it (middle button scrolling &amp;amp; middle button pasting) work:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cd /desired/path &amp;amp;&amp;amp; mkdir tmp &amp;amp;&amp;amp; cd tmp}} (create temporary directory somewhere)&lt;br /&gt;
:{{cmduser|sudo nano /etc/apt/sources.list}} (insert/uncomment the deb-src lines, save and exit)&lt;br /&gt;
:{{cmduser|sudo apt-get update}}&lt;br /&gt;
:{{cmduser|apt-get source xserver-xorg-input-mice}} (in order to get the source code)&lt;br /&gt;
:{{cmduser|sudo aptitude install xserver-xorg-dev}} (this package and the packages it depends on are needed in order to compile the source code, use aptitude for easy removal later on)&lt;br /&gt;
:{{cmduser|cd xserver-xorg-input-mouse-1.0.3.1+cvs.20060109/}}&lt;br /&gt;
:{{cmduser|wget http://librarian.launchpad.net/2639933/xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2.debdiff}} (downloads the patch that fixes the bug)&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2.debdiff}} (applies the bug fix)&lt;br /&gt;
:{{cmduser|fakeroot dpkg-buildpackage}} (rebuilds the package... watch out for errors and install other missing packages)&lt;br /&gt;
:{{cmduser|sudo dpkg -i ../xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2_i386.deb}} (installs the rebuilt built package)&lt;br /&gt;
:{{cmduser|sudo aptitude remove xserver-xorg-dev}} (removes the packages needed to rebuild the package)&lt;br /&gt;
&lt;br /&gt;
Hope it works for you, it did work for me!&lt;br /&gt;
CrypTom&lt;br /&gt;
&lt;br /&gt;
===== Older versions of X.org =====&lt;br /&gt;
&lt;br /&gt;
For older versions of Xorg or for Xfree86 ({{path|/etc/X11/XF86Config}}) try this:&lt;br /&gt;
&lt;br /&gt;
       Option          &amp;quot;Emulate3Buttons&amp;quot;       &amp;quot;true&amp;quot;&lt;br /&gt;
       Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;true&amp;quot;&lt;br /&gt;
       Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now restart X and hold down button two and move the mouse for scrolling. To get a middle click, press buttons 1 and 3 simultaneously.&lt;br /&gt;
&lt;br /&gt;
==Soft Transparent Mode==&lt;br /&gt;
If you wish to connect a special device to the external PS/2 port, you should consider using &amp;quot;Soft Transparent Mode&amp;quot; so that the TrackPoint controller does not interpret any commands sent to the external PS/2 port. You can enable soft transparent mode by typing the following in to a terminal:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/transparent}}&lt;br /&gt;
&lt;br /&gt;
Disabling soft transparent mode is similar:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/transparent}}&lt;br /&gt;
&lt;br /&gt;
==Modify trackpoint parameter permanently in trackpoint.h==&lt;br /&gt;
If you do not want to run a script to reconfigure the trackpoint&lt;br /&gt;
you can change the default settings in the trackpoint header file that is located in&lt;br /&gt;
 /usr/src/&amp;lt;KERNEL_VERSION&amp;gt;/drivers/input/mouse/trackpoint.h.&lt;br /&gt;
&lt;br /&gt;
First you must convert the values (decimal numbers) you normaly echo to /sys/[...] to hex:&lt;br /&gt;
&lt;br /&gt;
'''echo -e 'obase=16;&amp;lt;DECIMAL_NUMBER&amp;gt;' | bc'''&lt;br /&gt;
&lt;br /&gt;
Then simply replace the default hex values in trackpoint.h, run 'make &amp;amp;&amp;amp; make modules_install' to recompile and install psmouse.ko (should be compiled as module)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example patch (speed=100, sensitivity=190, press_to_select=1):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 --- trackpoint.h.orig   2006-01-17 16:18:30.000000000 +0100&lt;br /&gt;
+++ trackpoint.h        2006-01-17 16:25:47.000000000 +0100&lt;br /&gt;
@@ -108,9 +108,9 @@&lt;br /&gt;
 /*&lt;br /&gt;
  * Default power on values&lt;br /&gt;
  */&lt;br /&gt;
-#define TP_DEF_SENS            0x80&lt;br /&gt;
+#define TP_DEF_SENS            0xBE&lt;br /&gt;
 #define TP_DEF_INERTIA         0x06&lt;br /&gt;
-#define TP_DEF_SPEED           0x61&lt;br /&gt;
+#define TP_DEF_SPEED           0x64&lt;br /&gt;
 #define TP_DEF_REACH           0x0A&lt;br /&gt;
&lt;br /&gt;
 #define TP_DEF_DRAGHYS         0xFF&lt;br /&gt;
@@ -123,7 +123,7 @@&lt;br /&gt;
&lt;br /&gt;
 /* Toggles */&lt;br /&gt;
 #define TP_DEF_MB              0x00&lt;br /&gt;
-#define TP_DEF_PTSON           0x00&lt;br /&gt;
+#define TP_DEF_PTSON           0x01&lt;br /&gt;
 #define TP_DEF_SKIPBACK                0x00&lt;br /&gt;
 #define TP_DEF_EXT_DEV         0x01&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure firefox for using trackpoint horizontal scrolling==&lt;br /&gt;
Vertical Scrolling seems to work out of the box in firefox if you followed the steps above.&lt;br /&gt;
Anyway, there is a problem when you don't scroll exactly vertical, because horizontal scrolling turns into&lt;br /&gt;
browser BACK/FORWARD commands. &lt;br /&gt;
You can avoid this by typing about:config + ENTER in the address bar of firefox.&lt;br /&gt;
You have to adjust the following options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.action = 3;&lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.numlines = 1; &lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;&lt;br /&gt;
&lt;br /&gt;
mousewheel.horizscroll.withnokey.action = 0;&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines = 1;&lt;br /&gt;
mousewheel.horizscroll.withnokey.sysnumlines = true;&lt;br /&gt;
&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.action = 1;&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.numlines = 1;&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FWIW, you can change only the following value to remove the browser BACK/FORWARD commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mousewheel.horizscroll.withnokey.action = 0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With that, you can still go BACK/FORWARD by pressing together the shift or the alt key, while with the control key you increase or decrease the font size.&lt;br /&gt;
&lt;br /&gt;
==Configure Opera for using trackpoint horizontal scrolling==&lt;br /&gt;
You'll experience the same annoying problem with the popular browser Opera. To fix this you need to edit the configfile &amp;lt;tt&amp;gt;standard_mouse.ini&amp;lt;/tt&amp;gt; in e.g. /usr/share/opera/ini/ (Debian) or /opt/opera/share/opera/ini/ (Gentoo) and comment out the following lines&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button6                                                        = Back&lt;br /&gt;
Button7                                                        = Forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
so they look like that&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;Button6                                                        = Back&lt;br /&gt;
;Button7                                                        = Forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Remember, Button6 and Button7 do not so coincidental correspond with our X configuration we know from above:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Option &amp;quot;YAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
After this change you will be able to scroll vertically and horizontally with your middle button.&lt;br /&gt;
&lt;br /&gt;
==Fixing trackpoint under Ubuntu 7.10 Gutsy Gibbon==&lt;br /&gt;
===Using trackpoint deamon===&lt;br /&gt;
My default Ubuntu Gutsy (running on an X61s) would give the following error messages when running the trackpoint daemon. Running&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     /etc/init.d/trackpoint restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
caused a bunch of error messages, as the wrong device was in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        /etc/trackpoint/trackpoint.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I fixed this by changing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        echo -n  &amp;gt; /sys/devices/platform/i8042/serio0/serio2/sensitivity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        echo -n  &amp;gt; /sys/devices/platform/i8042/serio1/sensitivity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
in /etc/trackpoint/trackpoint.conf.&lt;br /&gt;
&lt;br /&gt;
In addition, Ubuntu ran the appropriate /etc/init.d/trackpoint script on booting, but would give a bunch of errors (which, oddly, I could never find in any of the log files).&lt;br /&gt;
&lt;br /&gt;
It seems that it was running the scripts too early in the boot sequence. The Gutsy package provided&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    /etc/rc2.d/S20trackpoint&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so I renamed this to S99trackpoint (and in all the other rc.? directories) and it now works on boot.&lt;br /&gt;
&lt;br /&gt;
===Editing the kernel config files===&lt;br /&gt;
Another way of configuring the trackpoint without using the trackpoint daemon is to edit the values of the trackpoint files which, BTW, are located in&lt;br /&gt;
 /sys/devices/platform/i8042/serio1/serio2.&lt;br /&gt;
&lt;br /&gt;
The script should be executed during boot. This can be done in an init script (e.g. /etc/bootmisc.sh in some distros)&lt;br /&gt;
&lt;br /&gt;
Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# configuration du trackpoint&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# vitesse&lt;br /&gt;
echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed&lt;br /&gt;
&lt;br /&gt;
# sensibilité&lt;br /&gt;
echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
# press to select&lt;br /&gt;
echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===An Ubuntu/Fedora example===&lt;br /&gt;
Another script that I've created seems to work with all versions of Ubuntu/Fedora that I've been able to try (comment out and uncomment the appropriate lines for fedora/ubuntu as necessary)&lt;br /&gt;
Place in /etc/rc.local or equivalent for your distro:&lt;br /&gt;
&lt;br /&gt;
Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#*************************&lt;br /&gt;
## START TRACKPOINT CONFIG&lt;br /&gt;
#*************************&lt;br /&gt;
&lt;br /&gt;
# For fedora (the slash after &amp;quot;speed&amp;quot; is returned)&lt;br /&gt;
# TRACKPATH=$(find /sys -print0 | grep -FzZ &amp;quot;/serio2/speed&amp;quot; | sed s^speed/^^)&lt;br /&gt;
&lt;br /&gt;
# For ubuntu (the slash after &amp;quot;speed&amp;quot; is not returned)&lt;br /&gt;
TRACKPATH=$(find /sys -print0 | grep -FzZ &amp;quot;/serio2/speed&amp;quot; | sed s/speed//)&lt;br /&gt;
&lt;br /&gt;
## Select &amp;quot;press_to_select&amp;quot; on the trackpoint input device&lt;br /&gt;
## We need to specify the TRACKPATH above because the device under &amp;quot;serio#&amp;quot;&lt;br /&gt;
## changes between system boots. (We first test to see if the file we want&lt;br /&gt;
## to modify exists, if it does, we make the change&lt;br /&gt;
#[ -f $TRACKPATH/press_to_select ] &amp;amp;&amp;amp; echo -n 1 &amp;gt; $TRACKPATH/press_to_select&lt;br /&gt;
&lt;br /&gt;
## Adjust the speed setting of the trackpoint input device&lt;br /&gt;
[ -f $TRACKPATH/speed ] &amp;amp;&amp;amp; echo -n 120 &amp;gt; $TRACKPATH/speed &lt;br /&gt;
## Adjust the sensitivity setting of the trackpoint input device&lt;br /&gt;
[ -f $TRACKPATH/sensitivity ] &amp;amp;&amp;amp; echo -n 200 &amp;gt; $TRACKPATH/sensitivity&lt;br /&gt;
&lt;br /&gt;
#***********************&lt;br /&gt;
## END TRACKPOINT CONFIG&lt;br /&gt;
#***********************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TrackPoint under Ubuntu 8.10 using HAL==&lt;br /&gt;
&lt;br /&gt;
Because Ubuntu 8.10 uses HAL you must do the following to get the scrolling working:&lt;br /&gt;
(see: http://forum.ubuntuusers.de/topic/mouse-wheel-emulation-in-xorg.conf/?highlight=hal+trackpoint#post-1558282 )&lt;br /&gt;
&lt;br /&gt;
Create the file '''/etc/hal/fdi/policy/mouse-wheel.fdi''' as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelTimeout&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;200&amp;lt;/merge&amp;gt;&lt;br /&gt;
&amp;lt;/match&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note : I needed to reboot my TP for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
https://wiki.ubuntu.com/X/Config&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: After setting this up, scrolling seems to fail once in a while after resuming from suspend. Re-suspending and then re-resuming causes it to work again. I don't know why this might be.&lt;/div&gt;</summary>
		<author><name>Eater</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=39770</id>
		<title>How to configure the TrackPoint</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=39770"/>
		<updated>2008-11-17T21:51:26Z</updated>

		<summary type="html">&lt;p&gt;Eater: /* TrackPoint under Ubuntu 8.10 using HAL */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| width=&amp;quot;100%&amp;quot;&lt;br /&gt;
|style=&amp;quot;vertical-align:top;padding-right:20px;width:10px;white-space:nowrap;&amp;quot; | __TOC__&lt;br /&gt;
|style=&amp;quot;vertical-align:top&amp;quot; |The [[Patch to enable advanced trackpoint configuration|kernel trackpoint driver]] is controlled by echoing values to special files. Common configuration options are outlined below.&lt;br /&gt;
{{NOTE|&lt;br /&gt;
*With kernels 2.6.19 and above config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.13 (inclusive) to 2.6.19 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio0/serio2&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.11 (inclusive) to 2.6.13 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/sys/devices/platform/i8042/serio0&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*With kernels 2.6.9 (inclusive) to 2.6.11 (exclusive) config files for this driver are located in &amp;lt;tt&amp;gt;/proc/trackpoint&amp;lt;/tt&amp;gt;.&lt;br /&gt;
*Prior to kernel 2.6.9, configuration was not done through files but through command-line options to the psmouse module.  (Note this means you must compile psmouse as a module!)  See http://stephen.evanchik.com/node/16.&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==General Configuration==&lt;br /&gt;
The configuration options are reflected by the files you can find in {{path|/sys/devices/platform/i8042/serio0/serio2}}. See the [[Patch to enable advanced trackpoint configuration|TrackPoint driver page]] for a complete list.&lt;br /&gt;
Configuration is done by echoing the appropriate values into these special files.&lt;br /&gt;
&lt;br /&gt;
If you want to set the sysfs parameters at boot, you can use the [http://linux-diag.sourceforge.net/Sysfsutils.html sysfsutils] and put the preferred value in /etc/sysfs.conf.&lt;br /&gt;
&lt;br /&gt;
==Most common Features==&lt;br /&gt;
The most common settings are '''Press to Select''', '''sensitivity''', '''speed''' and '''scrolling'''.&lt;br /&gt;
&lt;br /&gt;
===Press to Select===&lt;br /&gt;
Press to Select allows you to tap the control stick which will simulate a left click. You can enable this feature by typing the following in to a terminal (you may need to be root):&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select}}&lt;br /&gt;
&lt;br /&gt;
Press to Select should now be enabled. You can disable it in a similar manner:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select}}&lt;br /&gt;
&lt;br /&gt;
You can use this script to automate the operation&lt;br /&gt;
&lt;br /&gt;
        #!/bin/bash&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; = &amp;quot;1&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;Turning on tap on TrackPoint&amp;quot;&lt;br /&gt;
                echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
                exit 0&lt;br /&gt;
        fi&lt;br /&gt;
        if [ &amp;quot;$1&amp;quot; = &amp;quot;0&amp;quot; ]; then&lt;br /&gt;
                echo &amp;quot;Turning off tap on TrackPoint&amp;quot;&lt;br /&gt;
                echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
                exit 0&lt;br /&gt;
        fi&lt;br /&gt;
        echo -n &amp;quot;Tap status: &amp;quot;&lt;br /&gt;
        cat /sys/devices/platform/i8042/serio0/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
===Sensitivity &amp;amp; Speed===&lt;br /&gt;
Adjusting the speed and sensitivity of the TrackPoint requires echoing a value between 0 and 255 into the appropriate file. For example, for a speed of 120 and a sensitivity of 250, type the following into a terminal:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/sensitivity}}&lt;br /&gt;
&lt;br /&gt;
Feel free to experiment with your settings until you find a combination that is comfortable.&lt;br /&gt;
&lt;br /&gt;
When you satisfy your setting , add the two lines into /etc/rc.d/rc.local in order to avoid restoring the default setting every time the system reboots.&lt;br /&gt;
&lt;br /&gt;
===Scrolling===&lt;br /&gt;
====Using a kernel prior to 2.6.11====&lt;br /&gt;
The scrolling action is essentially the same as is used in the TrackPoint Windows drivers. To enable this feature, type the following in to a terminal (you may need to be root): &lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /proc/trackpoint/scroll}}&lt;br /&gt;
&lt;br /&gt;
Then press the middle button and push the stick up and down to scroll. Similarly, to disable scrolling:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /proc/trackpoint/scroll}}&lt;br /&gt;
&lt;br /&gt;
====Using the X server (kernel 2.6.11+)====&lt;br /&gt;
The scroll setting has been removed from the trackpoint driver in kernel versions 2.6.11 and above. Scroll emulation should now be handled in the X server.&lt;br /&gt;
&lt;br /&gt;
A nice side effect of that is, that middle button scrolling applies to any mouse and not just the TrackPoint interface, which can be a quite handy feature for desktop computers or people who prefer to use an external mouse, especially when scrolling through long lists or needing to use horizontal scrolling with a mouse which has only a vertical scroll wheel.&lt;br /&gt;
&lt;br /&gt;
The necessary functionality, known  as &amp;quot;EmulateWheelTimeout&amp;quot; allowing to use button 2 for a middle click, wasn't implemented in Xorg prior to 6.9/7.0. However, there was a patch included in most distributions packages of Xorg, which was announced [http://www.mail-archive.com/devel@xfree86.org/msg03333.html here]. You can find an updated version of the package in the experimental branch of {{Debian}} or try to build the mouse driver yourself with the information in the announcement. This has successfully been tried with FC3's 6.8.2 packages.&lt;br /&gt;
&lt;br /&gt;
Once this functionality is in the X.org, add these lines to your TrackPoint configuration section in {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
        Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;on&amp;quot;&lt;br /&gt;
        Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
It may also be necessary to add these lines:&lt;br /&gt;
&lt;br /&gt;
        Option &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot;&lt;br /&gt;
        Option &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
&lt;br /&gt;
which specify which buttons are mapped to motion in the vertical (Y) and horizontal (X) directions, respectively, in wheel emulation mode (see http://www.xfree86.org/current/mouse.4.html).&lt;br /&gt;
&lt;br /&gt;
{{HINT| Use the program &amp;quot;xev&amp;quot; to see, what mouse button identifiers are sent by your mouse/touchpad/trackpoint.&amp;lt;br /&amp;gt;You might want to try: &amp;quot;xev &amp;amp;#124; grep button&amp;quot;}}&lt;br /&gt;
{{HINT| If it does not work see if evdev is installed and remove it. On gentoo do the following:&amp;lt;br /&amp;gt;&lt;br /&gt;
eix xf86-input-evdev&amp;lt;br /&amp;gt;&lt;br /&gt;
emerge -C xf86-input-evdev&amp;lt;br /&amp;gt;&lt;br /&gt;
and then remove the evdev flag in make.conf INPUT_DEVICES}}&lt;br /&gt;
&lt;br /&gt;
So, a complete mouse section, that implements this nicely and works very well on my R51, even with a simultaneously connected USB mouse, looks like that (tried out today, 20th of September, 2006 on Dapper):&lt;br /&gt;
&lt;br /&gt;
  Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier  &amp;quot;Configured Mouse&amp;quot;&lt;br /&gt;
        Driver      &amp;quot;mouse&amp;quot;&lt;br /&gt;
        Option      &amp;quot;CorePointer&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Device&amp;quot;              &amp;quot;/dev/input/mice&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Protocol&amp;quot;            &amp;quot;ExplorerPS/2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Emulate3Buttons&amp;quot;     &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;Emulate3TimeOut&amp;quot;     &amp;quot;50&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheel&amp;quot;        &amp;quot;on&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelTimeOut&amp;quot; &amp;quot;200&amp;quot;&lt;br /&gt;
        Option      &amp;quot;EmulateWheelButton&amp;quot;  &amp;quot;2&amp;quot;&lt;br /&gt;
        Option      &amp;quot;YAxisMapping&amp;quot;        &amp;quot;4 5&amp;quot;&lt;br /&gt;
        Option      &amp;quot;XAxisMapping&amp;quot;        &amp;quot;6 7&amp;quot;&lt;br /&gt;
        Option      &amp;quot;ZAxisMapping&amp;quot;        &amp;quot;4 5&amp;quot;&lt;br /&gt;
  EndSection&lt;br /&gt;
&lt;br /&gt;
The mappings for Y and Z are the same, since the &amp;quot;Z-Axis&amp;quot; refers to actual hardware scrolling wheels which usually scroll the screen along the Y-Axis. If there is no hardware scrolling wheel present, horizontal and vertical scrolling using the TrackPoint work fine without the Z-Axis line.&lt;br /&gt;
&lt;br /&gt;
Now restart X and hold down button 2 and move the mouse to scroll, or just press and release button 2 for a middle click.&lt;br /&gt;
&lt;br /&gt;
To make this work with the synaptics driver for the touchpad, you can add&lt;br /&gt;
        Option      &amp;quot;GuestMouseOff&amp;quot; &amp;quot;1&amp;quot;&lt;br /&gt;
to the synaptics device section. This will make the synaptics driver ignore the Trackpoint, so it will be handled by the mouse driver. This allowed me to disable the touchpad while making the TrackPoint work like it should.&lt;br /&gt;
&lt;br /&gt;
{{NOTE| With the above mouse section in my xorg.conf all this works like a charm: &lt;br /&gt;
*I can press the wheel on my external USB mouse and move the mouse up and down for scrolling&lt;br /&gt;
*or I can just use the wheel on the external mouse for scrolling&lt;br /&gt;
*or pressing the MMB button of the trackpoint and use the trackpoint for scrolling.&lt;br /&gt;
*Even horizontal scrolling works automagically in Konqueror, for Firefox/Opera see below.&lt;br /&gt;
&lt;br /&gt;
Simultaneously I can use &lt;br /&gt;
*a press on the external mouse's wheel &lt;br /&gt;
*or the MMB of the trackpoint&lt;br /&gt;
&lt;br /&gt;
for pasting the buffer. Lovely! :) }}&lt;br /&gt;
&lt;br /&gt;
{{HINT| If you don't use the middle-mouse-button for pasting and sometimes pasting things by mistake while scrolling (witch is really odd) simply set the &amp;quot;EmulateWheelTimeOut&amp;quot; to &amp;quot;1&amp;quot; as a (bloody) workaround. Middle click will only possible with pressing left and right button simultaneously!}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===== EmulateWheelTimeout temporarily broken (-&amp;gt; fix for Ubuntu Dapper) ===== &lt;br /&gt;
&lt;br /&gt;
Unfortunately, there was a regression so that EmulateWheelTimeout was broken in X.org 6.9.0, and fixed&lt;br /&gt;
on March 20th, 2006. &lt;br /&gt;
You can see the [https://bugs.freedesktop.org/show_bug.cgi?id=5071 primary bug report] here, and also reports on the [http://qa.mandriva.com/show_bug.cgi?id=21196 Mandriva] and [http://lists.debian.org/debian-x/2006/01/msg00249.html Debian] ([http://bugs.debian.org/346098 #346098], [http://bugs.debian.org/320136 #320136]) packages.&lt;br /&gt;
&lt;br /&gt;
Unfortunately, this bug is still present in Ubuntu Dapper Drake's xserver-xorg-input-mouse package (version 1.0.3.1+cvs.20060109-0ubuntu1)!&lt;br /&gt;
&lt;br /&gt;
{{HINT|xserver-xorg-input-mouse (version 1.0.3.1+cvs.20060109-0ubuntu1.1) is in dapper-updates since July 3rd, 2006. You don't need to patch it anymore.}}&lt;br /&gt;
&lt;br /&gt;
Use the following procedure to make it (middle button scrolling &amp;amp; middle button pasting) work:&lt;br /&gt;
&lt;br /&gt;
:{{cmduser|cd /desired/path &amp;amp;&amp;amp; mkdir tmp &amp;amp;&amp;amp; cd tmp}} (create temporary directory somewhere)&lt;br /&gt;
:{{cmduser|sudo nano /etc/apt/sources.list}} (insert/uncomment the deb-src lines, save and exit)&lt;br /&gt;
:{{cmduser|sudo apt-get update}}&lt;br /&gt;
:{{cmduser|apt-get source xserver-xorg-input-mice}} (in order to get the source code)&lt;br /&gt;
:{{cmduser|sudo aptitude install xserver-xorg-dev}} (this package and the packages it depends on are needed in order to compile the source code, use aptitude for easy removal later on)&lt;br /&gt;
:{{cmduser|cd xserver-xorg-input-mouse-1.0.3.1+cvs.20060109/}}&lt;br /&gt;
:{{cmduser|wget http://librarian.launchpad.net/2639933/xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2.debdiff}} (downloads the patch that fixes the bug)&lt;br /&gt;
:{{cmduser|patch -p1 &amp;lt; xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2.debdiff}} (applies the bug fix)&lt;br /&gt;
:{{cmduser|fakeroot dpkg-buildpackage}} (rebuilds the package... watch out for errors and install other missing packages)&lt;br /&gt;
:{{cmduser|sudo dpkg -i ../xserver-xorg-input-mouse_1.0.3.1+cvs.20060109-0ubuntu2_i386.deb}} (installs the rebuilt built package)&lt;br /&gt;
:{{cmduser|sudo aptitude remove xserver-xorg-dev}} (removes the packages needed to rebuild the package)&lt;br /&gt;
&lt;br /&gt;
Hope it works for you, it did work for me!&lt;br /&gt;
CrypTom&lt;br /&gt;
&lt;br /&gt;
===== Older versions of X.org =====&lt;br /&gt;
&lt;br /&gt;
For older versions of Xorg or for Xfree86 ({{path|/etc/X11/XF86Config}}) try this:&lt;br /&gt;
&lt;br /&gt;
       Option          &amp;quot;Emulate3Buttons&amp;quot;       &amp;quot;true&amp;quot;&lt;br /&gt;
       Option          &amp;quot;EmulateWheel&amp;quot;          &amp;quot;true&amp;quot;&lt;br /&gt;
       Option          &amp;quot;EmulateWheelButton&amp;quot;    &amp;quot;2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Now restart X and hold down button two and move the mouse for scrolling. To get a middle click, press buttons 1 and 3 simultaneously.&lt;br /&gt;
&lt;br /&gt;
==Soft Transparent Mode==&lt;br /&gt;
If you wish to connect a special device to the external PS/2 port, you should consider using &amp;quot;Soft Transparent Mode&amp;quot; so that the TrackPoint controller does not interpret any commands sent to the external PS/2 port. You can enable soft transparent mode by typing the following in to a terminal:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/transparent}}&lt;br /&gt;
&lt;br /&gt;
Disabling soft transparent mode is similar:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 0 &amp;gt; /sys/devices/platform/i8042/serio0/serio2/transparent}}&lt;br /&gt;
&lt;br /&gt;
==Modify trackpoint parameter permanently in trackpoint.h==&lt;br /&gt;
If you do not want to run a script to reconfigure the trackpoint&lt;br /&gt;
you can change the default settings in the trackpoint header file that is located in&lt;br /&gt;
 /usr/src/&amp;lt;KERNEL_VERSION&amp;gt;/drivers/input/mouse/trackpoint.h.&lt;br /&gt;
&lt;br /&gt;
First you must convert the values (decimal numbers) you normaly echo to /sys/[...] to hex:&lt;br /&gt;
&lt;br /&gt;
'''echo -e 'obase=16;&amp;lt;DECIMAL_NUMBER&amp;gt;' | bc'''&lt;br /&gt;
&lt;br /&gt;
Then simply replace the default hex values in trackpoint.h, run 'make &amp;amp;&amp;amp; make modules_install' to recompile and install psmouse.ko (should be compiled as module)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example patch (speed=100, sensitivity=190, press_to_select=1):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 --- trackpoint.h.orig   2006-01-17 16:18:30.000000000 +0100&lt;br /&gt;
+++ trackpoint.h        2006-01-17 16:25:47.000000000 +0100&lt;br /&gt;
@@ -108,9 +108,9 @@&lt;br /&gt;
 /*&lt;br /&gt;
  * Default power on values&lt;br /&gt;
  */&lt;br /&gt;
-#define TP_DEF_SENS            0x80&lt;br /&gt;
+#define TP_DEF_SENS            0xBE&lt;br /&gt;
 #define TP_DEF_INERTIA         0x06&lt;br /&gt;
-#define TP_DEF_SPEED           0x61&lt;br /&gt;
+#define TP_DEF_SPEED           0x64&lt;br /&gt;
 #define TP_DEF_REACH           0x0A&lt;br /&gt;
&lt;br /&gt;
 #define TP_DEF_DRAGHYS         0xFF&lt;br /&gt;
@@ -123,7 +123,7 @@&lt;br /&gt;
&lt;br /&gt;
 /* Toggles */&lt;br /&gt;
 #define TP_DEF_MB              0x00&lt;br /&gt;
-#define TP_DEF_PTSON           0x00&lt;br /&gt;
+#define TP_DEF_PTSON           0x01&lt;br /&gt;
 #define TP_DEF_SKIPBACK                0x00&lt;br /&gt;
 #define TP_DEF_EXT_DEV         0x01&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure firefox for using trackpoint horizontal scrolling==&lt;br /&gt;
Vertical Scrolling seems to work out of the box in firefox if you followed the steps above.&lt;br /&gt;
Anyway, there is a problem when you don't scroll exactly vertical, because horizontal scrolling turns into&lt;br /&gt;
browser BACK/FORWARD commands. &lt;br /&gt;
You can avoid this by typing about:config + ENTER in the address bar of firefox.&lt;br /&gt;
You have to adjust the following options:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.action = 3;&lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.numlines = 1; &lt;br /&gt;
mousewheel.horizscroll.withcontrolkey.sysnumlines = true;&lt;br /&gt;
&lt;br /&gt;
mousewheel.horizscroll.withnokey.action = 0;&lt;br /&gt;
mousewheel.horizscroll.withnokey.numlines = 1;&lt;br /&gt;
mousewheel.horizscroll.withnokey.sysnumlines = true;&lt;br /&gt;
&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.action = 1;&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.numlines = 1;&lt;br /&gt;
mousewheel.horizscroll.withshiftkey.sysnumlines = true;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
FWIW, you can change only the following value to remove the browser BACK/FORWARD commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mousewheel.horizscroll.withnokey.action = 0;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With that, you can still go BACK/FORWARD by pressing together the shift or the alt key, while with the control key you increase or decrease the font size.&lt;br /&gt;
&lt;br /&gt;
==Configure Opera for using trackpoint horizontal scrolling==&lt;br /&gt;
You'll experience the same annoying problem with the popular browser Opera. To fix this you need to edit the configfile &amp;lt;tt&amp;gt;standard_mouse.ini&amp;lt;/tt&amp;gt; in e.g. /usr/share/opera/ini/ (Debian) or /opt/opera/share/opera/ini/ (Gentoo) and comment out the following lines&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Button6                                                        = Back&lt;br /&gt;
Button7                                                        = Forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
so they look like that&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;Button6                                                        = Back&lt;br /&gt;
;Button7                                                        = Forward&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Remember, Button6 and Button7 do not so coincidental correspond with our X configuration we know from above:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Option &amp;quot;YAxisMapping&amp;quot; &amp;quot;6 7&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
After this change you will be able to scroll vertically and horizontally with your middle button.&lt;br /&gt;
&lt;br /&gt;
==Fixing trackpoint under Ubuntu 7.10 Gutsy Gibbon==&lt;br /&gt;
===Using trackpoint deamon===&lt;br /&gt;
My default Ubuntu Gutsy (running on an X61s) would give the following error messages when running the trackpoint daemon. Running&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     /etc/init.d/trackpoint restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
caused a bunch of error messages, as the wrong device was in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        /etc/trackpoint/trackpoint.conf&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I fixed this by changing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        echo -n  &amp;gt; /sys/devices/platform/i8042/serio0/serio2/sensitivity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        echo -n  &amp;gt; /sys/devices/platform/i8042/serio1/sensitivity&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
in /etc/trackpoint/trackpoint.conf.&lt;br /&gt;
&lt;br /&gt;
In addition, Ubuntu ran the appropriate /etc/init.d/trackpoint script on booting, but would give a bunch of errors (which, oddly, I could never find in any of the log files).&lt;br /&gt;
&lt;br /&gt;
It seems that it was running the scripts too early in the boot sequence. The Gutsy package provided&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    /etc/rc2.d/S20trackpoint&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
so I renamed this to S99trackpoint (and in all the other rc.? directories) and it now works on boot.&lt;br /&gt;
&lt;br /&gt;
===Editing the kernel config files===&lt;br /&gt;
Another way of configuring the trackpoint without using the trackpoint daemon is to edit the values of the trackpoint files which, BTW, are located in&lt;br /&gt;
 /sys/devices/platform/i8042/serio1/serio2.&lt;br /&gt;
&lt;br /&gt;
The script should be executed during boot. This can be done in an init script (e.g. /etc/bootmisc.sh in some distros)&lt;br /&gt;
&lt;br /&gt;
Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#! /bin/sh&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# configuration du trackpoint&lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# vitesse&lt;br /&gt;
echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/speed&lt;br /&gt;
&lt;br /&gt;
# sensibilité&lt;br /&gt;
echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity &lt;br /&gt;
&lt;br /&gt;
# press to select&lt;br /&gt;
echo -n 1 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===An Ubuntu/Fedora example===&lt;br /&gt;
Another script that I've created seems to work with all versions of Ubuntu/Fedora that I've been able to try (comment out and uncomment the appropriate lines for fedora/ubuntu as necessary)&lt;br /&gt;
Place in /etc/rc.local or equivalent for your distro:&lt;br /&gt;
&lt;br /&gt;
Script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#*************************&lt;br /&gt;
## START TRACKPOINT CONFIG&lt;br /&gt;
#*************************&lt;br /&gt;
&lt;br /&gt;
# For fedora (the slash after &amp;quot;speed&amp;quot; is returned)&lt;br /&gt;
# TRACKPATH=$(find /sys -print0 | grep -FzZ &amp;quot;/serio2/speed&amp;quot; | sed s^speed/^^)&lt;br /&gt;
&lt;br /&gt;
# For ubuntu (the slash after &amp;quot;speed&amp;quot; is not returned)&lt;br /&gt;
TRACKPATH=$(find /sys -print0 | grep -FzZ &amp;quot;/serio2/speed&amp;quot; | sed s/speed//)&lt;br /&gt;
&lt;br /&gt;
## Select &amp;quot;press_to_select&amp;quot; on the trackpoint input device&lt;br /&gt;
## We need to specify the TRACKPATH above because the device under &amp;quot;serio#&amp;quot;&lt;br /&gt;
## changes between system boots. (We first test to see if the file we want&lt;br /&gt;
## to modify exists, if it does, we make the change&lt;br /&gt;
#[ -f $TRACKPATH/press_to_select ] &amp;amp;&amp;amp; echo -n 1 &amp;gt; $TRACKPATH/press_to_select&lt;br /&gt;
&lt;br /&gt;
## Adjust the speed setting of the trackpoint input device&lt;br /&gt;
[ -f $TRACKPATH/speed ] &amp;amp;&amp;amp; echo -n 120 &amp;gt; $TRACKPATH/speed &lt;br /&gt;
## Adjust the sensitivity setting of the trackpoint input device&lt;br /&gt;
[ -f $TRACKPATH/sensitivity ] &amp;amp;&amp;amp; echo -n 200 &amp;gt; $TRACKPATH/sensitivity&lt;br /&gt;
&lt;br /&gt;
#***********************&lt;br /&gt;
## END TRACKPOINT CONFIG&lt;br /&gt;
#***********************&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TrackPoint under Ubuntu 8.10 using HAL==&lt;br /&gt;
&lt;br /&gt;
Because Ubuntu 8.10 uses HAL you must do the following to get the scrolling working:&lt;br /&gt;
(see: http://forum.ubuntuusers.de/topic/mouse-wheel-emulation-in-xorg.conf/?highlight=hal+trackpoint#post-1558282 )&lt;br /&gt;
&lt;br /&gt;
Create the file '''/etc/hal/fdi/policy/mouse-wheel.fdi''' as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;match key=&amp;quot;info.product&amp;quot; string=&amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheel&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelButton&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;2&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.YAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;4 5&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.XAxisMapping&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;6 7&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.Emulate3Buttons&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;true&amp;lt;/merge&amp;gt;&lt;br /&gt;
 &amp;lt;merge key=&amp;quot;input.x11_options.EmulateWheelTimeout&amp;quot; type=&amp;quot;string&amp;quot;&amp;gt;200&amp;lt;/merge&amp;gt;&lt;br /&gt;
&amp;lt;/match&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note : I needed to reboot my TP for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
https://wiki.ubuntu.com/X/Config&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Scrolling seems to fail once in a while after resuming from suspend. Re-suspending and then re-resuming causes it to work again. I don't know why this might be.&lt;/div&gt;</summary>
		<author><name>Eater</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_Intrepid_Ibex_(8.10)_on_an_X301&amp;diff=39764</id>
		<title>Installing Ubuntu Intrepid Ibex (8.10) on an X301</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Installing_Ubuntu_Intrepid_Ibex_(8.10)_on_an_X301&amp;diff=39764"/>
		<updated>2008-11-17T00:54:07Z</updated>

		<summary type="html">&lt;p&gt;Eater: /* Suspend and Hibernate */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please improve on this preliminary effort.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
Now that Intrepid is out the door, get it while it's fresh!&lt;br /&gt;
 &lt;br /&gt;
==Keyboard==&lt;br /&gt;
&lt;br /&gt;
pretty much all of the fn+... keys work (not all tested yet)&lt;br /&gt;
tested: lock screen, brightness, sleep, hibernation, battery status, thinklight&lt;br /&gt;
&lt;br /&gt;
==Ethernet==&lt;br /&gt;
&lt;br /&gt;
Works OOB&lt;br /&gt;
&lt;br /&gt;
==Wireless==&lt;br /&gt;
&lt;br /&gt;
Works OOB: The Ubuntu 8.10 Kernel (2.6.27) ships with support for the IWL5100 (''iwlagn'' driver)&lt;br /&gt;
&lt;br /&gt;
==Fan==&lt;br /&gt;
&lt;br /&gt;
Works fine. It is spinning lightly almost all the time, but acceptable (like in windows)&lt;br /&gt;
&lt;br /&gt;
==Power Mgmt==&lt;br /&gt;
&lt;br /&gt;
Seems to work fine. The gnome power manager reports ~3h30 which sounds about right. The [Fn] + [F3] combination even causes the applet to pop up info :)&lt;br /&gt;
&lt;br /&gt;
==Display==&lt;br /&gt;
&lt;br /&gt;
Works fine OOB&lt;br /&gt;
&lt;br /&gt;
==Suspend and Hibernate==&lt;br /&gt;
&lt;br /&gt;
Closing the lid puts the machine to sleep, i often managed to resume from ram but i also got frozen (mouse moveable but switching to console doesn't work, screen remains black except for the pointer (i have a black screensaver)) - caution here -&lt;br /&gt;
The [[Installing_Debian_(stable)_on_an_X300#Suspend_.26_Hibernate]] article suggests removing the e1000e module which i haven't tried but may help.&lt;br /&gt;
The 2.6.28-rc3-git1 kernel features a suspend fix for the iwl-agn (wireless) driver, so if that was an issue, it might be gone with the next kernel (not shipped with ubuntu 8.10)&lt;br /&gt;
&lt;br /&gt;
[http://ubuntuforums.org/showthread.php?t=959712&amp;amp;page=2 This script] offers a solution to the black-freeze-on-resume problem.&lt;br /&gt;
&lt;br /&gt;
==Sound==&lt;br /&gt;
&lt;br /&gt;
Works out of the box on the generic kernel, i've run into some trouble with my custom kernel - feel free to report on what i'm missing.&lt;br /&gt;
alsamixer reports the Conexant chip being used so i've selected that one in the snd-hda-intel driver (selecting them all didn't help either)&lt;br /&gt;
&lt;br /&gt;
i haven't extensively tested this feature untested remain:&lt;br /&gt;
* usage with a sound server (esd)&lt;br /&gt;
* microphone&lt;br /&gt;
* headphone&lt;br /&gt;
&lt;br /&gt;
-works correct so far with pulseaudio&lt;br /&gt;
&lt;br /&gt;
-headphone port works&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Camera==&lt;br /&gt;
&lt;br /&gt;
works fine in ekiga (green LED lights up as well)&lt;br /&gt;
if it doesn't work you might want to try&lt;br /&gt;
 sudo adduser youruser video&lt;br /&gt;
&lt;br /&gt;
==External Displays==&lt;br /&gt;
&lt;br /&gt;
vga port works as expected. you can activate it through xrandr or the screen resolution preferences.&lt;br /&gt;
&lt;br /&gt;
with xrandr HDMI-1 shows up as well, but i couldn't test it yet (no adaptor/displayport device)&lt;br /&gt;
&lt;br /&gt;
untested:&lt;br /&gt;
* displayport&lt;br /&gt;
&lt;br /&gt;
==Compiz / 3D Acceleration==&lt;br /&gt;
&lt;br /&gt;
Works OOB, requires p&lt;br /&gt;
&lt;br /&gt;
==Boot time==&lt;br /&gt;
&lt;br /&gt;
* 12sec from power to GRUB&lt;br /&gt;
* 22sec to GDM, 18sec with tweaked readahead&lt;br /&gt;
* 29sec from GDM into fully loaded session, 28sec with readahead (seems awfully slow to me.. fluxbox takes like 2sec..)&lt;br /&gt;
&lt;br /&gt;
===Improvements===&lt;br /&gt;
&lt;br /&gt;
====Native Upstart boot====&lt;br /&gt;
&lt;br /&gt;
Since i'm using this one i even ditched boot-readahead (still using desktop-readahead though)&lt;br /&gt;
[http://ubuntuforums.org/member.php?u=705485 Described here]&lt;br /&gt;
&lt;br /&gt;
====Concurent loading====&lt;br /&gt;
&lt;br /&gt;
edit ''/etc/init.d/rc'' set ''CONCURRENCY'' from ''none'' to ''shell''&lt;br /&gt;
 CONCURRENCY=shell&lt;br /&gt;
&lt;br /&gt;
note that after some testing i've switched back to the ''none'' value, as some startups weren't clean&lt;br /&gt;
&lt;br /&gt;
====Readahead====&lt;br /&gt;
&lt;br /&gt;
install readahead&lt;br /&gt;
 sudo apt-get install readahead&lt;br /&gt;
&lt;br /&gt;
profile your GNOME login (instructions: [http://ubuntuforums.org/showthread.php?t=565651], then filter out all files under 100kb (guessed number, feel free to experiment).&lt;br /&gt;
i filtered out small files since access times on SSD is very good, throughput not.&lt;br /&gt;
The linked page states about loading in ''Xsession.d'', forget about that and put your profiled files in ''/etc/readahead/boot'' and ''/etc/readahead/desktop''. This will cause the boot process to profit and the desktop-files to load earlier (before X starts)&lt;br /&gt;
to create a ''boot'' file, append &amp;quot;profile&amp;quot; to the GRUB prompt&lt;br /&gt;
&lt;br /&gt;
filter out the small files&lt;br /&gt;
boot file:&lt;br /&gt;
 cat boot | xargs -i ls -lk {} | sort -rn -k +5 | awk &amp;quot;{print(\$8)}&amp;quot; &amp;gt; boot.sorted&lt;br /&gt;
now delete any line below the wanted threshold from the sorted file (i took &amp;quot;dash&amp;quot; as masker with 104kb)&lt;br /&gt;
since the boot file is ordered, we want to keep that order&lt;br /&gt;
 cat boot | while read line; do grep &amp;quot;$line&amp;quot; boot.sorted &amp;gt;&amp;gt; boot.new; done;&lt;br /&gt;
&lt;br /&gt;
same for the desktop file:&lt;br /&gt;
 cat desktop | xargs -i ls -lk {} | sort -rn -k +5 | awk &amp;quot;{print(\$8)}&amp;quot; &amp;gt; desktop.sorted&lt;br /&gt;
remove lines from sorted file...&lt;br /&gt;
 cat desktop | while read line; do grep &amp;quot;$line&amp;quot; desktop.sorted &amp;gt;&amp;gt; desktop.new; done;&lt;br /&gt;
&lt;br /&gt;
==Fingerprint Reader==&lt;br /&gt;
&lt;br /&gt;
Doesn't currently work as it's an AthenTec and not a Thompson chip.&lt;br /&gt;
&lt;br /&gt;
==Minimalistic installation instructions==&lt;br /&gt;
&lt;br /&gt;
The system you are installing when following these instructions will be a good starting point if you want a clean ubuntu system without all the bloat (which you may of course add yourself). For a simple installation just download and install the desktop version of ubuntu 8.10 (beta)&lt;br /&gt;
&lt;br /&gt;
Boot from the ''Ubuntu Server'' AMD64 Disc (32bit also works, but what a waste)&lt;br /&gt;
select ''Install Ubuntu Server''&lt;br /&gt;
&lt;br /&gt;
Choose language and country&lt;br /&gt;
Select Keyboard layout&lt;br /&gt;
&lt;br /&gt;
Don't worry about network interface right now.. (only ubuntu 8.10 ''Beta'')&lt;br /&gt;
choose your hostname then username and password&lt;br /&gt;
change your proxy settings&lt;br /&gt;
&lt;br /&gt;
At the software selection select:&lt;br /&gt;
* OpenSSH server&lt;br /&gt;
you might want the Samba Server if you're sharing files on a mixed network&lt;br /&gt;
&lt;br /&gt;
wait for the install to complete (5 min)&lt;br /&gt;
&lt;br /&gt;
Reboot without the CD&lt;br /&gt;
&lt;br /&gt;
login to you new system and switch to root&lt;br /&gt;
 sudo -s&lt;br /&gt;
&lt;br /&gt;
if you're using the beta and your network, download a newer kernel (amd64) from (this will require a second machine or other OS if you have)&lt;br /&gt;
 http://packages.ubuntu.com/intrepid/linux-image-2.6.27-7-generic&lt;br /&gt;
copy it to usb stick&lt;br /&gt;
&lt;br /&gt;
on the X301 mount usb stick with&lt;br /&gt;
 mkdir /mnt/usb &amp;amp;&amp;amp; mount /dev/sdb /mnt/usb&lt;br /&gt;
&lt;br /&gt;
install kernel with&lt;br /&gt;
 dpkg -i /mnt/usb/linux-image-2.6.27-7-generic_2.6.27-7.12_amd64.deb&lt;br /&gt;
 umount /mnt/usb&lt;br /&gt;
 reboot&lt;br /&gt;
&lt;br /&gt;
if networking still doesn't work (try with ping google.com) edit the interfaces&lt;br /&gt;
 nano /etc/network/interfaces&lt;br /&gt;
&lt;br /&gt;
and add the line&lt;br /&gt;
 iface eth0 inet dhcp&lt;br /&gt;
&lt;br /&gt;
use [CTRL]+[X], [Y] to save and quite and start the interface&lt;br /&gt;
 ifup eth0&lt;br /&gt;
it should now be ok...&lt;br /&gt;
&lt;br /&gt;
now let's loose some fat:&lt;br /&gt;
 apt-get remove --purge linux-image-server linux-image-2.6.27-4-server&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get remove --purge apparmor update-motd landscape-common installation-report \&lt;br /&gt;
libapparmor* libgpm2 memtest86+ ppp pppconfig pppoeconf reiserfsprogs \&lt;br /&gt;
strace tasksel tasksel-data ubuntu-minimal ubuntu-serverguide&lt;br /&gt;
&lt;br /&gt;
rm -rf /var/log/landscape&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and update the system with the newest upstream package catalog:&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
install sound:&lt;br /&gt;
 apt-get install alsa&lt;br /&gt;
&lt;br /&gt;
..and X&lt;br /&gt;
 apt-get install xserver-xorg-video-intel xserver-xorg-input-mouse xserver-xorg-input-kbd xserver-xorg-input-synaptics&lt;br /&gt;
&lt;br /&gt;
gdm:&lt;br /&gt;
 apt-get install gnome-session gdm&lt;br /&gt;
&lt;br /&gt;
and the network manager:&lt;br /&gt;
 apt-get install network-manager-gnome&lt;br /&gt;
&lt;br /&gt;
now upgrade the base system with:&lt;br /&gt;
 apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if you added the line to fix networking, it is now time to remove it again from ''/etc/network/interfaces'' as NetworkManager will do that for us&lt;br /&gt;
&lt;br /&gt;
reboot the machine&lt;br /&gt;
 reboot&lt;br /&gt;
&lt;br /&gt;
gdm should now appear and you may log in to X/Gnome&lt;br /&gt;
&lt;br /&gt;
start synaptic from the gnome menu, you might want to add additional filters like&lt;br /&gt;
&lt;br /&gt;
* Installed: check only &amp;quot;Installed&amp;quot;&lt;br /&gt;
* Upgradable: check only &amp;quot;Upgradable&amp;quot; (shows also upgradable packages which aren't upgraded to a new upstream version (i.e. only featuring ubuntu-specific patches)&lt;br /&gt;
* Residual Config: &amp;quot;Residual config&amp;quot;&lt;br /&gt;
* Orphaned: check only &amp;quot;Orphaned&amp;quot; (install deborphan package to use this)&lt;br /&gt;
* Autoremove: check only &amp;quot;Automatic removable&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if you know you'll need one of the following packages, don't delete it or just reinstall it later on.. they should all be safe to delete (at least my system still works)&lt;br /&gt;
&lt;br /&gt;
select the &amp;quot;Installed&amp;quot; filter and remove (right click, then mark for complete removal):&lt;br /&gt;
&lt;br /&gt;
* alacarte&lt;br /&gt;
* app-install-data&lt;br /&gt;
* aptitude&lt;br /&gt;
* apt-xapian-index&lt;br /&gt;
* cupsys&lt;br /&gt;
* ed&lt;br /&gt;
* esound-clients&lt;br /&gt;
* gnome-user-guide&lt;br /&gt;
* gnome-utils&lt;br /&gt;
* libbeagle1&lt;br /&gt;
* libmbca0&lt;br /&gt;
* ltrace&lt;br /&gt;
* mobile-broadband-provider-info&lt;br /&gt;
* mtr-tiny&lt;br /&gt;
* netcat netcat-traditional&lt;br /&gt;
* oss-compat&lt;br /&gt;
* parted popularity-contest&lt;br /&gt;
* python-beagle python-debian&lt;br /&gt;
* python-gnupginterface&lt;br /&gt;
* python-openssl&lt;br /&gt;
* python-pyopenssl&lt;br /&gt;
* python-software-properties&lt;br /&gt;
* python-twisted-bin&lt;br /&gt;
* python-twisted-core&lt;br /&gt;
* python-xapian&lt;br /&gt;
* python-zopeinterface&lt;br /&gt;
* radeontool&lt;br /&gt;
* rsync&lt;br /&gt;
* tcpd&lt;br /&gt;
* tcpdump&lt;br /&gt;
* ufw&lt;br /&gt;
* unattended-upgrades&lt;br /&gt;
* update-manager-core&lt;br /&gt;
* vim-tiny&lt;br /&gt;
* xdg-user-dirs&lt;br /&gt;
* xserver-xorg-input-all&lt;br /&gt;
* xserver-xorg-input-vmmouse&lt;br /&gt;
* xserver-xorg-input-wacom&lt;br /&gt;
&lt;br /&gt;
right now the system is pretty much stripped down and we can build up from here :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
some things i got from the missing-recommands tabs:&lt;br /&gt;
* acpid&lt;br /&gt;
* deborphan&lt;br /&gt;
* evince&lt;br /&gt;
* gnome-screensaver&lt;br /&gt;
* gnome-system-tools&lt;br /&gt;
* vim&lt;br /&gt;
&lt;br /&gt;
once deborphan is installed:&lt;br /&gt;
delete anything from the custom filter ''orphaned''&lt;br /&gt;
&lt;br /&gt;
what i also installed:&lt;br /&gt;
* evolution&lt;br /&gt;
* firefox&lt;br /&gt;
* mesa-utils (for glxgears)&lt;br /&gt;
* seahorse&lt;br /&gt;
* totem-gstreamer&lt;br /&gt;
* mozilla-plugin-gnash&lt;br /&gt;
&lt;br /&gt;
what i still removed:&lt;br /&gt;
* gnome-pilot&lt;br /&gt;
* gnome-pilot-conduits&lt;br /&gt;
&lt;br /&gt;
You may now want to install following packages:&lt;br /&gt;
* gnome-terminal&lt;br /&gt;
* gedit&lt;br /&gt;
* gcalctool&lt;br /&gt;
* cpufrequtils&lt;br /&gt;
* powertop&lt;br /&gt;
* system-config-printer-gnome (+ your printer driver)&lt;br /&gt;
* linux-firmware (or download the firmware yourself from linuxintelwireless.com, or extract iwlan-5000-1.ucode from that package and put it into /lib/firmware)&lt;br /&gt;
* libdvdcss from videolan.org/libdvdcss (read legal advices)&lt;br /&gt;
&lt;br /&gt;
And remove those:&lt;br /&gt;
* libv4l-0&lt;br /&gt;
* libgtksourceview-common&lt;br /&gt;
* libgtksourceview1.0-0&lt;br /&gt;
* python-gnome2-desktop&lt;br /&gt;
* gnome-app-install&lt;br /&gt;
&lt;br /&gt;
==Compiling custom fast-boot-patched kernel==&lt;br /&gt;
&lt;br /&gt;
install these packages:&lt;br /&gt;
* libncurses5-dev&lt;br /&gt;
* make&lt;br /&gt;
&lt;br /&gt;
Get most recent 2.6.27 kernel from [[http://www.kernel.org]]&lt;br /&gt;
untar it..&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo -s&lt;br /&gt;
cd /usr/src&lt;br /&gt;
tar xjf /home/foo/downloads/linux-2.6.27.tar.bz2&lt;br /&gt;
ln -s linux-2.6.27 linux&lt;br /&gt;
cd linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
apply the [[Fastboot_Patch_2_6_27|Fastboot patch]] (there have been arguments about the implementation of this but it works fine for me)&lt;br /&gt;
 patch -p1 &amp;lt; fastboot_2_6_27.diff&lt;br /&gt;
&lt;br /&gt;
Get the kernel [[X301_kernel_config|.config file]] and put it inside the root of your kernel source. This will make a good start. Not that i did not include support for IPv6, firewall and PCMCIA so you'll need to add those if wanted.&lt;br /&gt;
&lt;br /&gt;
What's NOT working:&lt;br /&gt;
* UUID-root partition&lt;br /&gt;
&lt;br /&gt;
If sound is not working on your user (i.e. ''sudo alsamixer'' shows a device while just ''alsamixer'' (as your default user) doesen't) you'll need to&lt;br /&gt;
 adduser youruser audio&lt;br /&gt;
log out and back into X and you'll have sound.&lt;br /&gt;
&lt;br /&gt;
if you want to change the configuration:&lt;br /&gt;
 make menuconfig&lt;br /&gt;
&lt;br /&gt;
build the kernel:&lt;br /&gt;
 make -j3&lt;br /&gt;
&lt;br /&gt;
install kernel and modules:&lt;br /&gt;
 make install&lt;br /&gt;
 make modules_install&lt;br /&gt;
&lt;br /&gt;
..adapt your ''/etc/grub/menu.lst'' file to boot the new kernel make sure to switch the ''root=UUID=..'' for ''root=/dev/sda1'' or you'll get a kernel panic when booting&lt;br /&gt;
(can someone explain this to me why UUID won't work (because of not using an initrd?))&lt;br /&gt;
also remove the initrd line.&lt;br /&gt;
&lt;br /&gt;
mine looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
title           Ubuntu (development branch), kernel 2.6.27&lt;br /&gt;
root            (hd0,0)&lt;br /&gt;
kernel          /boot/vmlinuz-2.6.27 root=/dev/sda1 usbcore.autosuspend=1 ro quiet&lt;br /&gt;
quiet&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Compiling intel xorg drivers==&lt;br /&gt;
&lt;br /&gt;
Works OOB on ubuntu kernel - THIS IS NOT NEEDED UNLESS YOU'RE COMPILING YOUR OWN 2.4.27+ KERNEL -&lt;br /&gt;
&lt;br /&gt;
With my shiny new kernel i wasn't able to start X as exa was failing.. so after some googling i recompiled the driver.&lt;br /&gt;
- this will hopefully be fixed before the final release - (it is fixed in the 2.5.0 driver, ubuntu currently has 2.4.1)&lt;br /&gt;
&lt;br /&gt;
While this will work perfectly fine with the light new kernel, the generic ubuntu kernel displays ugly artifacts in firefox and gnome-terminal. So i'd rather wait if you're considering using the generic kernel.&lt;br /&gt;
&lt;br /&gt;
You revert these changes by reinstalling xserver-xorg-video-intel and libdrm2 with&lt;br /&gt;
 apt-get install --reinstall xserver-xorg-video-intel libdrm2 libdrm-dev&lt;br /&gt;
&lt;br /&gt;
Install these packages from apt&lt;br /&gt;
* automake&lt;br /&gt;
* xutils-dev&lt;br /&gt;
* libtool&lt;br /&gt;
* xserver-xorg-dev&lt;br /&gt;
* xorg-dev&lt;br /&gt;
* pkg-config&lt;br /&gt;
* mesa-common-dev&lt;br /&gt;
* (libdrm-dev) - currently also has to be compiled from source because of incompatibilities with intel's 2.5.0 driver&lt;br /&gt;
&lt;br /&gt;
===libdrm===&lt;br /&gt;
Get the source from git:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone git://anongit.freedesktop.org/git/mesa/drm drm&lt;br /&gt;
cd drm&lt;br /&gt;
./autogen&lt;br /&gt;
./configure --prefix=/usr&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now edit the &amp;quot;libtool&amp;quot; file and comment out the line with &amp;quot;directory not ending&amp;quot; aswell as the line before it. (won't install to /usr otherwise, only /usr/local)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make -j3&lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===xf86-video-intel===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone git://git.freedesktop.org/git/xorg/driver/xf86-video-intel/ xf86-video-intel&lt;br /&gt;
cd xf86-video-intel&lt;br /&gt;
./autogen&lt;br /&gt;
./configure --prefix=/usr&lt;br /&gt;
make -j3&lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Other tweaks==&lt;br /&gt;
Don't start the rsync daemon at boot-time:&lt;br /&gt;
 sudo update-rc.d -f rsync remove&lt;br /&gt;
&lt;br /&gt;
Power-saving settings:&lt;br /&gt;
insert these lines into ''/etc/sysctl.conf''&lt;br /&gt;
 vm.dirty_writeback_centisecs=1500&lt;br /&gt;
&lt;br /&gt;
If you have lots of RAM (4Gb):&lt;br /&gt;
 vm.swappiness=0&lt;br /&gt;
&lt;br /&gt;
with 2Gb i recommand a value of 40 instead of 0&lt;br /&gt;
&lt;br /&gt;
===Switch getty for mingetty===&lt;br /&gt;
Install mingetty&lt;br /&gt;
 apt-get install mingetty&lt;br /&gt;
edit ''/etc/event.d/tty1'' through 6 and change the last line to&lt;br /&gt;
 exec /sbin/mingetty tty1&lt;br /&gt;
(you could add the ''--noclear'' switch on tty1 to leave the boot-messages)&lt;br /&gt;
also comment out the lines starting with&lt;br /&gt;
 start on ...&lt;br /&gt;
if you do not wish to span ttyX (in my case 4..6)&lt;br /&gt;
&lt;br /&gt;
edit ''/etc/default/console-setup'' and change&lt;br /&gt;
 ACTIVE_CONSOLES=&amp;quot;/dev/tty[1-3]&amp;quot;&lt;br /&gt;
in my case 3, since i never need more than 3 TTYs&lt;br /&gt;
&lt;br /&gt;
==Credits==&lt;br /&gt;
Article skeleton from the Ubuntu 8.10 on X200 article&lt;br /&gt;
&lt;br /&gt;
Article --[[User:Blk|Blk]] 20:09, 21 October 2008 (CEST)&lt;br /&gt;
&lt;br /&gt;
[[Category:X301]]&lt;/div&gt;</summary>
		<author><name>Eater</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_ACPI_suspend-to-ram&amp;diff=37920</id>
		<title>Talk:Problems with ACPI suspend-to-ram</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Talk:Problems_with_ACPI_suspend-to-ram&amp;diff=37920"/>
		<updated>2008-06-06T01:10:39Z</updated>

		<summary type="html">&lt;p&gt;Eater: /* Intermittent lock-up on resume with X31 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;After a few resumes with my T43, I get &amp;quot;big green boxes&amp;quot; on my consoles tty1 and tty2.&lt;br /&gt;
tyy3 to tty6 stays completly black (there should be login prompt).&lt;br /&gt;
But X still working fine.&lt;br /&gt;
&lt;br /&gt;
This is a minor issue, but anyone with the same problem and a fix/workaround?&lt;br /&gt;
&lt;br /&gt;
--[[User:Defiant|Defiant]] 13:40, 02 Jun 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
I have a similar issue on my T60. It seems like the problem is with the framebuffer; that the card is attempting to use the lowest resolution possible when I have the framebuffer set much higher, but that's just my intuition. I'm using hibernate with both &amp;lt;code&amp;gt;EnableVbetool&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;VbetoolPost&amp;lt;/code&amp;gt; set to &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An interesting thing is that if I manually call hibernate from an xterm inside X, I get no negative effects. It even fixes the console &amp;quot;big green boxes&amp;quot; if I previously suspended not in X. Also, on resume I see the following messages on the xterm (all previous output is cleared):&lt;br /&gt;
&lt;br /&gt;
  Allocated buffer at 0x11010 (base is 0x0)&lt;br /&gt;
  ES: 0x1101 EBX: 0x0000&lt;br /&gt;
  Calling INT 0x15 (F000: 5E79)&lt;br /&gt;
   EAX is 0x1005F08&lt;br /&gt;
  Calling INT 0x15 (F000: 5E79)&lt;br /&gt;
   EAX is 0x1005F08&lt;br /&gt;
  Calling INT 0x15 (F000: 5E79)&lt;br /&gt;
   EAX is 0x5F08&lt;br /&gt;
  Calling INT 0x15 (F000: 5E79)&lt;br /&gt;
   EAX is 0x5F08&lt;br /&gt;
  Calling INT 0x15 (F000: 5E79)&lt;br /&gt;
   EAX is 0x45F08&lt;br /&gt;
  Function not supported&lt;br /&gt;
&lt;br /&gt;
Any ideas?&lt;br /&gt;
&lt;br /&gt;
-- [[User:Deason|Deason]] 05:39, 14 July 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
Just to update/confirm: suspend to RAM only works if I have X running, and I switch to the console running X after resuming. Editing the ACPI sleep script to switch to vt 7 before switching back to the original console seems to work fine, though. It just means that I can't suspend to RAM if I'm not running X. (Putting a check for that in the ACPI sleep script would also be a good idea.) I've tried using &amp;lt;code&amp;gt;EnableVbetool&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;VbetoolPost&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;RestoreVCSAData&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;RestoreVbeStateFrom&amp;lt;/code&amp;gt; from hiberante, but none seem to solve this without switching to X.&lt;br /&gt;
&lt;br /&gt;
-- [[User:Deason|Deason]] 21:48, 16 July 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
Yes it's the vga framebuffer freaking out at you. Try adding '''acpi_sleep=s3_bios,s3_mode''' kernel option to /boot/grub/menu.lst&lt;br /&gt;
&lt;br /&gt;
The s3_mode part fixed the green boxes for me. (debian testing, kernel 2.6.16, TP x41)&lt;br /&gt;
&lt;br /&gt;
--[[User:Ladoga|Ladoga]] 06:46, 5 August 2006 (CEST)&lt;br /&gt;
----&lt;br /&gt;
Yay, that did it. Also, I'm not sure which option it is, but one of the options in hibernate (either &amp;lt;code&amp;gt;EnableVbetool&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;VbetoolPost&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;RestoreVCSAData&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;RestoreVbeStateFrom&amp;lt;/code&amp;gt;, or all of them) causes the framebuffer to freak out again. Disabling them, and enabling that s3_mode makes it all work again. (Debian Sid, 2.6.17, T60). Putting this in the article, I guess.&lt;br /&gt;
&lt;br /&gt;
--[[User:Deason|Deason]]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I had the same problem with the &amp;quot;big green boxes&amp;quot; (except mine were not only green, but many colors :-). I added the acpi_sleep=s3_bios,s3_mode to the kernel boot parameters, and suspend with s2ram -f -a 1 (although I'm not sure that if one uses s2ram, the kernel parameters are relevant?). Anyway, the -a 1 in s2ram made things a little better, but I still had issues with big green boxes once in a while. It was critical, because sometimes, suspend would get stuck right after switching to vt1, and would require a hard power cycle, after which the machine would behave weirdly (X gets really slow, e.g. 45 seconds to bring up a gnome-terminal). I have now tried to add vga=0 (no frame buffer) and use s2ram -f -a 3. Seems to work for now. I will update after more suspend cycles. &lt;br /&gt;
BTW, the problem with the chvt also happens sometimes, when switching without suspend (just with a crtl-alt 1 or a chvt 1): I get corrupted video with big grey and black boxes on my screen, and everything is dead, i.e. I can't switch out of that state, either using crtl-alt 7 or even killing X (crtl-alt-backspace). I hope this was related to the frame buffer (that;s what pointed me to this post in the first place), and thus hope the vga=0 will do me good.&lt;br /&gt;
Note that this problem with garbled video when switching to vt 1 also happens with fedora 7 (I'm using ubuntu feisty as my base system), every single time.&lt;br /&gt;
&lt;br /&gt;
--[[User:frigaut|frigaut]] 4:54, 10 June 2007 (Chilean time)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Intermittent lock-up on resume with X31 ==&lt;br /&gt;
&lt;br /&gt;
I have an {{X31}} running 2.6.16 (Debian). I'm running Debian patches, with the addition of ieee80211 1.1.14 and ipw2200 1.1.13&lt;br /&gt;
&lt;br /&gt;
Suspend/resume generally works first time, but locks up during resume after a few cycles. Usually the sleep light stays flashing.&lt;br /&gt;
&lt;br /&gt;
A possibly related symptom is that on a few occasions, I've had the wireless connectivity work for a few seconds after resume, and then fail (though this could be fixed by {{cmdroot|ifdown eth1; rmmod ipw2200; modprobe ipw2200; ifup eth1}}).&lt;br /&gt;
&lt;br /&gt;
I've tried the following boot options to no avail: {{bootparm|ec_intr|0}}; &amp;lt;tt&amp;gt;nolapic&amp;lt;/tt&amp;gt;; &amp;lt;tt&amp;gt;nolapic noapic&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbg71|Malcolm]] 06:42, 1 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
I've had no more lock-ups since my last post (knock on wood) i.e. about 20 suspend/resume cycles.&lt;br /&gt;
&lt;br /&gt;
Nothing has changed in my config, but I've been manually doing a&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|sync}}&lt;br /&gt;
&lt;br /&gt;
before each suspend, according to the theory that race conditions etc. will be less likely to be tickled if I reduce the interrupt load while ACPI does its work.&lt;br /&gt;
&lt;br /&gt;
Incidentally, it turns out that I was running the equivalent of &amp;lt;tt&amp;gt;nolapic&amp;lt;/tt&amp;gt; all along; dmesg output says:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
Local APIC disabled by BIOS -- you can enable it with &amp;quot;lapic&amp;quot;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbg71|Malcolm]] 10:11, 21 September 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Two lock-ups since my last post: after 30 cycles and after 10.&lt;br /&gt;
&lt;br /&gt;
It loooks like this is [http://bugzilla.kernel.org/show_bug.cgi?id=5555 kernel bug #5555]&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbg71|Malcolm]] 00:04, 3 October 2006 (CEST)&lt;br /&gt;
&lt;br /&gt;
Since my last post, I upgraded to Debian stock 2.6.18 kernel. This version includes ACPI 20060707.&lt;br /&gt;
&lt;br /&gt;
I've had one lock-up on resume. Current uptime is 36 days.&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbg71|Malcolm]] 09:17, 6 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
Three lock-ups since my last post. Looks like this kernel is no improvement on the others I've tried.&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbg71|Malcolm]] 12:30, 11 February 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
I've been running an Ubuntu 2.6.20.3 kernel for about 3 months, and still experience lock ups. I still suspect the ipw2200 driver is involved, as occasionally it will stop working after a resume. I'll try a 2.6.22 kernel some time.&lt;br /&gt;
&lt;br /&gt;
--[[User:Mbg71|Malcolm]] 11:08, 23 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
I was having the same problem under fedora 7, kernel 2.6.21-1.3194.fc7 - I could resume maybe 3 times out of 4.  This is with all combinations of acpi_sleep= and ec_intr=0 boot parameters.  Recently I found a suggestion (sorry, I've lost the reference) that the problem could be the kernel cpu speed governor.  The suggested cure was (with root permissions)&lt;br /&gt;
echo userspace &amp;gt; /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor&lt;br /&gt;
I tried it and have had no lockups for the past week, a few dozen sleep/resumes.  I've now edited /etc/sysconfig/cpuspeed to set userspace on boot.  Might work for you too - worth a try anyway.&lt;br /&gt;
--[[User:Stephen|Stephen]] 17:24, 2 September 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
My X31 won't wake up from sleep, ever. It beeps as though it's about to, but the fan whirs and the screen stays black and the machine won't respond to anything. Hibernate works fine. This is using ACPI under Ubuntu 8.04. &lt;br /&gt;
--[[User:Eater|Eater]] 03:10, 6 June 2008 (CEST)&lt;br /&gt;
&lt;br /&gt;
== Unable to resume R40e after suspend-to-RAM ==&lt;br /&gt;
&lt;br /&gt;
Suspend-To-RAM works fine, but after going to sleep,&lt;br /&gt;
the laptop (R40e) can't be woken up. It doesn't respond to&lt;br /&gt;
anything, the battery has to be removed in order to&lt;br /&gt;
reset it. I tried many different setups, but the&lt;br /&gt;
problem persists. Any ideas, please?&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
I have exactly the same problem on a T23. On resume, the laptop won't wake up.  The hard disk spins up however. If I power off and attempt to restart the back light comes on, the fan starts spinning but otherwise the computer won't boot. I need to remove the battery to get it to boot up.  This might indicate that acpi is interfering with the BIOS some how. I'm currently running the Debian stock 2.6.21-1-686.&lt;br /&gt;
&lt;br /&gt;
--[[User:Pault|Pault]] 16:40, 9 July 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
== T60p Docking While Suspended ==&lt;br /&gt;
&lt;br /&gt;
My T60p exhibits the problem where if I dock it while it's asleep, it shuts off.  Has anyone gotten a response from Lenovo about this problem?  Is there a fix?  I'm getting tired of waking up my laptop before docking it.&lt;br /&gt;
&lt;br /&gt;
--[[User:Sridhar|Sridhar]] 17:50, 2 January 2007 (CET)&lt;br /&gt;
&lt;br /&gt;
== Using HDAPS as a module causes a crash on resume with the Linux kernel 2.6.19 (X41) ==&lt;br /&gt;
&lt;br /&gt;
Does this hapen with the stock hdaps module from the kernel.org sources, or with the one from tp-smapi?&lt;br /&gt;
&lt;br /&gt;
--[[User:Zhenech|Zhenech]] 14:18, 12 January 2007 (CET)&lt;/div&gt;</summary>
		<author><name>Eater</name></author>
		
	</entry>
</feed>