-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Linux] Middle-click camera grip is sometimes not released #1342
Comments
@kisak-valve OK. I created a gist and edited the above post with a link too. I'm using a custom Linux kernel. I'll test with the default kernel soon just in case. |
Just confirming: Linux-ck kernel has no effect. The issue persists on the default Linux kernel. Here's a Gist with the steam system info of that setup in case it's helpful. |
I was unable to repro this on my Linux system. We'll see if we can pin it down somehow. |
@gdrewb-valve OK. Let me know if there's anything I can do to help. |
The 2017-11-07 update to version 2,525 with patch notes that mention "Fixed a case where player input would not be registered" did not fix this issue. The update says that any further cases observed should provide matchid and time. In case it's helpful, the match in which I first noticed this was |
Alternative repro steps, perhaps closer to the source:
Expected output: Mouse down and mouse up logging corresponds with reality. Actual output: Usually as expected, but sometimes shows a sequence like I got this to happen with every combination of mouse buttons I tried. |
Missing a mouse up is presumably the cause of the problem, but it's unclear if that's an issue in Dota, SDL or Linux mouse handling itself (or even your mouse hardware). I'll pass this on to the SDL dev for now. |
Is it ease for you test another compositor or DE entirelly? I had different
behaviors when trying under xfce and gnome. Seems i3 behaves more like xfce
on this one. Just check that too
…On Nov 9, 2017 01:01, "Drew Bliss" ***@***.***> wrote:
Missing a mouse up is presumably the cause of the problem, but it's
unclear if that's an issue in Dota, SDL or Linux mouse handling itself (or
even your mouse hardware). I'll pass this on to the SDL dev for now.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1342 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIOogleYK9Cda5s1vPcl3aeXwGiJH-GVks5s0mr4gaJpZM4QU6Ti>
.
|
That made a lightbulb turn on in my head: I did a similar event-logging experiment as that one at a desktop level using Sure enough, I just tested a different mouse on the otherwise exact same setup, and everything worked. Time to throw out some hardware! Thanks for your help! |
Hello @anko, for the sake of completeness, what was the model of the mouse? |
@kisak-valve It's an ASUS ROG Gladius. (Model P501, marketing site here.)
|
I did some more digging. The issue is not actually with my mouse hardware, but with the newest release of libinput (1.9.1). I've filed this bug report with libinput, which contains all the technical details. In summary, I suspect the problem is libinput's new button debounce feature in this commit handling button releases in such a way that gaming mice (with switches that are made to be light to press: i.e. prone to contact bouncing) break in this way. For anyone else affected, downgrading to libinput 1.8.3 is a workaround. |
I've been having this issue since my latest system upgrade on Arch Linux yesterday. |
Note: I had to log out of my X session for the library to be effectively used, couldn't find a proper way to preload the older libinput.so with LD_PRELOAD but I was in a rush so I could have messed up somewhere... Thank you very much @anko and of course, thank you to the developers of libinput! ❤️ |
Ok, I got a bit over excited. The problem still occurs, Starting dota2 with these as parameters breaks font rendering in game: Guess there is no other way but to downgrade the entire libinput package then? It also breaks more than just dota2 apparently. In my i3 window manager, when switching away from dota2, I can't use my left or right click anymore after this glitch happens (except in dota2, where mouse buttons still work). Quitting dota2 fixes the issue (after clicking a few times though, which seems to be related to this debouncing new thing). Having a look at I'll downgrade back to 1.8.3 for now. Should we ask the libinput developers for a way to disable this new "debounce" feature? |
@glubsy The fix isn't in 1.9.2 yet: the diff is mostly documentation. Try Peter Hutterer's wip/button-debouncing-v3 branch if you want to test the fix, though you'll have to compile it yourself. I don't think |
@anko thanks, didn't realize that branch wasn't merged, I feel dumb. :) |
Same problem here. Im on Arch linux and zowie ec1-a, i opened my mouse to check the middle click button for no reason it seems. |
I believe this problem is now fully resolved. I have not experienced any issue and using libinput 1.9.4-1. |
Description
The game sometimes doesn't recognise middle mouse button releases. It gets stuck in the camera grip state, moving the camera as the mouse is moved. This happens constantly during gameplay, and is very frustrating.
Steps to reproduce
With the Camera Grip option set to MOUSE3 (middle mouse button), the following steps in demo mode (as any hero) cause the problem to manifest:
Result: the camera pans as though camera grip were active.
Expected result: the cursor moves; the camera doesn't.
Additional observations
The issue only happens when Camera Grip is set to a mouse button. It does not happen when set to a keyboard key.
Today is the first time I have seen this issue. This issue was definitely not present yesterday. The Settings → About page in-game shows I am using client version 2,518.
My system information from Steam's Help → System Information is in this gist.
Restarting the game does not fix the problem. The only work-around I've found is to reset the camera grip state by clicking the middle mouse button when the issue appears.
My Left-Click Activates Camera Grip option is off.
As I was trying to find steps to reproduce this, I found that the same issue can also happen when releasing the left and middle buttons simultaneously. This is rarer during gameplay, but could happen.
The text was updated successfully, but these errors were encountered: