[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #31 from Zamundaaa --- If libinput detects these jumps, then that's not related to Plasma, but rather your mouse (or the kernel driver) doing weird things. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added CC||[email protected] --- Comment #30 from [email protected] --- Created attachment 180379 --> https://bugs.kde.org/attachment.cgi?id=180379&action=edit clean libinput capture for mouse jumps in-game Plasma 6.3.4, KWin 6.3.4, NVIDIA 570.133.07, two monitors (5120×1440 @ DP‑4 primary). Window is 2560×1440 +1280+0, pointer locked/unlocked rapidly. libinput debug-events shows sudden ‑16 dy bursts on lock re‑engage. Attached log. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #29 from Jens Ramke --- (In reply to Jens Ramke from comment #28) > I'm still encountering this bug with kwin 6.0.3.1 in both `Mass Effect > Legendary Edition` and `Doom Eternal`, but not in `Portal RTX`. > > Operating System: Arch Linux > KDE Plasma Version: 6.0.3 > KDE Frameworks Version: 6.0.0 > Qt Version: 6.7.0 > Kernel Version: 6.7.12-zen4-xanmod1-1 (64-bit) > Graphics Platform: Wayland > Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor > Memory: 62.0 GiB of RAM > Graphics Processor: AMD Radeon Graphics (onboard, primary) > Graphics Processor: NVIDIA RTX 4090 (secondary through prime) > Manufacturer: Micro-Star International Co., Ltd. > Product Name: MS-7E12 > System Version: 1.0 It seems be be fixed with version 6.1. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Jens Ramke changed: What|Removed |Added Version|6.0.1 |6.0.3 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Jens Ramke changed: What|Removed |Added CC||[email protected] --- Comment #28 from Jens Ramke --- I'm still encountering this bug with kwin 6.0.3.1 in both `Mass Effect Legendary Edition` and `Doom Eternal`, but not in `Portal RTX`. Operating System: Arch Linux KDE Plasma Version: 6.0.3 KDE Frameworks Version: 6.0.0 Qt Version: 6.7.0 Kernel Version: 6.7.12-zen4-xanmod1-1 (64-bit) Graphics Platform: Wayland Processors: 32 × AMD Ryzen 9 7950X3D 16-Core Processor Memory: 62.0 GiB of RAM Graphics Processor: AMD Radeon Graphics (onboard, primary) Graphics Processor: NVIDIA RTX 4090 (secondary through prime) Manufacturer: Micro-Star International Co., Ltd. Product Name: MS-7E12 System Version: 1.0 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Konrad Materka changed: What|Removed |Added CC||[email protected] Resolution|WAITINGFORINFO |FIXED -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Konrad Materka changed: What|Removed |Added CC||[email protected] --- Comment #27 from Konrad Materka --- *** Bug 482632 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #26 from [email protected] --- Seems it fixed the issue for me too! 6.0.3 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Nate Graham changed: What|Removed |Added Status|CONFIRMED |RESOLVED Resolution|--- |WAITINGFORINFO Version Fixed In||6.0.3 --- Comment #25 from Nate Graham --- Great! [email protected], can you confirm that? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #24 from tee --- The issue seems to have been fixed as of at least 2024-03-31 kwin 6.0.3 I'm not able to reproduce the issue using methods above. Also, it appears this fixed the camera randomly resetting/jumping. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 ShellWen changed: What|Removed |Added CC||[email protected] -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #23 from Zamundaaa --- Git commit 0b2d8901ab086bf5119077911ba39f63b1bdecfe by Xaver Hugl. Committed on 19/03/2024 at 19:31. Pushed by zamundaaa into branch 'Plasma/6.0'. pointer input: handle warp events differently from absolute motion events As Wayland doesn't have a warp event yet, before this commit, warps were dealt with like normal absolute motion events. This trips up games though, which don't deal with actual absolute motion events well. As a solution to that, until an actual warp event is a thing, we send a motion event with a position + a relative motion event with no motion Related: bug 458233 (cherry picked from commit 630ba5fab4b02c2b496553c79d4a315da9271b53) M +1-1autotests/libinput/input_event_test.cpp M +5-1src/input.cpp M +2-1src/input_event.cpp M +7-1src/input_event.h M +18 -12 src/pointer_input.cpp M +6-1src/pointer_input.h https://invent.kde.org/plasma/kwin/-/commit/0b2d8901ab086bf5119077911ba39f63b1bdecfe -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #22 from Zamundaaa --- Git commit 630ba5fab4b02c2b496553c79d4a315da9271b53 by Xaver Hugl. Committed on 19/03/2024 at 19:13. Pushed by zamundaaa into branch 'master'. pointer input: handle warp events differently from absolute motion events As Wayland doesn't have a warp event yet, before this commit, warps were dealt with like normal absolute motion events. This trips up games though, which don't deal with actual absolute motion events well. As a solution to that, until an actual warp event is a thing, we send a motion event with a position + a relative motion event with no motion Related: bug 458233 M +1-1autotests/libinput/input_event_test.cpp M +5-1src/input.cpp M +2-1src/input_event.cpp M +7-1src/input_event.h M +18 -12 src/pointer_input.cpp M +6-1src/pointer_input.h https://invent.kde.org/plasma/kwin/-/commit/630ba5fab4b02c2b496553c79d4a315da9271b53 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #21 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5475 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 postix changed: What|Removed |Added CC||[email protected] -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #20 from Bug Janitor Service --- A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/5422 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #19 from tee --- Created attachment 166941 --> https://bugs.kde.org/attachment.cgi?id=166941&action=edit video showcasing the bug reported -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added See Also||https://bugs.kde.org/show_b ||ug.cgi?id=482632 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #18 from [email protected] --- (In reply to tee from comment #17) > Update expired link to webm hosting provider for demonstrating bug: Why not simply attach it to this bug? It's only 950 KiB. You can choose "application/octet-stream" as the MIME type or - perhaps better - write "video/mp4" or "video/webm" into the "enter manually field", depending on what it is (imgur serves it as mp4). -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 tee changed: What|Removed |Added Status|NEEDSINFO |CONFIRMED Ever confirmed|0 |1 Resolution|WAITINGFORINFO |--- --- Comment #17 from tee --- Update expired link to webm hosting provider for demonstrating bug: https://imgur.com/a/QEiIunQ -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #16 from tee --- Created attachment 166938 --> https://bugs.kde.org/attachment.cgi?id=166938&action=edit output of 'libinput debug-events | grep POINTER_MOTION' in BROKEN state -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #15 from tee --- Created attachment 166937 --> https://bugs.kde.org/attachment.cgi?id=166937&action=edit output of 'libinput debug-events | grep POINTER_MOTION' in OK state -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added CC||[email protected] --- Comment #14 from [email protected] --- Looks to me like a cursor confinement issue with Wine/XWayland (no idea why it occurs only [?] with Plasma >=6.0). I (6.0.1) often can't continue mouse look movement in some axis direction when the cursor seems to be hitting the screen borders. At least this is the cursor position when I alt + tab out of a game. Workaround is to switch tty once via ctr + alt + Fx. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #13 from tee --- (In reply to aosoba11 from comment #12) > I did NOT have this issue with previous version of KDE (5.x idk what came > before). Yes, looks like a Plasma 6 issue. Running the application in LXQT environment using Openbox but everything else untouched (drivers, wine version, game client version, mouse, etc.) works fine. No camera going crazy or (more annoyingly) random camera "reset" when rmb or lmb clicking. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #12 from [email protected] --- (In reply to tee from comment #11) > And because a video often helps for debugging, here's a screen recording > with new Spectacle :) > https://jumpshare.com/s/Q2X9gaOI1FZkxx1MYUWN Yes, this is exactly what I'm experiencing! I did NOT have this issue with previous version of KDE (5.x idk what came before). If I posted this bug under the wrong category I am sorry. Please tell me how to file it then. This is the first issue I'm posting. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #11 from tee --- And because a video often helps for debugging, here's a screen recording with new Spectacle :) https://jumpshare.com/s/Q2X9gaOI1FZkxx1MYUWN -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #10 from tee --- (In reply to Zamundaaa from comment #9) > When you slowly move the mouse to the right, it should be x/0, with x being > pretty small, like 1-5 or so. The y axis should be zero at least most of the > time. Same with up/down, just with the values flipped. > > Yeah, the debug console doesn't perform too well with high DPI mice. You can > alternatively run > > sudo libinput debug-events | grep POINTER_MOTION > in a terminal Thank you! Using the method above to reproduce the issue, both OK and NOK state of mouse events look the same to me. OK: https://privatebin.net/?b4d65ce254ec0032#6eRpMe8Ah54ZbFQ6PpQMX8cd7gKdgshtUMkFZ7J6VSfx NOK: https://privatebin.net/?0eef3595331c08c2#CsD8GzbhLBU6K73B9C27Z94wvQJWpnx3hBYwLndWGUUV Note, I excluded the part of mouse output where I moved the cursor from and to the game window. The output should roughly represent: - LMB hold - move mouse left and right - LMB release -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #9 from Zamundaaa --- (In reply to tee from comment #7) > What is the expected behaviour/values here? > I'm asking because even in unlaunched game state (just using desktop, moving > mouse), the values changes with very high frequency when moving the mouse > cursor. When you slowly move the mouse to the right, it should be x/0, with x being pretty small, like 1-5 or so. The y axis should be zero at least most of the time. Same with up/down, just with the values flipped. > It's also difficult to check for reliable output since when having `Input > Events` open, the game stutters so much, it's hard to even move the camera > around to check if the issue appears. Yeah, the debug console doesn't perform too well with high DPI mice. You can alternatively run > sudo libinput debug-events | grep POINTER_MOTION in a terminal -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #8 from tee --- After playing around, trying to reproduce the issue it looks like I can reproduce the issue of spinning camera at least on my system reliably: NOK: camera in game spins very fast 1. start an application having their own title bar/border decoration - eg. chromium (rightclick on title bar and have "Use system title bar and borders" unchecked) 2. start game 3. change window focus (alt+tab or clicking on it in eg. dual monitor layout on second screen) to above mentioned application (chromium) 4. move application (chromium) around 5. bring focus back to game Result: issue with erratic camera movement appears OK: Camera does not spin wildly Same steps as above EXCEPT right-click on border of application (chromium) and make sure "Use system title bar and borders" is CHECKED (aka force app to use KDEs title bar). Result: OK - camera in game moves fine even if external application (chromium) is being moved around -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 tee changed: What|Removed |Added CC||[email protected] --- Comment #7 from tee --- Also can confirm same behaviour as reported by OP after upgrading to Plasma 6. (In reply to Zamundaaa from comment #6) > To find out more information, open the kwin debug console on Wayland (just > search for "kwin debug console" in KRunner), and go to the "input events" > tab. When you observe the issue, does the "Delta (not accelerated)" field > look reasonable? What is the expected behaviour/values here? I'm asking because even in unlaunched game state (just using desktop, moving mouse), the values changes with very high frequency when moving the mouse cursor. It's also difficult to check for reliable output since when having `Input Events` open, the game stutters so much, it's hard to even move the camera around to check if the issue appears. Also, while having `Input Events` tab open, dragging an moving scrollbar in the output window of the debug console crashes the whole kde environment including all running applications. But I guess that's a different issue. --- On a sidenote since I'm not sure if it helps debugging: on a custom wine version `wine-wayland` ( https://github.com/varmd/wine-wayland/ ) this issue does not seem to happen at all - although that wine version opens a different can of worms which makes the game unplayable - so I cannot use the version unfortunately. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added CC||[email protected] See Also||https://bugs.kde.org/show_b ||ug.cgi?id=482629 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Zamundaaa changed: What|Removed |Added Status|REPORTED|NEEDSINFO Resolution|--- |WAITINGFORINFO --- Comment #6 from Zamundaaa --- If it happens on Xorg as well, then it can't be a KWin bug, as KWin is not involved in input handling there. The bug might be in more low level input handling in libinput or the kernel, or in some library games use. To find out more information, open the kwin debug console on Wayland (just search for "kwin debug console" in KRunner), and go to the "input events" tab. When you observe the issue, does the "Delta (not accelerated)" field look reasonable? -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added CC||[email protected] --- Comment #5 from [email protected] --- I'm getting the same bug since updating plasma to 6.0, what's weird is that restarting the game (fully closing it and launching it again, new window) doesn't fix the issue, I have to spam-click my left mouse button to un-lock it when it goes into `spinning` mode. Happens on x11 and wayland, no matter if the game is windowed or borderless. On top of that, when moving the camera it, more commonly, just `snaps` for a second pointing the camera extremely up/downwards, and rarely just `locks` into this weird spinning motion. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #4 from [email protected] --- I can confirm issue persists after update to 6.0.1 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added Version|6.0.0 |6.0.1 -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added CC||[email protected] -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Nate Graham changed: What|Removed |Added CC||[email protected], ||[email protected] -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #3 from [email protected] --- I am on wayland. Also I have a drawing tablet connected, which is my second screen. I found out other ppl have the same issue but they have no drawing tablet attached to their computer -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #2 from [email protected] --- Do you have other pointer input devices connected? Are you on wayland or X11? > it always points up and all mouse inputs make it spin very fast. I see this when I try to use my drawing tablet in absolute mode, instead of relative mode. So my hunch is that something similar might be happening here. -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 [email protected] changed: What|Removed |Added CC||[email protected] -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 --- Comment #1 from [email protected] --- Nobara community members found out, that if you open system settings app and click around in it while in game and then tabbing back in resolves the issue, until it randomly comes back again -- You are receiving this mail because: You are watching all bug changes.
[kwin] [Bug 482476] Weird mouse and cursor behavior in video games
https://bugs.kde.org/show_bug.cgi?id=482476 Bug Janitor Service changed: What|Removed |Added Keywords||qt6 -- You are receiving this mail because: You are watching all bug changes.
