[ltp] Mouse Wheel Emulation

Michael Gaber linux-thinkpad@linux-thinkpad.org
Wed, 09 Apr 2008 16:14:32 +0200


This is a multi-part message in MIME format.
--------------040009060503070004010006
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

first you should check if evdev somehow grabs the mouse and unmerge it, 
if it does.
then you could check my yorg.conf, which enables scrolling with the 
middle button in 4 directions

Thomas Kahle schrieb:
> Hi,
> 
> i have a Thinkpad X61s without Touchpad, did anyone here succeed in
> enabling mouse wheel emulation on this or a similar machine ?
> 
> I use xorg 1.4.0.90 and input-mouse 1.2.3 on gentoo.
> The relevant part of xorg.conf looks like:
> 
> Section "InputDevice"
> ~        Identifier  "Mouse0"
> ~        Driver      "mouse"
> ~        Option      "Protocol" "auto"
> ~        Option      "Device" "/dev/input/mice"
> ~        Option      "ZAxisMapping" "4 5 6 7"
> ~        Option      "EmulateWheel"        "on"
> ~        Option      "EmulateWheelTimeOut" "200"
> ~        Option      "EmulateWheelButton"  "2"
> ~        Option      "YAxisMapping"        "4 5"
> ~        Option      "XAxisMapping"        "6 7"
> EndSection
> 
> Although I experimented a lot already with this (changing the mapping
> buttons and so on...) it just shows no effect. Pasting with middle
> button works, scroll does not.
> 
> ~From the logs i can tell that the option is read and recongnized :
> 
>  ...
> (**) Mouse0: Device: "/dev/input/mice"
> (**) Mouse0: Protocol: "auto"
> (**) Option "CorePointer"
> (**) Mouse0: always reports core events
> (**) Option "Device" "/dev/input/mice"
> (==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
> (**) Option "ZAxisMapping" "4 5 6 7"
> (**) Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
> (**) Option "EmulateWheel" "on"
> (**) Option "EmulateWheelButton" "2"
> (**) Option "EmulateWheelTimeout" "200"
> (**) Option "XAxisMapping" "6 7"
> (**) Mouse0: XAxisMapping: buttons 6 and 7
> (**) Option "YAxisMapping" "4 5"
> (**) Mouse0: YAxisMapping: buttons 4 and 5
> (**) Mouse0: EmulateWheel, EmulateWheelButton: 2, EmulateWheelInertia:
> 10, EmulateWheelTimeout: 200
> (**) Mouse0: Buttons: 11
> (**) Mouse0: Sensitivity: 1
>  ...
> 
> Any Ideas ?
> 
> thanks
> Thomas

--------------040009060503070004010006
Content-Type: text/plain;
 name="xorg.conf"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="xorg.conf"

U2VjdGlvbiAiTW9kdWxlIgogICAgU3ViU2VjdGlvbiAgImV4dG1vZCIKICAgICAgT3B0aW9u
ICAgICJvbWl0IHhmcmVlODYtZGdhIiAgICMgZG9uJ3QgaW5pdGlhbGlzZSB0aGUgREdBIGV4
dGVuc2lvbgogICAgRW5kU3ViU2VjdGlvbgpFbmRTZWN0aW9uCgojICoqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioKIyBGaWxlcyBzZWN0aW9uLiAgVGhpcyBhbGxvd3MgZGVmYXVsdCBmb250IGFuZCByZ2Ig
cGF0aHMgdG8gYmUgc2V0CiMgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgpTZWN0aW9uICJGaWxlcyIKIyAg
ICBSZ2JQYXRoCSIvdXNyL3NoYXJlL1gxMS9yZ2IiCiAgICBGb250UGF0aCAgICIvdXNyL3No
YXJlL2ZvbnRzL21pc2MvIgojICAgIEZvbnRQYXRoICAgIi91c3Ivc2hhcmUvZm9udHMvVFRG
LyIKIyAgICBGb250UGF0aCAgICIvdXNyL3NoYXJlL2ZvbnRzL09URiIKICAgIEZvbnRQYXRo
ICAgIi91c3Ivc2hhcmUvZm9udHMvVHlwZTEvIgogICAgRm9udFBhdGggICAiL3Vzci9zaGFy
ZS9mb250cy8xMDBkcGkvIgogICAgRm9udFBhdGggICAiL3Vzci9zaGFyZS9mb250cy83NWRw
aS8iCiMgICAgRm9udFBhdGggICAiL3Vzci9saWIvWDExL2ZvbnRzL2xvY2FsLyIKIyAgICBG
b250UGF0aCAgICIvdXNyL2xpYi9YMTEvZm9udHMvbWlzYy8iCiMgICAgRm9udFBhdGggICAi
L3Vzci9saWIvWDExL2ZvbnRzLzc1ZHBpLzp1bnNjYWxlZCIKIyAgICBGb250UGF0aCAgICIv
dXNyL2xpYi9YMTEvZm9udHMvMTAwZHBpLzp1bnNjYWxlZCIKIyAgICBGb250UGF0aCAgICIv
dXNyL2xpYi9YMTEvZm9udHMvU3BlZWRvLyIKIyAgICBGb250UGF0aCAgICIvdXNyL2xpYi9Y
MTEvZm9udHMvVHlwZTEvIgojICAgIEZvbnRQYXRoICAgIi91c3IvbGliL1gxMS9mb250cy9U
cnVlVHlwZS8iCiMgICAgRm9udFBhdGggICAiL3Vzci9saWIvWDExL2ZvbnRzL2ZyZWVmb250
LyIKIyAgICBGb250UGF0aCAgICIvdXNyL2xpYi9YMTEvZm9udHMvNzVkcGkvIgojICAgIEZv
bnRQYXRoICAgIi91c3IvbGliL1gxMS9mb250cy8xMDBkcGkvIgojICAgIE1vZHVsZVBhdGgg
Ii91c3IvbGliL21vZHVsZXMiCkVuZFNlY3Rpb24KCiMgKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgojIFNl
cnZlciBmbGFncyBzZWN0aW9uLgojICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKU2VjdGlvbiAiU2VydmVy
RmxhZ3MiCgkKRW5kU2VjdGlvbgoKIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiMgSW5wdXQgZGV2aWNl
cwojICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioKIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiMgQ29yZSBrZXlib2Fy
ZCdzIElucHV0RGV2aWNlIHNlY3Rpb24KIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqClNlY3Rpb24gIklu
cHV0RGV2aWNlIgogICAgSWRlbnRpZmllcgkiS2V5Ym9hcmQxIgogICAgRHJpdmVyCSJrYmQi
CiAgICBPcHRpb24gIkF1dG9SZXBlYXQiICI1MDAgMzAiCiAgICBPcHRpb24gIlhrYlJ1bGVz
IgkieG9yZyIKICAgIE9wdGlvbiAiWGtiTW9kZWwiCSJ0aGlua3BhZDYwIgogICAgT3B0aW9u
ICJYa2JMYXlvdXQiCSJkZSIKRW5kU2VjdGlvbgoKIyAqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCiMgQ29y
ZSBQb2ludGVyJ3MgSW5wdXREZXZpY2Ugc2VjdGlvbgojICoqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKU2Vj
dGlvbiAiSW5wdXREZXZpY2UiCiAgICBJZGVudGlmaWVyCSJNb3VzZTEiCiAgICBEcml2ZXIJ
Im1vdXNlIgogICAgT3B0aW9uCSJQcm90b2NvbCIJCSJJTVBTLzIiCiAgICBPcHRpb24JIkRl
dmljZSIJCSIvZGV2L2lucHV0L21vdXNlMCIKICAgIE9wdGlvbgkiRW11bGF0ZTNCdXR0b25z
IgkidHJ1ZSIKICAgIE9wdGlvbgkiRW11bGF0ZVdoZWVsIgkJIm9uIgogICAgT3B0aW9uCSJF
bXVsYXRlV2hlZWxCdXR0b24iCSIyIgogICAgT3B0aW9uCSJFbXVsYXRlV2hlZWxUaW1lb3V0
IgkiMzAwIgogICAgT3B0aW9uCSJZQXhpc01hcHBpbmciCQkiNCA1IgogICAgT3B0aW9uCSJY
QXhpc01hcHBpbmciCQkiNiA3IgogICAgT3B0aW9uCSJaQXhpc01hcHBpbmciCQkiNCA1Igog
ICAgT3B0aW9uCSJFbXVsYXRlM0J1dHRvbnMiCkVuZFNlY3Rpb24KCiMgKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKgojIE1vbml0b3Igc2VjdGlvbgojICoqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioKCiMgKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKgojIEdyYXBoaWNzIGRldmljZSBzZWN0aW9uCiMgKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgpT
ZWN0aW9uICJEZXZpY2UiCiAgICBJZGVudGlmaWVyICAiTXkgVmlkZW8gQ2FyZCIKICAgIERy
aXZlcgkicmFkZW9uaGQiCiMgICAgRHJpdmVyCSJyYWRlb24iCiMgICAgT3B0aW9uCSJOb1Jh
bmRyIgkidHJ1ZSIKICAgIE9wdGlvbgkiQWNjZWxtZXRob2QiICAgInhhYSIKIyAgICBPcHRp
b24JIkFjY2VsbWV0aG9kIgkiZXhhIgpFbmRTZWN0aW9uCgojICoqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioK
IyBTY3JlZW4gc2VjdGlvbnMKIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqClNlY3Rpb24gIlNjcmVlbiIK
ICAgIElkZW50aWZpZXIgICJTY3JlZW4gMSIKICAgIERldmljZSAgICAgICJNeSBWaWRlbyBD
YXJkIgogICAgRGVmYXVsdERlcHRoIDI0CgogICAgU3Vic2VjdGlvbiAiRGlzcGxheSIKICAg
ICAgICBEZXB0aCAgICAgICAyNAogICAgICAgIE1vZGVzICAgICAgICIxNDAweDEwNTAiIAog
ICAgICAgIFZpZXdQb3J0ICAgIDAgMAoJVmlydHVhbCAgICAgMzAwMCAxMjAwCiAgICBFbmRT
dWJzZWN0aW9uCkVuZFNlY3Rpb24KCiMgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKgojIFNlcnZlckxheW91
dCBzZWN0aW9ucy4KIyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqClNlY3Rpb24gIlNlcnZlckxheW91dCIK
ICAgIElkZW50aWZpZXIgICJTaW1wbGUgTGF5b3V0IgogICAgU2NyZWVuICJTY3JlZW4gMSIK
ICAgIElucHV0RGV2aWNlICJNb3VzZTEiICJDb3JlUG9pbnRlciIKICAgIElucHV0RGV2aWNl
ICJLZXlib2FyZDEiICJDb3JlS2V5Ym9hcmQiCkVuZFNlY3Rpb24KClNlY3Rpb24gIkRSSSIK
ICAgIE1vZGUgMDY2NgpFbmRTZWN0aW9uCgojU2VjdGlvbiAiRXh0ZW5zaW9ucyIKIwlPcHRp
b24JIkRBTUFHRSIJInRydWUiCiMJT3B0aW9uCSJDb21wb3NpdGUiCSJ0cnVlIgojRW5kU2Vj
dGlvbgoK
--------------040009060503070004010006--