An update report from a brand new computer. (Some problems gone and some remain.)

I told myself that I wouldn’t post here again until I had a completely new computer, in order to exclude any possibility that my strange Plasma problems were hardware-related. I now finally have a new monster PC with a powerful Intel i9 CPU (GPU inside) and exclusively M.2 storage sticks (no more “slow” SATA cables). Debian is still at 12 (Plasma 5.x), so I can make a direct comparison and not wonder whether something has been fixed software-wise:

  1. Dolphin windows no longer take a full second to open: it’s now pretty much instant. However, I feel as if this is only because of the much faster processor and/or I/O in this new computer, rather than there being something wrong with the old one (which was only five years old). Out of curiosity, I removed all disks from the old PC (one of them was a mechanical 3.5") except the system SSD, but the same problem persisted with Dolphin taking a full second to open, so it can’t have been due to that slow disk acting as a bottleneck.

  2. As you may remember, the icons on my Plasma desktop were inexplicably extremely glitchy, “heavy” and sluggish. I finally stumbled upon the root cause when I noticed that the file ~/.config/plasma-org.kde.plasma.desktop-appletsrc was very big for being a config file. Turns out that the line screenMapping= was made up of MILLIONS UPON MILLIONS (!) of characters, totalling nearly 40 megabytes of data! As it seems to me, Plasma constantly reads from, parses and writes to that line in that file whenever you move around or drop objects on the desktop, and because of the massively inflated size, it caused those issues.

Once I figured out how to manually clear that line (text editors crashed or took forever to respond when trying to edit that file), then quickly rebooted before it could update it again, the issue was gone: the objects on the desktop now behave sanely.

But how could that line ever get that big? All the items in the list were files that were long gone, and had not even been directly placed on the desktop, but rather in a dir which in turn was placed temporarily on the desktop (a backup of an entire drive while I was juggling around backups at some point). I don’t understand why it would put objects from inside that dir into that list, nor do I understand why these would remain over countless reboots and many months without ever getting “housekept” (automatically removed). In fact, isn’t that supposed to happen as soon as the object in question is deleted or moved away from the desktop? I don’t quite understand the basic purpose of the screenMapping= line, but it seems to have to do with how objects are placed on the desktop.

The only possible “lead” I have for this is that until recently, I was using my own script to detect changes to the “tmp” dir on the desktop, which for the longest time I thought was eating up those mysterious fs.inotify.max_user_instances and fs.inotify.max_user_watches things. I have since switched to using Linux’s own inotifywait program to do the same in a supposedly much more efficient and correct manner, which was a lot of extra work but hopefully will prevent this from happening again. But I still don’t understand why simply looking through the files of a dir that’s on the desktop for any changes would cause Plasma to fill that screenMapping= line up with all the filenames it finds (and then also never remove them again).

(Since I couldn’t bear yet another “start from scratch” after so many reinstallations, I copied the ~/.config dir from the previous installation to the new, and that’s how the bloated ~/.config/plasma-org.kde.plasma.desktop-appletsrc got to the new machine.)

  1. The selection rectangle on the desktop unfortunately keeps up its frustrating “smoothly-lag-far-behind-the-cursor” behaviour. The only way to (mostly) mitigate this is to run kcmshell5 kcm_qtquicksettings and change “Rendering backend” to “software”, which is a feature I heard is removed in Plasma 6.x and which worries me about the future upgrade. Even in this mode, it’s still not perfect even on this new and powerful machine, and only in 1080p resolution – definitely not in 4k mode (more on that later).

A Plasma developer did tell me that this selection rectangle issue “has been fixed in Plasma 6.3.0”, but didn’t provide any details as to what caused it or how it could exist for some but not all users. I’ve now had that issue on two completely different computers with all three different consumer GPU brands: first NVIDIA, then AMD and now Intel, so while it’s good to hear that it’s apparently been fixed, it’s a rather “unsatisfying” resolution. Especially as Debian 13 (which may or may not even get Plasma 6.3 depending on when they decide to “freeze”) is still far from released.

  1. The issue with the wastebin icon being full when it’s not and empty-looking when it’s full has seemingly gone away entirely. But it remains a complete mystery to me.

  2. The desktop is still not updating itself in terms of thumbnails if I put an image on the desktop, edit it in a program, save it, and then look at the desktop. It keeps the same thumbnail as before. Even if I wait for many seconds. Only when I press F5 or pick “Refresh Desktop” in the context menu does it update the icon, as if it’s been instructed to not do this automatically? I couldn’t find any working terminal command to force the desktop to refresh, or I would’ve added it to my own code as a (hopefully) temporary workaround.

  3. If I put a file on the desktop called a.jpg, rename it into b.jpg, then right-click it and pick an option in that context menu, it will get sent the old filename/path rather than the new one, unless I wait for several painful seconds before right-clicking it. So apparently the file names on the desktop (which have been visually changed) get internally updated only after some kind of delay, slowly enough for me to constantly get errors such as “could not find a.jpg” unless I really think about this and actively pause before right-clicking it.

  4. Not sure to what extent this can be said to be Plasma’s fault, but I’m unable to use my new monitor’s native 4k resolution and am forced to use 1080p still, because if I switch to 4k resolution, the entire Plasma GUI is unusably laggy (even though it’s perfectly smooth in 1080p) and the “Global scale” feature does absolutely nothing, so everything is also “super small” and unpleasant to work with.

There’s sadly no “backports” of the graphics drivers, or seemingly any updated ones at all even in the non-stable Debian. Still, even with outdated drivers, I don’t see how a top-of-the-line CPU whose integrated GPU supports far higher resolution than 4k would have any issues drawing windows and selection rectangles in 4k. Both “software” and “automatic” render modes show an extremely laggy selection rectangle on the desktop in 4k mode.

I’ve tried so many things over the last many months that I’ve forgotten most of them and mentioned even fewer here. This is a heavily compressed summary of the most important and interesting “findings” according to myself. Hopefully you can provide insight into why the remaining issues persist.

Hi - are you willing to engage with bug reporting systems, for both looking into existing reports, and potentially filing new ones?

This would be primarily the Debian bug tracking system, since that’s how Debian Stable users are requested by the distribution to file bug reports, but the KDE Bugtracking System would be at least informative about things coming down the pipeline whenever Debian Stable chooses to adopt new upstream releases.

I’m asking as you had previously indicated that you didn’t take the process of bug reporting for FOSS projects as a serious suggestion, so I don’t want to end up creating frustration for anyone by guiding things toward that process.

1 Like

The ScreenMapping issue is known; see 469445 – ScreenMapping entry in config file can grow infinitely due to lack of auto-removal of stale entries, which makes plasmashell slow down and eventually crash. There was a bug that caused it to fill up with vastly more items than were intended that we fixed recently, but I don’t recall whether 5.27 has that fix or not. Plasma 6.2 certainly does.

You’ve indeed already been told that the drag-rectangle box is improved in Plasma 6.3, likely by me on Matrix; see 388808 – RubberBand has repeated large texture uploads, causing visual lag and 493376 – Selecting multiple .desktop files on the desktop causes extreme lag.

The issue with thumbnails not auto-updating when changed in an external program is working fine for me in Plasma 6.3 as well. Can’t reproduce.

The issue with renamed files briefly retaining the old path was fixed in 6.2; see 492668 – After renaming files on desktop, pressing enter another time to open it errors

The 4k resolution issue you’re seeing is unclear, but the fact that global scale “does nothing” is an X11-specific bug; you have to restart for it to take effect. If you use the Wayland session, it takes effect instantly. If you try the Wayland session, it’s possible the 4K resolution will also work better. If not, it’s very likely a graphics driver issue.


Once again, I really think your choice of Debian as the distro is hurting you here. You’re a person who’s sensitive to issues but you’re using a distro where those issues will remain un-fixed for years. A person like you, in my experience, is vastly better served by a distro with a faster release schedule.

Regarding the not-updating image thumbnails on the desktop, I made some further tests and discovered this: when using XnView, GIMP or GrafX2, the image thumbnail on the Plasma desktop does not update. However, when doing the same thing in Krita, Gwenview or KolourPaint, it does update. So it depends on the program that saves the file somehow. I vaguely recall something like this being mentioned when I said that I had used XnView to save the images in an old question, but I thought then that it was XnView-specific (some really weird bug) rather than programs having to do some sort of extra step to tell Plasma/“the desktop used” to update itself, and which some programs don’t. So even the famous GIMP program doesn’t “save correctly”?

Thanks for the link to 469445 – ScreenMapping entry in config file can grow infinitely due to lack of auto-removal of stale entries, which makes plasmashell slow down and eventually crash which was a very interesting read. I’ll likely make a script to “nuke” that line in the config file every day to avoid this from happening until I get to go on Plasma 6.x.

It’s good that stuff has been fixed/improved in later versions, but still I remain curious as to how the rectangle thing could happen at all.

I very much agree that Debian is very problematic, but believe me when I say that I’ve evaluated the alternatives. There’s also the matter that I now use Debian for my headless home server (and any other server in the future), which would make it extra problematic to use a separate distro for my “lifestation” as there’s a lot of distro-special quirks for everything.

As for filing bugs and dealing with Debian folks in general, it seems completely futile. I’m really trying to make the best of a very “sub-optimal” OS situation, with consideration to how little energy I have. Things work much better now for me than before, though, as I hope came across from the post.

I’m glad things are working better now!

Ultimately I think the major source of friction for your use case really is Debian, and I would recommend trying to switch.

You say you have little time, and I believe you, and this is exactly why it’s best to choose a project that matches your expectations and desires and works closely with KDE. When you don’t, it generates time-wasting friction and frustration on an ongoing basis.

The time investment involved in switching is something to take into account, of course, but once you’re using a distro that matches your expectations and desires, the result is a net long term reduction in time expenditure.

At this moment in early 2025, I really think you can’t go wrong with Fedora KDE. It’s super solid; it has internal QA; it updates quickly but not so quickly that there’s packaging-related breakage; its developers have a great relationship with KDE; many KDE developers use it as well, deepening social ties and technical coordination.

Yes, the installer is horrid. And after installation, you’ll need to manually activate the RPMFusion repo and do some terminal jiggling to get media codecs working. You may also want to remove some pre-installed apps you don’t use, as it ships with a lot of stuff. These are one-time annoyances, and then you get a smooth and stable system.

I actually put Fedora (with KDE) on the old computer (which is now packed down and used only for emergencies due to lack of physical space), so it’s very likely that I’d go for that distro if I ever can muster up the energy to go through the nightmare of switching to another “thing” (OS/distro) again. I can’t remember exactly what I found bad about it now, but even a perfect distro would require numerous changes of all kinds. There’s so much “custom madness” for every distro, and finally getting to a point where the PC is usable with Linux (Debian) has really taken its toll.

In theory, I actually appreciate Debian’s “slowness”, because constantly changing (and breaking) stuff was one of the many “paint points” of Windows, but in reality, it seems to mean that I get stuck forever with annoying bugs which to me seem like they should never have existed in any kind of stable release to begin with. But I also know very well that I frequently encounter broken things in my own code and wonder how anything was able to run at all for such a long time without it getting “triggered”, so I’m not blaming you for this too much. Still, I must say that the bug with the config file which never deletes entries once put in that line, and recursively fetches every file in any dir put on the desktop, seems like an extreme case which really makes me scratch my head over how nobody encountered that during testing.

I don’t think that some programs “tell” the desktop to update but they might handle the saving differently.

Essentially there are two options for a program to save to an existing file:

  1. open the existing file and write new content into it
  2. writing to a new file and then “renaming” this to the old name

It could be that whatever mechanism is used to monitor the directory is more likely to pick up one of the two types than the other.

Most developers don’t seem to use desktop icons; preferring a “clean desktop.” I’m one of the weirdos who does use the feature, but I don’t tend to put everything there.

Both of my parents do this; they have a “My Files” folder on their desktop with like ten million files in it. This exact situation triggered a bug that caused folders’ contents to be recursively added to the ScreenMapping entry in the config file. That could end up enormous, obviously! And that’s what seems to have happened to you.

It went unnoticed for years because no developers had personal use cases that triggered this bug, and no users were able to report the issue in enough detail to make it understood. Eventually those converged and the bug got fixed.

Today, the ScreenMapping key only includes items actually on the desktop, not their contents. And items get cleaned up automatically, as long as they were removed by a piece of KDE software (i.e. not while plasmashell was not running, or via a terminal window). As a result it grows without cleanup only in very limited use cases, so slowly that in practice there should never be a performance problem stemming from it. However it is still theoretically possible for it to grow, and for that reason, a bug report tracking this is still open: 469445 – ScreenMapping entry in config file can grow infinitely due to lack of auto-removal of stale entries, which makes plasmashell slow down and eventually crash