How to configure the TrackPoint

From ThinkWiki
Revision as of 00:13, 16 July 2005 by 84.191.144.30 (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The kernel trackpoint driver is controlled by echoing values to special files.

NOTE!

Prior to kernel 2.6.11 these files were located in /proc/trackpoint.

From 2.6.11 on this is no longer the case. Instead use /sys/devices/platform/i8042/serio0.

(The newer form is used throughout this document.)

Common configuration options are outlined below.

Configuration options

+ device_create_file(&serio->dev, &psmouse_attr_sensitivity); + device_create_file(&serio->dev, &psmouse_attr_speed); + device_create_file(&serio->dev, &psmouse_attr_inertia); + device_create_file(&serio->dev, &psmouse_attr_reach); + device_create_file(&serio->dev, &psmouse_attr_draghys); + device_create_file(&serio->dev, &psmouse_attr_mindrag); + device_create_file(&serio->dev, &psmouse_attr_thresh); + device_create_file(&serio->dev, &psmouse_attr_upthresh); + device_create_file(&serio->dev, &psmouse_attr_ztime); + device_create_file(&serio->dev, &psmouse_attr_jenks); + device_create_file(&serio->dev, &psmouse_attr_press_to_select); + device_create_file(&serio->dev, &psmouse_attr_skipback); + device_create_file(&serio->dev, &psmouse_attr_middle_btn_disable); + device_create_file(&serio->dev, &psmouse_attr_ext_dev); + device_create_file(&serio->dev, &psmouse_attr_transparent);

Most common Features

The most common settings are Press to Select, sensitivity, speed and scrolling.

Press to Select

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

# echo 1 > /sys/devices/platform/i8042/serio0/ptson

Press to Select should now be enabled. You can disable it in a similar manner:

# echo 0 > /sys/devices/platform/i8042/serio0/ptson

Sensitivity & Speed

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:

# echo 120 > /sys/devices/platform/i8042/serio0/speed
# echo 250 > /sys/devices/platform/i8042/serio0/sensitivity

Feel free to experiment with your settings until you find a combination that is comfortable.

Scrolling

Using a kernel prior to 2.6.11

The scrolling action is essentially the same as is used in the TrackPoint Windows drivers. To enable this feature, type the following in to a terminal (you may need to be root):

# echo 1 > /sys/devices/platform/i8042/serio0/scroll

Then press the middle button and push the stick up and down to scroll. Similarly, to disable scrolling:

# echo 0 > /sys/devices/platform/i8042/serio0/scroll

Using the X server (kernel 2.6.11+)

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. First do:

{{{2}}} echo -n 0 > /sys/devices/platform/i8042/serio0/middle_btn_disable

Then, for versions of Xorg since ~Oct '04, add these lines to your TrackPoint configuration section in /etc/X11/xorg.conf:

       Option          "EmulateWheel"          "on"
       Option          "EmulateWheelButton"    "2"

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.

For older versions of Xorg or for Xfree86 (/etc/X11/XF86Config) try this:

      Option          "Emulate3Buttons"       "true"
      Option          "EmulateWheel"          "true"
      Option          "EmulateWheelButton"    "2"

Now restart X and hold down button two and move the mouse for scrolling. To get a middle click, press buttons 1 and 3 simultaneously.