View previous topic :: View next topic |
Author |
Message |
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Sat Jun 12, 2004 7:44 pm Post subject: how to use the third mouse button as a wheel [solved] |
|
|
i've found many topics about how to use your wheel or how to use your additional buttons of an external mouse - but i haven't found any help about how to use the third button of your laptop mouse (IBM Thinkpad X40) not as the middlemouse button like the one of a external mouse but as a wheel.
xev gives me the following:
Code: | ButtonPress event, serial 30, synthetic NO, window 0x4400001,
root 0x3b, subw 0x4400002, time 2715210, (24,50), root:(28,74),
state 0x0, button 2, same_screen YES |
so the middle mouse button releases the copy/fill in action. but how to use this button with the mouse stick as a wheel?
i'm using x11-base/xorg-x11-6.7.0, but it isn't only a matter of X applications as the behaviour remains the same within (pure) console - although i'll not using the scroll feature outside of X of course.
any help appreciated _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Last edited by BlinkEye on Wed Jun 23, 2004 1:54 pm; edited 1 time in total |
|
Back to top |
|
|
jinxos n00b
Joined: 13 Jan 2004 Posts: 32 Location: Athens, Greece
|
Posted: Thu Jun 17, 2004 9:31 am Post subject: Thinkpad wheel |
|
|
I own a ThinkPad R40 and it works like a charm
...oh yes, here's how:
Code: |
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/mouse"
#Option "Emulate3Buttons" "on"
#Option "Emulate3Timeout" "50"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
EndSection
|
I've become sooo addicted to scrolling with the UltraNav that when i'm at work i find myself always looking for the red spot on my other keyboards
Anyway... the traditional "Middle button" effect (for pasting X buffers) is achieved by pushing both buttons (Left and Right)
It takes a bit of getting used to but once you get it right you wont have it any other way again! |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Thu Jun 17, 2004 7:35 pm Post subject: |
|
|
many thanks to your answer. i'm really glad i got it working now because i myself am a fan of a Trackpoint - as fast as a regular mouse.
just for the notes, to achieve to use your built in mouse AND an external usb mouse add an entry similar to the following (becomes handy particularly with a suspend option with a 2.6. kernel as you may have to restart hotplug or for >= 2.6.7-rc3-mm2 you simply have to unplug and plug in the external mouse - but that doensn't work for a built in mouse, does it?) to your xfree86.conf or xorg.conf:
Code: | ...
Section "InputDevice"
Identifier "TrackPoint"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "SendCoreEvents"
EndSection
Section "InputDevice"
Identifier "USBMouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5"
EndSection
...
InputDevice "TrackPoint" "CorePointer"
InputDevice "USBouse" "SendCoreEvents"
...
|
[EDIT]it doesn't work. as soon as
InputDevice "USBouse" "SendCoreEvents"
is added i lose the ability to scroll with my built in third mouse button again [/EDIT] _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
jinxos n00b
Joined: 13 Jan 2004 Posts: 32 Location: Athens, Greece
|
Posted: Fri Jun 18, 2004 7:11 am Post subject: |
|
|
I think you lose it again because:
1) You assign the two devices the same protocol (not that it makes much diff but try to use PS/2 instead for the TrackPoint
2) Since SendCoreEvents is enabled you should use /dev/input/mouseX for the USB external rodent. /dev/input/mice is a virtual device used by X to aggregate the input events from all devices! Therefore it would seem that you assign the ZAxisMapping option to all your mice... not what you want is it?
For more info on mice input X handling you can have a look at the Wacom HOWTO page... it's very easy to understand...
I use a 2.6.6-rc1-mm kernel and occasionally use a Wacom Volito tablet and had no problems whatsoever with my config (no pressure info from the tablet though, but thats because I don't use the wacom driver but the built in X one)
hope this helps... |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
Posted: Fri Jun 18, 2004 8:45 am Post subject: |
|
|
thanks, i think i'm directed into the right direction.
current state
Code: | Section "InputDevice"
Identifier "TrackPoint"
Driver "mouse"
Option "Protocol" "PS/2"
Option "Device" "/dev/psaux"
Option "EmulateWheel" "on"
Option "EmulateWheelButton" "2"
Option "YAxisMapping" "4 5"
Option "CorePointer"
EndSection
Section "InputDevice"
Identifier "USBMouse"
Driver "mouse"
Option "Protocol" "IMPS/2"
Option "Device" " /dev/input/mouse1"
Option "ZAxisMapping" "4 5"
Option "SendCoreEvents" "true"
EndSection
InputDevice "TrackPoint"
InputDevice "USBMouse"
|
still no go. now the trackpoint keeps working but the usb mouse wheel doesn't work (except if the wheel is pressed - so, the external mouse uses the same option as the trackpoint). do you ever use an external mouse? if so could you post your settings? _________________ Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick |
|
Back to top |
|
|
jinxos n00b
Joined: 13 Jan 2004 Posts: 32 Location: Athens, Greece
|
Posted: Fri Jun 18, 2004 9:00 am Post subject: |
|
|
I only use a wacom tablet sorry... |
|
Back to top |
|
|
BlinkEye Veteran
Joined: 21 Oct 2003 Posts: 1046 Location: Gentoo Forums
|
|
Back to top |
|
|
|