User Tools

Site Tools


howtos:middle_mouse_button_scrolling

Using xinput:

xinput set-int-prop "TPPS/2 IBM TrackPoint" "Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Wheel Emulation Button" 8 2

The right way. Make a fdi file in /etc/hal/fdi/policy/mouse-wheel.fdi that looks like this:

<match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

To keep the scrolling working after a suspend do the following:

  • Make the file: sudo vi /etc/acpi/resume.d/97-reload-psmouse
  • Insert
#!/bin/sh
modprobe -r psmouse
sleep 2
modprobe psmouse
  • Make it executable: sudo chmod +x /etc/acpi/resume.d/97-reload-psmouse

This will regain you scrolling mouse button. But what a mess to get it working…..

Remember that the “*-reload-psmouse” must be executed prior to “98-acpi-unlock.sh” otherwise it wouldn't be run on resume. That's why I've called it “97-reload-psmouse”.

Jackalope/Karmic

Scrolling with Trackpoint

Create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi typing:

sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi

And fill it with this code:

<?xml version="1.0" encoding="UTF-8"?> 

<match key="info.product" string="TPPS/2 IBM TrackPoint">
 <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
 <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
 <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
 <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
 <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

Lucid

To get scrolling working in Lucid you need the following: Hit Alt-F2 and run

gksu gedit /usr/lib/X11/xorg.conf.d/20-thinkpad.conf

Paste in:

Section "InputClass"
Identifier	"Trackpoint Wheel Emulation"
MatchProduct	"TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint"
MatchDevicePath	"/dev/input/event*"
Option	 "EmulateWheel"	 "true"
Option	 "EmulateWheelButton"	"2"
Option	 "Emulate3Buttons"	"false"
Option	 "XAxisMapping"	 "6 7"
Option	 "YAxisMapping"	 "4 5"
Option	 "EmulateWheelTimeout"	"200"
EndSection

Logout and back in then your set.

howtos/middle_mouse_button_scrolling.txt · Last modified: 02/12/2018 20:34 by 127.0.0.1