pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.47k stars 87 forks source link

Input from Logitech G600 mouse causes in-game screen to freeze #821

Open antgalabov opened 4 years ago

antgalabov commented 4 years ago

Distribution NAME="Pop!_OS" VERSION="19.10" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Pop!_OS 19.10" VERSION_ID="19.10" HOME_URL="https://system76.com/pop" SUPPORT_URL="http://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=eoan UBUNTU_CODENAME=eoan LOGO=distributor-logo-pop-os

Related Applications Steam Day of Defeat: Source Team Fortress 2

Issue On a fresh install, installed Steam and Day of Defeat, Team Fortress 2 (I imagine it's an issue for other games as well). After running the game, any mouse button on my Logitech G600 except right, left, or middle causes the screen to freeze momentarily. The game isn't frozen since i can hear the sound updating, only the screen freezes for a couple seconds. This wasn't a problem in the previous versions of Pop (pre-19.XX), so I am very unsure of the cause.

Steps to reproduce Run a game and use input from a Logitech G600 mouse.

Notes This issue is not present when using any desktop, menus, and file or internet browsers. Seems to be games only

agathezol commented 4 years ago

I have this same issue. To be more specific, the left/right click buttons don't seem to cause an issue for me. The 12 buttons on the side of the mouse do. Using xev I was able to verify that x11 sees them as being a normal keyboard inputting proper keycodes (here is me pressing '4'):

KeyPress event, serial 50, synthetic NO, window 0x7000001,
    root 0x295, subw 0x0, time 9623315, (66,-6), root:(2522,555),
    state 0x10, keycode 13 (keysym 0x34, 4), same_screen YES,
    XLookupString gives 1 bytes: (34) "4"
    XmbLookupString gives 1 bytes: (34) "4"
    XFilterEvent returns: False

KeyRelease event, serial 51, synthetic NO, window 0x7000001,
    root 0x295, subw 0x0, time 9623387, (66,-6), root:(2522,555),
    state 0x10, keycode 13 (keysym 0x34, 4), same_screen YES,
    XLookupString gives 1 bytes: (34) "4"
    XFilterEvent returns: False

In my case I'm not running under steam but under crossover 19.0.1. Tested play by not using the keys on the left side of the mouse and instead using the numrow on the keyboard and there are no issues. A single keypress from the mouse keypad causes the issue to present.

I also tested using a Roccat Nyth mouse and it has the same issue. Mouse works fine, if I press the mouse's numberpad the game stutters and freezes.

I also tested in Minecraft (so not through wine/crossover/proton) and the issue is present there as well.

BLovegrove commented 2 years ago

Would Just like to bump this - on Pop v21.04 and a vanilla install using mouses onboard profile with a polling rate of 1000Hz (though changing that has no effect) and a Logitech G600 mouse I get the same issue specifically in Minecraft. Whenever a side button (bound to numbers 1-0 and +/-) is pressed after a few seconds of inactivity the whole screen freezes up for a second or two. Interestingly enough, if I spam the buttons after that it has no lag effect - its only on the first press.