Desktop icon position reset (since KDE 6.2.4), when the screen is turned off

With the new KDE 6.2.4 update. I’m experience a Desktop icon position reset, after i power off/on my Monitor with the power button, that happens under X11 + Nvidia.

I hoped that i could maybe evade this bug with a possible work around, in powermanagement to turn the screen after certain time. But this result to the same behavior (Desktop Icon Positions reset).

I’m experience no problems on my AMD Laptop with Wayland (which also has the same kernel and Desktop version).

I also saw that this user reported this problem 2 month ago in Testing:

My PC Config:

$ inxi --admin --verbosity=5 --filter --no-host --width
System:
  Kernel: 6.6.63-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/vmlinuz-6.6-x86_64
    root=UUID=eb235aa7-d461-413d-800e-ea57385703fb rw sysrq_always_enabled=1
    nvidia_drm.modeset=1 retbleed=off
    resume=UUID=717b267e-7322-4bf9-a840-f1210d422d1a udev.log_priority=3
  Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A info: frameworks v: 6.8.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: Z170X-UD3 v: N/A
    serial: <superuser required>
  Mobo: Gigabyte model: Z170X-UD3-CF v: x.x serial: <superuser required>
    uuid: <superuser required> UEFI-[Legacy]: American Megatrends v: F23d
    date: 12/01/2017
Memory:
  System RAM: total: 16 GiB available: 15.58 GiB used: 3.23 GiB (20.7%)
  Message: For most reliable report, use superuser + dmidecode.
  Array-1: capacity: 64 GiB slots: 4 modules: 2 EC: None
    max-module-size: 16 GiB note: est.
  Device-1: ChannelA-DIMM0 type: no module installed
  Device-2: ChannelA-DIMM1 type: DDR4 detail: synchronous size: 8 GiB
    speed: 2800 MT/s volts: note: check curr: 1 min: 1 max: 1 width (bits):
    data: 64 total: 64 manufacturer: G.Skill part-no: F4-2800C16-8GRR
    serial: N/A
  Device-3: ChannelB-DIMM0 type: no module installed
  Device-4: ChannelB-DIMM1 type: DDR4 detail: synchronous size: 8 GiB
    speed: 2800 MT/s volts: note: check curr: 1 min: 1 max: 1 width (bits):
    data: 64 total: 64 manufacturer: G.Skill part-no: F4-2800C16-8GRR
    serial: N/A
CPU:
  Info: model: Intel Core i7-6700K bits: 64 type: MT MCP arch: Skylake-S
    gen: core 6 level: v3 note: check built: 2015 process: Intel 14nm family: 6
    model-id: 0x5E (94) stepping: 3 microcode: 0xF0
  Topology: cpus: 1x dies: 1 clusters: 4 cores: 4 threads: 8 tpc: 2
    smt: enabled cache: L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB
    desc: 4x256 KiB L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 4500 min/max: 800/4700 scaling: driver: intel_pstate
    governor: performance cores: 1: 4500 2: 4500 3: 4500 4: 4500 5: 4500 6: 4500
    7: 4500 8: 4500 bogomips: 64026
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Vulnerable: No microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: reg_file_data_sampling status: Not affected
  Type: retbleed status: Vulnerable
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW;
    STIBP: conditional; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not
    affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: NVIDIA TU102 [GeForce RTX 2080 Ti Rev. A] vendor: Micro-Star MSI
    driver: nvidia v: 550.135 alternate: nouveau,nvidia_drm non-free: 550.xx+
    status: current (as of 2024-09; EOL~2026-12-xx) arch: Turing code: TUxxx
    process: TSMC 12nm FF built: 2018-2022 pcie: gen: 3 speed: 8 GT/s lanes: 16
    ports: active: none off: DP-3 empty: DP-1, DP-2, HDMI-A-1, Unknown-1
    bus-ID: 01:00.0 chip-ID: 10de:1e07 class-ID: 0300
  Display: x11 server: X.Org v: 21.1.14 with: Xwayland v: 24.1.4
    compositor: kwin_x11 driver: X: loaded: nvidia gpu: nvidia,nvidia-nvswitch
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 122 s-size: 532x302mm (20.94x11.89")
    s-diag: 612mm (24.08")
  Monitor-1: DP-3 mapped: DP-4 note: disabled model: Dell S2417DG
    serial: <filter> built: 2018 res: 2560x1440 dpi: 123 gamma: 1.2
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
    max: 2560x1440 min: 640x480
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2
    drv: swrast gbm: drv: nvidia surfaceless: drv: nvidia x11: drv: nvidia
    inactive: wayland,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 550.135
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
    memory: 10.74 GiB
  API: Vulkan v: 1.3.295 layers: 5 device: 0 type: discrete-gpu name: NVIDIA
    GeForce RTX 2080 Ti driver: nvidia v: 550.135 device-ID: 10de:1e07
    surfaces: xcb,xlib
Audio:
  Device-1: Intel 100 Series/C230 Series Family HD Audio vendor: Gigabyte
    driver: snd_hda_intel v: kernel alternate: snd_soc_avs bus-ID: 00:1f.3
    chip-ID: 8086:a170 class-ID: 0403
  Device-2: NVIDIA TU102 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    bus-ID: 01:00.1 chip-ID: 10de:10f7 class-ID: 0403
  Device-3: Creative Labs CA0132 Sound Core3D [Sound Blaster Recon3D /
    Z-Series BlasterX AE-5 Plus] driver: snd_hda_intel v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 bus-ID: 0b:00.0 chip-ID: 1102:0012 class-ID: 0403
  API: ALSA v: k6.6.63-1-MANJARO status: kernel-api with: aoss
    type: oss-emulator tools: alsactl,alsamixer,amixer
  Server-1: JACK v: 1.9.22 status: off tools: N/A
  Server-2: PipeWire v: 1.2.7 status: off with: pipewire-media-session
    status: active tools: pw-cli
  Server-3: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module tools: pacat,pactl
Network:
  Device-1: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Info: services: NetworkManager
Drives:
  Local Storage: total: 5.93 TiB used: 421.04 GiB (6.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Corsair model: MP600 PRO LPX
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: EIFM31.6 temp: 31.9 C
    scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 PRO 1TB
    size: 953.87 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    tech: SSD serial: <filter> fw-rev: 2B6Q scheme: MBR
  ID-3: /dev/sdb maj-min: 8:16 vendor: HGST (Hitachi) model: HDN724030ALE640
    size: 2.73 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: <filter> fw-rev: A5E0 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: Portable SSD T5
    size: 465.76 GiB block-size: physical: 512 B logical: 512 B type: USB
    rev: 3.1 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1 tech: SSD serial: <filter>
    scheme: MBR
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 88.61 GiB size: 86.66 GiB (97.80%) used: 23.71 GiB (27.4%)
    fs: ext4 dev: /dev/sdc1 maj-min: 8:33 label: N/A
    uuid: eb235aa7-d461-413d-800e-ea57385703fb
  ID-2: /boot raw-size: 2.93 GiB size: 2.82 GiB (96.15%)
    used: 126.6 MiB (4.4%) fs: ext3 dev: /dev/sdc3 maj-min: 8:35 label: N/A
    uuid: cbfeca98-b99d-4383-9ded-fe66cd598006
  ID-3: /home raw-size: 332.03 GiB size: 325.75 GiB (98.11%)
    used: 16.48 GiB (5.1%) fs: ext4 dev: /dev/sdc4 maj-min: 8:36 label: N/A
    uuid: ada4a6a2-bd0a-4652-b386-7c637bba7ee9
Swap:
  Kernel: swappiness: 10 (default 60) cache-pressure: 100 (default) zswap: yes
    compressor: zstd max-pool: 20%
  ID-1: swap-1 type: partition size: 7.81 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/sdc2 maj-min: 8:34 label: N/A
    uuid: 717b267e-7322-4bf9-a840-f1210d422d1a
Sensors:
  System Temperatures: cpu: 29.0 C mobo: N/A gpu: nvidia temp: 31 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 25%
Info:
  Processes: 257 Power: uptime: 22m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 6.22 GiB services: org_kde_powerdevil,upowerd
    Init: systemd v: 256 default: graphical tool: systemctl
  Packages: 1604 pm: pacman pkgs: 1598 libs: 454 tools: pamac pm: flatpak
    pkgs: 6 Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: Bash v: 5.2.37
    running-in: konsole inxi: 3.3.36

This release has quite a few ‘minor’ bugs which are tough to spot… For example - custom icons on the desktop revert to blue breeze icons, refusing to apply the ‘tint’ and frequently resetting.

I would love to know why you have no problems with an AMD laptop with Wayland.

I think it’s time to head over to https://discuss.kde.org/ again and try to get a better response than I did last week.

Certainly I have the same ‘reset icon positions’ error when reconnecting to the TV.

3 Likes

Thanks for the response,
I created a KDE Forum account and duplicated this Topic.

The Moderator was pointing at another discussion with a link that showed a possible fix in KDE 6.3 in february next year… uff a long wait time. :frowning:

2 Likes

We can always backport these fixes. Someone who is affected needs to test it.

Proposed PKGBUILD. @Kobold please build locally and test it on your end:

# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=plasma-desktop
pkgver=6.2.4
_dirver=$(echo $pkgver | cut -d. -f1-3)
pkgrel=1.1
pkgdesc='KDE Plasma Desktop'
arch=(x86_64)
url='https://kde.org/plasma-desktop/'
license=(LGPL-2.0-or-later)
depends=(attica
         baloo
         emoji-font # for clock and language KCMs
         gcc-libs
         glibc
         icu
         kauth
         kbookmarks
         kcmutils
         kcodecs
         kcompletion
         kconfig
         kconfigwidgets
         kcoreaddons
         kcrash
         kdbusaddons
         kdeclarative
         kglobalaccel
         kguiaddons
         ki18n
         kiconthemes
         kio
         kirigami
         kirigami-addons
         kitemmodels
         kitemviews
         kjobwidgets
         kmenuedit
         knewstuff
         knotifications
         knotifyconfig
         kpackage
         kpipewire
         krunner
         kservice
         ksvg
         kwidgetsaddons
         kwindowsystem
         kxmlgui
         libcanberra
         libksysguard
         libx11
         libxcb
         libxcursor
         libxi
         libxkbcommon
         libxkbfile
         libplasma
         plasma-activities
         plasma-activities-stats
         plasma-workspace
         plasma5support
         polkit-kde-agent
         powerdevil
         qt6-5compat
         qt6-base
         qt6-declarative
         qt6-wayland
         sdl2
         solid
         sonnet
         systemsettings
         wayland
         xcb-util-keysyms
         xdg-user-dirs)
optdepends=('bluedevil: Bluetooth applet'
            'glib2: kimpanel IBUS support'
            'ibus: kimpanel IBUS support'
            'kaccounts-integration: OpenDesktop integration plugin'
            'kscreen: screen management'
            'libaccounts-qt: OpenDesktop integration plugin'
            'packagekit-qt6: to install new krunner plugins'
            'plasma-nm: Network manager applet'
            'plasma-pa: Audio volume applet'
            'scim: kimpanel SCIM support')
makedepends=(extra-cmake-modules
             intltool
             kaccounts-integration
             kdoctools
             libibus
             packagekit-qt6
             scim
             wayland-protocols
             xf86-input-libinput
             xorg-server-devel)
groups=(plasma)
source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz{,.sig}
        https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2607.patch
        https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2631.patch
        https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2641.patch
        https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2652.patch)
sha256sums=('81f2ab40cdec332918c90b1b732abb2aa0c0502854e48b8fa06fb82b52924da3'
            'SKIP'
            '5dea4b2491fd6786b0cd29db4b6502c0183a9cd4f25acfa0fa0e3661215ca485'
            '8c05ae74231118391e8a2b43ce2e6792fea1d858f7a8c0b5011c072555a5d073'
            '757d8b0002f7bbdea31fdf5852db298af38b73887e819e7c1f08be0b8f471e41'
            '9c756178faee1f80c3dbe757745e015445125e70810de3460f9cdc41ab5f1118')
validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>
              '0AAC775BB6437A8D9AF7A3ACFE0784117FBCE11D'  # Bhushan Shah <bshah@kde.org>
              'D07BD8662C56CB291B316EB2F5675605C74E02CF'  # David Edmundson <davidedmundson@kde.org>
              '1FA881591C26B276D7A5518EEAAF29B42A678C20') # Marco Martin <notmart@gmail.com>

prepare(){
  cd $pkgname-$pkgver
  patch -p1 -i ../2607.patch
  patch -p1 -i ../2631.patch
  patch -p1 -i ../2641.patch
  patch -p1 -i ../2652.patch
}

build() {
  cmake -B build  -S $pkgname-$pkgver \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DBUILD_TESTING=OFF
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
3 Likes

@Kobold did you had a chance to build the package and test it on your end? I saw you posted about the problem in another thread. Why not check out if the fix is already given so it might get backported to 6.2.5?

The problem is, that i have this issue on my main rig which i need to use daily. I created this topic in hope for a small workaround.

Im never messed around with the PKGBuild stuff and i have absolute no experience with it.

I don’t know how to build it or how to revert this changes at a later time and how dangerous this could be in relation to have a unstable system, when i update my system in future.

Which i dont want to risk right now.

That is exactly NOT the answer I hoped for @Kobold. You have high demands but … 6.3 of Plasma might get delayed for Manjaro as usual, as other problems may be with any upcoming Plasma release. So your regular wait can be even longer.

I’ve uploaded a build of the package including the fixes here. It is signed by my developer key. You can simply install it via sudo pacman -U <path to the pkg> and reboot your PC.

To roll back to the old package you can do this:
sudo pacman -U https://mirror.easyname.at/manjaro/pool/sync/plasma-desktop-6.2.4-1-x86_64.pkg.tar.zst

The risk can be zero or that no Plasma shell is loading, due to some missing parts or whatever. So a TTY is your best friend. CTRL+ALT+F3

Simply make sure that you have both packages on your PC to give it a test. Happy testing. Hope for a positive feedback from your end.

4 Likes

I tested this - I can confirm that icons stay in place through logout/login and rebooting.
Screenshot_20241211_123346
Context click is required to restore the custom icon…
Screenshot_20241211_123551

Cycling monitor power has no effect at all - the icon remains with it’s custom icon.

Installation - easy with no errors
Packages (1) plasma-desktop-6.2.4-1.1

Total Installed Size:  31.88 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                  [---------------------------------------------] 100%
(1/1) checking package integrity                                                [---------------------------------------------] 100%
(1/1) loading package files                                                     [---------------------------------------------] 100%
(1/1) checking for file conflicts                                               [---------------------------------------------] 100%
(1/1) checking available disk space                                             [---------------------------------------------] 100%
:: Running pre-transaction hooks...
(1/1) Creating Timeshift snapshot before upgrade...
==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE.
:: Processing package changes...
(1/1) reinstalling plasma-desktop                                               [---------------------------------------------] 100%
:: Running post-transaction hooks...
(1/9) Reloading user manager configuration...
(2/9) Arming ConditionNeedsUpdate...
(3/9) Refreshing PackageKit...
(4/9) Reloading system bus configuration...
(5/9) Updating icon theme caches...
(6/9) Removing old packages from pacman cache...
Removing old installed packages...
==> no candidate packages found for pruning
Removing old uninstalled packages...
==> no candidate packages found for pruning
(7/9) Looking for Pacnew/Pacsave created.
(8/9) Checking which packages need to be rebuilt
(9/9) Updating the desktop file MIME type cache...

@Kobold - snapshot first, then do it :wink:

2 Likes

Custom icons worked with 6.1 series or was it also not working there?

I also use custom icons, my desktop is highly customised in every aspect, besides widgets or virtual desktop which i have disabled.

Custom icons worked fine on 6.1 for me.

I wouldnt say high demands, but of course it would be nice to have this little bug fixed.

For me its still a minor problem, the same as this little annoying bug that i see after Plasma 6.2.4 update in the Taskbar, when i hover with my mouse cursor above the shortcuts, it makes a little blurry blinking overlay which in 6.1 showed Firefox message instead the blurry micro window:

The same thing happens to me with AMD & Wayland (I haven’t tried X11 and I won’t). But it’s the same with EndeavourOS. So it’s something to do with Plasma itself.

This was also the case under Plasma 5.***. It just never interested me because I never turn off my monitor…

I can verify - Fixed icons moving around

This fix especially for you - test it now and Phil will push it through when the time’s right.

Otherwise, this thread’s about done.

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.