You are not logged in.

#1 2021-06-25 09:38:14

Pillgrimm
Member
Registered: 2017-10-11
Posts: 16

[SOLVED] Configuring Mouse Buttons

I've been following the wiki on configuring mouse buttons, but I can't get it working by following the wiki, which doesn't explain the meanings of these entries in xorg.conf, and I don't know where else I can go to learn what I need to get my 10 button mouse fully working.  All the buttons but one are working fine.

If I leave my xorg.conf as written in the wiki, X will not start complaining that it can't find Monitor0 or Keyboard0.  Here is my current xorg.conf.

Section "InputDevice"
        Identifier        "Evdev Mouse"
        Driver            "evdev"
        Option            "Name" "ELECOM ELECOM TrackBall Mouse"
        Option            "evBits"  "+1-2"
        Option            "keyBits" "~272-287"
        Option            "relBits" "~0-2 ~6 ~8"
        Option            "Pass"    "3"
        Option            "CorePointer"
EndSection

Section "ServerLayout"
        Identifier    "Default Layout"
        # Screen 0      "Monitor0" 0 0
        Screen 0      "Screen0" 0 0
        # InputDevice   "Keyboard0" "CoreKeyboard"
        # Option        "Device" "usb-SINO_WEALTH_USB_KEYBOARD-if01-event-kbd"
        InputDevice   "Evdev Mouse" "CorePointer"
        Option        "Device" "/dev/input/by-id/usb-ELECOM_ELECOM_TrackBall_Mouse-event-mouse"
EndSection

Last edited by Pillgrimm (2021-06-26 06:24:31)

Offline

#2 2021-06-25 10:47:22

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: [SOLVED] Configuring Mouse Buttons

That wiki page was written years ago when evdev was the default/best choice for X input devices.

While evdev still exists, the default is now libinput [1] ,
Ignore the mouse buttons page and follow https://wiki.archlinux.org/title/Libinput instead .


[1] The 2nd box on the mouse buttons page mentions evdev is no longer the default .

In case you're not sure, run the 2 commands below and compare the output with mine.

$ cat .local/share/xorg/Xorg.0.log | grep evdev
$ cat .local/share/xorg/Xorg.0.log | grep libinput
[    76.566] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    76.566] (II) LoadModule: "libinput"
[    76.566] (II) Loading /usr/lib/xorg/modules/input/libinput_drv.so
[    76.569] (II) Module libinput: vendor="X.Org Foundation"
[    76.569] (II) Using input driver 'libinput' for 'Power Button'
[    76.576] (**) Power Button: Applying InputClass "libinput keyboard catchall"
[    76.576] (II) Using input driver 'libinput' for 'Power Button'
[    76.578] (**) Logitech USB Keyboard: Applying InputClass "libinput keyboard catchall"
[    76.578] (II) Using input driver 'libinput' for 'Logitech USB Keyboard'
[    76.581] (**) Logitech USB Keyboard Consumer Control: Applying InputClass "libinput keyboard catchall"
[    76.581] (II) Using input driver 'libinput' for 'Logitech USB Keyboard Consumer Control'
[    76.584] (**) Logitech USB Keyboard System Control: Applying InputClass "libinput keyboard catchall"
[    76.584] (II) Using input driver 'libinput' for 'Logitech USB Keyboard System Control'
[    76.589] (**) Logitech USB-PS/2 Optical Mouse: Applying InputClass "libinput pointer catchall"
[    76.589] (II) Using input driver 'libinput' for 'Logitech USB-PS/2 Optical Mouse'
$ 

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Online

#3 2021-06-26 04:46:06

Pillgrimm
Member
Registered: 2017-10-11
Posts: 16

Re: [SOLVED] Configuring Mouse Buttons

Lone_Wolf wrote:

[1] The 2nd box on the mouse buttons page mentions evdev is no longer the default .

Ah okay no, I didn't see that, but now I can see that I am using libinput, and that explains why the xorg.conf I was using wasn't working.  Now, what's strange is that `xinput get-button-map 9` shows all 10 buttons on my mouse, but `xev` doesn't recieve button 9, which would normally send XF86Forward, and if I remap button 8 to 9, then 8 will actually send XF86Forward...

This seems like it could very likely be a hardware problem.

~ » % xinput list
⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ ELECOM ELECOM TrackBall Mouse             id=9    [slave  pointer  (2)]
⎜   ↳ SINO WEALTH USB KEYBOARD Consumer Control id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Power Button                              id=7    [slave  keyboard (3)]
    ↳ HD Pro Webcam C920                        id=8    [slave  keyboard (3)]
    ↳ SINO WEALTH USB KEYBOARD                  id=10   [slave  keyboard (3)]
    ↳ SINO WEALTH USB KEYBOARD System Control   id=11   [slave  keyboard (3)]
    ↳ SINO WEALTH USB KEYBOARD Keyboard         id=13   [slave  keyboard (3)]
    ↳ Eee PC WMI hotkeys                        id=14   [slave  keyboard (3)]
    ↳ ELECOM ELECOM TrackBall Mouse             id=15   [slave  keyboard (3)]
    ↳ SINO WEALTH USB KEYBOARD Consumer Control id=16   [slave  keyboard (3)]

Offline

#4 2021-06-26 05:57:07

seth
Member
Registered: 2012-09-03
Posts: 51,306

Re: [SOLVED] Configuring Mouse Buttons

Do you read the button in "libinput debug-events"?

Online

#5 2021-06-26 06:21:32

Pillgrimm
Member
Registered: 2017-10-11
Posts: 16

Re: [SOLVED] Configuring Mouse Buttons

Confirmed: It is a hardware problem (my mouse is busted).  Thank you both for your help!

Last edited by Pillgrimm (2021-06-26 06:23:26)

Offline

Board footer

Powered by FluxBB