2

My desktop uses Kubuntu 24.04, fully updated, with KDE Plasma 5.27.12. About a week ago I decided to give Wayland another try, and this time I found everything to work smoothly, except for the fact that the Screen Energy Saving option does not seem to work...

To be precise, it does work initially, once the idle time has elapsed, and the screen turns black. But it remains black for about 10 seconds only, then the screen comes back on again. Obviously, there is something overriding the settings defined (by me) in System Settings -> Power.

The very same thing happens if I turn off the screen via CLI (kscreen-doctor -d off), i.e. the screen remains black for about 10 seconds, then lights up again. If I choose to put the pc in sleep/hibernate mode after the same amount of time, the screen does not light up again, but this of course is not what I want.

After the screen lights up again, in System Settings -> Display and Monitor, there appears the following information: A new output has been added. Settings have been reloaded. I get in fact the following, interesting, output:

tail -f /var/log/syslog
......
2025-02-14T16:15:20.425314+01:00 kaus kactivitymanagerd[2625]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.425640+01:00 kaus kded5[2563]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.425915+01:00 kaus polkit-kde-authentication-agent-1[2641]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.426185+01:00 kaus foot[2779]: warn: wayland.c:1382: unknown global removed: 0x0000004f
2025-02-14T16:15:20.426443+01:00 kaus DiscoverNotifier[2802]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.426480+01:00 kaus foot: wayland: unknown global removed: 0x0000004f
2025-02-14T16:15:20.426679+01:00 kaus plasmashell[4761]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.426909+01:00 kaus xdg-desktop-portal-kde[3113]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.446383+01:00 kaus org_kde_powerdevil[5644]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.452066+01:00 kaus org_kde_powerdevil[2642]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.456716+01:00 kaus org_kde_powerdevil[5650]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.477425+01:00 kaus org_kde_powerdevil[5644]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:20.487835+01:00 kaus org_kde_powerdevil[5650]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:20.492526+01:00 kaus plasmashell[5655]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.524998+01:00 kaus plasmashell[5655]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:20.566383+01:00 kaus plasmashell[5663]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.571856+01:00 kaus kded5[2849]: xsettingsd: Reloading configuration
2025-02-14T16:15:20.572028+01:00 kaus kded5[2849]: xsettingsd: Loaded 12 settings from /home/mario/.config/xsettingsd/xsettingsd.conf
2025-02-14T16:15:20.573351+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:20.586841+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:20.600327+01:00 kaus plasmashell[5663]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:20.602521+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:20.606076+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:20: TypeError: Cannot read property 'pluginName' of null
2025-02-14T16:15:20.606343+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:75: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.606506+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:78: TypeError: Cannot read property 'pluginName' of null
2025-02-14T16:15:20.606659+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:80: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.606797+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:81: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.606941+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:82: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.607092+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:83: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.607265+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:84: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.607421+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:16: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.607579+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:17: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.607733+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:18: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:20.700216+01:00 kaus kded5[2849]: xsettingsd: Reloading configuration
2025-02-14T16:15:20.700254+01:00 kaus kded5[2849]: xsettingsd: Loaded 12 settings from /home/mario/.config/xsettingsd/xsettingsd.conf
2025-02-14T16:15:20.816145+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL vendor string:                   Intel
2025-02-14T16:15:20.816430+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL renderer string:                 Mesa Intel(R) UHD Graphics 630 (CFL GT2)
2025-02-14T16:15:20.816557+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version string:                  4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
2025-02-14T16:15:20.816656+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL shading language version string: 4.60
2025-02-14T16:15:20.816745+01:00 kaus kwin_wayland_wrapper[2502]: Driver:                                 Intel
2025-02-14T16:15:20.816825+01:00 kaus kwin_wayland_wrapper[2502]: GPU class:                              Coffee Lake
2025-02-14T16:15:20.816948+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version:                         4.6
2025-02-14T16:15:20.817030+01:00 kaus kwin_wayland_wrapper[2502]: GLSL version:                           4.60
2025-02-14T16:15:20.817110+01:00 kaus kwin_wayland_wrapper[2502]: Mesa version:                           24.2.8
2025-02-14T16:15:20.817207+01:00 kaus kwin_wayland_wrapper[2502]: X server version:                       1.23.2
2025-02-14T16:15:20.817330+01:00 kaus kwin_wayland_wrapper[2502]: Linux kernel version:                   6.8
2025-02-14T16:15:20.817448+01:00 kaus kwin_wayland_wrapper[2502]: Requires strict binding:                no
2025-02-14T16:15:20.817546+01:00 kaus kwin_wayland_wrapper[2502]: GLSL shaders:                           yes
2025-02-14T16:15:20.817643+01:00 kaus kwin_wayland_wrapper[2502]: Texture NPOT support:                   yes
2025-02-14T16:15:20.817738+01:00 kaus kwin_wayland_wrapper[2502]: Virtual Machine:                        no
2025-02-14T16:15:21.020900+01:00 kaus kwin_wayland_wrapper[2502]: BlurConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.023996+01:00 kaus kwin_wayland_wrapper[2502]: ZoomConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.025121+01:00 kaus kwin_wayland_wrapper[2502]: WindowViewConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.026215+01:00 kaus kwin_wayland_wrapper[2502]: SlidingPopupsConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.026382+01:00 kaus kwin_wayland_wrapper[2502]: SlideConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.026613+01:00 kaus kwin_wayland_wrapper[2502]: OverviewConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.027160+01:00 kaus kwin_wayland_wrapper[2502]: KscreenConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.027885+01:00 kaus kwin_wayland_wrapper[2502]: DesktopGridConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.500242+01:00 kaus org_kde_powerdevil[5682]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:21.532164+01:00 kaus plasmashell[5686]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:21.543067+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:21.543131+01:00 kaus plasmashell[2599]: Checking screens: available: (QScreen(0x5fedb26e8010, name="DP-3")) redundant: QHash() fake: QSet(QScreen(0x5fedb2832170, name="")) all: (QScreen(0x5fedb2832170, name=""), QScreen(0x5fedb26e8010, name="DP-3"))
2025-02-14T16:15:21.607762+01:00 kaus kded5[2849]: xsettingsd: Reloading configuration
2025-02-14T16:15:21.607819+01:00 kaus kded5[2849]: xsettingsd: Loaded 12 settings from /home/mario/.config/xsettingsd/xsettingsd.conf
2025-02-14T16:15:21.724534+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL vendor string:                   Intel
2025-02-14T16:15:21.724669+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL renderer string:                 Mesa Intel(R) UHD Graphics 630 (CFL GT2)
2025-02-14T16:15:21.724707+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version string:                  4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
2025-02-14T16:15:21.724742+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL shading language version string: 4.60
2025-02-14T16:15:21.724769+01:00 kaus kwin_wayland_wrapper[2502]: Driver:                                 Intel
2025-02-14T16:15:21.724802+01:00 kaus kwin_wayland_wrapper[2502]: GPU class:                              Coffee Lake
2025-02-14T16:15:21.724829+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version:                         4.6
2025-02-14T16:15:21.724918+01:00 kaus kwin_wayland_wrapper[2502]: GLSL version:                           4.60
2025-02-14T16:15:21.724948+01:00 kaus kwin_wayland_wrapper[2502]: Mesa version:                           24.2.8
2025-02-14T16:15:21.724981+01:00 kaus kwin_wayland_wrapper[2502]: X server version:                       1.23.2
2025-02-14T16:15:21.725010+01:00 kaus kwin_wayland_wrapper[2502]: Linux kernel version:                   6.8
2025-02-14T16:15:21.725039+01:00 kaus kwin_wayland_wrapper[2502]: Requires strict binding:                no
2025-02-14T16:15:21.725071+01:00 kaus kwin_wayland_wrapper[2502]: GLSL shaders:                           yes
2025-02-14T16:15:21.725102+01:00 kaus kwin_wayland_wrapper[2502]: Texture NPOT support:                   yes
2025-02-14T16:15:21.725170+01:00 kaus kwin_wayland_wrapper[2502]: Virtual Machine:                        no
2025-02-14T16:15:21.732241+01:00 kaus kwin_wayland_wrapper[2502]: BlurConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.733999+01:00 kaus kwin_wayland_wrapper[2502]: ZoomConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.735218+01:00 kaus kwin_wayland_wrapper[2502]: WindowViewConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.736053+01:00 kaus kwin_wayland_wrapper[2502]: SlidingPopupsConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.736185+01:00 kaus kwin_wayland_wrapper[2502]: SlideConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.736374+01:00 kaus kwin_wayland_wrapper[2502]: OverviewConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.736800+01:00 kaus kwin_wayland_wrapper[2502]: KscreenConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.737320+01:00 kaus kwin_wayland_wrapper[2502]: DesktopGridConfig::instance called after the first use - ignoring
2025-02-14T16:15:21.807503+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:21.823266+01:00 kaus plasmashell[2599]: message repeated 3 times: [ qt.qpa.wayland: Wayland does not support QWindow::requestActivate()]
2025-02-14T16:15:22.372133+01:00 kaus DiscoverNotifier[2802]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.372448+01:00 kaus foot[2779]: warn: wayland.c:1382: unknown global removed: 0x00000051
2025-02-14T16:15:22.372711+01:00 kaus polkit-kde-authentication-agent-1[2641]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.372930+01:00 kaus kactivitymanagerd[2625]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.373094+01:00 kaus kded5[2563]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.373141+01:00 kaus foot: wayland: unknown global removed: 0x00000051
2025-02-14T16:15:22.373394+01:00 kaus xdg-desktop-portal-kde[3113]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.373731+01:00 kaus plasmashell[4761]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.397611+01:00 kaus org_kde_powerdevil[5726]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.398211+01:00 kaus org_kde_powerdevil[2642]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.404861+01:00 kaus org_kde_powerdevil[5732]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.419837+01:00 kaus org_kde_powerdevil[5726]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:22.427077+01:00 kaus org_kde_powerdevil[5732]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:22.451625+01:00 kaus plasmashell[5738]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.488961+01:00 kaus plasmashell[5738]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:22.521557+01:00 kaus kded5[2849]: xsettingsd: Reloading configuration
2025-02-14T16:15:22.524481+01:00 kaus kded5[2849]: xsettingsd: Loaded 12 settings from /home/mario/.config/xsettingsd/xsettingsd.conf
2025-02-14T16:15:22.547828+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.553843+01:00 kaus plasmashell[5745]: qt.qpa.wayland: Creating a fake screen in order for Qt not to crash
2025-02-14T16:15:22.561598+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:22.576030+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:22.577459+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:20: TypeError: Cannot read property 'pluginName' of null
2025-02-14T16:15:22.577520+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:75: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577566+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:78: TypeError: Cannot read property 'pluginName' of null
2025-02-14T16:15:22.577591+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:80: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577613+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:81: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577639+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:82: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577663+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:83: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577686+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:84: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577738+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:16: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577761+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:17: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.577795+01:00 kaus plasmashell[2599]: file:///usr/share/plasma/wallpapers/org.kde.slideshow/contents/ui/main.qml:18: TypeError: Cannot read property 'configuration' of null
2025-02-14T16:15:22.582656+01:00 kaus plasmashell[5745]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:22.674442+01:00 kaus kded5[2849]: xsettingsd: Reloading configuration
2025-02-14T16:15:22.674478+01:00 kaus kded5[2849]: xsettingsd: Loaded 12 settings from /home/mario/.config/xsettingsd/xsettingsd.conf
2025-02-14T16:15:22.800943+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL vendor string:                   Intel
2025-02-14T16:15:22.801060+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL renderer string:                 Mesa Intel(R) UHD Graphics 630 (CFL GT2)
2025-02-14T16:15:22.801131+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version string:                  4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
2025-02-14T16:15:22.801256+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL shading language version string: 4.60
2025-02-14T16:15:22.801345+01:00 kaus kwin_wayland_wrapper[2502]: Driver:                                 Intel
2025-02-14T16:15:22.801561+01:00 kaus kwin_wayland_wrapper[2502]: GPU class:                              Coffee Lake
2025-02-14T16:15:22.801704+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version:                         4.6
2025-02-14T16:15:22.801839+01:00 kaus kwin_wayland_wrapper[2502]: GLSL version:                           4.60
2025-02-14T16:15:22.801982+01:00 kaus kwin_wayland_wrapper[2502]: Mesa version:                           24.2.8
2025-02-14T16:15:22.802086+01:00 kaus kwin_wayland_wrapper[2502]: X server version:                       1.23.2
2025-02-14T16:15:22.802246+01:00 kaus kwin_wayland_wrapper[2502]: Linux kernel version:                   6.8
2025-02-14T16:15:22.802422+01:00 kaus kwin_wayland_wrapper[2502]: Requires strict binding:                no
2025-02-14T16:15:22.802565+01:00 kaus kwin_wayland_wrapper[2502]: GLSL shaders:                           yes
2025-02-14T16:15:22.802709+01:00 kaus kwin_wayland_wrapper[2502]: Texture NPOT support:                   yes
2025-02-14T16:15:22.802906+01:00 kaus kwin_wayland_wrapper[2502]: Virtual Machine:                        no
2025-02-14T16:15:22.970701+01:00 kaus kwin_wayland_wrapper[2502]: BlurConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.972646+01:00 kaus kwin_wayland_wrapper[2502]: ZoomConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.973338+01:00 kaus kwin_wayland_wrapper[2502]: WindowViewConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.974403+01:00 kaus kwin_wayland_wrapper[2502]: SlidingPopupsConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.974496+01:00 kaus kwin_wayland_wrapper[2502]: SlideConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.974650+01:00 kaus kwin_wayland_wrapper[2502]: OverviewConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.974989+01:00 kaus kwin_wayland_wrapper[2502]: KscreenConfig::instance called after the first use - ignoring
2025-02-14T16:15:22.975489+01:00 kaus kwin_wayland_wrapper[2502]: DesktopGridConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.144882+01:00 kaus org_kde_powerdevil[5763]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:23.187486+01:00 kaus plasmashell[5769]: Initializing  "/usr/lib/x86_64-linux-gnu/qt5/plugins/plasma/kcms/systemsettings/kcm_fonts.so"
2025-02-14T16:15:23.202846+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
2025-02-14T16:15:23.202882+01:00 kaus plasmashell[2599]: Checking screens: available: (QScreen(0x5fedb2715a40, name="DP-3")) redundant: QHash() fake: QSet(QScreen(0x7058b000b3b0, name="")) all: (QScreen(0x7058b000b3b0, name=""), QScreen(0x5fedb2715a40, name="DP-3"))
2025-02-14T16:15:23.241293+01:00 kaus kded5[2849]: xsettingsd: Reloading configuration
2025-02-14T16:15:23.241339+01:00 kaus kded5[2849]: xsettingsd: Loaded 12 settings from /home/mario/.config/xsettingsd/xsettingsd.conf
2025-02-14T16:15:23.372171+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL vendor string:                   Intel
2025-02-14T16:15:23.372240+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL renderer string:                 Mesa Intel(R) UHD Graphics 630 (CFL GT2)
2025-02-14T16:15:23.372272+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version string:                  4.6 (Core Profile) Mesa 24.2.8-1ubuntu1~24.04.1
2025-02-14T16:15:23.372302+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL shading language version string: 4.60
2025-02-14T16:15:23.372333+01:00 kaus kwin_wayland_wrapper[2502]: Driver:                                 Intel
2025-02-14T16:15:23.372393+01:00 kaus kwin_wayland_wrapper[2502]: GPU class:                              Coffee Lake
2025-02-14T16:15:23.372425+01:00 kaus kwin_wayland_wrapper[2502]: OpenGL version:                         4.6
2025-02-14T16:15:23.372460+01:00 kaus kwin_wayland_wrapper[2502]: GLSL version:                           4.60
2025-02-14T16:15:23.372498+01:00 kaus kwin_wayland_wrapper[2502]: Mesa version:                           24.2.8
2025-02-14T16:15:23.372537+01:00 kaus kwin_wayland_wrapper[2502]: X server version:                       1.23.2
2025-02-14T16:15:23.372572+01:00 kaus kwin_wayland_wrapper[2502]: Linux kernel version:                   6.8
2025-02-14T16:15:23.372624+01:00 kaus kwin_wayland_wrapper[2502]: Requires strict binding:                no
2025-02-14T16:15:23.372653+01:00 kaus kwin_wayland_wrapper[2502]: GLSL shaders:                           yes
2025-02-14T16:15:23.372686+01:00 kaus kwin_wayland_wrapper[2502]: Texture NPOT support:                   yes
2025-02-14T16:15:23.372717+01:00 kaus kwin_wayland_wrapper[2502]: Virtual Machine:                        no
2025-02-14T16:15:23.384230+01:00 kaus kwin_wayland_wrapper[2502]: BlurConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.386218+01:00 kaus kwin_wayland_wrapper[2502]: ZoomConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.386909+01:00 kaus kwin_wayland_wrapper[2502]: WindowViewConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.387691+01:00 kaus kwin_wayland_wrapper[2502]: SlidingPopupsConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.387765+01:00 kaus kwin_wayland_wrapper[2502]: SlideConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.387968+01:00 kaus kwin_wayland_wrapper[2502]: OverviewConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.388367+01:00 kaus kwin_wayland_wrapper[2502]: KscreenConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.388886+01:00 kaus kwin_wayland_wrapper[2502]: DesktopGridConfig::instance called after the first use - ignoring
2025-02-14T16:15:23.489964+01:00 kaus plasmashell[2599]: qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

from which we can see that kactivitymanager, for some unspecified reason, decides that it must create a fake Qt screen to avoid it crashing. And this happens several times in the course of a few seconds, until the situation stabilizes, and there are no more related activities in syslog.

Another important detail is added by a capture of the dbus connections:

date > cap.txt;  kscreen-doctor --dpms off; dbus-monitor --profile >> cap.txt

and the content of the capture file, cap.txt, is:

Fri Feb 14 04:08:49 PM CET 2025
#type   timestamp       serial  sender  destination     path    interface       member
#                                       in_reply_to
sig     1739545729.278759       2       org.freedesktop.DBus    :1.68   /org/freedesktop/DBus   org.freedesktop.DBus    NameAcquired
sig     1739545729.278766       4       org.freedesktop.DBus    :1.68   /org/freedesktop/DBus   org.freedesktop.DBus    NameLost
mc      1739545730.964295       280     :1.41   :1.49   /org/freedesktop/portal/desktop org.freedesktop.impl.portal.Background  GetAppState
mr      1739545730.965055       239     :1.49   :1.41   280
mc      1739545730.966093       281     :1.41   :1.43   /org/freedesktop/impl/portal/PermissionStore    org.freedesktop.impl.portal.PermissionStore     Lookup
err     1739545730.966962       71      :1.43   :1.41   281
mc      1739545735.968323       282     :1.41   :1.49   /org/freedesktop/portal/desktop org.freedesktop.impl.portal.Background  GetAppState
mr      1739545735.969096       240     :1.49   :1.41   282
mc      1739545735.970145       283     :1.41   :1.43   /org/freedesktop/impl/portal/PermissionStore    org.freedesktop.impl.portal.PermissionStore     Lookup
err     1739545735.970998       72      :1.43   :1.41   283
sig     1739545740.179599       187     :1.26   <none>  /kwinrc org.kde.kconfig.notify  ConfigChanged
mc      1739545740.180923       389     :1.21   org.freedesktop.DBus    /org/freedesktop/DBus   org.freedesktop.DBus    AddMatch

The initial time of the dbus capture, 1739545729, corresponds to Friday, February 14, 2025 4:08:49 PM GMT+01:00, which is also the output of the date command immediately before the command that turns off the monitor. We see that about 11 seconds after the turning off kwin sends out a signal that the configuration has changed, which presumably is the consequence of kded5 having created a fake Qt screen. But what exactly triggers this funny behavior?

The amusing thing is that the very same configuration works flawlessly in an X11 session, it is broken only in a Wayland session. But despite this, it is not clear to me at all whether this is a Wayland or a KDE bug. I googled qt.qpa.wayland: Creating a fake screen in order for Qt not to crash, which leads to a meager two references, the most relevant of which states:

The issue is most likey in wayland or the DE as they are not closing the portal,

(whatever the portal may be). But here too, no consensus was reached as to the real culprit.

Can anyone help? I am at a loss, thank you.

0

1 Answer 1

4
+100

What Is Wayland?

Like the OP, I was under the impression that Wayland was software, but after Googling I found The Wayland Protocol. The Linux ecosystem is in the process of converting the X Server to more closely align to the MVC paradigm. PHP has been doing the MVC bit for years now with Frameworks as big as Laravel and as micro as Slim.

How This Change Has Affected Linux

If we break a Desktop Environment into parts to match the MVC paradigm, we have:

  1. M - Model: Wayland
  2. V - View: Compositors + Monitor
  3. C - Controller(s): The Various Software components used in the DE to manipulate the view.

MVC Data Flow

Thanks to Geeks For Geeks for the image. The image shows the continuous flow of data and how each of the parts interact with the other parts along with the data. In any Desktop Environment, Wayland is the Model. The software that makes up the model is Desktop Agnostic, meaning Wayland doesn't care what Desktop you use as the Protocol provided by it's C implementation passes the same data between the items pictured in the photo in exactly the same way regardless of the user's desktop choice. This Model may not be perfect, but regardless we now only have 2 pieces to troubleshoot, the View, and the Controller.

Like most Linux users starting out back in the day, I just wanted a GUI that worked, so I followed the install instructions for the XOrg Server, and stacked the GUI/GNOME on top of that. I didn't look at the code, I just wanted it to work, and didn't care about the particulars. I did know that it might've been a clunky mess to fix and maintain, and again did not care. With the advent of newer hardware, more RAM etc., I'm sure that at some point the X11 codebase became tougher and tougher to maintain, and out of the need for something new Wayland was born.

I'm with the OP on this one, as a NVIDIA user, and NVIDIA themselves who has been slow to adopt Wayland, that slow pace doesn't matter now as I can no longer disable Wayland Support on my Gentoo Box forcing me into a situation similar to the OP's.

Where To Go Now? Troubleshooting the Controller

I intentionally left out the view, as the view is the dumb component. The only thing the Compositors do is draw the output of what's on the screen, and the monitor is even dumber as the final piece of the view. That leaves us the Controller Component. In the OP's case this is: kscreen-doctor.

Knowing that and knowing what putting a monitor to sleep does, I knew what to search for. When a screen sleeps, the items drawn on said screen, i.e., those that the Compositor in the View component would draw are sent to RAM, stored there until the screen is woken up, RAM is emptied, and the objects are redrawn.

In order to store the drawn items in RAM, a snapshot is taken (like a camera photo). That photo is then sent to the Controller, and the controller sends the photo to the Model, and the process is reversed for awakening.

What's Happening?

In the OP's case (and mine too), the photo is taken, sent to the Controller and breaks when the controller tries to tell the model to store the photo for awakening later. That breakage occurs in the 10 or so seconds the screen is black. I found all that here:

The KDE Bug Tracker

In that was a list of bugs, and a link to the Tracker Bug Summary - Plasma/Wayland Known Significant Issues, and now I quote:

Native Wayland windows cannot save and restore their window positions; KWin would need to do it

Later on down the page:

No session restore for native Wayland windows:
https://bugs.kde.org/show_bug.cgi?id=436318
https://invent.kde.org/plasma/kwin/-/issues/113.

Our session management recovery engine is based on the X Session Management Protocol and there is apparently currently no generic concept to do it on Wayland. But on Qt it's plugin-able and GNOME has had their own implementation for some time. Possible workaround: Use Hibernation (Suspend To Disk) instead.

Unfortunately, the quoted paragraph means someone who volunteers as a coder is going to need to rewrite the Session Manager for KDE such that it isn't based on the X11 Session Management Protocol, and/or write a plugin. Looking at the header for that, the protocol is 23 years old, has been partially/fully built in to GNOME, (I can't tell from scanning the document due to all the mentions of possible) and doesn't exist in KDE.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.