Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Logitech G502 and evdev lag
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
John5788
Advocate
Advocate


Joined: 06 Apr 2004
Posts: 2140
Location: 127.0.0.1

PostPosted: Tue Sep 27, 2016 4:30 pm    Post subject: Logitech G502 and evdev lag Reply with quote

I have a Logitech G502 and through Windows and I have bound the sniper key to Scroll Lock (even tried other keys for this problem) to act as a Push To Talk button in my games. The configuration is saved to the mouse hardware and it seems to be working. But when I am playing games, I am noticing that when I hold my sniper button to talk, my games start to lag and drop frames. This is what I find in my Xorg.0.log

Code:
(EE) [mi] EQ overflowing.  Additional events will be discarded until existing events are processed.
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x589af6]
(EE) 1: /usr/bin/X (mieqEnqueue+0x24b) [0x56bb6b]
(EE) 2: /usr/bin/X (QueuePointerEvents+0x52) [0x44dd22]
(EE) 3: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f9af0795000+0x623f) [0x7f9af079b23f]
(EE) 4: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f9af0795000+0x6acd) [0x7f9af079bacd]
(EE) 5: /usr/bin/X (0x400000+0x750c8) [0x4750c8]
(EE) 6: /usr/bin/X (0x400000+0x9a056) [0x49a056]
(EE) 7: /lib64/libc.so.6 (0x7f9af6b8b000+0x33290) [0x7f9af6bbe290]
(EE) 8: /lib64/libc.so.6 (__libc_fork+0xc4) [0x7f9af6c44254]
(EE) 9: /usr/bin/X (Popen+0x90) [0x5906c0]
(EE) 10: /usr/bin/X (0x400000+0x12af5b) [0x52af5b]
(EE) 11: /usr/bin/X (XkbDDXLoadKeymapByNames+0x85) [0x52b165]
(EE) 12: /usr/bin/X (0x400000+0x135135) [0x535135]
(EE) 13: /usr/bin/X (0x400000+0x355bf) [0x4355bf]
(EE) 14: /usr/bin/X (0x400000+0x39643) [0x439643]
(EE) 15: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f9af6bab630]
(EE) 16: /usr/bin/X (_start+0x29) [0x423939]
(EE)
(EE) [mi] These backtraces from mieqEnqueue may point to a culprit higher up the stack.
(EE) [mi] mieq is *NOT* the cause.  It is a victim.
(EE) [mi] EQ overflow continuing.  100 events have been dropped.
(EE)
(EE) Backtrace:
(EE) 0: /usr/bin/X (xorg_backtrace+0x56) [0x589af6]
(EE) 1: /usr/bin/X (QueuePointerEvents+0x52) [0x44dd22]
(EE) 2: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f9af0795000+0x623f) [0x7f9af079b23f]
(EE) 3: /usr/lib64/xorg/modules/input/evdev_drv.so (0x7f9af0795000+0x6acd) [0x7f9af079bacd]
(EE) 4: /usr/bin/X (0x400000+0x750c8) [0x4750c8]
(EE) 5: /usr/bin/X (0x400000+0x9a056) [0x49a056]
(EE) 6: /lib64/libc.so.6 (0x7f9af6b8b000+0x33290) [0x7f9af6bbe290]
(EE) 7: /lib64/libc.so.6 (__libc_fork+0xc4) [0x7f9af6c44254]
(EE) 8: /usr/bin/X (Popen+0x90) [0x5906c0]
(EE) 9: /usr/bin/X (0x400000+0x12af5b) [0x52af5b]
(EE) 10: /usr/bin/X (XkbDDXLoadKeymapByNames+0x85) [0x52b165]
(EE) 11: /usr/bin/X (0x400000+0x135135) [0x535135]
(EE) 12: /usr/bin/X (0x400000+0x355bf) [0x4355bf]
(EE) 13: /usr/bin/X (0x400000+0x39643) [0x439643]
(EE) 14: /lib64/libc.so.6 (__libc_start_main+0xf0) [0x7f9af6bab630]
(EE) 15: /usr/bin/X (_start+0x29) [0x423939]
(EE)
[129177.942] [mi] Increasing EQ size to 1024 to prevent dropped events.
[129177.943] [mi] EQ processing has resumed after 119 dropped events.
[129177.943] [mi] This may be caused by a misbehaving driver monopolizing the server's resources.
[129977.123] [mi] Increasing EQ size to 2048 to prevent dropped events.


Every time my games stutter, I can check Xorg.0.log and be sure that this message is in there. The condition only triggers if I am holding the sniper button and moving my character around with the keyboard. If I only use the mouse and rotate my character around while pressing sniper button, no problems occur. This also reproduces on a standard Dell keyboard.

Googling similar problems on the Internet show bad graphics drivers, but the stacktrace looks completely different. This is showing me evdev as the culprit, but I am already running the latest Xorg-server and evdev driver:

Code:

$ emerge -pv xorg-server xf86-input-evdev

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-base/xorg-server-1.18.4:0/1.18.4::gentoo  USE="glamor kdrive suid udev xorg -dmx -doc -ipv6 (-libressl) -minimal (-selinux) -static-libs -systemd -tslib -unwind -wayland -xephyr -xnest -xvfb" 5,869 KiB
[ebuild   R    ] x11-drivers/xf86-input-evdev-2.10.3::gentoo  395 KiB


Any ideas would be great. My guess has something to do with the mouse sending a regular keyboard event which confuses evdev? If it comes down to finding no solution, I'll have to bind a regular mouse button (maybe browser forward) to my sniper button instead of scroll lock.
_________________
John5788
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