You are not logged in.
Hi everyone,
I tried searching for this on the forum but couldn't find a definitive answer.
The mouse cursor is acting weird, it's a bit hard to explain but the position of the point of the cursor does not match where the cursor is actually clicking on screen.
Also when the cursor changes to, say the loading hourglass cursor or the arrows to expand a window, it sorta "jerks" around the place, it doesn't simply change the icon, the icons kinda moves some pixels down.
I am currently running KDE Plasma 5.25.5 (Wayland), Kernel 5.19.
All that I could figure out is that it's something related specifically to Wayland, because when I login using KDE X11, the issue goes away.
It's also not related to the mouse, because i swapped out my wireless mouse with a wired one, completely different brand, and the issue persists.
Is there any way to pinpoint what the source issue is?
I know it sounds kinda obvious, but is it really something related to Wayland (kwin on this case)?
Thanks in advance for the help!
Offline
Do you have multiple monitors? There's a bug in Qt leading to similar behaviour, if you do not align all monitors to the top in kscreen. And or any scaling/QT environment envs exported?
printenv | grep QT
?
Last edited by V1del (2022-10-12 03:46:54)
Offline
Do you have multiple monitors? There's a bug in Qt leading to similar behaviour, if you do not align all monitors to the top in kscreen. And or any scaling/QT environment envs exported?
printenv | grep QT
?
No, single 1440p monitor.
This is the output for the printenv
PLASMA_USE_QT_SCALING=1
QT_WAYLAND_FORCE_DPI=96
QT_AUTO_SCREEN_SCALE_FACTOR=0
Offline
the position of the point of the cursor does not match where the cursor is actually clicking on screen … when the cursor changes … the icons kinda moves some pixels down
Is the click position offset static and does it somewhat match the disposition of the hourglass icon?
What cursor theme do you use?
(The cursor defines a hotspot and that might simply not align w/ the visual representation or kwin_wayland hardcodes the hotspot to 0,0 and ignores the cursor specified hotspot)
Offline
In kde plasma session, only in wayland, the cursor is constantly twitching, when entering an activated object (like a button or a text field). Cursor does not always return the state, freeze loading icon or text field.
The problem appeared in version 5.25, there are no changes on 5.26. I tried to completely delete .cache and .config, it also didn't help.
Offline
Hi, I' ve exactly the same problem on OpenSUSE Tumbleweed since yesterday I think, it has must be caused by some recent updates. I use the default Breeze cursor theme, but event when I try to change it, it has no impact, it is glitching anyway.
Last edited by kubapet (2022-10-12 08:07:55)
Offline
Even more interestingly,
I wanted to capture the screen via OBS studio (using pipewire on wayland) and "sees" the cursor correctly changing to the type/edit cursor and the position remains correct.
So it only renders incorrectly to the screen. So I had to capture it with my phone
https://streamable.com/37cx34
Last edited by kubapet (2022-10-12 08:18:20)
Offline
Can't repro, which graphics hardware?
Last edited by V1del (2022-10-12 08:18:24)
Offline
```2c:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M] (rev c5) (prog-if 00 [VGA controller])
Subsystem: Sapphire Technology Limited Device e445
Flags: bus master, fast devsel, latency 0, IRQ 87
Memory at c0000000 (64-bit, prefetchable) [size=256M]
Memory at d0000000 (64-bit, prefetchable) [size=2M]
I/O ports at f000 [size=256]
Memory at f6e00000 (32-bit, non-prefetchable) [size=1M]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: amdgpu
Kernel modules: amdgpu
```
Using latest amdgpu driver, latest Mesa stack, wayland, kernel 6.0.0-1-default
Offline
"latest mesa stack" how late? 22.2.0 from testing? I can't repro on stable 22.1.7
Edit: Whoop sorry that merge didn't really go as planned sorry for the confusing context shifts
Last edited by V1del (2022-10-12 08:23:44)
Offline
localhost:/home/kubapet # zypper info mesa
Načítání dat repozitáře...
Načítají se nainstalované balíčky...
Informace pro balíček Mesa:
---------------------------
Úložiště : radv
Název : Mesa
Verze : 22.3.0~git20221009+091b5b08-88.1
Architektura : x86_64
Poskytovatel : obs://build.opensuse.org/home:BehzadA
Instalovaná velikost : 56,4 KiB
Nainstalováno : Ano
Stav : aktuální
Zdrojový balíček : Mesa-22.3.0~git20221009+091b5b08-88.1.src
Upstreamová URL adresa : https://www.mesa3d.org
Shrnutí : System for rendering 3-D graphics
Popis :
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
syntax or state machine, it is being used with authorization from
Silicon Graphics, Inc.(SGI). However, the author does not possess an
OpenGL license from SGI, and makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with SGI. Those who
want a licensed implementation of OpenGL should contact a licensed
vendor.
Please do not refer to the library as MesaGL (for legal reasons). It's
just Mesa or The Mesa 3-D graphics library.
* OpenGL is a trademark of Silicon Graphics Incorporated.
But I've to mention, it was working fine up until a day ago, I m not sure what has changed, but I don't think it was Mesa packages.
I was fiddling a bit around with some kernel parameters like resume=... because the hibernation is not working on my machine, but that is probably some amdgpu bug.. and I don't think it should be related, but I rebuilt the initrd via dracut, so it might have changed something.. I m not really sure
Last edited by kubapet (2022-10-12 08:26:30)
Offline
pacman -Qi mesa
Name : mesa-tkg-git
Version : 22.3.0_devel.160979.d91c3bde8c8-1
Description : an open-source implementation of the OpenGL specification, git version
Architecture : x86_64
URL : https://www.mesa3d.org
Licenses : custom
Groups : None
Provides : mesa=22.3.0_devel.160979.d91c3bde8c8-1
vulkan-intel=22.3.0_devel.160979.d91c3bde8c8-1
vulkan-radeon=22.3.0_devel.160979.d91c3bde8c8-1
vulkan-mesa-layer=22.3.0_devel.160979.d91c3bde8c8-1
mesa-vulkan-layer=22.3.0_devel.160979.d91c3bde8c8-1
libva-mesa-driver=22.3.0_devel.160979.d91c3bde8c8-1
mesa-vdpau=22.3.0_devel.160979.d91c3bde8c8-1 vulkan-driver
opencl-mesa=22.3.0_devel.160979.d91c3bde8c8-1 opengl-driver opencl-driver ati-dri
intel-dri nouveau-dri svga-dri mesa-dri mesa-libgl
Depends On : libdrm wayland libxxf86vm libxdamage libxshmfence libelf libomxil-bellagio
libunwind lm_sensors libglvnd expat libclc libx11 llvm-libs>=8.0.0
Optional Deps : opengl-man-pages: for the OpenGL API man pages
Required By : gst-plugins-base-libs gtk3 lib32-mesa-tkg-git lib32-opencl-mesa libglvnd
minecraft-launcher qemu-ui-opengl qemu-vhost-user-gpu qt5-base qt6-base steam
steam-native-runtime virglrenderer wlroots zoom
Optional For : libva obs-studio ocl-icd tigervnc vulkan-icd-loader
Conflicts With : mesa opencl-mesa vulkan-intel vulkan-radeon vulkan-mesa-layer mesa-vulkan-layer
libva-mesa-driver mesa-vdpau
Replaces : None
Installed Size : 177.81 MiB
Packager : Nico Jensch <dr460nf1r3@chaotic.cx>
Build Date : Tue 11 Oct 2022 03:28:20 PM MSK
Install Date : Wed 12 Oct 2022 12:31:30 PM MSK
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
mine
Offline
mhmmhm, can others affected on Arch confirm which mesa they are using, does this only happen on git prereleases/22.2.0 and can you test on stable releases?
Offline
pacman -Qi mesa
Name : mesa
Version : 22.2.0-2
Description : An open-source implementation of the OpenGL specification
Architecture : x86_64
URL : https://www.mesa3d.org/
Licenses : custom
Groups : None
Provides : mesa-libgl opengl-driver
Depends On : libdrm wayland libxxf86vm libxdamage libxshmfence
libelf libomxil-bellagio libunwind llvm-libs
lm_sensors libglvnd zstd vulkan-icd-loader
libsensors.so=5-64 libexpat.so=1-64 libvulkan.so
Optional Deps : opengl-man-pages: for the OpenGL API man pages
mesa-vdpau: for accelerated video playback [installed]
libva-mesa-driver: for accelerated video playback
[installed]
Required By : gst-plugins-base-libs gtk3 lib32-mesa libglvnd
minecraft-launcher qemu-ui-opengl qemu-vhost-user-gpu
qt5-base qt6-base virglrenderer wlroots
xf86-video-amdgpu zoom
Optional For : tigervnc
Conflicts With : mesa-libgl
Replaces : mesa-libgl
Installed Size : 72.63 MiB
Packager : Andreas Radke <andyrtr@archlinux.org>
Build Date : Wed 28 Sep 2022 06:06:54 PM MSK
Install Date : Wed 12 Oct 2022 11:32:53 AM MSK
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
It looks like it's working properly now. Thanks.
Offline
localhost:/home/kubapet # zypper info Mesa
Načítání dat repozitáře...
Načítají se nainstalované balíčky...
Informace pro balíček Mesa:
---------------------------
Úložiště : Packman
Název : Mesa
Verze : 22.2.0-326.1
Architektura : x86_64
Poskytovatel : http://packman.links2linux.de
Instalovaná velikost : 56,0 KiB
Nainstalováno : Ano
Stav : aktuální
Zdrojový balíček : Mesa-22.2.0-326.1.src
Upstreamová URL adresa : https://www.mesa3d.org
Shrnutí : System for rendering 3-D graphics
Popis :
Mesa is a 3-D graphics library with an API which is very similar to
that of OpenGL.* To the extent that Mesa utilizes the OpenGL command
syntax or state machine, it is being used with authorization from
Silicon Graphics, Inc.(SGI). However, the author does not possess an
OpenGL license from SGI, and makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with SGI. Those who
want a licensed implementation of OpenGL should contact a licensed
vendor.
Please do not refer to the library as MesaGL (for legal reasons). It's
just Mesa or The Mesa 3-D graphics library.
* OpenGL is a trademark of Silicon Graphics Incorporated.
Worked for me as well
Thanks
Last edited by kubapet (2022-10-12 08:41:24)
Offline
https://gitlab.freedesktop.org/mesa/mesa/-/issues/7351 https://gitlab.freedesktop.org/mesa/mes … te_1580955
Try blacklisting glthread for kwin_wayland
Offending commit for ref: https://gitlab.freedesktop.org/mesa/mes … 3371e36c01
Last edited by V1del (2022-10-12 08:53:01)
Offline
https://gitlab.freedesktop.org/mesa/mesa/-/issues/7351 https://gitlab.freedesktop.org/mesa/mes … te_1580955
Try blacklisting glthread for kwin_wayland
Offending commit for ref: https://gitlab.freedesktop.org/mesa/mes … 3371e36c01
I placed
<device driver="radeonsi">
<application name="plasma" executable="plasmashell">
<option name="mesa_glthread" value="false" />
</application>
<application name="kwin_wayland" executable="kwin_wayland">
<option name="mesa_glthread" value="false" />
</application>
</device>
to ~/.drirc and reverted to the latest git Mesa and it worked
Offline
plasmashell shouldn't be necessary, kwin_wayland is responsible for rendering the cursor.
Offline
Alright, I've removed plasma.. I just copy-pasted it from the thread that you linked and didn't read carefuly through all the posts.
Btw. just to my understanding, so now we have to wait for plasma devs to catch-up with the latest Mesa changes and then we can remove this WKA again?
Offline
From what I'm seeing mesa needs to add an exception to/for all Wayland compositors so glthread is disabled for them. It doesn't seem to make much sense to me to try have a threaded GL context in the compositor. But depends, with this now becoming a global default and potentially more reports coming in this might also be something for the compositors to reinvestigate.
Offline
mhmmhm, can others affected on Arch confirm which mesa they are using, does this only happen on git prereleases/22.2.0 and can you test on stable releases?
Hmm... i am also running the latest mesa-git (22.3)...
I didn't use my main arch distro these past few days, but I believe the issue started when i updated it from mesa stable to mesa-git.
Will try to use the workaround the others have mentioned or this thread, or revert back to mesa stable to see if it works.
Offline
V1del wrote:https://gitlab.freedesktop.org/mesa/mesa/-/issues/7351 https://gitlab.freedesktop.org/mesa/mes … te_1580955
Try blacklisting glthread for kwin_wayland
Offending commit for ref: https://gitlab.freedesktop.org/mesa/mes … 3371e36c01
I placed
<device driver="radeonsi"> <application name="plasma" executable="plasmashell"> <option name="mesa_glthread" value="false" /> </application> <application name="kwin_wayland" executable="kwin_wayland"> <option name="mesa_glthread" value="false" /> </application> </device>
to ~/.drirc and reverted to the latest git Mesa and it worked
Yep... Just to confirm, the workaround works (that's on the latest mesa-git 22.3.0_devel.160795.3246889fb04.d41d8cd98f00b204e9800998ecf8427e-1)
Thanks for all the help @V1del.
Last edited by dantekb43 (2022-10-13 02:45:18)
Offline