<?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=Trmsw</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=Trmsw"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/wiki/Special:Contributions/Trmsw"/>
	<updated>2026-04-08T01:43:54Z</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=58202</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=58202"/>
		<updated>2017-05-11T01:59:47Z</updated>

		<summary type="html">&lt;p&gt;Trmsw: &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; |Below are several ways of configuring the kernel psmouse driver for controlling extended TrackPoint features.&lt;br /&gt;
|}&lt;br /&gt;
On a '''Modern''' distribution (like Fedora, Ubuntu or OpenSUSE) you will want to use xinput or one of the graphical front ends. For distributions that are lagging a bit (e.g. Debian Lenny and PCLOS '09) you may still want to use the old xorg config method.&lt;br /&gt;
&lt;br /&gt;
=Configuration using xinput=&lt;br /&gt;
If you want to modify changes on the fly, you can do so with {{cmd|xinput|}} (part of the optional xorg-x11-apps rpm on Fedora).&lt;br /&gt;
Note that these changes are not saved when the xserver is restarted. However, you can add the lines e.g. in your  {{cmd|.xsessionrc|}} (depends on your distribution) so they are executed every time X starts.&lt;br /&gt;
&lt;br /&gt;
To query the available options&lt;br /&gt;
 xinput list-props &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
&lt;br /&gt;
More information can be found in the man-pages for evdev&lt;br /&gt;
 man evdev&lt;br /&gt;
&lt;br /&gt;
To enable vertical scrolling&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
To enable horizontal scrolling in addition to vertical scrolling&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To enable middle button emulation (using left- and right-click simultaneously)&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Timeout&amp;quot; 50&lt;br /&gt;
&lt;br /&gt;
== old method using xinput set-int-prop ==&lt;br /&gt;
&lt;br /&gt;
Previous approaches needed to find the device's numeric id instead of simply using the name, and used &amp;quot;set-int-prop&amp;quot; instead of &amp;quot;set-prop&amp;quot;, which required specifying the format (8-bit, 16-bit etc.).&lt;br /&gt;
===Example: openSUSE 11.2 and ThinkPad USB Keyboard with TrackPoint ===&lt;br /&gt;
&lt;br /&gt;
 xinput list&lt;br /&gt;
will show two &amp;quot;Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint.&amp;quot; with two different ids. Use the id with Axis 0 and Axis 1 items.&lt;br /&gt;
&lt;br /&gt;
Suppose the id was 12. The following will enable the trackpoint scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation&amp;quot; 8 1&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation Button&amp;quot; 8 2&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 16 200&lt;br /&gt;
&lt;br /&gt;
To do this in a script without knowing the numeric id in advance, the following will run through input devices and set properties on all those that support Evdev Wheel Emulation, assumed to be the Trackpoint(s).&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id&lt;br /&gt;
 do&lt;br /&gt;
         case `xinput list-props $id` in&lt;br /&gt;
         *&amp;quot;Middle Button Emulation&amp;quot;*)&lt;br /&gt;
                 xinput set-int-prop $id &amp;quot;Evdev Wheel Emulation&amp;quot; 8 1&lt;br /&gt;
                 # etc.&lt;br /&gt;
                 ;;&lt;br /&gt;
         esac&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
and save it with any name such as trackPointScrolling.sh, and make it executable:&lt;br /&gt;
 chmod +x trackPointScrolling.sh&lt;br /&gt;
