Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
howto configure a kensington expert mouse/trackball?
View unanswered posts
View posts from last 24 hours

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


Joined: 11 Mar 2004
Posts: 1170
Location: Stuttgart, Germany

PostPosted: Sat Dec 05, 2015 8:32 pm    Post subject: howto configure a kensington expert mouse/trackball? Reply with quote

The Kensington Expert Mouse (which is really a trackball) gets top marks on every review, so I figured I'd give it a shot.

Now, I want to use it left-handed. The trackball is set up as follows: there is a big ball in the middle, with a ring around it for scrolling and four buttons (call them SW, SE, NW, NE). I want to map it for left-handed use, as follows:

SE: main click
SW: alternative (normally "right") click
SW+SE: middle click
wheel: as normal
NW: "back" in the browser
NE: "forward" in the browser.

I have the following in xorg-conf.d/11inputs.conf:

Code:
Section "InputClass"
        Identifier  "Expert Mouse"
        MatchProduct "Kensington Kensington Expert Mouse"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
#       Physical button #s:     A b D - - - - B C    b = A & D simultaneously;   - = no button
#       Option "ButtonMapping" "1 8 3 4 5 6 7 2 2"
#       Option "ButtonMapping" "1 8 3 4 5 6 7 2 2"   #  For right-hand placement
        Option "ButtonMapping" "3 2 1 4 5 6 7 8 9"   #  For left-hand placement
#
#       EmulateWheel refers to emulating a mouse wheel using Marble Mouse trackball.
        Option "EmulateWheel" "false"
#       Option "EmulateWheelButton" "8"              # Factory default; use "9" for left-side placement.
#       Option "EmulateWheelButton" "8"
#       Option "ZAxisMapping" "4 5"
        Option "ZAxisMapping" "4 5"
#       Option "XAxisMapping" "6 7"                  # Disable this for vertical-only scrolling.
#       Option "XAxisMapping" "6 7"
#       Emulate3Buttons refers to the act of pressing buttons A and D
#       simultaneously to emulate a middle-click or wheel click.
        Option "Emulate3Buttons" "true"
#       Option "Emulate3Buttons" "true"              # Factory default.
EndSection

This does not seem to work. Instead, I get SW and SE working as desired, but using the two together does nothing, NW returns a middle-click, and NE returns "back" in the browser.

I've tried mucking around with the order of numbers, to no avail. Can anybody help me straighten it out?

Cheers,

EE
ADDENDUM: Here's what Xorg.log.0 says:

Code:
[   243.840] (II) config/udev: Adding input device Kensington      Kensington Expert Mouse (/dev/input/event18)
[   243.840] (**) Kensington      Kensington Expert Mouse: Applying InputClass "evdev pointer catchall"
[   243.840] (II) Using input driver 'evdev' for 'Kensington      Kensington Expert Mouse'
[   243.840] (**) Kensington      Kensington Expert Mouse: always reports core events
[   243.840] (**) evdev: Kensington      Kensington Expert Mouse: Device: "/dev/input/event18"
[   243.897] (--) evdev: Kensington      Kensington Expert Mouse: Vendor 0x47d Product 0x1020
[   243.897] (--) evdev: Kensington      Kensington Expert Mouse: Found 8 mouse buttons
[   243.897] (--) evdev: Kensington      Kensington Expert Mouse: Found scroll wheel(s)
[   243.897] (--) evdev: Kensington      Kensington Expert Mouse: Found relative axes
[   243.897] (--) evdev: Kensington      Kensington Expert Mouse: Found x and y relative axes
[   243.897] (II) evdev: Kensington      Kensington Expert Mouse: Configuring as mouse
[   243.897] (II) evdev: Kensington      Kensington Expert Mouse: Adding scrollwheel support
[   243.897] (**) evdev: Kensington      Kensington Expert Mouse: YAxisMapping: buttons 4 and 5
[   243.897] (**) evdev: Kensington      Kensington Expert Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   243.897] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:13.4/usb5/5-2/5-2:1.0/0003:047D:1020.0008/input/input21/event18"
[   243.897] (II) XINPUT: Adding extended input device "Kensington      Kensington Expert Mouse" (type: MOUSE, id 10)
[   243.897] (II) evdev: Kensington      Kensington Expert Mouse: initialized for relative axes.
[   243.898] (**) Kensington      Kensington Expert Mouse: (accel) keeping acceleration scheme 1
[   243.898] (**) Kensington      Kensington Expert Mouse: (accel) acceleration profile 0
[   243.898] (**) Kensington      Kensington Expert Mouse: (accel) acceleration factor: 2.000
[   243.898] (**) Kensington      Kensington Expert Mouse: (accel) acceleration threshold: 4
[   243.898] (II) config/udev: Adding input device Kensington      Kensington Expert Mouse (/dev/input/mouse0)
[   243.898] (II) No input driver specified, ignoring this device.
[   243.898] (II) This device may have been added with another device file.


ADDENDUM2: I've now modified the buttonmap several times with xmodmap. Here's where I am now:

Code:
$ xmodmap -pp
There are 12 pointer buttons defined.

    Physical        Button
     Button          Code
        1              3
        2              8
        3              1
        4              4
        5              5
        6              6
        7              7
        8              2
        9              9
       10             10
       11             11
       12             12


If I try to modify any of buttons 9--12 to something other than their default settings, I get this:

Code:
$ xmodmap -e "pointer = 3 2 1 4 5 6 7 8 9 2 2 2"
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  116 (X_SetPointerMapping)
  Value in failed request:  0x2
  Serial number of failed request:  9
  Current serial number in output stream:  9
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