AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 790972
Accepted
MariusMatutiae
MariusMatutiae
Asked: 2025-02-13 00:24:52 +0800 CST2025-02-13 00:24:52 +0800 CST 2025-02-13 00:24:52 +0800 CST

屏幕节能功能无法与 KDE Wayland 配合使用

  • 772

我的桌面使用 Kubuntu 24.04,已完全更新,并带有 KDE Plasma 5.27.12。大约一周前,我决定再次尝试 Wayland,这次我发现一切都运行顺利,除了屏幕节能选项似乎不起作用...

确切地说,它一开始确实能工作,一旦空闲时间过去,屏幕就会变黑。但它只会保持黑屏约 10 秒钟,然后屏幕会再次亮起。显然,有些东西覆盖了系统设置 -> 电源中(由我)定义的设置。

如果我通过 CLI ( ) 关闭屏幕kscreen-doctor -d off,也会发生同样的事情,即屏幕保持黑色约 10 秒钟,然后再次亮起。如果我选​​择在相同的时间后将 PC 置于睡眠/休眠模式,屏幕不会再次亮起,但这当然不是我想要的。

屏幕再次亮起后,在系统设置 -> 显示和监控中,出现以下信息: 已添加新输出。设置已重新加载。事实上,我得到了以下有趣的输出:

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()

从中我们可以看到,kactivitymanager 出于某种未指明的原因,决定必须创建一个假的 Qt 屏幕以避免其崩溃。这种情况在几秒钟内发生了几次,直到情况稳定下来,并且syslog中不再有相关活动。

通过捕获dbus连接添加了另一个重要细节:

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

捕获文件cap.txt的内容为:

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

dbus捕获的初始时间1739545729 对应于 2025 年 2 月 14 日星期五下午 4:08:49 GMT+01:00,这也是关闭显示器命令之前date命令的输出。我们看到,关闭后约11秒, kwin发出配置已更改的信号,这可能是kded5创建了假 Qt 屏幕的结果 。但究竟是什么引发了这种奇怪的行为?

有趣的是,同样的配置在 X11 会话中运行完美,但在 Wayland 会话中却出现问题。但尽管如此,我还是不清楚这是 Wayland 还是 KDE 的错误。我在 Google 上搜索了qt.qpa.wayland: 创建一个假屏幕以使 Qt 不崩溃,结果只找到了两个参考资料,其中最相关的是:

问题最有可能发生在 Wayland 或 DE 中,因为他们没有关闭门户,

(无论门户是什么)。但在这里,对于真正的罪魁祸首也没有达成共识。

有人能帮忙吗?我很困惑,谢谢。

kde
  • 1 1 个回答
  • 89 Views

1 个回答

  • Voted
  1. Best Answer
    eyoung100
    2025-02-20T07:30:18+08:002025-02-20T07:30:18+08:00

    什么是 Wayland?

    和 OP 一样,我以为 Wayland 是软件,但在谷歌搜索后,我发现了Wayland 协议。Linux 生态系统正在将 X 服务器转换为更接近MVC 范式。PHP 多年来一直在使用像Laravel一样大的框架和像Slim一样小的框架来实现 MVC 。

    这一变化对 Linux 有何影响

    如果我们将桌面环境分解成几个部分以匹配 MVC 范例,那么我们会得到:

    1. M - 模型:Wayland
    2. V - 视图:合成器 + 监视器
    3. C - 控制器:DE 中用于操纵视图的各种软件组件。

    MVC 数据流

    感谢Geeks For Geeks提供的图片。该图显示了数据的连续流动以及每个部分如何与其他部分以及数据交互。在任何桌面环境中,Wayland 都是模型。组成该模型的软件与桌面无关,这意味着 Wayland 不关心您使用什么桌面,因为其 C 实现提供的协议以完全相同的方式在照片中所示的项目之间传递相同的数据,而不管用户选择哪种桌面。这个模型可能并不完美,但无论如何,我们现在只需要排除 2 个故障,即视图和控制器。

    就像大多数刚开始使用 Linux 的用户一样,我只想要一个可以工作的 GUI,所以我按照 XOrg Server 的安装说明操作,并在其上堆叠了 GUI/GNOME。我没有看代码,我只希望它能工作,并不关心细节。我确实知道修复和维护它可能是一个笨重的烂摊子,但我还是不在乎。随着新硬件、更多 RAM 等的出现,我确信在某个时候 X11 代码库会变得越来越难以维护,出于对新事物的需求,Wayland 诞生了。

    作为一名 NVIDIA 用户,我同意 OP 的观点,而且 NVIDIA 本身也一直在缓慢地采用 Wayland,但现在这种缓慢的步伐已经不重要了,因为我无法再禁用 Gentoo Box 上的 Wayland 支持,否则我会陷入与 OP 类似的境地。

    现在去哪里?排除控制器故障

    我故意省略了视图,因为视图是愚蠢的组件。合成器所做的唯一事情就是绘制屏幕上的内容的输出,而监视器作为视图的最后一部分,甚至更愚蠢。剩下的就是控制器组件。在 OP 的例子中,它是:kscreen-doctor。

    知道了这一点,也知道了让显示器进入睡眠状态会有什么作用,我就知道该搜索什么了。当屏幕进入睡眠状态时,屏幕上绘制的项目(即视图组件中的合成器将绘制的项目)将被发送到 RAM,并存储在那里,直到屏幕被唤醒,RAM 被清空,对象被重新绘制。

    为了将绘制的项目存储在 RAM 中,需要拍摄快照(就像照相机拍摄的照片一样)。然后,该照片会发送到控制器,控制器会将照片发送到模型,唤醒过程则按相反顺序进行。

    发生了什么事?

    在 OP 的案例中(也是我的情况),照片被拍摄后发送给控制器,当控制器试图告诉模型存储照片以便稍后唤醒时,照片就中断了。这种中断发生在屏幕变黑的 10 秒左右。我在这里找到了所有这些:

    KDE 错误追踪器

    其中有一个错误列表,以及指向 Tracker Bug Summary - Plasma/Wayland 已知重大问题的链接,现在我引用:

    原生 Wayland 窗口无法保存和恢复其窗口位置;KWin 需要这样做

    稍后在页面上:

    原生 Wayland 窗口没有会话恢复:
    https://bugs.kde.org/show_bug.cgi? id=436318
    https://invent.kde.org/plasma/kwin/-/issues/113。

    我们的会话管理恢复引擎基于 X 会话管理协议,目前在 Wayland 上显然没有通用概念来实现它。但在 Qt 上它是可插件的,GNOME 已经有自己的实现一段时间了。可能的解决方法:改用休眠(挂起到磁盘)。

    不幸的是,引用的段落意味着,自愿担任编码员的人将需要重写 KDE 的会话管理器,使其不基于X11 会话管理协议,和/或编写插件。查看该协议的标题,该协议已有 23 年历史,已部分/全部内置于 GNOME 中(由于所有可能的提及,我无法通过扫描文档来判断),并且不存在于 KDE 中。

    • 4

相关问题

  • KDE等离子消失面板设置

  • 运行“setxkbmap il”并注销后无法重新登录桌面环境

  • 某些文本在 Google Chrome 中字体错误且未对齐

  • Firefox 57 插件窗口无法绘制内容 - 仅在 Linux 上。任何用户解决方法?

  • Krename:如何为每个文件夹重新编号?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve