You are not logged in.

#1 2020-02-28 21:53:20

s1n7ax
Member
Registered: 2019-05-12
Posts: 6

[Solved] Mouse thumb buttons are not working

I'm using Zowie ec2-b mouse. I wanted to bind those side buttons in CS:GO (a game on stream) but button clicks were not captured.

as xev results I got following (I'm getting LeaveNotify, EnterNotify and KeymapNotify for a single thumb button click even those I never left xev window)

xev output for forward thumb button:

LeaveNotify event, serial 33, synthetic NO, window 0x4c00001,
    root 0x1e6, subw 0x0, time 4046616, (2,420), root:(974,442),
    mode NotifyGrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 33, synthetic NO, window 0x4c00001,
    root 0x1e6, subw 0x0, time 4046777, (2,420), root:(974,442),
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 33, synthetic NO, window 0x0,
    keys:  4294967270 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

xev output for back thumb button:

LeaveNotify event, serial 33, synthetic NO, window 0x4a00001,
    root 0x1e6, subw 0x0, time 3944070, (7,455), root:(979,477),
    mode NotifyGrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

EnterNotify event, serial 33, synthetic NO, window 0x4a00001,
    root 0x1e6, subw 0x0, time 3944181, (7,455), root:(979,477),
    mode NotifyUngrab, detail NotifyAncestor, same_screen YES,
    focus YES, state 0

KeymapNotify event, serial 33, synthetic NO, window 0x0,
    keys:  4294967270 0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   
           0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0  

$ egrep "Name|Handlers" /proc/bus/input/devices | egrep -B1 'Handlers.*mouse'

N: Name="Kingsis Peripherals ZOWIE Gaming mouse"
H: Handlers=event3 mouse0
--
N: Name="E-Signal USB Gaming Keyboard Mouse"
H: Handlers=event5 mouse1

I got following in xorg.conf:

Section "InputDevice"
  Identifier      "Evdev Mouse"
  Driver          "evdev"
  Option          "Name" "Kingsis Peripherals ZOWIE Gaming 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"
  InputDevice    "Evdev Mouse" "CorePointer"
EndSection

I tried killing sxhkd
I'm using bspwm with sxhkd. According to solution in this  question, keys could be grabbed globally. only potential application would be sxhkd so I killed the process and tried thumb buttons on xev window but it gave the same results mentioned above.

I tried a different mouse
I tested xev with Gigabyte XM300 which gave me a similar output.

Does this mean thumb buttons just don't work?

Last edited by s1n7ax (2020-02-29 07:53:01)

Offline

#2 2020-02-29 07:57:12

s1n7ax
Member
Registered: 2019-05-12
Posts: 6

Re: [Solved] Mouse thumb buttons are not working

I completely forgot I'm auto starting imwheel to increase the scroll speed. Because it's being grabbed by imwheel, that will never make the window. Solution found here worked for me.

Last edited by s1n7ax (2020-02-29 08:02:11)

Offline

Board footer

Powered by FluxBB