User Tools

Site Tools


howtos:middle_mouse_button_scrolling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:middle_mouse_button_scrolling [d/m/Y H:i] (current)
Line 1: Line 1:
 +Using xinput:
  
 +<code>
 +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
 +</code>
 +
 +The right way. Make a fdi file in /etc/hal/fdi/policy/mouse-wheel.fdi that looks like this:
 +
 +<file>
 +<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>
 +</file>
 +
 +To keep the scrolling working after a suspend do the following:
 +
 +  * Make the file: sudo vi /etc/acpi/resume.d/97-reload-psmouse
 +  * Insert
 +<code>
 +#!/bin/sh
 +modprobe -r psmouse
 +sleep 2
 +modprobe psmouse
 +</code>
 +
 +  * 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:
 +<file>
 +<?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>
 +</file>
 +
 +==== Lucid ====
 +To get scrolling working in Lucid you need the following:
 +Hit Alt-F2 and run
 +<code>
 +gksu gedit /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
 +</code>
 +
 +Paste in:
 +
 +<file>
 +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
 +</file>
 +
 +Logout and back in then your set.
howtos/middle_mouse_button_scrolling.txt · Last modified: d/m/Y H:i (external edit)