&lt;br /&gt;
It can then be run via $ ./trackPointScrolling.sh or in a startup script.&lt;br /&gt;
&lt;br /&gt;
= Graphical Frontends =&lt;br /&gt;
If you are using GNOME, you might want to use [http://live.gnome.org/GPointingDeviceSettings GPointing Device Settings] or [http://tpctl.sourceforge.net/configure-trackpoint.html configure-trackpoint] as a graphical frontends.&lt;br /&gt;
=== GPointing Device Settings ===&lt;br /&gt;
It is available for Fedora 12, Ubuntu 9.10 and Debian Squeeze in the standard package repositories&lt;br /&gt;
{{NOTE|Unfortunately it seems no longer maintained, and does not work properly with GNOME3 [[https://bugzilla.redhat.com/show_bug.cgi?id=710053 bug]]}}&lt;br /&gt;
&lt;br /&gt;
[[image:Screenshot-GPointing Device Settings-TrackPoint.png]]&lt;br /&gt;
&lt;br /&gt;
=== configure-trackpoint ===&lt;br /&gt;
To install it in Ubuntu run ...&lt;br /&gt;
 sudo apt-get install sysfsutils&lt;br /&gt;
...and then download and install the deb [http://sourceforge.net/projects/tpctl/ here]. Note that saved settings are not restored after reboot in Lucid Lynx. See methods below to make settings permanent.&lt;br /&gt;
&lt;br /&gt;
= Configuration using DevKit =&lt;br /&gt;
Most recent distributions like Ubuntu 9.10 switch from HAL (being deprecated) to DevKit. Hence, the HAL configurations explained underneath, fail to work.&lt;br /&gt;
&lt;br /&gt;
The easiest way to configure your touchpad and trackpoint with DevKit is by using the [http://live.gnome.org/GPointingDeviceSettings GPointingDeviceSettings] panel that fully supports the hardware. You can easily download the panel by installing {{cmd| gpointing-device-settings|}}. On Ubuntu open a terminal and execute the command {{cmduser| sudo apt-get install gpointing-device-settings}}&lt;br /&gt;
&lt;br /&gt;
Launch the UI through the {{cmduser| gpointing-device-settings}} command, but you can also add a menu entry to your System / Preferences menu for easier access to the UI panel.&lt;br /&gt;
&lt;br /&gt;
= Configuration using udev and HAL =&lt;br /&gt;
Modern distributions like Ubuntu 8.10 and Fedora 10 use udev and HAL to configure the input devices. You should no longer make changes to xorg.conf as by default Xorg (through the evdev driver) will let the kernel now handle input devices.&lt;br /&gt;
&lt;br /&gt;
But before you get started on this you should make sure you have all the updates applied from your distro vendor as both Ubuntu 8.10 and Fedora 10 require some additional fixes that you will need.&lt;br /&gt;
&lt;br /&gt;
=== Scrolling ===&lt;br /&gt;
&lt;br /&gt;
By default the middle mouse button is just that, a middle mouse button, which in Linux is used for the Paste operation.&lt;br /&gt;
&lt;br /&gt;
You may configure it to act in the same way as in Windows, such that you can use it for vertical scrolling: keep the button pressed and move the TrackPoint up and down to scroll. (In GPointing Device Settings, this is known as &amp;quot;Use wheel emulation&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This setting is not compatible with using Alt + Middle Mouse Button to resize windows. If you want to resize windows with the trackpad, disable wheel emulation. On Ubuntu 11.10, this setting resides in &amp;lt;tt&amp;gt;/usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf&amp;lt;/tt&amp;gt; (see below), although some touchpads use &amp;lt;tt&amp;gt;/usr/share/X11/xorg.conf.d/50-synaptics.conf&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== xorg.conf.d ====&lt;br /&gt;
&lt;br /&gt;
Some distributions now support the new Xorg hotplug configuration method via xorg.conf.d directories (in Ubuntu 10.04 Lucid Lynx) instead of hal. In contrast to the udev method below, it should be around for some time, so it might be the best way to “statically” configure scrolling.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/usr/lib/X11/xorg.conf.d/20-thinkpad.conf}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputClass&amp;quot;&lt;br /&gt;
	Identifier	&amp;quot;Trackpoint Wheel Emulation&amp;quot;&lt;br /&gt;
	MatchProduct	&amp;quot;TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint&amp;quot;&lt;br /&gt;
	MatchDevicePath	&amp;quot;/dev/input/event*&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;
	Option		&amp;quot;Emulate3Buttons&amp;quot;	&amp;quot;false&amp;quot;&lt;br /&gt;
	Option		&amp;quot;XAxisMapping&amp;quot;		&amp;quot;6 7&amp;quot;&lt;br /&gt;
	Option		&amp;quot;YAxisMapping&amp;quot;		&amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For Ubuntu 10.10 Maverick Meerkat, the correct path is {{path|/usr/share/X11/xorg.conf.d}}}}&lt;br /&gt;
{{NOTE|For Arch Linux or Fedora or PCLinuxOS, the correct path is {{path|/etc/X11/xorg.conf.d}}}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above does not work for you, you may need to add a different MatchProduct string.  Use &amp;lt;pre&amp;gt;find /dev/input/event* -exec udevadm info --attribute-walk --name={} \; | grep -e product -e name | sort -u&amp;lt;/pre&amp;gt; to get a list of possibilities.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above directory doesn't exist by default in your distribution, it probably doesn't support this method. In this case, please refer to the udev or xinput method below.}}&lt;br /&gt;
&lt;br /&gt;
==== udev ====&lt;br /&gt;
&lt;br /&gt;
Now that Xorg doesn't use the configuration from hal (in Debian unstable starting january 2010), the only way to “statically” configure scrolling in trackpoint is udev. (for other people, xinput method, works fine). This method will be gone (_again_) in not too long so it might be a better idea to use xinput way. YMMV.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/etc/udev/rules.d/99_trackpoint.rules}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ACTION!=&amp;quot;add|change&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
KERNEL!=&amp;quot;event*&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{ID_PATH}!=&amp;quot;platform-i8042-serio-1&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{x11_options.EmulateWheel}=&amp;quot;1&amp;quot;&lt;br /&gt;
ENV{x11_options.EmulateWheelButton}=&amp;quot;2&amp;quot;&lt;br /&gt;
ENV{x11_options.XAxisMapping}=&amp;quot;6 7&amp;quot;&lt;br /&gt;
ENV{x11_options.Emulate3Buttons}=&amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
LABEL=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart udev then Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The ID_PATH used in the example above is a typical value.  To determine the ID_PATH appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==== Hal (soon to be deprecated) ====&lt;br /&gt;
&lt;br /&gt;
To accomplish this create the file {{path|/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.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;
If you also want to have horizontal scrolling, simply add the following XAxisMapping option to the above&lt;br /&gt;
&amp;lt;pre&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;/pre&amp;gt;&lt;br /&gt;
After this reboot, or restart the hal service and Xorg. You can validate the settings with {{cmd|lshal|}}.&lt;br /&gt;
&lt;br /&gt;
In some models (eg: X301 and X200 since Jan 10 2010 on debian sid) you may have to use &amp;quot;PS/2 Generic Mouse&amp;quot; instead of &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;. Have a look to your input devices typing &amp;lt;code&amp;gt;lshal|grep input.product&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Alternatively it is also possible to use the &amp;quot;old&amp;quot; Xorg configuration by adding the following lines to the {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerFlags&amp;quot;&lt;br /&gt;
	Option 	&amp;quot;AutoAddDevices&amp;quot; &amp;quot;false&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using this entry HAL will not be used for the input devices.&lt;br /&gt;
&lt;br /&gt;
====Reactivate Scrolling after suspend/resume====&lt;br /&gt;
Scrolling may be disabled after a resume from suspend.&lt;br /&gt;
&lt;br /&gt;
You can manually reactivate the trackpoint by reloading the {{path|psmouse}} module as root:&lt;br /&gt;
:{{cmdroot|rmmod psmouse &amp;amp;&amp;amp; modprobe psmouse}}&lt;br /&gt;
&lt;br /&gt;
You can automatically force the pm-utils to reload this module.&lt;br /&gt;
Create a file {{path|/etc/pm/config.d/01reload_mouse}} as root with the following content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# reload psmouse to reactivate trackpoint scrolling&lt;br /&gt;
SUSPEND_MODULES=&amp;quot;${SUSPEND_MODULES:+$SUSPEND_MODULES }psmouse&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring other options (e.g. Press to select, Sensitivity and Speed)===&lt;br /&gt;
&amp;lt;!--HAL wasn't made to configure sysfs settings, so we'll use udev instead --&amp;gt;&lt;br /&gt;
Create a file {{path|/etc/udev/rules.d/10-trackpoint.rules}} and add a line to suit your needs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTRS{press_to_select}=&amp;quot;1&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing udev  with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1}} should apply the new changes.  All of the settings listed [[How to configure the TrackPoint#Sysfs_Options_Reference|below]] can be specified here as part of a comma separated list.&lt;br /&gt;
The customized values should be loaded automatically when booting. However, due to a [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549379  kernel bug] (affecting Lucid Lynx), the attributes may not yet exist when the udev rule fires. As a work around, add a WAIT_FOR condition on the attribute. In order to make sure you are using the right constraints (SUBSYSTEM, DRIVERS, etc), you can run {{cmdroot|udevadm info --query all --attribute-walk --path /sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On my system (Lucid Lynx), the above line did not work. I changed it to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTR{sensitivity}=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and tested with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
On trusty, the following works for me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;serio2&amp;quot;, SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTR{sensitivity}=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On xenial (16.04) the following line works for me (WAIT_FOR is not supported anymore):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;serio2&amp;quot;, SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTR{sensitivity}:=&amp;quot;255&amp;quot;, ATTR{speed}:=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To avoid the wait you can also listen for the Trackpoint input device to appear and then run a script to set the parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;input&amp;quot;, ATTR{name}==&amp;quot;*TrackPoint*&amp;quot;, RUN+=&amp;quot;/etc/conf.d/trackpoint&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example {{path|/etc/conf.d/trackpoint}} would be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#! /bin/bash&lt;br /&gt;
&lt;br /&gt;
## Trackpoint settings&lt;br /&gt;
&lt;br /&gt;
# When run from a udev rule, DEVPATH should be set&lt;br /&gt;
if [ ! -z $DEVPATH ] ; then&lt;br /&gt;
    TPDEV=/sys/$( echo &amp;quot;$DEVPATH&amp;quot; | sed 's/\/input\/input[0-9]*//' )&lt;br /&gt;
else&lt;br /&gt;
# Otherwise just look in /sys/&lt;br /&gt;
    TPDEV=$(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//')&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint&lt;br /&gt;
# http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
if [ -d &amp;quot;$TPDEV&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Configuring Trackpoint&amp;quot;&lt;br /&gt;
    echo -n 255     &amp;gt; $TPDEV/sensitivity     # Integer  128   Sensitivity&lt;br /&gt;
    echo -n 110     &amp;gt; $TPDEV/speed           # Integer  97   Cursor speed&lt;br /&gt;
    echo -n 4       &amp;gt; $TPDEV/inertia         # Integer  6   Negative intertia&lt;br /&gt;
else&lt;br /&gt;
    echo &amp;quot;Couldn't find trackpoint device $TPDEV&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Configuration using sysfs=&lt;br /&gt;
Another way to modify changes on the fly, is echoing values directly into special files in sysfs.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|&lt;br /&gt;
The examples shown below are valid for ThinkPads with both TrackPoint and Touchpad, in which case the sysfs path is {{path|/sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
If however you have a ThinkPad without Touchpad, or with the Touchpad disabled in the BIOS, the sysfs path needs to be changed to {{path|/sys/devices/platform/i8042/serio1}} instead (notice the missing serio2 at the end).}}&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;
===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/serio1/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/serio1/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/serio1/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/serio1/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/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 8.10 to make Press to Select a permanent change:&lt;br /&gt;
&lt;br /&gt;
echo -n 1 | tee /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
As root, append the above command above &amp;quot;exit 0&amp;quot; in /etc/gdm/Init/Default&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/serio1/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, on my ThinkPad T420s, the correct commands are:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/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.  In Ubuntu 9.10, add the lines to /etc/rc.local to avoid this.&lt;br /&gt;
&lt;br /&gt;
===Vertical Scrolling===&lt;br /&gt;
No sysfs entry exists for vertical scrolling in kernels after 2.6.11.&lt;br /&gt;
&lt;br /&gt;
The feature was removed as it was not a hardware feature, but rather emulating a scroll action in software and as such did not belong in the kernel.&lt;br /&gt;
Instead the scroll feature of the Xserver should be used, which can be activated with HAL or xinput as described above.&lt;br /&gt;
&lt;br /&gt;
=Configuration using the X server (xorg.conf)=&lt;br /&gt;
==Using the &amp;quot;evdev&amp;quot; driver (preferred, especially for recent Xorg versions)==&lt;br /&gt;
Extract from /etc/X11/xorg.conf on an X31:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
        Driver     &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option     &amp;quot;Device&amp;quot; &amp;quot;/dev/input/by-path/platform-i8042-serio-1-event-mouse&amp;quot;&lt;br /&gt;
        Option     &amp;quot;GrabDevice&amp;quot; &amp;quot;False&amp;quot;&lt;br /&gt;
        Option     &amp;quot;EmulateWheel&amp;quot; &amp;quot;true&amp;quot; #Enable wheel emulation for the Trackpoint&lt;br /&gt;
        Option     &amp;quot;EmulateWheelButton&amp;quot; &amp;quot;2&amp;quot; #Use the middle button for the emulation&lt;br /&gt;
        Option     &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot; #Map trackpoint X axis to X axis of emulated wheel&lt;br /&gt;
        Option     &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot; #Map trackpoint Y axis to Y axis of emulated wheel&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The device path used in the example above is a typical value.  To determine the device path appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==Using the &amp;quot;mouse&amp;quot; driver (deprecated, only for old Xorg versions)==&lt;br /&gt;
{{NOTE|This only applies to old distributions with Xorg versions that did not yet use evdev. For modern distributions use one of the other methods}}&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;
=Application specific tweaks=&lt;br /&gt;
===Configure Opera for using trackpoint horizontal scrolling===&lt;br /&gt;
To fix horizontal scrolling in Opera, 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/ui/ (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;
===Firefox 3 tweaks===&lt;br /&gt;
These settings make Firefox on Linux behave more like the Windows version. They were tested on an out of the box Fedora 10 system on a Thinkpad T61.  Go into about:config, and set the following:&lt;br /&gt;
&lt;br /&gt;
 middlemouse.paste = false&lt;br /&gt;
 middlemouse.contentLoadURL = false&lt;br /&gt;
 general.autoScroll = true&lt;br /&gt;
&lt;br /&gt;
=Sysfs Options Reference=&lt;br /&gt;
{{NOTE|These options are current as of kernel version 2.6.29, 3 May 2009}}&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| sensitivity&lt;br /&gt;
| Integer&lt;br /&gt;
| 128&lt;br /&gt;
| Sensitivity&lt;br /&gt;
|-&lt;br /&gt;
| speed&lt;br /&gt;
| Integer&lt;br /&gt;
| 97&lt;br /&gt;
| Cursor speed&lt;br /&gt;
|-&lt;br /&gt;
| inertia&lt;br /&gt;
| Integer&lt;br /&gt;
| 6&lt;br /&gt;
| Described as &amp;quot;negative inertia.&amp;quot;  It acts more like friction.  High values cause the cursor to snap backward when the Trackpoint is released&lt;br /&gt;
|-&lt;br /&gt;
| reach&lt;br /&gt;
| Integer&lt;br /&gt;
| 10&lt;br /&gt;
| Backup for Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| draghys&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Drag hysteresis (how hard it is to drag with Z-axis pressed)&lt;br /&gt;
|-&lt;br /&gt;
| mindrag&lt;br /&gt;
| Integer&lt;br /&gt;
| 20&lt;br /&gt;
| Minimum amount of force needed to trigger dragging&lt;br /&gt;
|-&lt;br /&gt;
| thresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 8&lt;br /&gt;
| Minimum value for a Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| upthresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Used to generate a 'click' on Z-axis&lt;br /&gt;
|-&lt;br /&gt;
| ztime&lt;br /&gt;
| Integer&lt;br /&gt;
| 38&lt;br /&gt;
| How sharp of a press&lt;br /&gt;
|-&lt;br /&gt;
| jenks&lt;br /&gt;
| Integer&lt;br /&gt;
| 135&lt;br /&gt;
| Minimum curvature for double click&lt;br /&gt;
|-&lt;br /&gt;
| press_to_select&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Press to select&lt;br /&gt;
|-&lt;br /&gt;
| skipback&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Supress movement after drag release&lt;br /&gt;
|-&lt;br /&gt;
| ext_dev&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Disable external device&lt;br /&gt;
|}&lt;br /&gt;
Table info taken from [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/input/mouse/trackpoint.h;hb=HEAD here].  The given link will always point to the current version of the driver.  If the notes seem sparse, that's because the code is sparse.  On the other hand, the [http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf Trackpoint Engineering Specification Version 4.0] &amp;lt;!--if this link breaks, I recommend a quick Google search for &amp;quot;trackpoint version 4 engineering specifications&amp;quot; --&amp;gt; contains more documentation information than anyone ever desired.&lt;br /&gt;
&lt;br /&gt;
=Determining TrackPoint Path ID=&lt;br /&gt;
Both the [[#udev|udev]] and [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration methods require knowledge of the Path ID of the TrackPoint.  In the [[#udev|udev]] configuration method, the Path ID is used to match the ID_PATH environmental variable, in the [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration method it is the prefix for the device file name inside the {{path|/dev/input/by-id}} directory.  The path ID can vary between ThinkPad models, distributions (with varying kernel patches), and between kernel versions.  One way to find the path ID for the TrackPoint is to use udev's path_id utility on the sysfs device path for the TrackPoint.  This device path can be found using the {{path|name}} file which describes the TrackPoint.  The process can be automated using the following shell command:&lt;br /&gt;
 /lib/udev/path_id $(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/sys\(.*\)\/name/\1/')&lt;/div&gt;</summary>
		<author><name>Trmsw</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=58201</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=58201"/>
		<updated>2017-05-11T01:45:50Z</updated>

		<summary type="html">&lt;p&gt;Trmsw: /* old method using xinput set-int-prop */&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; |Below are several ways of configuring the kernel psmouse driver for controlling extended TrackPoint features.&lt;br /&gt;
|}&lt;br /&gt;
On a '''Modern''' distribution (like Fedora, Ubuntu or OpenSUSE) you will want to use xinput or one of the graphical front ends. For distributions that are lagging a bit (e.g. Debian Lenny and PCLOS '09) you may still want to use the old xorg config method.&lt;br /&gt;
&lt;br /&gt;
=Configuration using xinput=&lt;br /&gt;
If you want to modify changes on the fly, you can do so with {{cmd|xinput|}} (part of the optional xorg-x11-apps rpm on Fedora).&lt;br /&gt;
Note that these changes are not saved when the xserver is restarted. However, you can add the lines e.g. in your  {{cmd|.xsessionrc|}} (depends on your distribution) so they are executed every time X starts.&lt;br /&gt;
&lt;br /&gt;
To query the available options&lt;br /&gt;
 xinput list-props &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
&lt;br /&gt;
More information can be found in the man-pages for evdev&lt;br /&gt;
 man evdev&lt;br /&gt;
&lt;br /&gt;
To enable vertical scrolling&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
To enable horizontal scrolling in addition to vertical scrolling&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To enable middle button emulation (using left- and right-click simultaneously)&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Timeout&amp;quot; 50&lt;br /&gt;
&lt;br /&gt;
== old method using xinput set-int-prop ==&lt;br /&gt;
&lt;br /&gt;
To enable vertical scrolling&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
To enable horizontal scrolling in addition to vertical scrolling&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To enable middle button emulation (using left- and right-click simultaneously)&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Emulation&amp;quot;  1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Timeout&amp;quot; 50&lt;br /&gt;
&lt;br /&gt;
==Example: openSUSE 11.2 and ThinkPad USB Keyboard with TrackPoint ==&lt;br /&gt;
&lt;br /&gt;
 xinput list&lt;br /&gt;
will show two &amp;quot;Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint.&amp;quot; with two different ids. Use the id with Axis 0 and Axis 1 items.&lt;br /&gt;
&lt;br /&gt;
Suppose the id was 12. The following will enable the trackpoint scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation Button&amp;quot;  2&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
The following will enable the horizontal scrolling&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To disable middle button click paste functionality, remap the middle button to something else:&lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 9 3 4 5 6 7 8 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To do these automatically without worrying about id number, generate a bash script file:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id&lt;br /&gt;
 do&lt;br /&gt;
         case `xinput list-props $id` in&lt;br /&gt;
         *&amp;quot;Middle Button Emulation&amp;quot;*)&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Middle Button Emulation&amp;quot; 0&lt;br /&gt;
                 ;;&lt;br /&gt;
         esac&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
 # disable middle button&lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 9 3 4 5 6 7 8 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and save it with any name such as trackPointScrolling.sh, and make it executable:&lt;br /&gt;
 chmod +x trackPointScrolling.sh&lt;br /&gt;
&lt;br /&gt;
Next time you run it with $ ./trackPointScrolling.sh, it will enable the trackpoint scrolling and disable middle button paste.&lt;br /&gt;
{{Todo|some other examples}}&lt;br /&gt;
&lt;br /&gt;
= Graphical Frontends =&lt;br /&gt;
If you are using GNOME, you might want to use [http://live.gnome.org/GPointingDeviceSettings GPointing Device Settings] or [http://tpctl.sourceforge.net/configure-trackpoint.html configure-trackpoint] as a graphical frontends.&lt;br /&gt;
=== GPointing Device Settings ===&lt;br /&gt;
It is available for Fedora 12, Ubuntu 9.10 and Debian Squeeze in the standard package repositories&lt;br /&gt;
{{NOTE|Unfortunately it seems no longer maintained, and does not work properly with GNOME3 [[https://bugzilla.redhat.com/show_bug.cgi?id=710053 bug]]}}&lt;br /&gt;
&lt;br /&gt;
[[image:Screenshot-GPointing Device Settings-TrackPoint.png]]&lt;br /&gt;
&lt;br /&gt;
=== configure-trackpoint ===&lt;br /&gt;
To install it in Ubuntu run ...&lt;br /&gt;
 sudo apt-get install sysfsutils&lt;br /&gt;
...and then download and install the deb [http://sourceforge.net/projects/tpctl/ here]. Note that saved settings are not restored after reboot in Lucid Lynx. See methods below to make settings permanent.&lt;br /&gt;
&lt;br /&gt;
= Configuration using DevKit =&lt;br /&gt;
Most recent distributions like Ubuntu 9.10 switch from HAL (being deprecated) to DevKit. Hence, the HAL configurations explained underneath, fail to work.&lt;br /&gt;
&lt;br /&gt;
The easiest way to configure your touchpad and trackpoint with DevKit is by using the [http://live.gnome.org/GPointingDeviceSettings GPointingDeviceSettings] panel that fully supports the hardware. You can easily download the panel by installing {{cmd| gpointing-device-settings|}}. On Ubuntu open a terminal and execute the command {{cmduser| sudo apt-get install gpointing-device-settings}}&lt;br /&gt;
&lt;br /&gt;
Launch the UI through the {{cmduser| gpointing-device-settings}} command, but you can also add a menu entry to your System / Preferences menu for easier access to the UI panel.&lt;br /&gt;
&lt;br /&gt;
= Configuration using udev and HAL =&lt;br /&gt;
Modern distributions like Ubuntu 8.10 and Fedora 10 use udev and HAL to configure the input devices. You should no longer make changes to xorg.conf as by default Xorg (through the evdev driver) will let the kernel now handle input devices.&lt;br /&gt;
&lt;br /&gt;
But before you get started on this you should make sure you have all the updates applied from your distro vendor as both Ubuntu 8.10 and Fedora 10 require some additional fixes that you will need.&lt;br /&gt;
&lt;br /&gt;
=== Scrolling ===&lt;br /&gt;
&lt;br /&gt;
By default the middle mouse button is just that, a middle mouse button, which in Linux is used for the Paste operation.&lt;br /&gt;
&lt;br /&gt;
You may configure it to act in the same way as in Windows, such that you can use it for vertical scrolling: keep the button pressed and move the TrackPoint up and down to scroll. (In GPointing Device Settings, this is known as &amp;quot;Use wheel emulation&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This setting is not compatible with using Alt + Middle Mouse Button to resize windows. If you want to resize windows with the trackpad, disable wheel emulation. On Ubuntu 11.10, this setting resides in &amp;lt;tt&amp;gt;/usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf&amp;lt;/tt&amp;gt; (see below), although some touchpads use &amp;lt;tt&amp;gt;/usr/share/X11/xorg.conf.d/50-synaptics.conf&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== xorg.conf.d ====&lt;br /&gt;
&lt;br /&gt;
Some distributions now support the new Xorg hotplug configuration method via xorg.conf.d directories (in Ubuntu 10.04 Lucid Lynx) instead of hal. In contrast to the udev method below, it should be around for some time, so it might be the best way to “statically” configure scrolling.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/usr/lib/X11/xorg.conf.d/20-thinkpad.conf}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputClass&amp;quot;&lt;br /&gt;
	Identifier	&amp;quot;Trackpoint Wheel Emulation&amp;quot;&lt;br /&gt;
	MatchProduct	&amp;quot;TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint&amp;quot;&lt;br /&gt;
	MatchDevicePath	&amp;quot;/dev/input/event*&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;
	Option		&amp;quot;Emulate3Buttons&amp;quot;	&amp;quot;false&amp;quot;&lt;br /&gt;
	Option		&amp;quot;XAxisMapping&amp;quot;		&amp;quot;6 7&amp;quot;&lt;br /&gt;
	Option		&amp;quot;YAxisMapping&amp;quot;		&amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For Ubuntu 10.10 Maverick Meerkat, the correct path is {{path|/usr/share/X11/xorg.conf.d}}}}&lt;br /&gt;
{{NOTE|For Arch Linux or Fedora or PCLinuxOS, the correct path is {{path|/etc/X11/xorg.conf.d}}}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above does not work for you, you may need to add a different MatchProduct string.  Use &amp;lt;pre&amp;gt;find /dev/input/event* -exec udevadm info --attribute-walk --name={} \; | grep -e product -e name | sort -u&amp;lt;/pre&amp;gt; to get a list of possibilities.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above directory doesn't exist by default in your distribution, it probably doesn't support this method. In this case, please refer to the udev or xinput method below.}}&lt;br /&gt;
&lt;br /&gt;
==== udev ====&lt;br /&gt;
&lt;br /&gt;
Now that Xorg doesn't use the configuration from hal (in Debian unstable starting january 2010), the only way to “statically” configure scrolling in trackpoint is udev. (for other people, xinput method, works fine). This method will be gone (_again_) in not too long so it might be a better idea to use xinput way. YMMV.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/etc/udev/rules.d/99_trackpoint.rules}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ACTION!=&amp;quot;add|change&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
KERNEL!=&amp;quot;event*&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{ID_PATH}!=&amp;quot;platform-i8042-serio-1&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{x11_options.EmulateWheel}=&amp;quot;1&amp;quot;&lt;br /&gt;
ENV{x11_options.EmulateWheelButton}=&amp;quot;2&amp;quot;&lt;br /&gt;
ENV{x11_options.XAxisMapping}=&amp;quot;6 7&amp;quot;&lt;br /&gt;
ENV{x11_options.Emulate3Buttons}=&amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
LABEL=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart udev then Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The ID_PATH used in the example above is a typical value.  To determine the ID_PATH appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==== Hal (soon to be deprecated) ====&lt;br /&gt;
&lt;br /&gt;
To accomplish this create the file {{path|/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.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;
If you also want to have horizontal scrolling, simply add the following XAxisMapping option to the above&lt;br /&gt;
&amp;lt;pre&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;/pre&amp;gt;&lt;br /&gt;
After this reboot, or restart the hal service and Xorg. You can validate the settings with {{cmd|lshal|}}.&lt;br /&gt;
&lt;br /&gt;
In some models (eg: X301 and X200 since Jan 10 2010 on debian sid) you may have to use &amp;quot;PS/2 Generic Mouse&amp;quot; instead of &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;. Have a look to your input devices typing &amp;lt;code&amp;gt;lshal|grep input.product&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Alternatively it is also possible to use the &amp;quot;old&amp;quot; Xorg configuration by adding the following lines to the {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerFlags&amp;quot;&lt;br /&gt;
	Option 	&amp;quot;AutoAddDevices&amp;quot; &amp;quot;false&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using this entry HAL will not be used for the input devices.&lt;br /&gt;
&lt;br /&gt;
====Reactivate Scrolling after suspend/resume====&lt;br /&gt;
Scrolling may be disabled after a resume from suspend.&lt;br /&gt;
&lt;br /&gt;
You can manually reactivate the trackpoint by reloading the {{path|psmouse}} module as root:&lt;br /&gt;
:{{cmdroot|rmmod psmouse &amp;amp;&amp;amp; modprobe psmouse}}&lt;br /&gt;
&lt;br /&gt;
You can automatically force the pm-utils to reload this module.&lt;br /&gt;
Create a file {{path|/etc/pm/config.d/01reload_mouse}} as root with the following content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# reload psmouse to reactivate trackpoint scrolling&lt;br /&gt;
SUSPEND_MODULES=&amp;quot;${SUSPEND_MODULES:+$SUSPEND_MODULES }psmouse&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring other options (e.g. Press to select, Sensitivity and Speed)===&lt;br /&gt;
&amp;lt;!--HAL wasn't made to configure sysfs settings, so we'll use udev instead --&amp;gt;&lt;br /&gt;
Create a file {{path|/etc/udev/rules.d/10-trackpoint.rules}} and add a line to suit your needs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTRS{press_to_select}=&amp;quot;1&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing udev  with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1}} should apply the new changes.  All of the settings listed [[How to configure the TrackPoint#Sysfs_Options_Reference|below]] can be specified here as part of a comma separated list.&lt;br /&gt;
The customized values should be loaded automatically when booting. However, due to a [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549379  kernel bug] (affecting Lucid Lynx), the attributes may not yet exist when the udev rule fires. As a work around, add a WAIT_FOR condition on the attribute. In order to make sure you are using the right constraints (SUBSYSTEM, DRIVERS, etc), you can run {{cmdroot|udevadm info --query all --attribute-walk --path /sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On my system (Lucid Lynx), the above line did not work. I changed it to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTR{sensitivity}=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and tested with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
On trusty, the following works for me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;serio2&amp;quot;, SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTR{sensitivity}=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On xenial (16.04) the following line works for me (WAIT_FOR is not supported anymore):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;serio2&amp;quot;, SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTR{sensitivity}:=&amp;quot;255&amp;quot;, ATTR{speed}:=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To avoid the wait you can also listen for the Trackpoint input device to appear and then run a script to set the parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;input&amp;quot;, ATTR{name}==&amp;quot;*TrackPoint*&amp;quot;, RUN+=&amp;quot;/etc/conf.d/trackpoint&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example {{path|/etc/conf.d/trackpoint}} would be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#! /bin/bash&lt;br /&gt;
&lt;br /&gt;
## Trackpoint settings&lt;br /&gt;
&lt;br /&gt;
# When run from a udev rule, DEVPATH should be set&lt;br /&gt;
if [ ! -z $DEVPATH ] ; then&lt;br /&gt;
    TPDEV=/sys/$( echo &amp;quot;$DEVPATH&amp;quot; | sed 's/\/input\/input[0-9]*//' )&lt;br /&gt;
else&lt;br /&gt;
# Otherwise just look in /sys/&lt;br /&gt;
    TPDEV=$(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//')&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint&lt;br /&gt;
# http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
if [ -d &amp;quot;$TPDEV&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Configuring Trackpoint&amp;quot;&lt;br /&gt;
    echo -n 255     &amp;gt; $TPDEV/sensitivity     # Integer  128   Sensitivity&lt;br /&gt;
    echo -n 110     &amp;gt; $TPDEV/speed           # Integer  97   Cursor speed&lt;br /&gt;
    echo -n 4       &amp;gt; $TPDEV/inertia         # Integer  6   Negative intertia&lt;br /&gt;
else&lt;br /&gt;
    echo &amp;quot;Couldn't find trackpoint device $TPDEV&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Configuration using sysfs=&lt;br /&gt;
Another way to modify changes on the fly, is echoing values directly into special files in sysfs.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|&lt;br /&gt;
The examples shown below are valid for ThinkPads with both TrackPoint and Touchpad, in which case the sysfs path is {{path|/sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
If however you have a ThinkPad without Touchpad, or with the Touchpad disabled in the BIOS, the sysfs path needs to be changed to {{path|/sys/devices/platform/i8042/serio1}} instead (notice the missing serio2 at the end).}}&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;
===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/serio1/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/serio1/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/serio1/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/serio1/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/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 8.10 to make Press to Select a permanent change:&lt;br /&gt;
&lt;br /&gt;
echo -n 1 | tee /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
As root, append the above command above &amp;quot;exit 0&amp;quot; in /etc/gdm/Init/Default&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/serio1/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, on my ThinkPad T420s, the correct commands are:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/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.  In Ubuntu 9.10, add the lines to /etc/rc.local to avoid this.&lt;br /&gt;
&lt;br /&gt;
===Vertical Scrolling===&lt;br /&gt;
No sysfs entry exists for vertical scrolling in kernels after 2.6.11.&lt;br /&gt;
&lt;br /&gt;
The feature was removed as it was not a hardware feature, but rather emulating a scroll action in software and as such did not belong in the kernel.&lt;br /&gt;
Instead the scroll feature of the Xserver should be used, which can be activated with HAL or xinput as described above.&lt;br /&gt;
&lt;br /&gt;
=Configuration using the X server (xorg.conf)=&lt;br /&gt;
==Using the &amp;quot;evdev&amp;quot; driver (preferred, especially for recent Xorg versions)==&lt;br /&gt;
Extract from /etc/X11/xorg.conf on an X31:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
        Driver     &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option     &amp;quot;Device&amp;quot; &amp;quot;/dev/input/by-path/platform-i8042-serio-1-event-mouse&amp;quot;&lt;br /&gt;
        Option     &amp;quot;GrabDevice&amp;quot; &amp;quot;False&amp;quot;&lt;br /&gt;
        Option     &amp;quot;EmulateWheel&amp;quot; &amp;quot;true&amp;quot; #Enable wheel emulation for the Trackpoint&lt;br /&gt;
        Option     &amp;quot;EmulateWheelButton&amp;quot; &amp;quot;2&amp;quot; #Use the middle button for the emulation&lt;br /&gt;
        Option     &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot; #Map trackpoint X axis to X axis of emulated wheel&lt;br /&gt;
        Option     &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot; #Map trackpoint Y axis to Y axis of emulated wheel&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The device path used in the example above is a typical value.  To determine the device path appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==Using the &amp;quot;mouse&amp;quot; driver (deprecated, only for old Xorg versions)==&lt;br /&gt;
{{NOTE|This only applies to old distributions with Xorg versions that did not yet use evdev. For modern distributions use one of the other methods}}&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;
=Application specific tweaks=&lt;br /&gt;
===Configure Opera for using trackpoint horizontal scrolling===&lt;br /&gt;
To fix horizontal scrolling in Opera, 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/ui/ (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;
===Firefox 3 tweaks===&lt;br /&gt;
These settings make Firefox on Linux behave more like the Windows version. They were tested on an out of the box Fedora 10 system on a Thinkpad T61.  Go into about:config, and set the following:&lt;br /&gt;
&lt;br /&gt;
 middlemouse.paste = false&lt;br /&gt;
 middlemouse.contentLoadURL = false&lt;br /&gt;
 general.autoScroll = true&lt;br /&gt;
&lt;br /&gt;
=Sysfs Options Reference=&lt;br /&gt;
{{NOTE|These options are current as of kernel version 2.6.29, 3 May 2009}}&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| sensitivity&lt;br /&gt;
| Integer&lt;br /&gt;
| 128&lt;br /&gt;
| Sensitivity&lt;br /&gt;
|-&lt;br /&gt;
| speed&lt;br /&gt;
| Integer&lt;br /&gt;
| 97&lt;br /&gt;
| Cursor speed&lt;br /&gt;
|-&lt;br /&gt;
| inertia&lt;br /&gt;
| Integer&lt;br /&gt;
| 6&lt;br /&gt;
| Described as &amp;quot;negative inertia.&amp;quot;  It acts more like friction.  High values cause the cursor to snap backward when the Trackpoint is released&lt;br /&gt;
|-&lt;br /&gt;
| reach&lt;br /&gt;
| Integer&lt;br /&gt;
| 10&lt;br /&gt;
| Backup for Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| draghys&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Drag hysteresis (how hard it is to drag with Z-axis pressed)&lt;br /&gt;
|-&lt;br /&gt;
| mindrag&lt;br /&gt;
| Integer&lt;br /&gt;
| 20&lt;br /&gt;
| Minimum amount of force needed to trigger dragging&lt;br /&gt;
|-&lt;br /&gt;
| thresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 8&lt;br /&gt;
| Minimum value for a Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| upthresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Used to generate a 'click' on Z-axis&lt;br /&gt;
|-&lt;br /&gt;
| ztime&lt;br /&gt;
| Integer&lt;br /&gt;
| 38&lt;br /&gt;
| How sharp of a press&lt;br /&gt;
|-&lt;br /&gt;
| jenks&lt;br /&gt;
| Integer&lt;br /&gt;
| 135&lt;br /&gt;
| Minimum curvature for double click&lt;br /&gt;
|-&lt;br /&gt;
| press_to_select&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Press to select&lt;br /&gt;
|-&lt;br /&gt;
| skipback&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Supress movement after drag release&lt;br /&gt;
|-&lt;br /&gt;
| ext_dev&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Disable external device&lt;br /&gt;
|}&lt;br /&gt;
Table info taken from [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/input/mouse/trackpoint.h;hb=HEAD here].  The given link will always point to the current version of the driver.  If the notes seem sparse, that's because the code is sparse.  On the other hand, the [http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf Trackpoint Engineering Specification Version 4.0] &amp;lt;!--if this link breaks, I recommend a quick Google search for &amp;quot;trackpoint version 4 engineering specifications&amp;quot; --&amp;gt; contains more documentation information than anyone ever desired.&lt;br /&gt;
&lt;br /&gt;
=Determining TrackPoint Path ID=&lt;br /&gt;
Both the [[#udev|udev]] and [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration methods require knowledge of the Path ID of the TrackPoint.  In the [[#udev|udev]] configuration method, the Path ID is used to match the ID_PATH environmental variable, in the [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration method it is the prefix for the device file name inside the {{path|/dev/input/by-id}} directory.  The path ID can vary between ThinkPad models, distributions (with varying kernel patches), and between kernel versions.  One way to find the path ID for the TrackPoint is to use udev's path_id utility on the sysfs device path for the TrackPoint.  This device path can be found using the {{path|name}} file which describes the TrackPoint.  The process can be automated using the following shell command:&lt;br /&gt;
 /lib/udev/path_id $(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/sys\(.*\)\/name/\1/')&lt;/div&gt;</summary>
		<author><name>Trmsw</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=58200</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=58200"/>
		<updated>2017-05-11T01:45:24Z</updated>

		<summary type="html">&lt;p&gt;Trmsw: &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; |Below are several ways of configuring the kernel psmouse driver for controlling extended TrackPoint features.&lt;br /&gt;
|}&lt;br /&gt;
On a '''Modern''' distribution (like Fedora, Ubuntu or OpenSUSE) you will want to use xinput or one of the graphical front ends. For distributions that are lagging a bit (e.g. Debian Lenny and PCLOS '09) you may still want to use the old xorg config method.&lt;br /&gt;
&lt;br /&gt;
=Configuration using xinput=&lt;br /&gt;
If you want to modify changes on the fly, you can do so with {{cmd|xinput|}} (part of the optional xorg-x11-apps rpm on Fedora).&lt;br /&gt;
Note that these changes are not saved when the xserver is restarted. However, you can add the lines e.g. in your  {{cmd|.xsessionrc|}} (depends on your distribution) so they are executed every time X starts.&lt;br /&gt;
&lt;br /&gt;
To query the available options&lt;br /&gt;
 xinput list-props &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
&lt;br /&gt;
More information can be found in the man-pages for evdev&lt;br /&gt;
 man evdev&lt;br /&gt;
&lt;br /&gt;
To enable vertical scrolling&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
To enable horizontal scrolling in addition to vertical scrolling&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To enable middle button emulation (using left- and right-click simultaneously)&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Timeout&amp;quot; 50&lt;br /&gt;
&lt;br /&gt;
== old method using xinput set-int-prop ==&lt;br /&gt;
&lt;br /&gt;
Note: xinput set-int-prop is deprecated according to the xinput manpage.&lt;br /&gt;
&lt;br /&gt;
To enable vertical scrolling&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
To enable horizontal scrolling in addition to vertical scrolling&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To enable middle button emulation (using left- and right-click simultaneously)&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Emulation&amp;quot;  1&lt;br /&gt;
 xinput set-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Timeout&amp;quot; 50&lt;br /&gt;
&lt;br /&gt;
==Example: openSUSE 11.2 and ThinkPad USB Keyboard with TrackPoint ==&lt;br /&gt;
&lt;br /&gt;
 xinput list&lt;br /&gt;
will show two &amp;quot;Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint.&amp;quot; with two different ids. Use the id with Axis 0 and Axis 1 items.&lt;br /&gt;
&lt;br /&gt;
Suppose the id was 12. The following will enable the trackpoint scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation Button&amp;quot;  2&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
&lt;br /&gt;
The following will enable the horizontal scrolling&lt;br /&gt;
 xinput set-prop 12 &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To disable middle button click paste functionality, remap the middle button to something else:&lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 9 3 4 5 6 7 8 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To do these automatically without worrying about id number, generate a bash script file:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id&lt;br /&gt;
 do&lt;br /&gt;
         case `xinput list-props $id` in&lt;br /&gt;
         *&amp;quot;Middle Button Emulation&amp;quot;*)&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation&amp;quot; 1&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation Button&amp;quot; 2&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 200&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 6 7 4 5&lt;br /&gt;
                 xinput set-prop $id &amp;quot;Evdev Middle Button Emulation&amp;quot; 0&lt;br /&gt;
                 ;;&lt;br /&gt;
         esac&lt;br /&gt;
 done&lt;br /&gt;
&lt;br /&gt;
 # disable middle button&lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 9 3 4 5 6 7 8 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and save it with any name such as trackPointScrolling.sh, and make it executable:&lt;br /&gt;
 chmod +x trackPointScrolling.sh&lt;br /&gt;
&lt;br /&gt;
Next time you run it with $ ./trackPointScrolling.sh, it will enable the trackpoint scrolling and disable middle button paste.&lt;br /&gt;
{{Todo|some other examples}}&lt;br /&gt;
&lt;br /&gt;
= Graphical Frontends =&lt;br /&gt;
If you are using GNOME, you might want to use [http://live.gnome.org/GPointingDeviceSettings GPointing Device Settings] or [http://tpctl.sourceforge.net/configure-trackpoint.html configure-trackpoint] as a graphical frontends.&lt;br /&gt;
=== GPointing Device Settings ===&lt;br /&gt;
It is available for Fedora 12, Ubuntu 9.10 and Debian Squeeze in the standard package repositories&lt;br /&gt;
{{NOTE|Unfortunately it seems no longer maintained, and does not work properly with GNOME3 [[https://bugzilla.redhat.com/show_bug.cgi?id=710053 bug]]}}&lt;br /&gt;
&lt;br /&gt;
[[image:Screenshot-GPointing Device Settings-TrackPoint.png]]&lt;br /&gt;
&lt;br /&gt;
=== configure-trackpoint ===&lt;br /&gt;
To install it in Ubuntu run ...&lt;br /&gt;
 sudo apt-get install sysfsutils&lt;br /&gt;
...and then download and install the deb [http://sourceforge.net/projects/tpctl/ here]. Note that saved settings are not restored after reboot in Lucid Lynx. See methods below to make settings permanent.&lt;br /&gt;
&lt;br /&gt;
= Configuration using DevKit =&lt;br /&gt;
Most recent distributions like Ubuntu 9.10 switch from HAL (being deprecated) to DevKit. Hence, the HAL configurations explained underneath, fail to work.&lt;br /&gt;
&lt;br /&gt;
The easiest way to configure your touchpad and trackpoint with DevKit is by using the [http://live.gnome.org/GPointingDeviceSettings GPointingDeviceSettings] panel that fully supports the hardware. You can easily download the panel by installing {{cmd| gpointing-device-settings|}}. On Ubuntu open a terminal and execute the command {{cmduser| sudo apt-get install gpointing-device-settings}}&lt;br /&gt;
&lt;br /&gt;
Launch the UI through the {{cmduser| gpointing-device-settings}} command, but you can also add a menu entry to your System / Preferences menu for easier access to the UI panel.&lt;br /&gt;
&lt;br /&gt;
= Configuration using udev and HAL =&lt;br /&gt;
Modern distributions like Ubuntu 8.10 and Fedora 10 use udev and HAL to configure the input devices. You should no longer make changes to xorg.conf as by default Xorg (through the evdev driver) will let the kernel now handle input devices.&lt;br /&gt;
&lt;br /&gt;
But before you get started on this you should make sure you have all the updates applied from your distro vendor as both Ubuntu 8.10 and Fedora 10 require some additional fixes that you will need.&lt;br /&gt;
&lt;br /&gt;
=== Scrolling ===&lt;br /&gt;
&lt;br /&gt;
By default the middle mouse button is just that, a middle mouse button, which in Linux is used for the Paste operation.&lt;br /&gt;
&lt;br /&gt;
You may configure it to act in the same way as in Windows, such that you can use it for vertical scrolling: keep the button pressed and move the TrackPoint up and down to scroll. (In GPointing Device Settings, this is known as &amp;quot;Use wheel emulation&amp;quot;.)&lt;br /&gt;
&lt;br /&gt;
'''Note:''' This setting is not compatible with using Alt + Middle Mouse Button to resize windows. If you want to resize windows with the trackpad, disable wheel emulation. On Ubuntu 11.10, this setting resides in &amp;lt;tt&amp;gt;/usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf&amp;lt;/tt&amp;gt; (see below), although some touchpads use &amp;lt;tt&amp;gt;/usr/share/X11/xorg.conf.d/50-synaptics.conf&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== xorg.conf.d ====&lt;br /&gt;
&lt;br /&gt;
Some distributions now support the new Xorg hotplug configuration method via xorg.conf.d directories (in Ubuntu 10.04 Lucid Lynx) instead of hal. In contrast to the udev method below, it should be around for some time, so it might be the best way to “statically” configure scrolling.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/usr/lib/X11/xorg.conf.d/20-thinkpad.conf}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputClass&amp;quot;&lt;br /&gt;
	Identifier	&amp;quot;Trackpoint Wheel Emulation&amp;quot;&lt;br /&gt;
	MatchProduct	&amp;quot;TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint&amp;quot;&lt;br /&gt;
	MatchDevicePath	&amp;quot;/dev/input/event*&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;
	Option		&amp;quot;Emulate3Buttons&amp;quot;	&amp;quot;false&amp;quot;&lt;br /&gt;
	Option		&amp;quot;XAxisMapping&amp;quot;		&amp;quot;6 7&amp;quot;&lt;br /&gt;
	Option		&amp;quot;YAxisMapping&amp;quot;		&amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For Ubuntu 10.10 Maverick Meerkat, the correct path is {{path|/usr/share/X11/xorg.conf.d}}}}&lt;br /&gt;
{{NOTE|For Arch Linux or Fedora or PCLinuxOS, the correct path is {{path|/etc/X11/xorg.conf.d}}}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above does not work for you, you may need to add a different MatchProduct string.  Use &amp;lt;pre&amp;gt;find /dev/input/event* -exec udevadm info --attribute-walk --name={} \; | grep -e product -e name | sort -u&amp;lt;/pre&amp;gt; to get a list of possibilities.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above directory doesn't exist by default in your distribution, it probably doesn't support this method. In this case, please refer to the udev or xinput method below.}}&lt;br /&gt;
&lt;br /&gt;
==== udev ====&lt;br /&gt;
&lt;br /&gt;
Now that Xorg doesn't use the configuration from hal (in Debian unstable starting january 2010), the only way to “statically” configure scrolling in trackpoint is udev. (for other people, xinput method, works fine). This method will be gone (_again_) in not too long so it might be a better idea to use xinput way. YMMV.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/etc/udev/rules.d/99_trackpoint.rules}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ACTION!=&amp;quot;add|change&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
KERNEL!=&amp;quot;event*&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{ID_PATH}!=&amp;quot;platform-i8042-serio-1&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{x11_options.EmulateWheel}=&amp;quot;1&amp;quot;&lt;br /&gt;
ENV{x11_options.EmulateWheelButton}=&amp;quot;2&amp;quot;&lt;br /&gt;
ENV{x11_options.XAxisMapping}=&amp;quot;6 7&amp;quot;&lt;br /&gt;
ENV{x11_options.Emulate3Buttons}=&amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
LABEL=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart udev then Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The ID_PATH used in the example above is a typical value.  To determine the ID_PATH appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==== Hal (soon to be deprecated) ====&lt;br /&gt;
&lt;br /&gt;
To accomplish this create the file {{path|/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.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;
If you also want to have horizontal scrolling, simply add the following XAxisMapping option to the above&lt;br /&gt;
&amp;lt;pre&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;/pre&amp;gt;&lt;br /&gt;
After this reboot, or restart the hal service and Xorg. You can validate the settings with {{cmd|lshal|}}.&lt;br /&gt;
&lt;br /&gt;
In some models (eg: X301 and X200 since Jan 10 2010 on debian sid) you may have to use &amp;quot;PS/2 Generic Mouse&amp;quot; instead of &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;. Have a look to your input devices typing &amp;lt;code&amp;gt;lshal|grep input.product&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Alternatively it is also possible to use the &amp;quot;old&amp;quot; Xorg configuration by adding the following lines to the {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerFlags&amp;quot;&lt;br /&gt;
	Option 	&amp;quot;AutoAddDevices&amp;quot; &amp;quot;false&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using this entry HAL will not be used for the input devices.&lt;br /&gt;
&lt;br /&gt;
====Reactivate Scrolling after suspend/resume====&lt;br /&gt;
Scrolling may be disabled after a resume from suspend.&lt;br /&gt;
&lt;br /&gt;
You can manually reactivate the trackpoint by reloading the {{path|psmouse}} module as root:&lt;br /&gt;
:{{cmdroot|rmmod psmouse &amp;amp;&amp;amp; modprobe psmouse}}&lt;br /&gt;
&lt;br /&gt;
You can automatically force the pm-utils to reload this module.&lt;br /&gt;
Create a file {{path|/etc/pm/config.d/01reload_mouse}} as root with the following content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# reload psmouse to reactivate trackpoint scrolling&lt;br /&gt;
SUSPEND_MODULES=&amp;quot;${SUSPEND_MODULES:+$SUSPEND_MODULES }psmouse&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring other options (e.g. Press to select, Sensitivity and Speed)===&lt;br /&gt;
&amp;lt;!--HAL wasn't made to configure sysfs settings, so we'll use udev instead --&amp;gt;&lt;br /&gt;
Create a file {{path|/etc/udev/rules.d/10-trackpoint.rules}} and add a line to suit your needs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTRS{press_to_select}=&amp;quot;1&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing udev  with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1}} should apply the new changes.  All of the settings listed [[How to configure the TrackPoint#Sysfs_Options_Reference|below]] can be specified here as part of a comma separated list.&lt;br /&gt;
The customized values should be loaded automatically when booting. However, due to a [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549379  kernel bug] (affecting Lucid Lynx), the attributes may not yet exist when the udev rule fires. As a work around, add a WAIT_FOR condition on the attribute. In order to make sure you are using the right constraints (SUBSYSTEM, DRIVERS, etc), you can run {{cmdroot|udevadm info --query all --attribute-walk --path /sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On my system (Lucid Lynx), the above line did not work. I changed it to:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTR{sensitivity}=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and tested with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
On trusty, the following works for me:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;serio2&amp;quot;, SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTR{sensitivity}=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On xenial (16.04) the following line works for me (WAIT_FOR is not supported anymore):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
KERNEL==&amp;quot;serio2&amp;quot;, SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTR{sensitivity}:=&amp;quot;255&amp;quot;, ATTR{speed}:=&amp;quot;255&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To avoid the wait you can also listen for the Trackpoint input device to appear and then run a script to set the parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;input&amp;quot;, ATTR{name}==&amp;quot;*TrackPoint*&amp;quot;, RUN+=&amp;quot;/etc/conf.d/trackpoint&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example {{path|/etc/conf.d/trackpoint}} would be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#! /bin/bash&lt;br /&gt;
&lt;br /&gt;
## Trackpoint settings&lt;br /&gt;
&lt;br /&gt;
# When run from a udev rule, DEVPATH should be set&lt;br /&gt;
if [ ! -z $DEVPATH ] ; then&lt;br /&gt;
    TPDEV=/sys/$( echo &amp;quot;$DEVPATH&amp;quot; | sed 's/\/input\/input[0-9]*//' )&lt;br /&gt;
else&lt;br /&gt;
# Otherwise just look in /sys/&lt;br /&gt;
    TPDEV=$(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//')&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint&lt;br /&gt;
# http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
if [ -d &amp;quot;$TPDEV&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Configuring Trackpoint&amp;quot;&lt;br /&gt;
    echo -n 255     &amp;gt; $TPDEV/sensitivity     # Integer  128   Sensitivity&lt;br /&gt;
    echo -n 110     &amp;gt; $TPDEV/speed           # Integer  97   Cursor speed&lt;br /&gt;
    echo -n 4       &amp;gt; $TPDEV/inertia         # Integer  6   Negative intertia&lt;br /&gt;
else&lt;br /&gt;
    echo &amp;quot;Couldn't find trackpoint device $TPDEV&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Configuration using sysfs=&lt;br /&gt;
Another way to modify changes on the fly, is echoing values directly into special files in sysfs.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|&lt;br /&gt;
The examples shown below are valid for ThinkPads with both TrackPoint and Touchpad, in which case the sysfs path is {{path|/sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
If however you have a ThinkPad without Touchpad, or with the Touchpad disabled in the BIOS, the sysfs path needs to be changed to {{path|/sys/devices/platform/i8042/serio1}} instead (notice the missing serio2 at the end).}}&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;
===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/serio1/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/serio1/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/serio1/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/serio1/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/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 8.10 to make Press to Select a permanent change:&lt;br /&gt;
&lt;br /&gt;
echo -n 1 | tee /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
As root, append the above command above &amp;quot;exit 0&amp;quot; in /etc/gdm/Init/Default&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/serio1/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/serio2/sensitivity}}&lt;br /&gt;
&lt;br /&gt;
Alternatively, on my ThinkPad T420s, the correct commands are:&lt;br /&gt;
&lt;br /&gt;
:{{cmdroot|echo -n 120 &amp;gt; /sys/devices/platform/i8042/serio1/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/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.  In Ubuntu 9.10, add the lines to /etc/rc.local to avoid this.&lt;br /&gt;
&lt;br /&gt;
===Vertical Scrolling===&lt;br /&gt;
No sysfs entry exists for vertical scrolling in kernels after 2.6.11.&lt;br /&gt;
&lt;br /&gt;
The feature was removed as it was not a hardware feature, but rather emulating a scroll action in software and as such did not belong in the kernel.&lt;br /&gt;
Instead the scroll feature of the Xserver should be used, which can be activated with HAL or xinput as described above.&lt;br /&gt;
&lt;br /&gt;
=Configuration using the X server (xorg.conf)=&lt;br /&gt;
==Using the &amp;quot;evdev&amp;quot; driver (preferred, especially for recent Xorg versions)==&lt;br /&gt;
Extract from /etc/X11/xorg.conf on an X31:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
        Driver     &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option     &amp;quot;Device&amp;quot; &amp;quot;/dev/input/by-path/platform-i8042-serio-1-event-mouse&amp;quot;&lt;br /&gt;
        Option     &amp;quot;GrabDevice&amp;quot; &amp;quot;False&amp;quot;&lt;br /&gt;
        Option     &amp;quot;EmulateWheel&amp;quot; &amp;quot;true&amp;quot; #Enable wheel emulation for the Trackpoint&lt;br /&gt;
        Option     &amp;quot;EmulateWheelButton&amp;quot; &amp;quot;2&amp;quot; #Use the middle button for the emulation&lt;br /&gt;
        Option     &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot; #Map trackpoint X axis to X axis of emulated wheel&lt;br /&gt;
        Option     &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot; #Map trackpoint Y axis to Y axis of emulated wheel&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The device path used in the example above is a typical value.  To determine the device path appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==Using the &amp;quot;mouse&amp;quot; driver (deprecated, only for old Xorg versions)==&lt;br /&gt;
{{NOTE|This only applies to old distributions with Xorg versions that did not yet use evdev. For modern distributions use one of the other methods}}&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;
=Application specific tweaks=&lt;br /&gt;
===Configure Opera for using trackpoint horizontal scrolling===&lt;br /&gt;
To fix horizontal scrolling in Opera, 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/ui/ (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;
===Firefox 3 tweaks===&lt;br /&gt;
These settings make Firefox on Linux behave more like the Windows version. They were tested on an out of the box Fedora 10 system on a Thinkpad T61.  Go into about:config, and set the following:&lt;br /&gt;
&lt;br /&gt;
 middlemouse.paste = false&lt;br /&gt;
 middlemouse.contentLoadURL = false&lt;br /&gt;
 general.autoScroll = true&lt;br /&gt;
&lt;br /&gt;
=Sysfs Options Reference=&lt;br /&gt;
{{NOTE|These options are current as of kernel version 2.6.29, 3 May 2009}}&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| sensitivity&lt;br /&gt;
| Integer&lt;br /&gt;
| 128&lt;br /&gt;
| Sensitivity&lt;br /&gt;
|-&lt;br /&gt;
| speed&lt;br /&gt;
| Integer&lt;br /&gt;
| 97&lt;br /&gt;
| Cursor speed&lt;br /&gt;
|-&lt;br /&gt;
| inertia&lt;br /&gt;
| Integer&lt;br /&gt;
| 6&lt;br /&gt;
| Described as &amp;quot;negative inertia.&amp;quot;  It acts more like friction.  High values cause the cursor to snap backward when the Trackpoint is released&lt;br /&gt;
|-&lt;br /&gt;
| reach&lt;br /&gt;
| Integer&lt;br /&gt;
| 10&lt;br /&gt;
| Backup for Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| draghys&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Drag hysteresis (how hard it is to drag with Z-axis pressed)&lt;br /&gt;
|-&lt;br /&gt;
| mindrag&lt;br /&gt;
| Integer&lt;br /&gt;
| 20&lt;br /&gt;
| Minimum amount of force needed to trigger dragging&lt;br /&gt;
|-&lt;br /&gt;
| thresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 8&lt;br /&gt;
| Minimum value for a Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| upthresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Used to generate a 'click' on Z-axis&lt;br /&gt;
|-&lt;br /&gt;
| ztime&lt;br /&gt;
| Integer&lt;br /&gt;
| 38&lt;br /&gt;
| How sharp of a press&lt;br /&gt;
|-&lt;br /&gt;
| jenks&lt;br /&gt;
| Integer&lt;br /&gt;
| 135&lt;br /&gt;
| Minimum curvature for double click&lt;br /&gt;
|-&lt;br /&gt;
| press_to_select&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Press to select&lt;br /&gt;
|-&lt;br /&gt;
| skipback&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Supress movement after drag release&lt;br /&gt;
|-&lt;br /&gt;
| ext_dev&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Disable external device&lt;br /&gt;
|}&lt;br /&gt;
Table info taken from [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/input/mouse/trackpoint.h;hb=HEAD here].  The given link will always point to the current version of the driver.  If the notes seem sparse, that's because the code is sparse.  On the other hand, the [http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf Trackpoint Engineering Specification Version 4.0] &amp;lt;!--if this link breaks, I recommend a quick Google search for &amp;quot;trackpoint version 4 engineering specifications&amp;quot; --&amp;gt; contains more documentation information than anyone ever desired.&lt;br /&gt;
&lt;br /&gt;
=Determining TrackPoint Path ID=&lt;br /&gt;
Both the [[#udev|udev]] and [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration methods require knowledge of the Path ID of the TrackPoint.  In the [[#udev|udev]] configuration method, the Path ID is used to match the ID_PATH environmental variable, in the [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration method it is the prefix for the device file name inside the {{path|/dev/input/by-id}} directory.  The path ID can vary between ThinkPad models, distributions (with varying kernel patches), and between kernel versions.  One way to find the path ID for the TrackPoint is to use udev's path_id utility on the sysfs device path for the TrackPoint.  This device path can be found using the {{path|name}} file which describes the TrackPoint.  The process can be automated using the following shell command:&lt;br /&gt;
 /lib/udev/path_id $(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/sys\(.*\)\/name/\1/')&lt;/div&gt;</summary>
		<author><name>Trmsw</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=51497</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=51497"/>
		<updated>2011-04-28T21:20:36Z</updated>

		<summary type="html">&lt;p&gt;Trmsw: /* Approach 10A: Booting an ISO image using Grub and Syslinux for X61 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have internal optical or floppy drives. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. In recent times Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, in most cases these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update files are that large, they do not fit on such a floppy image. To resolve it, you have to either use a large harddisk image for your bootimage (e.g. in [[:Category:X200|X200]], [[:Category:X200_Tablet|X200 Tablet]] and [[:Category:X301|X301]]), or store these update files on the CD outside the virtual floppy image. For the former case, see [[BIOS update without optical disk]]. This page concerns with the later case.&lt;br /&gt;
&lt;br /&gt;
To access the BIOS update files on the CD outside the bootimage, a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Free Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, does not require MS Windows or any proprietary software.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 6: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 7: Use syslinux to boot floppy images which are part of the IBM/ Lenovo BIOS update CD ISO files.]]&amp;lt;br&amp;gt;Done with a {{X31}} to upgrade the EC to version 1.08 and the BIOS to 3.02.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.oocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.oocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 11 system (it should also run without problems on Fedora 7, 8, 9, 10 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1702-55G) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.14 to 2.16&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Freecom FS-50 USB DVD recorder, upgraded BIOS from version 1.10 to 2.07&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X300 (6476-CTO) with Nu SBW-242US USB DVD recorder, upgraded BIOS from 1.05 to 1.08&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Thinkpad X60s (1704-44U) with Lite-On DX-20A3H, upgraded BIOS from 2.17 to 2.18&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Samsung SE-S224 USB DVD recorder, upgraded BIOS from version 2.07 to 2.20&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to a new directory HPUSBF\ (using WinRAR, 7zip or similar).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW.EXE utility, selecting the location of system files as C:\DriveKey\HPUSBF, and let it format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 4 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I (Martin Aulbach) followed these clear instructions and updated my X61t (from BIOS v1.08 to v1.10) without any problems and with a nice graphic splash screen. It is not necessary to let Windows format the USB stick as a MS-DOS startup disk, as outlined in Approach 3. The HP format tool will take care of this (in Step 5) and the USB stick will boot sucessfully at startup (correct boot order provided).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This update to BIOS 2.14 worked on a brand-new X61s, 2008-06-27. (adsmith)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This update to BIOS 2.19 worked on a X61 (76754KU), 2009-01-21. (leonardokroeger)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Free Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is functionally equivalent to the above two &amp;quot;alternative methods&amp;quot;, yet does not depend on MS Windows or any other proprietary software. It updates the BIOS through a bootable USB stick, and depends upon the FreeDOS, SYSLINUX, and AdvanceMAME projects. A detailed description is provided at [http://ubuntuforums.org/showthread.php?p=5459421#post5459421].&lt;br /&gt;
''This method currently isn't redommended by the author &amp;quot;due to troubles reported by users (August 9th, 2008)&amp;quot;.''&lt;br /&gt;
&lt;br /&gt;
= Approach 6: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;br /&gt;
&lt;br /&gt;
= Approach 7: Use syslinux to boot floppy images which are part of the CD ISO files.  Done with a {{X31}} to upgrade the EC to version 1.08 and the BIOS to 3.02. =&lt;br /&gt;
&lt;br /&gt;
1. Download the CD ISO files of the embedded controller and the BIOS.&lt;br /&gt;
&lt;br /&gt;
2. loop mount these files, check for files like 1quj08us.img (EC) and 1quj19us.img (BIOS) and copy them to /boot/&lt;br /&gt;
&lt;br /&gt;
3. Install the syslinux package and boot the two images with the help of the memdisk feature ( grub: kernel /boot/memdisk initrd /boot/{ec|bios}.img)&lt;br /&gt;
&lt;br /&gt;
= Approach 8 : Use HP USB Format Utility and Win98Boot files to Create Bootable USB Stick =&lt;br /&gt;
(This process works for most X-series that has Windows XP, Windows Vista or Windows 7 OS)&lt;br /&gt;
&lt;br /&gt;
1. There is an HP utility tool floating around the net called HP USB Boot Utility. This [http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html can create a bootable USB flash drive using the boot/system files you have].&lt;br /&gt;
&lt;br /&gt;
2. Get some [http://www.bay-wolf.com/utility/usbkey/win98boot.zip DOS (or similar) boot files] - I found something called &amp;quot;win98boot.zip&amp;quot; e.g.&lt;br /&gt;
&lt;br /&gt;
3. Extract the (*.ima) from the ISO BIOS image (e.g. [http://www.rarsoft.com WinRAR] will do this).&lt;br /&gt;
&lt;br /&gt;
4. Using a tool that can open .IMA files (such as [http://www.winimage.com/ WinImage]), extract all files to a temporary folder.&lt;br /&gt;
&lt;br /&gt;
4. Run the HP tool, select the USB device, I used FAT32,  create a DOS bootable disk and point at the win98boot folder - then &amp;quot;Start&amp;quot;. Warning: this '''formats''' the USB flash drive and all data will be erased!&lt;br /&gt;
&lt;br /&gt;
5. Once complete (you could test if it boots at this point), copy the extracted BIOS files from the temporary folder you created to the USB flash drive.&lt;br /&gt;
&lt;br /&gt;
6. Boot from USB flash drive by pressing F11 within the BIOS boot logo. At the DOS command prompt, type &amp;quot;updflsh&amp;quot; and then follow the prompts by pressing &amp;quot;Y&amp;quot; or Enter. Make sure that you have a fully charged battery pack and the AC Adapter is firmly plugged before proceeding with the BIOS update.&lt;br /&gt;
'''DO NOT Power off the laptop or unplug the USB flash drive while the update is in progress or else update will fail and your computer will be unable to boot and system board may need to be serviced.'''&lt;br /&gt;
&lt;br /&gt;
This process takes around 1-2 minutes. A long beep followed by a short beep will notify you that the update is complete and the system will automatically power off.&lt;br /&gt;
&lt;br /&gt;
7. Power on the laptop then enter the BIOS setup by pressing F1 and Load BIOS defaults.&lt;br /&gt;
&lt;br /&gt;
= Approach 8: Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy) =&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Supervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
= Approach 10: Booting the Lenovo ISO image using Grub and SysLinux =&lt;br /&gt;
&lt;br /&gt;
I ran this on my [[:Category:X100e|X100e]] L625 (Dual-Core) 3508-5EG.&lt;br /&gt;
&lt;br /&gt;
Also worked on my [[:Category:X301|X301]] with the default ubuntu 10.10 memdisk (/usr/lib/syslinux/memdisk). My menu entry structure however looked like this (ext4 root/boot partition): --[[User:Blk|Blk]] 17:54, 25 November 2010 (UTC)&lt;br /&gt;
 menuentry 'BIOS Upgrade' {&lt;br /&gt;
        insmod ext2&lt;br /&gt;
        set root='(hd0,msdos1)'&lt;br /&gt;
        linux16 /boot/memdisk iso&lt;br /&gt;
        initrd16 /boot/bios.iso&lt;br /&gt;
 }&lt;br /&gt;
small note: the upgrade itself took about 2minutes (it beeped in the middle) and after rebooting i was probably in a reboot-loop. The system rebooted twice in a row after showing the &amp;quot;Press the ThinkVantage button...&amp;quot; blabla, so the third time i went into the bios, reset the default options (F9) and reconfigured it the way i had it before. Then it all worked.&lt;br /&gt;
Now to the original instructions (thanks mate!)&lt;br /&gt;
&lt;br /&gt;
Basically, you download the iso of the cd for bios upgrade from Lenovo and let grub + syslinux emulate a cd-rom drive for you, running the software on the iso. &lt;br /&gt;
&lt;br /&gt;
It's nice and feels safe, since either the iso boots from grub or it doesn't, but if it does, you are running the full OS and update software stack as provided and tested by Lenovo. If it doesn't your bios will not be affected and you will not have bricked your laptop.&lt;br /&gt;
&lt;br /&gt;
* Download the latest bios upgrade from Lenovo website. I used version 1.25 ({{path|6xuj08uc.iso}})&lt;br /&gt;
* Get your hands on memdisk of syslinux. I had to compile a recent version, because my memdisk version that came with Ubuntu did not work correctly. &lt;br /&gt;
* To compile a recent version of syslinux (I used 3.86): &lt;br /&gt;
** Download the sources from http://syslinux.zytor.com/wiki/index.php/ISOLINUX (Download link in my case: http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.86.tar.bz2), &lt;br /&gt;
** Extract the sources and issue {{cmduser|make}} in the root directory of the source.&lt;br /&gt;
** Once compiled, the memdisk file you need will be in {{path|syslinux-3.86/memdisk/memdisk}}&lt;br /&gt;
* Copy the memdisk file of syslinux to {{path|/boot/memdisk}} &lt;br /&gt;
* Update the grub config file: add the code snippet below to the end of the file {{path|/boot/grub/grub.cfg}}. (on Ubuntu, add it to the file {{path|/etc/grub.d/40_custom}} instead, and do a {{cmduser|sudo update-grub}} afterwards).&lt;br /&gt;
 menuentry &amp;quot;Thinkpad x100e BIOS Upgrade to 1.25&amp;quot; {&lt;br /&gt;
        set root='(hd0,1)' # This line should match the other menuentries in your grub.cfg&lt;br /&gt;
        linux16 /boot/memdisk iso&lt;br /&gt;
        initrd16 /boot/6xuj08uc.iso # Make sure this is the correct filename (a different version will have a different filename)&lt;br /&gt;
 }&lt;br /&gt;
* Now reboot, press and hold shift right after the Thinkpad logo disappears and you should see an option in the grub boot menu to boot the bios upgrade cd.&lt;br /&gt;
* Select that option and press enter, the Lenovo bios update software should boot, and you'll get a text-menu interface. &lt;br /&gt;
** If you just see text on a black background and your Thinkpad no longer responds, your booting failed. At this point you are not updating the bios, so you can safely reboot using the power on/off button, recheck your config and find out what you did wrong.&lt;br /&gt;
* If it does boot, follow the directions carefully:&lt;br /&gt;
** Make absolutely sure you have power attached and a well loaded battery just in case&lt;br /&gt;
** The process takes around a minute&lt;br /&gt;
** When it asks to remove the cd and press enter to reboot, just press enter. &lt;br /&gt;
** You should then reboot having and updated bios.&lt;br /&gt;
&lt;br /&gt;
= Approach 10A: Booting an ISO image using Grub and Syslinux for X61 =&lt;br /&gt;
&lt;br /&gt;
The Lenovo ISO images for X61 (and T61) can be booted using Grub as described above, but they don't work as they are intended to be used from a cdrom drive.&lt;br /&gt;
&lt;br /&gt;
Fortunately you can adapt an ISO image from a more recent model, such as the X201.&lt;br /&gt;
The following instructions rely on the X201 BIOS Update Bootable CD for version 1.34, filename '''6quj11uc.iso'''. &lt;br /&gt;
Other versions may or may not work.&lt;br /&gt;
&lt;br /&gt;
Save this script as '''convert-iso.sh'''&lt;br /&gt;
&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  X201=$1 # X201 iso to use&lt;br /&gt;
  X61=$2  # X61 update&lt;br /&gt;
  OUT=$3  # output filename&lt;br /&gt;
  &lt;br /&gt;
  ISO=`mktemp`&lt;br /&gt;
  SRC=`mktemp -d`&lt;br /&gt;
  DST=`mktemp -d`&lt;br /&gt;
  &lt;br /&gt;
  cp $X201 $ISO&lt;br /&gt;
  &lt;br /&gt;
  # discovered using geteltorito, to get the offset of the disk image&lt;br /&gt;
  # and fdisk, to get the offset of the partition inside the disk image&lt;br /&gt;
  OFFSET=71680&lt;br /&gt;
  &lt;br /&gt;
  mount $ISO $DST -o rw,loop,offset=$OFFSET&lt;br /&gt;
  &lt;br /&gt;
  # create a ramdisk big enough for the flash files&lt;br /&gt;
  cat &amp;lt;&amp;lt;EOF | sed 's/$/\r/' &amp;gt; $DST/CONFIG.SYS&lt;br /&gt;
  FILES=30&lt;br /&gt;
  BUFFERS=10&lt;br /&gt;
  DEVICE=C:\HIMEM.SYS /NUMHANDLES=120&lt;br /&gt;
  DEVICEHIGH=C:\ramdrive.sys /E 30720 &lt;br /&gt;
  DOS=HIGH,UMB&lt;br /&gt;
  STACKS=9,256&lt;br /&gt;
  EOF&lt;br /&gt;
  &lt;br /&gt;
  # copy the flash files to the ramdisk&lt;br /&gt;
  # if not, the update will simply hang because the files cannot be accessed&lt;br /&gt;
  #&lt;br /&gt;
  # remove the command.com line if you need a shell&lt;br /&gt;
  cat &amp;lt;&amp;lt;EOF | sed 's/$/\r/' &amp;gt; $DST/AUTOEXEC.BAT &lt;br /&gt;
  copy FLASH\*.* d:&lt;br /&gt;
  d:&lt;br /&gt;
  command.com&lt;br /&gt;
  EOF&lt;br /&gt;
  &lt;br /&gt;
  rm -r $DST/FLASH/*&lt;br /&gt;
  mount $X61 $SRC -r -o loop&lt;br /&gt;
  cp $SRC/* $DST/FLASH&lt;br /&gt;
  &lt;br /&gt;
  umount $SRC $DST&lt;br /&gt;
  rmdir $SRC $DST&lt;br /&gt;
  &lt;br /&gt;
  mv $ISO $OUT&lt;br /&gt;
  echo &amp;quot;Done: $OUT created.&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
Then run the script against the X201 bios ISO and the X61 one (in this example, version 2.22, filename '''7nuj22uc.iso''').&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|./convert-iso.sh 6quj11uc.iso 7nuj22uc.iso X61.iso}}.&lt;br /&gt;
&lt;br /&gt;
In theory this should create a file called '''X61.iso''' that can be booted using Grub and Syslinux, and which will successfully update the BIOS.&lt;/div&gt;</summary>
		<author><name>Trmsw</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=51496</id>
		<title>BIOS Upgrade/X Series</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=BIOS_Upgrade/X_Series&amp;diff=51496"/>
		<updated>2011-04-28T21:19:34Z</updated>

		<summary type="html">&lt;p&gt;Trmsw: /* Approach 10: Booting the Lenovo ISO image using Grub and SysLinux */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
X Series Thinkpads do not have internal optical or floppy drives. If there is no Windows installed, the BIOS must be updated by booting from an USB drive or a drive that is integrated in the docking station. In recent times Lenovo provides BIOS updates in form of bootable CD images. Unfortunately, in most cases these images are intended to be used with the docking station's CD drive. If you do not own such a drive, things get complicated.&lt;br /&gt;
&lt;br /&gt;
The problem is that current BIOS updates are quite large, about 3 MB in size. Booting from CDs typically works like booting from a 1.44 MB or 2.88 MB floppy disk. The floppy image is stored on the CD and is referenced in the CD's boot record. Because the BIOS update files are that large, they do not fit on such a floppy image. To resolve it, you have to either use a large harddisk image for your bootimage (e.g. in [[:Category:X200|X200]], [[:Category:X200_Tablet|X200 Tablet]] and [[:Category:X301|X301]]), or store these update files on the CD outside the virtual floppy image. For the former case, see [[BIOS update without optical disk]]. This page concerns with the later case.&lt;br /&gt;
&lt;br /&gt;
To access the BIOS update files on the CD outside the bootimage, a driver for the CD drive has to be loaded. Since Lenovo's CD images are intended to be used with a docking station's CD drive, it is not possible to use them for BIOS updates by booting from an USB CD drive.&lt;br /&gt;
&lt;br /&gt;
Another problem is that older X Series (like the {{X32}}) don't have bootable iso images at all. They have only two options: 1. update from Windows, 2. update using a diskette updater, which requires you to have a real floppy disk drive.&lt;br /&gt;
&lt;br /&gt;
But there is hope. This page describes some approaches to solve the problems above.&lt;br /&gt;
&lt;br /&gt;
Here is a brief overview of each approach:&lt;br /&gt;
* [[#Approach 1: Use larger boot image and create virtual CD drive]]&amp;lt;br&amp;gt;Requires a USB CD drive.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk]]&amp;lt;br&amp;gt;Requires a USB CD drive.  People have reported mixed results, with the flash update software freezing, depending on things like CD drive letter and type.  Reported to work on {{X60s}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 3: Alternative method using a USB stick]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Reported to work on {{X60s}}, {{X61}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, Microsoft Windows, and some HP software tool.  Seems functionally similar to Approach 3.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 5: Free Alternative method to the above &amp;quot;alternative method&amp;quot;]]&amp;lt;br&amp;gt;Requires a USB flash drive, does not require MS Windows or any proprietary software.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 6: Using a USB stick to upgrade BIOS on older X Series Thinkpads]]&amp;lt;br&amp;gt;Requires a USB flash drive.  Reported to work on {{X32}}.&lt;br /&gt;
&lt;br /&gt;
* [[#Approach 7: Use syslinux to boot floppy images which are part of the IBM/ Lenovo BIOS update CD ISO files.]]&amp;lt;br&amp;gt;Done with a {{X31}} to upgrade the EC to version 1.08 and the BIOS to 3.02.&lt;br /&gt;
&lt;br /&gt;
= Approach 1: Use larger boot image and create virtual CD drive =&lt;br /&gt;
&lt;br /&gt;
The CD images provided by Lenovo can be modified such that a BIOS update is possible -- without loading any drivers. I ([[User:Joachim_Selke|Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below. For a description of this old approach see the section &amp;quot;Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk&amp;quot; below. I developed a new approach to solve this problem and will describe it here.&lt;br /&gt;
&lt;br /&gt;
The idea is to create a new bootable ISO image that is large enough to hold the original ISO file. This can be done by switching from the virtual floppy drive used by Lenovo's update disk to a virtual hard disk drive (for details, see the El Torito standard). Instead of loading the CD drive driver provided by Lenovo we load the [[http://www.oocities.com/jadoxa/shsucdx/index.html SHSUCD drivers]]. This driver enables us to create a virtual CD drive from Lenovo's original ISO file.&lt;br /&gt;
&lt;br /&gt;
I wrote a script to automate this steps and create a new ISO file from Lenovo's ISO file. This new ISO file can directly be used to update the BIOS. My script takes four arguments:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of Lenovo's original ISO file (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/7buj23uc.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the filename of the new ISO file to be created (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/out.iso&amp;lt;/tt&amp;gt;)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdrd.exe (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdrd.exe&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;the location of shsucdx.com (e.g. &amp;lt;tt&amp;gt;/home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Both shsucdrd.exe and shsucdx.com can be downloaded from [http://www.oocities.com/jadoxa/shsucdx/index.html].&lt;br /&gt;
&lt;br /&gt;
To sum up, an example call of the script would be &amp;lt;tt&amp;gt;convertlenovo.sh /home/selke/Desktop/7buj23uc.iso /home/selke/Desktop/out.iso /home/selke/Desktop/shsucdrd.exe /home/selke/Desktop/shsucdx.com&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that you need recent versions of the following tools:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkdosfs (for Fedora users: contained in the package dosfstools)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;mkisofs&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The script runs perfectly on my Fedora 11 system (it should also run without problems on Fedora 7, 8, 9, 10 and other popular distributions). If there are problems, please tell me ([[User:Joachim_Selke|Joachim Selke]]).&lt;br /&gt;
&lt;br /&gt;
Further note that the script at some point requires you to enter the root password since it must mount a disk image. As far as I know, this cannot be done without root privileges.&lt;br /&gt;
&lt;br /&gt;
What does the script do? I will give a short overview:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Extract the boot floppy image from Lenovo's bootable ISO file.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new boot hard disk image and copy both the boot sector and the files from Lenovo's boot floppy image to the new image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Copy Lenovo's ISO image to the new hard disk image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Also copy the SHSUCD drivers to the hard disk and change autoexec.bat and config.sys accordingly. When booting this hard disk image a new virtual CD drive will be created by SHSUCD. This virtual CD drive will have Lenovo's original ISO disc &amp;quot;inserted.&amp;quot;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Create a new ISO file that only consists of the boot image given by the bootable hard disk image just created.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some additional notes:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Currently, the script is not able to handle spaces in file names properly. Thus, the file names and directory path names used when calling the script should not contain spaces.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The file name of the original ISO file (7buj23uc.iso in the example above) must follow the DOS 8.3 file name conventions; otherwise SHSUCD will not be able to load the ISO image.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is the complete script (save it as &amp;lt;tt&amp;gt;convertlenovo.sh&amp;lt;/tt&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-12-28&lt;br /&gt;
&lt;br /&gt;
# Known bugs:&lt;br /&gt;
# - spaces in file names make trouble at the moment (so try to avoid spaces),&lt;br /&gt;
#   I will fix that later&lt;br /&gt;
# - some users seem to have problems with some of the sed statements,&lt;br /&gt;
#   I currently have no idea what is wrong there ... (please report those bugs)&lt;br /&gt;
&lt;br /&gt;
CDIMAGE=$1       # location of Lenovo's CD image&lt;br /&gt;
NEWCDIMAGE=$2    # filename of ISO file to create&lt;br /&gt;
SHSUCDRD_EXE=$3  # location of shsucdrd.exe&lt;br /&gt;
SHSUCDX_COM=$4   # location of shsucdx.com&lt;br /&gt;
&lt;br /&gt;
MB_HDD=50  # HDD image size in megabyte (base 1000)&lt;br /&gt;
&lt;br /&gt;
TMPDIR=`mktemp -d`&lt;br /&gt;
ISODIR=`mktemp -d`&lt;br /&gt;
&lt;br /&gt;
HDDIMG=$ISODIR/hdd.img  # filename of HDD image to create&lt;br /&gt;
FLOPPYIMG=$TMPDIR/floppy.img # filename of floppy image to create&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$CDIMAGE&lt;br /&gt;
IMAGEFILE=$FLOPPYIMG&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&lt;br /&gt;
##############################################################################&lt;br /&gt;
&lt;br /&gt;
NO_HEA=16    # heads&lt;br /&gt;
NO_SECT=63   # sectors per cylinder/track&lt;br /&gt;
B_SECT=512   # bytes per sector&lt;br /&gt;
&lt;br /&gt;
B_CYL=$(($NO_HEA * $NO_SECT * $B_SECT))  # bytes per cylinder/track&lt;br /&gt;
&lt;br /&gt;
NO_CYL=$(($MB_HDD * 1000 * 1000 / $B_CYL))  # cylinders/tracks per head&lt;br /&gt;
&lt;br /&gt;
echo -n -e &amp;quot;Cylinders: $NO_CYL\nHeads: $NO_HEA\nSectors per track: $NO_SECT\nBytes per sector: $B_SECT\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating empty image ...&lt;br /&gt;
dd if=/dev/zero of=$HDDIMG bs=$B_CYL count=$NO_CYL &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating partition structure ...&lt;br /&gt;
echo -n -e &amp;quot;o\n n\n p\n 1\n \n \n t\n 6\n a\n 1\n w\n&amp;quot; | /sbin/fdisk -b $B_SECT -C $NO_CYL -H $NO_HEA -S $NO_SECT $HDDIMG &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Writing master boot record ...&lt;br /&gt;
echo -n -e &amp;quot;\&lt;br /&gt;
\xFA\xB8\x00\x10\x8E\xD0\xBC\x00\xB0\xB8\x00\x00\x8E\xD8\x8E\xC0\&lt;br /&gt;
\xFB\xBE\x00\x7C\xBF\x00\x06\xB9\x00\x02\xF3\xA4\xEA\x21\x06\x00\&lt;br /&gt;
\x00\xBE\xBE\x07\x38\x04\x75\x0B\x83\xC6\x10\x81\xFE\xFE\x07\x75\&lt;br /&gt;
\xF3\xEB\x16\xB4\x02\xB0\x01\xBB\x00\x7C\xB2\x80\x8A\x74\x01\x8B\&lt;br /&gt;
\x4C\x02\xCD\x13\xEA\x00\x7C\x00\x00\xEB\xFE\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\&lt;br /&gt;
\x00\x00\x00\x00\x00\x00\x00\x00\x52\xF9\x06\x00\x00\x00\&lt;br /&gt;
&amp;quot; | dd of=$HDDIMG bs=1 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Creating primary partition ...&lt;br /&gt;
# extract partition, create FAT16 filesystem and copy back&lt;br /&gt;
PARTFILE=${HDDIMG}-PARTITION&lt;br /&gt;
SECT_PARTTABLE=$NO_SECT&lt;br /&gt;
B_PARTTABLE=$(($SECT_PARTTABLE * $B_SECT))&lt;br /&gt;
dd if=$HDDIMG of=$PARTFILE bs=$B_SECT skip=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
/sbin/mkdosfs -F 16 -h $NO_SECT $PARTFILE&lt;br /&gt;
# Correct physical drive number (set to 0x00, should be 0x80)&lt;br /&gt;
echo -n -e &amp;quot;\x80&amp;quot; | dd of=$PARTFILE bs=1 seek=36 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
# Correct sectors per track (set to 0x0020, should be $NO_SECT)&lt;br /&gt;
NO_SECT_HEX1=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT / 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX2=$(echo &amp;quot;ibase=10; obase=16; $(($NO_SECT % 256))&amp;quot; | bc)&lt;br /&gt;
NO_SECT_HEX=$(echo -n -e &amp;quot;\\x$NO_SECT_HEX2\\x$NO_SECT_HEX1&amp;quot;)&lt;br /&gt;
echo -n -e $NO_SECT_HEX | dd of=$PARTFILE bs=1 seek=24 conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
dd if=$PARTFILE of=$HDDIMG bs=$B_SECT seek=$SECT_PARTTABLE &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
rm -f $PARTFILE&lt;br /&gt;
&lt;br /&gt;
# transfer floppy boot sector code&lt;br /&gt;
B_BOOTSECPARAM=62                            # length of parameter block in boot sector&lt;br /&gt;
B_BOOTSECCODE=$(($B_SECT - B_BOOTSECPARAM))  # length of code block in boot sector&lt;br /&gt;
echo Copying boot sector ...&lt;br /&gt;
dd if=$FLOPPYIMG of=$HDDIMG bs=1 count=$B_BOOTSECCODE skip=$B_BOOTSECPARAM seek=$(($B_PARTTABLE + $B_BOOTSECPARAM)) conv=notrunc &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
echo Copying DOS files ...&lt;br /&gt;
CDIMAGE_BASENAME=$(basename $CDIMAGE)&lt;br /&gt;
HDDDIR=$TMPDIR/hdd&lt;br /&gt;
FLOPPYDIR=$TMPDIR/floppy&lt;br /&gt;
su --command=&amp;quot;\&lt;br /&gt;
  mkdir $HDDDIR;\&lt;br /&gt;
  mkdir $FLOPPYDIR;\&lt;br /&gt;
  mount -oloop $FLOPPYIMG $FLOPPYDIR;\&lt;br /&gt;
  mount -t msdos -oloop,offset=$(($SECT_PARTTABLE * $B_SECT)) $HDDIMG $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmbio.com $HDDDIR;\&lt;br /&gt;
  cp --preserve $FLOPPYDIR/ibmdos.com $HDDDIR;\&lt;br /&gt;
  cp --preserve -u $FLOPPYDIR/* $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $CDIMAGE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDRD_EXE $HDDDIR;\&lt;br /&gt;
  cp --preserve=timestamps $SHSUCDX_COM $HDDDIR;\&lt;br /&gt;
  cat $FLOPPYDIR/config.sys | \&lt;br /&gt;
    sed -e 's/A:\\\/C:\\\/' | \&lt;br /&gt;
    grep -v IBMTPCD.SYS &amp;gt;$HDDDIR/config.sys;\&lt;br /&gt;
  cat $FLOPPYDIR/autoexec.bat | \&lt;br /&gt;
    sed -e 's/LOADHIGH MSCDEX.EXE \/D:TPCD001/shsucdrd.exe \/f:$CDIMAGE_BASENAME\r\nshsucdx.com \/d:SHSU-CDR,R/' &amp;gt;$HDDDIR/autoexec.bat;\&lt;br /&gt;
  umount $FLOPPYDIR;\&lt;br /&gt;
  umount $HDDDIR;\&lt;br /&gt;
  rm -rf $FLOPPYDIR;\&lt;br /&gt;
  rm -rf $HDDDIR&amp;quot;&lt;br /&gt;
&lt;br /&gt;
echo Creating ISO image ...&lt;br /&gt;
mkisofs -input-charset default -hard-disk-boot -b $(basename $HDDIMG) -hide boot.cat -hide $(basename $HDDIMG) -o $NEWCDIMAGE $ISODIR&lt;br /&gt;
&lt;br /&gt;
rm -rf $TMPDIR&lt;br /&gt;
rm -rf $ISODIR&lt;br /&gt;
&lt;br /&gt;
echo Completed!&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any questions, feel free to ask. :-)&lt;br /&gt;
&lt;br /&gt;
BTW: It would be much simpler if I simply could put the new ISO images for download somewhere. But I guess for legal reasons this will not be possible.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 1 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Reported to work on:&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60s (1702-55G) with Plextor PX-608CU USB DVD recorder&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1702-55G) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.14 to 2.16&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X60 (1706-GMG) with Plextor PX-608CU USB DVD recorder, upgraded BIOS from version 2.03 to 2.14&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Freecom FS-50 USB DVD recorder, upgraded BIOS from version 1.10 to 2.07&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X300 (6476-CTO) with Nu SBW-242US USB DVD recorder, upgraded BIOS from 1.05 to 1.08&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Thinkpad X60s (1704-44U) with Lite-On DX-20A3H, upgraded BIOS from 2.17 to 2.18&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;ThinkPad X61s (7666-36G) with Samsung SE-S224 USB DVD recorder, upgraded BIOS from version 2.07 to 2.20&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 2: Load an USB driver, create RAM disk and copy the files to the RAM disk =&lt;br /&gt;
&lt;br /&gt;
I ([[User:Joachim_Selke | Joachim Selke]]) successfully updated my Thinkpad {{X60s}} using the following method.&lt;br /&gt;
&lt;br /&gt;
My first idea was to take Lenovo's ISO CD image and modify it such that a USB CD drive can be used instead the CD drive in the docking station. Unfortunately, simply replacing the drivers is not enough. While doing the BIOS update, the USB ports seem to get disabled or something like that. To circumvent this problem I tried to create a RAM disk, copy the needed files to this RAM disk, and then use this RAM disk as some kind of virtual CD drive. However, there were some problems with this approach as reported below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download the ISO image style BIOS update from Lenovo's website. This file will be refered to as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.iso&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Extract the floppy image from this ISO image. You can use the following shell script for this task (or an alternative one from [http://userpages.uni-koblenz.de/~krienke/ftp/noarch/geteltorito/]). Simply save this code into the file &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;, set the x-flag (&amp;lt;tt&amp;gt;chmod +x /tmp/extractbootimage.sh&amp;lt;/tt&amp;gt;) and call it using the command &amp;lt;tt&amp;gt;/tmp/extractbootimage.sh /tmp/bios-lenovo.iso /tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. The floppy image contained in the ISO image will then be saved to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img&amp;lt;/tt&amp;gt;. Here is the code of the shell script:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# This script extracts the floopy boot image from bootable ISO images&lt;br /&gt;
#&lt;br /&gt;
# Written by Joachim Selke (mail@joachim-selke.de), 2007-04-07&lt;br /&gt;
&lt;br /&gt;
ISOFILE=$1&lt;br /&gt;
IMAGEFILE=$2&lt;br /&gt;
&lt;br /&gt;
if [ ! -r $ISOFILE ]; then&lt;br /&gt;
        echo $ISOFILE: file does not exist or is not readable&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
if [ -z $IMAGEFILE ]; then&lt;br /&gt;
        echo Error: no image file specified&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
ISOFILESIZE=`stat -c %s $ISOFILE`&lt;br /&gt;
&lt;br /&gt;
# collect El Torito data&lt;br /&gt;
# see http://www.phoenix.com/NR/rdonlyres/98D3219C-9CC9-4DF5-B496-A286D893E36A/0/specscdrom.pdf for reference&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGPOINTERBYTE=$((17 * 0x800 + 0x47))&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGPOINTERBYTE + 4)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to first sector of boot catalog:&lt;br /&gt;
BOOTCATALOG=`od -A n -t x4 -N 4 -j $BOOTCATALOGPOINTERBYTE $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTCATALOGBYTE=$((0x$BOOTCATALOG * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot catalog starts at byte $BOOTCATALOGBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $(($BOOTCATALOGBYTE + 32 + 2)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# media type of boot image&lt;br /&gt;
# only floppy disk images are supported by this script&lt;br /&gt;
BOOTMEDIATYPE=`od -A n -t x1 -N 1 -j $(($BOOTCATALOGBYTE + 32 + 1)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
if [ $BOOTMEDIATYPE -eq 1 ]; then&lt;br /&gt;
        echo Boot media type is 1.2M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1200 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 2 ]; then&lt;br /&gt;
        echo Boot media type is 1.44M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((1440 / 2))&lt;br /&gt;
elif [ $BOOTMEDIATYPE -eq 3 ]; then&lt;br /&gt;
        echo Boot media type is 2.88M floppy disk&lt;br /&gt;
        IMAGEBLOCKS=$((2880 / 2))&lt;br /&gt;
else&lt;br /&gt;
        echo Boot media type is $((0x$BOOTMEDIATYPE)). This type is not supported yet.&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# absolute pointer to start of boot image&lt;br /&gt;
BOOTIMAGE=`od -A n -t x4 -N 4 -j $(($BOOTCATALOGBYTE + 32 + 8)) $ISOFILE | tr -d [:blank:]`&lt;br /&gt;
&lt;br /&gt;
BOOTIMAGEBYTE=$((0x$BOOTIMAGE * 0x800))&lt;br /&gt;
&lt;br /&gt;
echo Boot image starts at byte $BOOTIMAGEBYTE&lt;br /&gt;
&lt;br /&gt;
if [ $ISOFILESIZE -lt $((0x$BOOTIMAGE * 0x800 + $IMAGEBLOCKS * 0x800)) ]; then&lt;br /&gt;
        echo ISO file is too short, possibly damaged&lt;br /&gt;
        exit 1&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
echo Extracting boot image ...&lt;br /&gt;
&lt;br /&gt;
dd if=$ISOFILE of=$IMAGEFILE bs=2K count=$IMAGEBLOCKS skip=$((0x$BOOTIMAGE))&lt;br /&gt;
&lt;br /&gt;
echo Finished&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Mount the floppy image '''as root''' using the loop device:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.img /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
The image is now mounted as &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Download needed drivers. First download some [http://panasonic.co.jp/pcc/products/drive/other/driver/f2h_usb.exe USB drivers] from Panasonic Japan. Save the file to &amp;lt;tt&amp;gt;/tmp/f2h_usb.exe&amp;lt;/tt&amp;gt; This file is a self-extracting EXE file, that can be executed under Linux using [http://www.winehq.com/ Wine]:&lt;br /&gt;
:{{cmduser|wine /tmp/f2h_usb.exe}}&lt;br /&gt;
You will be asked where to save the extracted files. Choose &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. A new directory &amp;lt;tt&amp;gt;/tmp/F2h&amp;lt;/tt&amp;gt; containing the needed drivers will be created.&lt;br /&gt;
&lt;br /&gt;
Additionally, you will need drivers for the RAM disk mentioned. Download them from the [http://sourceforge.net/projects/srdisk ReSizeable RAMDisk project]. Unzip them to &amp;lt;tt&amp;gt;/tmp/srdisk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Let's modify the floppy image:&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/Usbaspi.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/USBCD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/F2h/RAMFD.SYS /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdxms.sys /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
:{{cmduser|cp /tmp/srdisk/srdisk.exe /tmp/bios-lenovo.img-mnt/}}&lt;br /&gt;
Now add the following lines to &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/config.sys&amp;lt;/tt&amp;gt; replacing the line &amp;lt;tt&amp;gt;DEVICE = A:\IBMTPCD.SYS /R /C&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
DEVICE = A:\SRDXMS.SYS&lt;br /&gt;
DEVICE = A:\RAMFD.SYS&lt;br /&gt;
DEVICE = A:\USBASPI.SYS /V&lt;br /&gt;
DEVICE = A:\USBCD.SYS /D:TPCD001&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Finally, edit the file &amp;lt;tt&amp;gt;/tmp/bios-lenovo.img-mnt/autoexec.bat&amp;lt;/tt&amp;gt; replacing the last line (saying &amp;lt;tt&amp;gt;COMMAND.COM&amp;lt;/tt&amp;gt;) by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* D:&lt;br /&gt;
D:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe the RAM disk gets a drive letter different from D: on your system. In this case, you have to change the above lines accordingly.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Unmount the floppy image (as root):&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.img-mnt}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Copy the content of the original CD image to a new directory and create a new ISO file:&lt;br /&gt;
:{{cmdroot|mkdir /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmdroot|mount -o loop /tmp/bios-lenovo.iso /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkdir /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.iso-mnt/* /tmp/bios-new.iso-mnt}}&lt;br /&gt;
:{{cmduser|cp /tmp/bios-lenovo.img /tmp/bios-new.iso-mnt/boot.img}}&lt;br /&gt;
:{{cmdroot|umount /tmp/bios-lenovo.iso-mnt}}&lt;br /&gt;
:{{cmduser|mkisofs -relaxed-filenames -b boot.img -o /tmp/bios-new.iso /tmp/bios-new.iso-mnt/}}&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
The file &amp;lt;tt&amp;gt;/tmp/bios-new.iso&amp;lt;/tt&amp;gt; is the modified ISO file. Just burn it to CD and use this CD for updating your BIOS (boot from it using your USB drive). Please give some comments here if it worked for you.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I have followed your excellent instructions. The CD booted, the update program ran but stopped working and responding while updating. Luckily the BIOS was not destroyed. Since destroying the BIOS is a very high risk, I am going to recover the original Windows on an old HD and will run the update exe update program from there.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I followed these clear instructions, and like the comment above I ended up with a CD that booted but the update program stopped working and responding.  An ALT-CTRL-DELETE rebooted my x60s, and it works so the BIOS must not have been damaged.  I was trying to upgrade from version 2.08 to 2.11, I wonder if these instructions are somehow particular to certain versions?  &lt;br /&gt;
[[User:Latch|Latch]] 01:22, 14 June 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
After following the above instructions, the program also stopped working while updating the BIOS. But after changing the drive letter from D: to C: (see code below), it everything worked fine. However, I had some trouble figuring out, which letter to choose over D: at first, as the BIOS Upgrade program started right away.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A:\SRDISK 10000&lt;br /&gt;
COPY *.* C:&lt;br /&gt;
C:&lt;br /&gt;
COMMAND.COM&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
[[User:Mtx|Mtx]], 1 August 2007, Thinkpad X61s&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing the bios (2.12) works for me on a X60s (using drive c). Using the DVD-R on an USB-Hub did not work.&amp;lt;br&amp;gt; [[User:Ra|Ra]] 00:15, 21 August 2007 (UTC)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
Flashing BIOS 2.14 works for me on a X60s (using drive c). 25-02-2008&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 3: Alternative method using a USB stick =&lt;br /&gt;
&lt;br /&gt;
''Note: none of the above methods worked on my X60s.  This method worked for me, however.'' [[User:PhilipPaeps|PhilipPaeps]] 16:41, 24 August 2007 (UTC)&lt;br /&gt;
&lt;br /&gt;
This method was surprisingly painless once I convinced my ThinkPad X60s to boot DOS from a USB stick.  I used VMWare and some mystical tool to get DOS on the stick.  If you can find another way to get a bootable DOS stick, please update this section!&lt;br /&gt;
&lt;br /&gt;
* Tell VMWare to create a virtual floppy image for you and format it under Microsoft Windows and tell it to create a system disk.  You can do this by clicking into &amp;quot;My Computer&amp;quot;, then right-clicking on the &amp;quot;Floppy&amp;quot; icon and selecting &amp;quot;Format&amp;quot;.  In the box that pops up, you need to check the box that says &amp;quot;Create an MS-DOS startup disk&amp;quot; and then click &amp;quot;Start&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* When you've done that, get this tool: http://www.techpowerup.com/downloads/330/mirrors.php and install it.  The tool is apparantly something HP once wrote, but I have been unable to find a link to it anywhere on the HP website.&lt;br /&gt;
&lt;br /&gt;
* In a command prompt again: &amp;lt;code&amp;gt;C:\DriveKey\HPUSBF.EXE E: -Q -B:A:\&amp;lt;/code&amp;gt;, replacing the &amp;lt;code&amp;gt;E:&amp;lt;/code&amp;gt; with the &amp;quot;drive letter&amp;quot; associated with your USB stick (you can find this letter in &amp;quot;My Computer&amp;quot; under &amp;quot;Removable Storage&amp;quot;).  '''WARNING:''' this wipes anything on the USB stick.  You will end up with a USB stick which appears empty at this point, but there is DOS on it somewhere.&lt;br /&gt;
&lt;br /&gt;
* Now mount the BIOS update ISO image from Lenovo as a virtual CDROM using VMWare again and copy the files from it to the USB stick: &amp;lt;code&amp;gt;copy D:\*.* E:\&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
At this point, you may want to fiddle with the splash image, as described elsewhere on ThinkWiki.&lt;br /&gt;
&lt;br /&gt;
* Reboot and press F12, tell the BIOS to boot from your USB stick.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;cd flash&amp;lt;/code&amp;gt; ; &amp;lt;code&amp;gt;updtflsh.exe&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Think happy thoughts.  The ThinkPad will beep quite ominously (and loudly!) a couple of times.  Do not let this worry you too much.  After about three minutes, the program will ask you to press enter to restart and hopefully all will be well.&lt;br /&gt;
&lt;br /&gt;
= Approach 4: Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is based on the above &amp;quot;Alternative Method&amp;quot; and works on my {{X60}}.&lt;br /&gt;
&lt;br /&gt;
1. Download the [[BIOS_Upgrade_Downloads|BIOS Update]] iso image and the [http://www.techpowerup.com/downloads/330/mirrors.php|HP USB Stick Formatter].&lt;br /&gt;
&lt;br /&gt;
2. Now get access to Windows -- be it in an emulator, or a colleague's PC. Steps 3, 4, 5 needs Windows to complete.&lt;br /&gt;
&lt;br /&gt;
3. Install the HP USB Stick Formatter.&lt;br /&gt;
&lt;br /&gt;
4. Go to the directory where you installed the tool: e.g. C:\DriveKey and extract HPUSBF.EXE to a new directory HPUSBF\ (using WinRAR, 7zip or similar).&lt;br /&gt;
&lt;br /&gt;
5. Run the HPUSBFW.EXE utility, selecting the location of system files as C:\DriveKey\HPUSBF, and let it format the USB stick.&lt;br /&gt;
&lt;br /&gt;
6. Extract the iso image to the USB stick, for example to K:\7buj22us (K: being the USB stick).&lt;br /&gt;
&lt;br /&gt;
7. On the target computer, boot with the USB stick and issue the commands &amp;quot;cd 7buj22us&amp;quot; then &amp;quot;command.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This brings up the BIOS flash interface and you can update your BIOS from here.&lt;br /&gt;
&lt;br /&gt;
== Comments on Approach 4 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
I (Martin Aulbach) followed these clear instructions and updated my X61t (from BIOS v1.08 to v1.10) without any problems and with a nice graphic splash screen. It is not necessary to let Windows format the USB stick as a MS-DOS startup disk, as outlined in Approach 3. The HP format tool will take care of this (in Step 5) and the USB stick will boot sucessfully at startup (correct boot order provided).&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This update to BIOS 2.14 worked on a brand-new X61s, 2008-06-27. (adsmith)&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; This update to BIOS 2.19 worked on a X61 (76754KU), 2009-01-21. (leonardokroeger)&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Approach 5: Free Alternative method to the above &amp;quot;alternative method&amp;quot; =&lt;br /&gt;
&lt;br /&gt;
This is functionally equivalent to the above two &amp;quot;alternative methods&amp;quot;, yet does not depend on MS Windows or any other proprietary software. It updates the BIOS through a bootable USB stick, and depends upon the FreeDOS, SYSLINUX, and AdvanceMAME projects. A detailed description is provided at [http://ubuntuforums.org/showthread.php?p=5459421#post5459421].&lt;br /&gt;
''This method currently isn't redommended by the author &amp;quot;due to troubles reported by users (August 9th, 2008)&amp;quot;.''&lt;br /&gt;
&lt;br /&gt;
= Approach 6: Using a USB stick to upgrade BIOS on older X Series Thinkpads =&lt;br /&gt;
&lt;br /&gt;
This method has been successfully applied for upgrading an {{X32}} Thinkpad. The previous BIOS version was 3.00d, and it was upgraded to 3.02 . Below are the steps:&lt;br /&gt;
&lt;br /&gt;
1. Download the new BIOS and EC Diskette-type upgrades.&lt;br /&gt;
&lt;br /&gt;
2. Make a DOS-bootable USB stick. See the section above for instructions on how to do this.&lt;br /&gt;
&lt;br /&gt;
3. Copy the upgrade programs to the USB stick.&lt;br /&gt;
&lt;br /&gt;
4. Make two zero-files (using dd), each with the size of a floppy disk.&lt;br /&gt;
&lt;br /&gt;
5. Boot up the USB stick using QEMU, with the USB stick as hda, and the two floppy disk images as A: and B: .&lt;br /&gt;
&lt;br /&gt;
6. Run the BIOS upgrade program, and select the first diskette as its destination. This will not actually upgrade the BIOS; it will only fill up the disk image.&lt;br /&gt;
&lt;br /&gt;
7. Run the EC upgrade program, with the second diskette as target. Again, this will only fill up the disk image, not upgrade the EC.&lt;br /&gt;
&lt;br /&gt;
8. Make two directories, C:\1 and C:\2 .&lt;br /&gt;
&lt;br /&gt;
9. Copy the contents of the first diskette to C:\1 and the second diskette to C:\2 .&lt;br /&gt;
&lt;br /&gt;
10. Exit QEMU, use the USB stick to boot the Thinkpad which BIOS we are going to upgrade.&lt;br /&gt;
&lt;br /&gt;
11. cd into C:\1 and run command.com inside it. This will bring up the BIOS update interface, so update the BIOS.&lt;br /&gt;
&lt;br /&gt;
12. After updating the BIOS, the machine will turn off by itself. Now boot again, with the same USB stick.&lt;br /&gt;
&lt;br /&gt;
13. cd into C:\2 and run command.com inside it. This will bring up the EC update interface. Update the EC and wait for the machine to shut down completely.&lt;br /&gt;
&lt;br /&gt;
14. Remove the USB stick. Now boot into the machine and go into BIOS setup. Right now you should see the new BIOS and EC version. If not, then something is wrong; make sure you have followed the above steps properly. Please also discuss this.&lt;br /&gt;
&lt;br /&gt;
= Approach 7: Use syslinux to boot floppy images which are part of the CD ISO files.  Done with a {{X31}} to upgrade the EC to version 1.08 and the BIOS to 3.02. =&lt;br /&gt;
&lt;br /&gt;
1. Download the CD ISO files of the embedded controller and the BIOS.&lt;br /&gt;
&lt;br /&gt;
2. loop mount these files, check for files like 1quj08us.img (EC) and 1quj19us.img (BIOS) and copy them to /boot/&lt;br /&gt;
&lt;br /&gt;
3. Install the syslinux package and boot the two images with the help of the memdisk feature ( grub: kernel /boot/memdisk initrd /boot/{ec|bios}.img)&lt;br /&gt;
&lt;br /&gt;
= Approach 8 : Use HP USB Format Utility and Win98Boot files to Create Bootable USB Stick =&lt;br /&gt;
(This process works for most X-series that has Windows XP, Windows Vista or Windows 7 OS)&lt;br /&gt;
&lt;br /&gt;
1. There is an HP utility tool floating around the net called HP USB Boot Utility. This [http://blogs.oreilly.com/digitalmedia/2004/10/utility-to-make-usb-flash-driv.html can create a bootable USB flash drive using the boot/system files you have].&lt;br /&gt;
&lt;br /&gt;
2. Get some [http://www.bay-wolf.com/utility/usbkey/win98boot.zip DOS (or similar) boot files] - I found something called &amp;quot;win98boot.zip&amp;quot; e.g.&lt;br /&gt;
&lt;br /&gt;
3. Extract the (*.ima) from the ISO BIOS image (e.g. [http://www.rarsoft.com WinRAR] will do this).&lt;br /&gt;
&lt;br /&gt;
4. Using a tool that can open .IMA files (such as [http://www.winimage.com/ WinImage]), extract all files to a temporary folder.&lt;br /&gt;
&lt;br /&gt;
4. Run the HP tool, select the USB device, I used FAT32,  create a DOS bootable disk and point at the win98boot folder - then &amp;quot;Start&amp;quot;. Warning: this '''formats''' the USB flash drive and all data will be erased!&lt;br /&gt;
&lt;br /&gt;
5. Once complete (you could test if it boots at this point), copy the extracted BIOS files from the temporary folder you created to the USB flash drive.&lt;br /&gt;
&lt;br /&gt;
6. Boot from USB flash drive by pressing F11 within the BIOS boot logo. At the DOS command prompt, type &amp;quot;updflsh&amp;quot; and then follow the prompts by pressing &amp;quot;Y&amp;quot; or Enter. Make sure that you have a fully charged battery pack and the AC Adapter is firmly plugged before proceeding with the BIOS update.&lt;br /&gt;
'''DO NOT Power off the laptop or unplug the USB flash drive while the update is in progress or else update will fail and your computer will be unable to boot and system board may need to be serviced.'''&lt;br /&gt;
&lt;br /&gt;
This process takes around 1-2 minutes. A long beep followed by a short beep will notify you that the update is complete and the system will automatically power off.&lt;br /&gt;
&lt;br /&gt;
7. Power on the laptop then enter the BIOS setup by pressing F1 and Load BIOS defaults.&lt;br /&gt;
&lt;br /&gt;
= Approach 8: Updating via &amp;quot;IBM Predesktop area&amp;quot;, suitable for model X (not have CDROM and floppy) =&lt;br /&gt;
It's so difficult to update BIOS and ECP without cdrom, floppy disk.&lt;br /&gt;
Don't know the reason why I couldn't update BIOS and ECP(1QHJ08US and 1QUJ19US) for my IBM Thinkpad X31.Hmm, may be cause of the dividing partition on my hard disk, that is: 	&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Primary: ext3, ext3, ntfs&lt;br /&gt;
Extended: Ntsf, fat32&lt;br /&gt;
Bootloader: GRUB&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
No problem, you can use this way to do it:&lt;br /&gt;
* First, config in BIOS&lt;br /&gt;
In Security part:&lt;br /&gt;
# Remove all password of Supervisor and Power on password&lt;br /&gt;
# Set Access IBM Predesktop Area to Normal&lt;br /&gt;
# Choose Enable &amp;quot;Flash BIOS updating by End User&amp;quot; in BIOS update Option.&lt;br /&gt;
&lt;br /&gt;
In Config part:&lt;br /&gt;
# Choose Enable for Network flash over Lan&lt;br /&gt;
&lt;br /&gt;
* Second, download the newest version of BIOS update and ECP update &lt;br /&gt;
Running: The program extract all files to the folder. There is a .img file (1QUJ19US.IMG, 1QUJ08US.IMG) in each folder.&lt;br /&gt;
Copy the imformation content in that img file and paste it to one FAT partition(using winimage or TotalCmd to extract) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
as seen All files in 1QUJ19US.IMG is extracted to D:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
695,764  $018E000.FL1&lt;br /&gt;
163      0691.HSH&lt;br /&gt;
2,049    0691.PAT&lt;br /&gt;
163      0694.HSH&lt;br /&gt;
2,049    0694.PAT&lt;br /&gt;
163      0695.HSH&lt;br /&gt;
2,049    0695.PAT&lt;br /&gt;
2,049    06D0.PAT&lt;br /&gt;
163      06D1.HSH&lt;br /&gt;
2,049    06D1.PAT&lt;br /&gt;
163      06D2.HSH&lt;br /&gt;
2,049    06D2.PAT&lt;br /&gt;
163      06D6.HSH&lt;br /&gt;
2,049    06D6.PAT&lt;br /&gt;
2,049    06D8.PAT&lt;br /&gt;
697      CHKBMP.EXE&lt;br /&gt;
8,128    COMMAND.COM&lt;br /&gt;
26       CONFIG.SYS&lt;br /&gt;
24,860   FLASH2.EXE&lt;br /&gt;
26       LCREFLSH.BAT&lt;br /&gt;
170      LOGO.BAT&lt;br /&gt;
330      LOGO.SCR&lt;br /&gt;
111,925  PHLASH16.EXE&lt;br /&gt;
91,648   PREPARE.EXE&lt;br /&gt;
45       PROD.DAT&lt;br /&gt;
22,252   QKFLASH.EXE&lt;br /&gt;
9,923    README.TXT&lt;br /&gt;
4,260    TPCHKS.EXE&lt;br /&gt;
39,666   UPDTFLSH.EXE&lt;br /&gt;
6,958    UPDTMN.EXE&lt;br /&gt;
12,501   USERINT.EXE&lt;br /&gt;
15,254   UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And all files in 1QUJ08US.IMG are: D:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
315,404 $018E000.FL2&lt;br /&gt;
8,000   COMMAND.COM&lt;br /&gt;
36      CONFIG.SYS&lt;br /&gt;
16,910  ECFLASH2.EXE&lt;br /&gt;
45      PROD.DAT&lt;br /&gt;
17,812  QKFLASH.EXE&lt;br /&gt;
990     README.TXT&lt;br /&gt;
4,260   TPCHKS.EXE&lt;br /&gt;
89,738  UPDTEC.EXE&lt;br /&gt;
31,134  UPDTFLSH.EXE&lt;br /&gt;
12,501  USERINT.EXE&lt;br /&gt;
15,226  UTILINFO.EXE&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Okie, now plug AC Adapter, charge full battery to your laptop and continue third step:&lt;br /&gt;
&lt;br /&gt;
** '''Flash BIOS first,'''&lt;br /&gt;
1. Power On, press blue button on keyboard: '''Access IBM'''&lt;br /&gt;
&lt;br /&gt;
2. On &amp;quot;Utilities&amp;quot;, double click &amp;quot; Diagnostic disk&amp;quot;&lt;br /&gt;
&lt;br /&gt;
3. Your laptop will start PC-DOS, wait when this message appear:&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
Please insert the first floppy diskette and&lt;br /&gt;
Press any key to continue&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Press Ctrl + Break, you will see :&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;Terminate batch job (Y/N) ?&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Okie, press Y, you will get DOS prompt like D:\&lt;br /&gt;
{{NOTE|D:\ is my RAMDISK, C:\ is my disk format as FAT.!}}&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\BIOS&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\BIOS&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. Run FLASH2.EXE /u $018E000.FL1&lt;br /&gt;
&lt;br /&gt;
8. Wait flash progress compelete and reboot.&lt;br /&gt;
** '''Flash ECP'''&lt;br /&gt;
Follow above instruction from step 1 to 5&lt;br /&gt;
&lt;br /&gt;
6. Enter to c:\ECP&lt;br /&gt;
&amp;lt;blockquote style=&amp;quot;background: white; border: 1px solid black; padding: 1em;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
c:&lt;br /&gt;
cd c:\ECP&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
7. run UPDTFLSH.EXE $018E000.FL2&lt;br /&gt;
&lt;br /&gt;
8. Follow UPDTFLSH's instructions&lt;br /&gt;
&lt;br /&gt;
9. Wait flash complete and auto turn off computer.&lt;br /&gt;
&lt;br /&gt;
I done it on my IBM Thinkpad X31.&lt;br /&gt;
&lt;br /&gt;
Enjoy,&lt;br /&gt;
&lt;br /&gt;
Tested by nm.&lt;br /&gt;
&lt;br /&gt;
= Approach 10: Booting the Lenovo ISO image using Grub and SysLinux =&lt;br /&gt;
&lt;br /&gt;
I ran this on my [[:Category:X100e|X100e]] L625 (Dual-Core) 3508-5EG.&lt;br /&gt;
&lt;br /&gt;
Also worked on my [[:Category:X301|X301]] with the default ubuntu 10.10 memdisk (/usr/lib/syslinux/memdisk). My menu entry structure however looked like this (ext4 root/boot partition): --[[User:Blk|Blk]] 17:54, 25 November 2010 (UTC)&lt;br /&gt;
 menuentry 'BIOS Upgrade' {&lt;br /&gt;
        insmod ext2&lt;br /&gt;
        set root='(hd0,msdos1)'&lt;br /&gt;
        linux16 /boot/memdisk iso&lt;br /&gt;
        initrd16 /boot/bios.iso&lt;br /&gt;
 }&lt;br /&gt;
small note: the upgrade itself took about 2minutes (it beeped in the middle) and after rebooting i was probably in a reboot-loop. The system rebooted twice in a row after showing the &amp;quot;Press the ThinkVantage button...&amp;quot; blabla, so the third time i went into the bios, reset the default options (F9) and reconfigured it the way i had it before. Then it all worked.&lt;br /&gt;
Now to the original instructions (thanks mate!)&lt;br /&gt;
&lt;br /&gt;
Basically, you download the iso of the cd for bios upgrade from Lenovo and let grub + syslinux emulate a cd-rom drive for you, running the software on the iso. &lt;br /&gt;
&lt;br /&gt;
It's nice and feels safe, since either the iso boots from grub or it doesn't, but if it does, you are running the full OS and update software stack as provided and tested by Lenovo. If it doesn't your bios will not be affected and you will not have bricked your laptop.&lt;br /&gt;
&lt;br /&gt;
* Download the latest bios upgrade from Lenovo website. I used version 1.25 ({{path|6xuj08uc.iso}})&lt;br /&gt;
* Get your hands on memdisk of syslinux. I had to compile a recent version, because my memdisk version that came with Ubuntu did not work correctly. &lt;br /&gt;
* To compile a recent version of syslinux (I used 3.86): &lt;br /&gt;
** Download the sources from http://syslinux.zytor.com/wiki/index.php/ISOLINUX (Download link in my case: http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.86.tar.bz2), &lt;br /&gt;
** Extract the sources and issue {{cmduser|make}} in the root directory of the source.&lt;br /&gt;
** Once compiled, the memdisk file you need will be in {{path|syslinux-3.86/memdisk/memdisk}}&lt;br /&gt;
* Copy the memdisk file of syslinux to {{path|/boot/memdisk}} &lt;br /&gt;
* Update the grub config file: add the code snippet below to the end of the file {{path|/boot/grub/grub.cfg}}. (on Ubuntu, add it to the file {{path|/etc/grub.d/40_custom}} instead, and do a {{cmduser|sudo update-grub}} afterwards).&lt;br /&gt;
 menuentry &amp;quot;Thinkpad x100e BIOS Upgrade to 1.25&amp;quot; {&lt;br /&gt;
        set root='(hd0,1)' # This line should match the other menuentries in your grub.cfg&lt;br /&gt;
        linux16 /boot/memdisk iso&lt;br /&gt;
        initrd16 /boot/6xuj08uc.iso # Make sure this is the correct filename (a different version will have a different filename)&lt;br /&gt;
 }&lt;br /&gt;
* Now reboot, press and hold shift right after the Thinkpad logo disappears and you should see an option in the grub boot menu to boot the bios upgrade cd.&lt;br /&gt;
* Select that option and press enter, the Lenovo bios update software should boot, and you'll get a text-menu interface. &lt;br /&gt;
** If you just see text on a black background and your Thinkpad no longer responds, your booting failed. At this point you are not updating the bios, so you can safely reboot using the power on/off button, recheck your config and find out what you did wrong.&lt;br /&gt;
* If it does boot, follow the directions carefully:&lt;br /&gt;
** Make absolutely sure you have power attached and a well loaded battery just in case&lt;br /&gt;
** The process takes around a minute&lt;br /&gt;
** When it asks to remove the cd and press enter to reboot, just press enter. &lt;br /&gt;
** You should then reboot having and updated bios.&lt;br /&gt;
&lt;br /&gt;
= Approach 10A: Booting an ISO image using Grub and Syslinux for X61 =&lt;br /&gt;
&lt;br /&gt;
The Lenovo ISO images for X61 (and T61) can be booted using Grub as described above, but they don't work as they are intended to be used from the UltraBase cdrom drive.&lt;br /&gt;
&lt;br /&gt;
Fortunately you can adapt an ISO image from a more recent model, such as the X201.&lt;br /&gt;
The following instructions rely on the X201 BIOS Update Bootable CD for version 1.34, filename '''6quj11uc.iso'''. &lt;br /&gt;
Other versions may or may not work.&lt;br /&gt;
&lt;br /&gt;
Save this script as '''convert-iso.sh'''&lt;br /&gt;
&lt;br /&gt;
  #!/bin/bash&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  X201=$1 # X201 iso to use&lt;br /&gt;
  X61=$2  # X61 update&lt;br /&gt;
  OUT=$3  # output filename&lt;br /&gt;
  &lt;br /&gt;
  ISO=`mktemp`&lt;br /&gt;
  SRC=`mktemp -d`&lt;br /&gt;
  DST=`mktemp -d`&lt;br /&gt;
  &lt;br /&gt;
  cp $X201 $ISO&lt;br /&gt;
  &lt;br /&gt;
  # discovered using geteltorito, to get the offset of the disk image&lt;br /&gt;
  # and fdisk, to get the offset of the partition inside the disk image&lt;br /&gt;
  OFFSET=71680&lt;br /&gt;
  &lt;br /&gt;
  mount $ISO $DST -o rw,loop,offset=$OFFSET&lt;br /&gt;
  &lt;br /&gt;
  # create a ramdisk big enough for the flash files&lt;br /&gt;
  cat &amp;lt;&amp;lt;EOF | sed 's/$/\r/' &amp;gt; $DST/CONFIG.SYS&lt;br /&gt;
  FILES=30&lt;br /&gt;
  BUFFERS=10&lt;br /&gt;
  DEVICE=C:\HIMEM.SYS /NUMHANDLES=120&lt;br /&gt;
  DEVICEHIGH=C:\ramdrive.sys /E 30720 &lt;br /&gt;
  DOS=HIGH,UMB&lt;br /&gt;
  STACKS=9,256&lt;br /&gt;
  EOF&lt;br /&gt;
  &lt;br /&gt;
  # copy the flash files to the ramdisk&lt;br /&gt;
  # if not, the update will simply hang because the files cannot be accessed&lt;br /&gt;
  #&lt;br /&gt;
  # remove the command.com line if you need a shell&lt;br /&gt;
  cat &amp;lt;&amp;lt;EOF | sed 's/$/\r/' &amp;gt; $DST/AUTOEXEC.BAT &lt;br /&gt;
  copy FLASH\*.* d:&lt;br /&gt;
  d:&lt;br /&gt;
  command.com&lt;br /&gt;
  EOF&lt;br /&gt;
  &lt;br /&gt;
  rm -r $DST/FLASH/*&lt;br /&gt;
  mount $X61 $SRC -r -o loop&lt;br /&gt;
  cp $SRC/* $DST/FLASH&lt;br /&gt;
  &lt;br /&gt;
  umount $SRC $DST&lt;br /&gt;
  rmdir $SRC $DST&lt;br /&gt;
  &lt;br /&gt;
  mv $ISO $OUT&lt;br /&gt;
  echo &amp;quot;Done: $OUT created.&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
Then run the script against the X201 bios ISO and the X61 one (in this example, version 2.22, filename '''7nuj22uc.iso'''.&lt;br /&gt;
&lt;br /&gt;
{{cmdroot|./convert-iso.sh 6quj11uc.iso 7nuj22uc.iso X61.iso}}.&lt;br /&gt;
&lt;br /&gt;
In theory this should create a file called '''X61.iso''' that can be booted using Grub and Syslinux, and which will successfully update the BIOS.&lt;/div&gt;</summary>
		<author><name>Trmsw</name></author>
		
	</entry>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=How_to_configure_the_TrackPoint&amp;diff=51346</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=51346"/>
		<updated>2011-04-04T17:54:42Z</updated>

		<summary type="html">&lt;p&gt;Trmsw: /* Configuring other options (e.g. Press to select, Sensitivity and Speed) */  - alternative udev rule&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; |Below are several ways of configuring the kernel psmouse driver for controlling extended TrackPoint features.&lt;br /&gt;
|}&lt;br /&gt;
On a '''Modern''' distribution (like Fedora, Ubuntu or OpenSUSE) you will want to use xinput or one of the graphical front ends. For distributions that are lagging a bit (e.g. Debian Lenny and PCLOS '09) you may still want to use the old xorg config method.&lt;br /&gt;
&lt;br /&gt;
=Configuration using xinput=&lt;br /&gt;
If you want to modify changes on the fly, you can do so with {{cmd|xinput|}} (part of the optional xorg-x11-apps rpm on Fedora).&lt;br /&gt;
Note that these changes are not saved when the xserver is restarted. However, you can add the lines e.g. in your  {{cmd|.xsessionrc|}} (depends on your distribution) so they are executed every time X starts.&lt;br /&gt;
&lt;br /&gt;
To query the available options&lt;br /&gt;
 xinput list-props &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
&lt;br /&gt;
More information can be found in the man-pages for evdev&lt;br /&gt;
 man evdev&lt;br /&gt;
&lt;br /&gt;
To enable vertical scrolling&lt;br /&gt;
 xinput set-int-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation&amp;quot; 8 1&lt;br /&gt;
 xinput set-int-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Button&amp;quot; 8 2&lt;br /&gt;
 xinput set-int-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 8 200&lt;br /&gt;
&lt;br /&gt;
To enable horizontal scrolling in addition to vertical scrolling&lt;br /&gt;
&lt;br /&gt;
 xinput set-int-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 8 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To enable middle button emulation (using left- and right-click simultaneously)&lt;br /&gt;
 xinput set-int-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Emulation&amp;quot; 8 1&lt;br /&gt;
 xinput set-int-prop &amp;quot;TPPS/2 IBM TrackPoint&amp;quot; &amp;quot;Evdev Middle Button Timeout&amp;quot; 8 50&lt;br /&gt;
&lt;br /&gt;
==Example: openSUSE 11.2 and ThinkPad USB Keyboard with TrackPoint ==&lt;br /&gt;
&lt;br /&gt;
 xinput list &lt;br /&gt;
will show two &amp;quot;Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint.&amp;quot; with two different ids. Use the id with Axis 0 and Axis 1 items.&lt;br /&gt;
&lt;br /&gt;
Suppose the id was 12. The following will enable the trackpoint scrolling:&lt;br /&gt;
&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation&amp;quot; 8 1&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation Button&amp;quot; 8 2&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 8 200&lt;br /&gt;
&lt;br /&gt;
The following will enable the horizontal scrolling&lt;br /&gt;
 xinput set-int-prop 12 &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 8 6 7 4 5&lt;br /&gt;
&lt;br /&gt;
To disable middle button click paste functionality, remap the middle button to something else:&lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 9 3 4 5 6 7 8 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To do these automatically without worrying about id number, generate a bash script file:&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 xinput list | sed -ne 's/^[^ ][^V].*id=\([0-9]*\).*/\1/p' | while read id&lt;br /&gt;
 do&lt;br /&gt;
         case `xinput list-props $id` in&lt;br /&gt;
         *&amp;quot;Middle Button Emulation&amp;quot;*)&lt;br /&gt;
                 xinput set-int-prop $id &amp;quot;Evdev Wheel Emulation&amp;quot; 8 1&lt;br /&gt;
                 xinput set-int-prop $id &amp;quot;Evdev Wheel Emulation Button&amp;quot; 8 2&lt;br /&gt;
                 xinput set-int-prop $id &amp;quot;Evdev Wheel Emulation Timeout&amp;quot; 8 200&lt;br /&gt;
                 xinput set-int-prop $id &amp;quot;Evdev Wheel Emulation Axes&amp;quot; 8 6 7 4 5&lt;br /&gt;
                 xinput set-int-prop $id &amp;quot;Evdev Middle Button Emulation&amp;quot; 8 0&lt;br /&gt;
                 ;;&lt;br /&gt;
         esac&lt;br /&gt;
 done&lt;br /&gt;
 &lt;br /&gt;
 # disable middle button &lt;br /&gt;
 xmodmap -e &amp;quot;pointer = 1 9 3 4 5 6 7 8 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and save it with any name such as trackPointScrolling.sh, and make it executable:&lt;br /&gt;
 chmod +x trackPointScrolling.sh&lt;br /&gt;
&lt;br /&gt;
Next time you run it with $ ./trackPointScrolling.sh, it will enable the trackpoint scrolling and disable middle button paste.&lt;br /&gt;
{{Todo|some other examples}}&lt;br /&gt;
&lt;br /&gt;
= Graphical Frontends =&lt;br /&gt;
If you are using GNOME, you might want to use [http://live.gnome.org/GPointingDeviceSettings GPointing Device Settings] or [http://tpctl.sourceforge.net/configure-trackpoint.html configure-trackpoint] as a graphical frontends.&lt;br /&gt;
=== GPointing Device Settings ===&lt;br /&gt;
It is available for Fedora 12, Ubuntu 9.10 and Debian Squeeze in the standard package repositories&lt;br /&gt;
&lt;br /&gt;
[[image:Screenshot-GPointing Device Settings-TrackPoint.png]]&lt;br /&gt;
&lt;br /&gt;
=== configure-trackpoint ===&lt;br /&gt;
To install it in Ubuntu run ...&lt;br /&gt;
 sudo apt-get install sysfsutils&lt;br /&gt;
...and then download and install the deb [http://sourceforge.net/projects/tpctl/ here]. Note that saved settings are not restored after reboot in Lucid Lynx. See methods below to make settings permanent.&lt;br /&gt;
&lt;br /&gt;
= Configuration using DevKit =&lt;br /&gt;
Most recent distributions like Ubuntu 9.10 switch from HAL (being deprecated) to DevKit. Hence, the HAL configurations explained underneath, fail to work. &lt;br /&gt;
&lt;br /&gt;
The easiest way to configure your touchpad and trackpoint with DevKit is by using the [http://live.gnome.org/GPointingDeviceSettings GPointingDeviceSettings] panel that fully supports the hardware. You can easily download the panel by installing {{cmd| gpointing-device-settings|}}. On Ubuntu open a terminal and execute the command {{cmduser| sudo apt-get install gpointing-device-settings}}&lt;br /&gt;
&lt;br /&gt;
Launch the UI through the {{cmduser| gpointing-device-settings}} command, but you can also add a menu entry to your System / Preferences menu for easier access to the UI panel.&lt;br /&gt;
&lt;br /&gt;
= Configuration using udev and HAL =&lt;br /&gt;
Modern distributions like Ubuntu 8.10 and Fedora 10 use udev and HAL to configure the input devices. You should no longer make changes to xorg.conf as by default Xorg (through the evdev driver) will let the kernel now handle input devices.&lt;br /&gt;
&lt;br /&gt;
But before you get started on this you should make sure you have all the updates applied from your distro vendor as both Ubuntu 8.10 and Fedora 10 require some additional fixes that you will need.&lt;br /&gt;
&lt;br /&gt;
=== Scrolling ===&lt;br /&gt;
By default the middle mouse button is that, a middle mouse button, which in Linux is used for the Paste operation.&lt;br /&gt;
&lt;br /&gt;
But you can configure it to act in the same way as in Windows, such that you can use it for vertical scrolling (keep the button pressed and move the TrackPoint up and down to scroll). &lt;br /&gt;
&lt;br /&gt;
==== xorg.conf.d ====&lt;br /&gt;
&lt;br /&gt;
Some distributions now support the new Xorg hotplug configuration method via xorg.conf.d directories (in Ubuntu 10.04 Lucid Lynx) instead of hal. In contrast to the udev method below, it should be around for some time, so it might be the best way to “statically” configure scrolling.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/usr/lib/X11/xorg.conf.d/20-thinkpad.conf}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;InputClass&amp;quot;&lt;br /&gt;
	Identifier	&amp;quot;Trackpoint Wheel Emulation&amp;quot;&lt;br /&gt;
	MatchProduct	&amp;quot;TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint&amp;quot;&lt;br /&gt;
	MatchDevicePath	&amp;quot;/dev/input/event*&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;
	Option		&amp;quot;Emulate3Buttons&amp;quot;	&amp;quot;false&amp;quot;&lt;br /&gt;
	Option		&amp;quot;XAxisMapping&amp;quot;		&amp;quot;6 7&amp;quot;&lt;br /&gt;
	Option		&amp;quot;YAxisMapping&amp;quot;		&amp;quot;4 5&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|For Ubuntu 10.10 Maverick Meerkat, the correct path is {{path|/usr/share/X11/xorg.conf.d}}}}&lt;br /&gt;
{{NOTE|For Arch Linux or Fedora, the correct path is {{path|/etc/X11/xorg.conf.d}}}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above does not work for you, you may need to add a different MatchProduct string.  Use &amp;lt;pre&amp;gt;find /dev/input/event* -exec udevadm info --attribute-walk --name={} \; | grep -e product -e name | sort -u&amp;lt;/pre&amp;gt; to get a list of possibilities.}}&lt;br /&gt;
&lt;br /&gt;
{{NOTE|If the above directory doesn't exist by default in your distribution, it probably doesn't support this method. In this case, please refer to the udev or xinput method below.}}&lt;br /&gt;
&lt;br /&gt;
==== udev ====&lt;br /&gt;
&lt;br /&gt;
Now that Xorg doesn't use the configuration from hal (in Debian unstable starting january 2010), the only way to “statically” configure scrolling in trackpoint is udev. (for other people, xinput method, works fine). This method will be gone (_again_) in not too long so it might be a better idea to use xinput way. YMMV.&lt;br /&gt;
&lt;br /&gt;
Create the file {{path|/etc/udev/rules.d/99_trackpoint.rules}} as root with the following content:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ACTION!=&amp;quot;add|change&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
KERNEL!=&amp;quot;event*&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{ID_PATH}!=&amp;quot;platform-i8042-serio-1&amp;quot;, GOTO=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&lt;br /&gt;
ENV{x11_options.EmulateWheel}=&amp;quot;1&amp;quot;&lt;br /&gt;
ENV{x11_options.EmulateWheelButton}=&amp;quot;2&amp;quot;&lt;br /&gt;
ENV{x11_options.XAxisMapping}=&amp;quot;6 7&amp;quot;&lt;br /&gt;
ENV{x11_options.Emulate3Buttons}=&amp;quot;0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
LABEL=&amp;quot;xorg_trackpoint_end&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and restart udev then Xorg (or it'll be enabled at next reboot).&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The ID_PATH used in the example above is a typical value.  To determine the ID_PATH appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==== Hal (soon to be deprecated) ====&lt;br /&gt;
&lt;br /&gt;
To accomplish this create the file {{path|/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.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;
If you also want to have horizontal scrolling, simply add the following XAxisMapping option to the above&lt;br /&gt;
&amp;lt;pre&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;/pre&amp;gt;&lt;br /&gt;
After this reboot, or restart the hal service and Xorg. You can validate the settings with {{cmd|lshal|}}.&lt;br /&gt;
&lt;br /&gt;
In some models (eg: X301 and X200 since Jan 10 2010 on debian sid) you may have to use &amp;quot;PS/2 Generic Mouse&amp;quot; instead of &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;. Have a look to your input devices typing &amp;lt;code&amp;gt;lshal|grep input.product&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Alternatively it is also possible to use the &amp;quot;old&amp;quot; Xorg configuration by adding the following lines to the {{path|/etc/X11/xorg.conf}}:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Section &amp;quot;ServerFlags&amp;quot;&lt;br /&gt;
	Option 	&amp;quot;AutoAddDevices&amp;quot; &amp;quot;false&amp;quot;&lt;br /&gt;
EndSection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using this entry HAL will not be used for the input devices.&lt;br /&gt;
&lt;br /&gt;
====Reactivate Scrolling after suspend/resume====&lt;br /&gt;
Scrolling may be disabled after a resume from suspend. &lt;br /&gt;
&lt;br /&gt;
You can manually reactivate the trackpoint by reloading the {{path|psmouse}} module as root:&lt;br /&gt;
:{{cmdroot|rmmod psmouse &amp;amp;&amp;amp; modprobe psmouse}}&lt;br /&gt;
&lt;br /&gt;
You can automatically force the pm-utils to reload this module.&lt;br /&gt;
Create a file {{path|/etc/pm/config.d/01reload_mouse}} as root with the following content:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# reload psmouse to reactivate trackpoint scrolling&lt;br /&gt;
SUSPEND_MODULES=&amp;quot;${SUSPEND_MODULES:+$SUSPEND_MODULES }psmouse&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Configuring other options (e.g. Press to select, Sensitivity and Speed)===&lt;br /&gt;
&amp;lt;!--HAL wasn't made to configure sysfs settings, so we'll use udev instead --&amp;gt;&lt;br /&gt;
Create a file {{path|/etc/udev/rules.d/10-trackpoint.rules}} and add a line to suit your needs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, ATTRS{press_to_select}=&amp;quot;1&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Testing udev  with {{cmdroot|udevadm test /sys/devices/platform/i8042/serio1}} should apply the new changes.  All of the settings listed [[How to configure the TrackPoint#Sysfs_Options_Reference|below]] can be specified here as part of a comma separated list.&lt;br /&gt;
The customized values should be loaded automatically when booting. However, due to a [http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=549379  kernel bug] (affecting Lucid Lynx), the attributes may not yet exist when the udev rule fires. As a work around, add a WAIT_FOR condition on the attribute&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;serio&amp;quot;, DRIVERS==&amp;quot;psmouse&amp;quot;, WAIT_FOR=&amp;quot;/sys/devices/platform/i8042/serio1/serio2/sensitivity&amp;quot;, ATTRS{sensitivity}=&amp;quot;122&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To avoid the wait you can also listen for the Trackpoint input device to appear and then run a script to set the parameters&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SUBSYSTEM==&amp;quot;input&amp;quot;, ATTR{name}==&amp;quot;*TrackPoint*&amp;quot;, RUN+=&amp;quot;/etc/conf.d/trackpoint&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example {{path|/etc/conf.d/trackpoint}} would be&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#! /bin/bash&lt;br /&gt;
&lt;br /&gt;
## Trackpoint settings&lt;br /&gt;
&lt;br /&gt;
# When run from a udev rule, DEVPATH should be set&lt;br /&gt;
if [ ! -z $DEVPATH ] ; then&lt;br /&gt;
    TPDEV=/sys/$( echo &amp;quot;$DEVPATH&amp;quot; | sed 's/\/input\/input[0-9]*//' )&lt;br /&gt;
else&lt;br /&gt;
# Otherwise just look in /sys/&lt;br /&gt;
    TPDEV=$(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/input\/input[0-9]*\/name$//')&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint&lt;br /&gt;
# http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf&lt;br /&gt;
#------------------------------------------------------------&lt;br /&gt;
if [ -d &amp;quot;$TPDEV&amp;quot; ]; then&lt;br /&gt;
    echo &amp;quot;Configuring Trackpoint&amp;quot;&lt;br /&gt;
    echo -n 255     &amp;gt; $TPDEV/sensitivity     # Integer  128   Sensitivity                    &lt;br /&gt;
    echo -n 110     &amp;gt; $TPDEV/speed           # Integer  97   Cursor speed                            &lt;br /&gt;
    echo -n 4       &amp;gt; $TPDEV/inertia         # Integer  6   Negative intertia        &lt;br /&gt;
else&lt;br /&gt;
    echo &amp;quot;Couldn't find trackpoint device $TPDEV&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Configuration using sysfs=&lt;br /&gt;
Another way to modify changes on the fly, is echoing values directly into special files in sysfs.&lt;br /&gt;
&lt;br /&gt;
{{NOTE|&lt;br /&gt;
The examples shown below are valid for ThinkPads with both TrackPoint and Touchpad, in which case the sysfs path is {{path|/sys/devices/platform/i8042/serio1/serio2}}.&lt;br /&gt;
&lt;br /&gt;
If however you have a ThinkPad without Touchpad, or with the Touchpad disabled in the BIOS, the sysfs path needs to be changed to {{path|/sys/devices/platform/i8042/serio1}} instead (notice the missing serio2 at the end).}}&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;
===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/serio1/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/serio1/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/serio1/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/serio1/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/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
In Ubuntu 8.10 to make Press to Select a permanent change:&lt;br /&gt;
&lt;br /&gt;
echo -n 1 | tee /sys/devices/platform/i8042/serio1/serio2/press_to_select&lt;br /&gt;
&lt;br /&gt;
As root, append the above command above &amp;quot;exit 0&amp;quot; in /etc/gdm/Init/Default&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/serio1/serio2/speed}}&lt;br /&gt;
:{{cmdroot|echo -n 250 &amp;gt; /sys/devices/platform/i8042/serio1/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.  In Ubuntu 9.10, add the lines to /etc/rc.local to avoid this.&lt;br /&gt;
&lt;br /&gt;
===Vertical Scrolling===&lt;br /&gt;
No sysfs entry exists for vertical scrolling in kernels after 2.6.11.&lt;br /&gt;
&lt;br /&gt;
The feature was removed as it was not a hardware feature, but rather emulating a scroll action in software and as such did not belong in the kernel.&lt;br /&gt;
Instead the scroll feature of the Xserver should be used, which can be activated with HAL or xinput as described above.&lt;br /&gt;
&lt;br /&gt;
=Configuration using the X server (xorg.conf)=&lt;br /&gt;
==Using the &amp;quot;evdev&amp;quot; driver (preferred, especially for recent Xorg versions)==&lt;br /&gt;
Extract from /etc/X11/xorg.conf on an X31:&lt;br /&gt;
&lt;br /&gt;
    Section &amp;quot;InputDevice&amp;quot;&lt;br /&gt;
        Identifier &amp;quot;TPPS/2 IBM TrackPoint&amp;quot;&lt;br /&gt;
        Driver     &amp;quot;evdev&amp;quot;&lt;br /&gt;
        Option     &amp;quot;Device&amp;quot; &amp;quot;/dev/input/by-path/platform-i8042-serio-1-event-mouse&amp;quot;&lt;br /&gt;
        Option     &amp;quot;GrabDevice&amp;quot; &amp;quot;False&amp;quot;&lt;br /&gt;
        Option     &amp;quot;EmulateWheel&amp;quot; &amp;quot;true&amp;quot; #Enable wheel emulation for the Trackpoint&lt;br /&gt;
        Option     &amp;quot;EmulateWheelButton&amp;quot; &amp;quot;2&amp;quot; #Use the middle button for the emulation&lt;br /&gt;
        Option     &amp;quot;XAxisMapping&amp;quot; &amp;quot;6 7&amp;quot; #Map trackpoint X axis to X axis of emulated wheel&lt;br /&gt;
        Option     &amp;quot;YAxisMapping&amp;quot; &amp;quot;4 5&amp;quot; #Map trackpoint Y axis to Y axis of emulated wheel&lt;br /&gt;
    EndSection&lt;br /&gt;
&lt;br /&gt;
{{NOTE|The device path used in the example above is a typical value.  To determine the device path appropriate to the TrackPoint on a specific model see [[#Determining TrackPoint Path ID|Determining TrackPoint Path ID]]}}&lt;br /&gt;
&lt;br /&gt;
==Using the &amp;quot;mouse&amp;quot; driver (deprecated, only for old Xorg versions)==&lt;br /&gt;
{{NOTE|This only applies to old distributions with Xorg versions that did not yet use evdev. For modern distributions use one of the other methods}}&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;
=Application specific tweaks=&lt;br /&gt;
===Configure Opera for using trackpoint horizontal scrolling===&lt;br /&gt;
To fix horizontal scrolling in Opera, 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/ui/ (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;
===Firefox 3 tweaks===&lt;br /&gt;
These settings make Firefox on Linux behave more like the Windows version. They were tested on an out of the box Fedora 10 system on a Thinkpad T61.  Go into about:config, and set the following:&lt;br /&gt;
&lt;br /&gt;
 middlemouse.paste = false&lt;br /&gt;
 middlemouse.contentLoadURL = false&lt;br /&gt;
 general.autoScroll = true&lt;br /&gt;
&lt;br /&gt;
=Sysfs Options Reference=&lt;br /&gt;
{{NOTE|These options are current as of kernel version 2.6.29, 3 May 2009}}&lt;br /&gt;
{| &lt;br /&gt;
|-&lt;br /&gt;
! Name&lt;br /&gt;
! Type&lt;br /&gt;
! Default&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| sensitivity&lt;br /&gt;
| Integer&lt;br /&gt;
| 128&lt;br /&gt;
| Sensitivity&lt;br /&gt;
|-&lt;br /&gt;
| speed&lt;br /&gt;
| Integer&lt;br /&gt;
| 97&lt;br /&gt;
| Cursor speed&lt;br /&gt;
|-&lt;br /&gt;
| inertia&lt;br /&gt;
| Integer&lt;br /&gt;
| 6&lt;br /&gt;
| Described as &amp;quot;negative inertia.&amp;quot;  It acts more like friction.  High values cause the cursor to snap backward when the Trackpoint is released&lt;br /&gt;
|-&lt;br /&gt;
| reach&lt;br /&gt;
| Integer&lt;br /&gt;
| 10&lt;br /&gt;
| Backup for Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| draghys&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Drag hysteresis (how hard it is to drag with Z-axis pressed)&lt;br /&gt;
|-&lt;br /&gt;
| mindrag&lt;br /&gt;
| Integer&lt;br /&gt;
| 20&lt;br /&gt;
| Minimum amount of force needed to trigger dragging&lt;br /&gt;
|-&lt;br /&gt;
| thresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 8&lt;br /&gt;
| Minimum value for a Z-axis press&lt;br /&gt;
|-&lt;br /&gt;
| upthresh&lt;br /&gt;
| Integer&lt;br /&gt;
| 255&lt;br /&gt;
| Used to generate a 'click' on Z-axis&lt;br /&gt;
|-&lt;br /&gt;
| ztime&lt;br /&gt;
| Integer&lt;br /&gt;
| 38&lt;br /&gt;
| How sharp of a press&lt;br /&gt;
|-&lt;br /&gt;
| jenks&lt;br /&gt;
| Integer&lt;br /&gt;
| 135&lt;br /&gt;
| Minimum curvature for double click&lt;br /&gt;
|-&lt;br /&gt;
| press_to_select&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Press to select&lt;br /&gt;
|-&lt;br /&gt;
| skipback&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Supress movement after drag release &lt;br /&gt;
|-&lt;br /&gt;
| ext_dev&lt;br /&gt;
| Boolean&lt;br /&gt;
| 0&lt;br /&gt;
| Disable external device&lt;br /&gt;
|}&lt;br /&gt;
Table info taken from [http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=drivers/input/mouse/trackpoint.h;hb=HEAD here].  The given link will always point to the current version of the driver.  If the notes seem sparse, that's because the code is sparse.  On the other hand, the [http://wwwcssrv.almaden.ibm.com/trackpoint/files/ykt3eext.pdf Trackpoint Engineering Specification Version 4.0] &amp;lt;!--if this link breaks, I recommend a quick Google search for &amp;quot;trackpoint version 4 engineering specifications&amp;quot; --&amp;gt; contains more documentation information than anyone ever desired.&lt;br /&gt;
&lt;br /&gt;
=Determining TrackPoint Path ID=&lt;br /&gt;
Both the [[#udev|udev]] and [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration methods require knowledge of the Path ID of the TrackPoint.  In the [[#udev|udev]] configuration method, the Path ID is used to match the ID_PATH environmental variable, in the [[#Configuration using the X server (xorg.conf)|xorg.conf]] configuration method it is the prefix for the device file name inside the {{path|/dev/input/by-id}} directory.  The path ID can vary between ThinkPad models, distributions (with varying kernel patches), and between kernel versions.  One way to find the path ID for the TrackPoint is to use udev's path_id utility on the sysfs device path for the TrackPoint.  This device path can be found using the {{path|name}} file which describes the TrackPoint.  The process can be automated using the following shell command:&lt;br /&gt;
 /lib/udev/path_id $(find /sys/devices/platform/i8042 -name name | xargs grep -Fl TrackPoint | sed 's/\/sys\(.*\)\/name/\1/')&lt;/div&gt;</summary>
		<author><name>Trmsw</name></author>
		
	</entry>
</feed>