Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to use the third mouse button as a wheel [solved]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Sat Jun 12, 2004 7:44 pm    Post subject: how to use the third mouse button as a wheel [solved] Reply with quote

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
View user's profile Send private message
jinxos
n00b
n00b


Joined: 13 Jan 2004
Posts: 32
Location: Athens, Greece

PostPosted: Thu Jun 17, 2004 9:31 am    Post subject: Thinkpad wheel Reply with quote

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
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Thu Jun 17, 2004 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
jinxos
n00b
n00b


Joined: 13 Jan 2004
Posts: 32
Location: Athens, Greece

PostPosted: Fri Jun 18, 2004 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Fri Jun 18, 2004 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
jinxos
n00b
n00b


Joined: 13 Jan 2004
Posts: 32
Location: Athens, Greece

PostPosted: Fri Jun 18, 2004 9:00 am    Post subject: Reply with quote

I only use a wacom tablet sorry...
Back to top
View user's profile Send private message
BlinkEye
Veteran
Veteran


Joined: 21 Oct 2003
Posts: 1046
Location: Gentoo Forums

PostPosted: Wed Jun 23, 2004 1:53 pm    Post subject: Reply with quote

as i've gotten myself offtopic i continued my problem here: https://forums.gentoo.org/viewtopic.php?p=1271770#1271770 and marked this topic as solved
_________________
Easily backup up your system? klick
Get rid of SSH Brute Force Attempts / Script Kiddies klick
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum