Plasma 6.8 screen flickering when moving mouse

Hello,

I installed the last snapshot (20261016) via zypper dup.
After reboot I can log in kde plasma wayland but when I move the mouse the screen on which the mouse pointer is, flickers and some time goes black until I press a key on the keyboard.
On the sddm login screen there is no flickering, it only occurs when I’m logged in kde

I have two displays connectted to a nvidia quadro K4200 using the nouveau driver. The first is connected via the DVI port the second to the DP2 port.

hpprol2:~ # inxi -Ga
Graphics:
  Device-1: NVIDIA GK104GL [Quadro K4200] driver: nouveau v: kernel non-free:
    series: 470.xx+ status: legacy (EOL~2025-09-xx) arch: Kepler-2 code: GKxxx
    process: TSMC 28nm built: 2012-2018 pcie: gen: 2 speed: 5 GT/s lanes: 16
    ports: active: DP-2,DVI-I-1 empty: DP-1 bus-ID: 0a:00.0 chip-ID: 10de:11b4
    class-ID: 0300 temp: 62.0 C
  Display: unspecified server: X.org v: 1.21.1.24 with: Xwayland v: 24.1.13
    compositor: kwin_wayland driver: X: loaded: modesetting unloaded: vesa
    alternate: fbdev,nouveau,nv,nvidia dri: nouveau gpu: nouveau
    display-ID: :1 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.00x11.22")
    s-diag: 1055mm (41.54")
  Monitor-1: DP-2 pos: right model: Asus VG248 serial: F5LMQS077420
    built: 2015 res: mode: 1920x1080 hz: 144 scale: 100% (1) dpi: 92 gamma: 1.2
    size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: DVI-I-1 pos: primary,left model: Asus VG248
    serial: F2LMQS017700 built: 2015 res: mode: 1920x1080 hz: 144
    scale: 100% (1) dpi: 92 gamma: 1.2 size: 531x299mm (20.91x11.77")
    diag: 609mm (24") ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: EGL v: 1.5 hw: drv: nvidia nouveau platforms: device: 0 drv: nouveau
    device: 1 drv: swrast gbm: drv: nouveau surfaceless: drv: nouveau x11:
    drv: nouveau inactive: wayland
  API: OpenGL v: 4.6 compat-v: 4.3 vendor: mesa v: 26.2.4 glx-v: 1.4
    direct-render: yes renderer: NVE4 device-ID: 10de:11b4 memory: 3.89 GiB
    unified: no
  API: Vulkan v: 1.4.363 layers: 2 device: 0 type: cpu name: llvmpipe (LLVM
    23.1.2 256 bits) driver: mesa llvmpipe v: 26.2.4 (LLVM 23.1.2)
    device-ID: 10005:0000 surfaces: N/A
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr
hpprol2:~ # 

I’m not able to select text via the mouse on the second screen which goes black for a short time on each mouse movement.

In journalctl I have warnings about org-kde-powerdevil and libddcutil at start of the plasme session

Oct 18 13:27:36 hpprol2 systemd[2104]: Started Handle legacy xembed system tray icons.
Oct 18 13:27:36 hpprol2 org_kde_powerdevil[2400]: Starting libddcutil. library built Not set at Not set. stdout_stderr_redirected=true
Oct 18 13:27:36 hpprol2 systemd[2104]: Started KDE PolicyKit Authentication Agent.
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: Starting. library built Not set at Not set, library_initialized=false, libopts=|(null)|
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: Initializing libddcutil.  ddcutil version: 2.2.7, shared library: /usr/lib64/libddcutil.so.5.5.1
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]:                           library built Not set at Not set. stdout_stderr_redirected=true
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: (ddci_init                     ) Calling ldbus_start_sleep_watch_thread...
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: [  2400] Options passed from client:
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: [  2400] Applying combined libddcutil options:
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: [  2400][  0.618741] (ldbus_pause_if_recent_return_from_sleep)Pausing for 367
Oct 18 13:27:37 hpprol2 systemd[2104]: Started KActivityManager Activity manager Service.
Oct 18 13:27:37 hpprol2 org_kde_powerdevil[2400]: [  2400][  0.985935] paused for 367 millisec at start of i2c_open_bus_basic()
Oct 18 13:27:37 hpprol2 systemd[2104]: Starting Track hardware statistics...
Oct 18 13:27:38 hpprol2 systemd[1]: Starting Hostname Service...
Oct 18 13:27:38 hpprol2 systemd[2104]: Started Track hardware statistics.
Oct 18 13:27:38 hpprol2 systemd[1]: Started Hostname Service.
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: Library initialization complete.
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400][  2.226098] (ddci_init) Done.  Returning 0
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400] Starting ddca_start_watch_displays()
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: Watching for DPMS state changes unimplemented
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400] Watching for DPMS state changes unimplemented
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400][  2.239670] Time since library initialized:   2.239668 seconds
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400][  2.239692] Extra delay starting dw_start_watch_displays: 0 millisec
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400] Watching for display connection changes, resolved watch mode = Watch_Mode_Udev, poll loop interval = 500 millisec
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400]                                          initial_stabilization_millisec: 0,  stabilization_poll_millisec: 100
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400] libddcutil recheck thread 0x558d74a95cb0 started
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2444][  2.288092] Recheck interval: Sleeping for 200 milliseconds
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400] libddcutil watch thread 0x558d74a945c0 started
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400] Done     ddca_start_watch_displays returning OK - OK(0): success
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400][  2.288212] (ddca_get_display_refs) Returned DDCA_Display_Ref list:
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400][  2.288240]    DDCA_Display_Ref Display_Ref[1:bus /dev/i2c-0 @0x558d74a6df90]
Oct 18 13:27:38 hpprol2 org_kde_powerdevil[2400]: [  2400][  2.288256]    DDCA_Display_Ref Display_Ref[2:bus /dev/i2c-9 @0x558d74a75ea0]
Oct 18 13:27:39 hpprol2 systemd[1]: Created slice Slice /system/dbus-:1.3-org.kde.powerdevil.discretegpuhelper.
Oct 18 13:27:39 hpprol2 systemd[1]: Started dbus-:1.3-org.kde.powerdevil.discretegpuhelper@0.service.
Oct 18 13:27:39 hpprol2 systemd[1]: Created slice Slice /system/dbus-:1.3-org.kde.powerdevil.chargethresholdhelper.
Oct 18 13:27:39 hpprol2 systemd[1]: Started dbus-:1.3-org.kde.powerdevil.chargethresholdhelper@0.service.
Oct 18 13:27:39 hpprol2 systemd[1]: Created slice Slice /system/dbus-:1.3-org.kde.powerdevil.backlighthelper.
Oct 18 13:27:39 hpprol2 systemd[1]: Started dbus-:1.3-org.kde.powerdevil.backlighthelper@0.service.
Oct 18 13:27:39 hpprol2 backlighthelper[2460]: no kernel backlight interface found

later I see

Oct 18 13:30:17 hpprol2 kwin_wayland_wrapper[2359]: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough!

When I move the mouse and the screen flickers I have nothing logged in journalctl.

I also created a new user and logged in kde with the same flickering problem. :rage:
Before this update to kde6 .8 I used already a plasma wayland session without problem
Is it possible that by each move of the mouse the screen is redrawed again ?

Any idea?
Many thanks in advance
Philippe

Hi
Not a Plasma user, but see the Display section, using the modesetting driver, likewise under Vulkan using llvmpipe.

On my MacBook Pro running a Kepler-2 and nouveau driver (NVE7) and Hyprland, Display and Vulkan show nouveau driver in use.

I’m using the modesetting driver. I don’t see any configuration in the kde systemsettings: it only displays information on wayland, vulkan, egl etc but nothing that can be modified.

Regards
Philippe

Hello,

I found a solution adding 3 environment variables in a new configuration file in ~/.config/environment.d/99_noflick.conf

KWIN_USE_BUFFER_AGE=0
KWIN_DRM_FORCE_GL_FINISH_PRESENT=1
KWIN_FORCE_SW_CURSOR=1

For more details see https://bugs.kde.org/show_bug.cgi?id=527328

AFAIU this is related to the nouveau driver.

Regards
Philippe

