You are not logged in.

#1 2019-03-23 21:32:20

ucrynet
Member
Registered: 2019-03-23
Posts: 5

Аrch does not see the side mouse keys

Mouse: Logitech M560

I install xbindkeys, xvkbd, xev and copied config to home folder, but the side buttons didn't work. My side mouse buttons perform the function "back" and "forward" in programs, but not in Arch. Although the same configs in other distributions work!

.xbindkeysrc:

"/usr/bin/xvkbd -text "\[Alt]\[Right]""
  m:0x0 + b:10
"/usr/bin/xvkbd -text "\[Alt]\[Left]""
  m:0x0 + b:11

сat /proc/bus/input/devices:

I: Bus=0003 Vendor=046d Product=402d Version=0111
N: Name="Logitech Wireless Mouse M560"
P: Phys=usb-0000:00:14.0-4:1
S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.2/0003:046D:C52B.0013/0003:046D:402D.0014/input/input27
U: Uniq=402d-c5-65-5d-3c
H: Handlers=event18 mouse1 
B: PROP=0
B: EV=7
B: KEY=670000 0 0 0 0
B: REL=143

dmesg:

[   11.105643] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.107414] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.215475] logitech-hidpp-device 0003:046D:402D.0004: HID++ 2.0 device connected.
[   11.277285] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.399665] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.415628] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.431292] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.447249] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.461307] logitech-hidpp-device 0003:046D:402D.0004: error in parameter
[   11.485520] input: Logitech Wireless Mouse M560 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.2/0003:046D:C52B.0003/0003:046D:402D.0004/input/input24

xev log first button:

LeaveNotify event, serial 45, synthetic NO, window 0x200001,
    root 0x167, subw 0x200002, time 1020676, (48,43), root:(48,72),
    mode NotifyGrab, detail NotifyVirtual, same_screen YES,
    focus NO, state 0

EnterNotify event, serial 45, synthetic NO, window 0x200001,
    root 0x167, subw 0x200002, time 1020892, (48,43), root:(48,72),
    mode NotifyUngrab, detail NotifyVirtual, same_screen YES,
    focus NO, state 0

KeymapNotify event, serial 45, synthetic NO, window 0x0,
    keys:  103 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 log second button:

MotionNotify event, serial 47, synthetic NO, window 0x200001,
    root 0x167, subw 0x200002, time 1057712, (56,34), root:(56,63),
    state 0x0, is_hint 0, same_screen YES

EnterNotify event, serial 47, synthetic NO, window 0x200001,
    root 0x167, subw 0x0, time 1057720, (71,42), root:(71,71),
    mode NotifyNormal, detail NotifyInferior, same_screen YES,
    focus NO, state 0

KeymapNotify event, serial 47, synthetic NO, window 0x0,
    keys:  103 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  

How to fix?

Last edited by ucrynet (2019-03-23 23:06:39)

Offline

#2 2019-03-23 22:08:18

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

Re: Аrch does not see the side mouse keys

Welcome to the forum. Please read the stickies in the newbie corner, especially those which tell you to post complete logs and configs and that "does not work" is no usable problem description.

Especially if "xev side buttons see" is supposed to say that xev  responds to those buttons, you'll have to elaborate on "didn't work"…

Offline

#3 2019-03-23 23:08:55

ucrynet
Member
Registered: 2019-03-23
Posts: 5

Re: Аrch does not see the side mouse keys

seth wrote:

Welcome to the forum...

Done! smile

Offline

#4 2019-03-23 23:41:13

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

Re: Аrch does not see the side mouse keys

xev inidcates a passive grab (xbinkeys)
Did you try whether calling xvkbd directly works as expected?
In case it does, a pitfall could be the grab window (the leave/enter wiggle) - try to briefly "sleep 0.2" before xvkbd.

Offline

#5 2019-03-24 11:18:07

ucrynet
Member
Registered: 2019-03-23
Posts: 5

Re: Аrch does not see the side mouse keys

seth wrote:

xev inidcates a passive grab (xbinkeys)
Did you try whether calling xvkbd directly works as expected?
In case it does, a pitfall could be the grab window (the leave/enter wiggle) - try to briefly "sleep 0.2" before xvkbd.

I was advised in another forum to replace the .xbindkeysrc config with:

# Back
"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L'"
   b:11

# Forward
"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L'"
   b:10

And it worked! But the error in dmesg remained. I do not even know whether to continue to solve the problem...

Last edited by ucrynet (2019-03-24 11:19:07)

Offline

#6 2019-03-24 11:26:15

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

Re: Аrch does not see the side mouse keys

So the issue seems to have been xvkbd.
There'd also be xdotool (in case xte later on acts up as well ;-)

The dmesg error is from the kernel module and a general sanity check related to raw event handling - possibly the mouse generates events not supported by the kernel module.
You can ignore it or try passing "hid-logitech-hidpp.disable_raw_mode=true" to the kernel, but I've no idea about the impact of that.
https://wiki.archlinux.org/index.php/Ke … mmand_line

Offline

#7 2019-03-24 12:18:09

ucrynet
Member
Registered: 2019-03-23
Posts: 5

Re: Аrch does not see the side mouse keys

seth wrote:

So the issue seems to have been xvkbd.
There'd also be xdotool (in case xte later on acts up as well ;-)

OK. Thank

Offline

#8 2019-03-24 20:06:02

ucrynet
Member
Registered: 2019-03-23
Posts: 5

Re: Аrch does not see the side mouse keys

seth wrote:

So the issue seems to have been xvkbd.
There'd also be xdotool (in case xte later on acts up as well ;-)

The dmesg error is from the kernel module and a general sanity check related to raw event handling - possibly the mouse generates events not supported by the kernel module.
You can ignore it or try passing "hid-logitech-hidpp.disable_raw_mode=true" to the kernel, but I've no idea about the impact of that.
https://wiki.archlinux.org/index.php/Ke … mmand_line

By the way! If you set hid-logitech-hidpp.disable_raw_mode = true in GRUB_CMDLINE_LINUX_DEFAULT = " ", then the side keys do not work.

Offline

Board footer

Powered by FluxBB