Bug 500602 - Mouse cursor has visual noise around it
Summary: Mouse cursor has visual noise around it
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.3.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-22 23:54 UTC by francaco
Modified: 2025-03-27 03:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Picture of the cursor taken with phone (3.29 MB, image/jpeg)
2025-02-22 23:54 UTC, francaco
Details
Video of the glitch persisting (52 bytes, text/plain)
2025-02-24 17:05 UTC, francaco
Details
Image of the glitch with a zoomed in desktop (52 bytes, text/plain)
2025-02-24 21:44 UTC, francaco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description francaco 2025-02-22 23:54:30 UTC
Created attachment 178755 [details]
Picture of the cursor taken with phone

SUMMARY

Mouse cursor has visual noise in the form of some black pixels appearing around it, which makes it look like "pixelated" or low resolution. This behaviour is enhanced when using a lower or bigger scale in screen config, but it is still present less evidently when using the full 100% scale (I figured that using a 90% scale with the resolutions available for my laptop was the better fit, but it resulted in the cursor having this issue enhanced).

STEPS TO REPRODUCE
1. Use a screen scale of 100% or lower/bigger, using Breeze, Breeze light or Breeze (Plasma 5) cursor themes.

OBSERVED RESULT

In the case of 100% scale, the cursor gets pixels on the exterior lower border.
In the case of less than or greater than 100% scale, the cursor gets pixels scattered around the exterior border all around.

EXPECTED RESULT

Cursor border is slick in any screen scale and doesn't have pixels around it.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Fedora 40
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2

ADDITIONAL INFORMATION

Tested only on wayland using the mentioned cursor themes.
The pixels don't appear when taking a screenshot including the cursor.
Comment 1 Nate Graham 2025-02-24 14:32:29 UTC
Looks like a graphics glitch, and not a part of the icon itself. I certainly don't see this  on my system, when an AMD 780M iGPU.

If you add "KWIN_FORCE_SW_CURSOR=1" to the `/etc/environment` file (create it if it doesn't exist) and reboot, does that fix the issue? If so, then my suspicion that it's a graphics glitch is bolstered.
Comment 2 francaco 2025-02-24 16:45:33 UTC
Thanks for the help. I added the line you said in the "etc/environment" file and it made the pixels mostly disappear, or at least a lot less evident. Mostly, because they appear again in certain situations like moving the cursor over the panel or over the shadow of windows. This is (weirdly) in 90% scale (and in 100%), but if I change to a different scale like 85, 95 or 110%, the pixels appear again in any place the cursor is.
I will try to upload a video again with this details.
Comment 3 francaco 2025-02-24 17:05:36 UTC
Created attachment 178817 [details]
Video of the glitch persisting
Comment 4 John 2025-02-24 20:51:28 UTC
I don't see this on my laptop either, which has a Intel UHD 620 GPU.

If you hold CTRL+Super (Super being the Windows key) and then scroll up, to zoom in, do you still see the noise around the cursor?
Comment 5 francaco 2025-02-24 21:44:36 UTC
Created attachment 178841 [details]
Image of the glitch with a zoomed in desktop

Image of the glitch if zoomed in applied.

Also, zoomed to the max, here's how it looks:

https://drive.proton.me/urls/AFZE33VXVR#EnpeXclNriur
Comment 6 John 2025-02-25 12:57:10 UTC
I don't know what to say.
Probably something wrong with the drivers of your GPU.
Too bad Plasma doesn't have an easy way to to switch the rendering to CPU only for some tests.
Maybe there's some anti-aliasing applied, where pixels around are colored a bit in intermediary colors and shades to make things look less jagged (less stairy).

While I don't think Font settings should affect the cursor, can you go to System settings -> Text & Fonts -> Fonts and disable Anti-aliasing?
And change a bit the sub-pixel rendering and hinting?
IMO it's a very low chance that these affect the cursor as that it's not text, but an image (I think), still who knows.

BTW, does this happen on X11 session too?
I think you need to do a quick test there too to give the developer more informations to help them have better chances to pinpoint the problem.
These are my last ideas.
Comment 7 Bug Janitor Service 2025-03-12 03:47:22 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2025-03-27 03:46:48 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.