@phil524 but you not using the nouveau driver, your using modesetting as clearly shown in the output…

What does the output show from inxi -Saz?

Hi Malcolm,

here the output:

hpprol2:~ # inxi -Saz
System:
  Kernel: 7.2.10-1-default arch: x86_64 bits: 64 compiler: gcc v: 16.2.1
    clocksource: tsc avail: xen
    parameters: root=UUID=78cf2dab-782f-467c-b749-1bc362844d10 splash=verbose
    showopts vga=838 security=selinux selinux=1 mitigations=auto
  Console: pty pts/2 wm: kwin_wayland DM: SDDM Distro: openSUSE Tumbleweed
    20261016

That looks fine, strange it’s using modesetting, likewise, no vulkan on the GPU…

Glad that worked for you, it didn’t for me. And then with an update, I lost my usual screen resolution. I gave up and upgraded the video card and now all is well. (The previous card was an old Nvidia series 470 using the nouveau driver.) I hate having to upgrade perfectly usable old hardware, but at 80, I wish I could upgrade my own hardware as easily :wink:

2 Likes

@phil524 This worked for me. But the reaction of the cursor is quite tenacious now. Occasionally i get bouncing on keyboard input.
I tried to set KWIN_FORCE_SW_CURSOR=0, but then after a restart the display flickering was back again. So i left the settings as phil524 provided. I can work with it, but it is not as i was used to. Graphics is a Quadro K420 and nouveau driver.

Yep, better try the solution of the other KDE bugreport which is mentioned in the thread below. Only use following environment variable instead of the 3 from phil524:

KWIN_DRM_FORCE_GL_FINISH_MGPU_COPY=1

https://bugs.kde.org/show_bug.cgi?id=527526

@hui This seems to work for me, thank you!
To figure it out clearly: I replaced the 3 environment variables in the file
99-kwin-flicker.conf mentioned by phil524 by the single variable
KWIN_DRM_FORCE_GL_FINISH_MGPU_COPY=1
After restart no more flickering and cursor reaction as before the problem.

1 Like

Interesting,

for the flickering problem the two solution worked for me.
Using only KWIN_DRM_FORCE_GL_FINISH_MGPU_COPY=1 allows the mouse cursor to react as before in different situations.

Regards
Philippe

Some observations made since i made the changes:
Cursor reaction is only “nearly” as before. It’s not so smooth as before.
Bitblt operations seem to be affected, too. For example moving the cards in the solitaire game is also not so smooth as before.
In the K-Menu in the 3rd level if there is only one entry, it is hard to click this one. Most of the times the entry fades out before it can be clicked.
I still have occasional bouncing in keyboard input. This is quite annoying when entering hidden passwords in a console.
I hope i can get to the previous state in a near future.

The issue is fixed by an update. Remove the environment file, and perform a zypper dup. Reboot afterwards.

Oddly enough, I did zypper dup this morning (two days after you posted that a fix was in place) and started having the problem. Is the solution available for tumbleweed?

ystem:
Kernel: 7.3.1-1-default arch: x86_64 bits: 64 compiler: gcc v: 16.2.1
clocksource: tsc avail: hpet,acpi_pm
parameters: BOOT_IMAGE=/boot/vmlinuz-7.3.1-1-default
root=UUID=4a62a526-6859-4c99-9899-4048da44517b splash=silent
resume=/dev/disk/by-uuid/eaba3c15-4d62-4be4-8d14-908d70761544
mitigations=auto quiet
Desktop: KDE Plasma v: 6.8.2 tk: Qt v: N/A info: frameworks v: 6.31.0
wm: kwin_wayland tools: avail: xscreensaver vt: 3 dm: 1: LightDM v: 1.33.1
note: stopped 2: SDDM note: stopped Distro: openSUSE Tumbleweed 20261103

@hui: I did as you suggested:
Removed 99-kwin-flicker.conf. Then ‘zypper ref’ and ‘zypper dup’.
Then after restart the flickering was back. So i restored the environment file and have no more flickering after restart, but with the other problems.
TW now shows VERSION_ID=“20261105”.

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