| Summary: | Screen does not turn back on after Powerdevil turns it off. | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | stevenmcfeely42 |
| Component: | platform-drm | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | jpetso, kde, natalie_clarius, re.play, xaver.hugl |
| Priority: | NOR | Keywords: | qt6 |
| Version First Reported In: | 6.0.4 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | journalctl output covering the screen turning off and not turning back on | ||
|
Description
stevenmcfeely42
2024-03-17 01:02:58 UTC
The issue still exists in 6.0.3. Same issue here. Googling around a bit, I found that Mutter had an issue that was extremely similar to this. They never found the exact cause, but had a Mutter specific workaround. Perhaps that could be useful for narrowing this down? https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1968040 Updated to 6.0.4 late last week, but the issue still appears to occur. For later convenience, the error portion of the log goes as follows. Apparently kscreenlocker_greet does not have a valid EGL surface to draw its contents on (preceded by a few potentially unrelated pipewire errors): Mar 12 12:41:38 smcfeely-desktop wireplumber[2238]: <WpPortalPermissionStorePlugin:0x62c09124b2d0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera Mar 12 12:41:38 smcfeely-desktop pipewire[2229]: [0:34:16.149552308] [2229] ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found Mar 12 12:41:38 smcfeely-desktop pipewire[2229]: [0:34:16.149561108] [2229] ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid info Mar 12 12:41:38 smcfeely-desktop pipewire[2229]: [0:34:16.149575598] [2229] INFO Camera camera_manager.cpp:284 libcamera v0.2.0 Mar 12 12:41:38 smcfeely-desktop wireplumber[2238]: <WpPortalPermissionStorePlugin:0x62c09124b2d0> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera Mar 12 12:41:46 smcfeely-desktop kscreenlocker_greet[3770]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/NoPasswordUnlock.qml:26: ReferenceError: tryToSwitchUser is not defined Mar 12 12:41:48 smcfeely-desktop kscreenlocker_greet[3770]: qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0 Mar 12 12:41:48 smcfeely-desktop kscreenlocker_greet[3770]: qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000) Mar 12 12:41:49 smcfeely-desktop kscreenlocker_greet[3770]: Failed to write to the pipe: Bad file descriptor. Although the undefined tryToSwitchUser error may not be linked to the EGL stuff, potentially also worth investigating. (In reply to Re Play from comment #2) > Same issue here. Googling around a bit, I found that Mutter had an issue > that was extremely similar to this. They never found the exact cause, but > had a Mutter specific workaround. Perhaps that could be useful for narrowing > this down? https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1968040 I don't know about possible causes at this point, but it looks like KWin's equivalent to MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0 is KWIN_DRM_NO_AMS=1 looking at the code. If you think this is worth trying, you could set it for KWin's systemd unit (`systemctl --user edit plasma-kwin_wayland.service`): ### Editing /home/kpetso/.config/systemd/user/plasma-kwin_wayland.service.d/override.conf ### Anything between here and the comment below will become the contents of the drop-in file [Service] Environment="KWIN_DRM_NO_AMS=1" ### Edits below this comment will be discarded (In reply to Jakob Petsovits from comment #4) > For later convenience, the error portion of the log goes as follows. > Apparently kscreenlocker_greet does not have a valid EGL surface to draw its > contents on (preceded by a few potentially unrelated pipewire errors): > > Mar 12 12:41:38 smcfeely-desktop wireplumber[2238]: > <WpPortalPermissionStorePlugin:0x62c09124b2d0> Failed to call Lookup: > GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera > Mar 12 12:41:38 smcfeely-desktop pipewire[2229]: [0:34:16.149552308] [2229] > ERROR IPAModule ipa_module.cpp:172 Symbol ipaModuleInfo not found > Mar 12 12:41:38 smcfeely-desktop pipewire[2229]: [0:34:16.149561108] [2229] > ERROR IPAModule ipa_module.cpp:292 v4l2-compat.so: IPA module has no valid > info > Mar 12 12:41:38 smcfeely-desktop pipewire[2229]: [0:34:16.149575598] [2229] > INFO Camera camera_manager.cpp:284 libcamera v0.2.0 > Mar 12 12:41:38 smcfeely-desktop wireplumber[2238]: > <WpPortalPermissionStorePlugin:0x62c09124b2d0> Failed to call Lookup: > GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera > Mar 12 12:41:46 smcfeely-desktop kscreenlocker_greet[3770]: > file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/ > lockscreen/NoPasswordUnlock.qml:26: ReferenceError: tryToSwitchUser is not > defined > Mar 12 12:41:48 smcfeely-desktop kscreenlocker_greet[3770]: qt.qpa.wayland: > eglSwapBuffers failed with 0x300d, surface: 0x0 > Mar 12 12:41:48 smcfeely-desktop kscreenlocker_greet[3770]: qt.qpa.wayland: > Could not create EGL surface (EGL error 0x3000) > Mar 12 12:41:49 smcfeely-desktop kscreenlocker_greet[3770]: Failed to write > to the pipe: Bad file descriptor. > > Although the undefined tryToSwitchUser error may not be linked to the EGL > stuff, potentially also worth investigating. > > (In reply to Re Play from comment #2) > > Same issue here. Googling around a bit, I found that Mutter had an issue > > that was extremely similar to this. They never found the exact cause, but > > had a Mutter specific workaround. Perhaps that could be useful for narrowing > > this down? https://bugs.launchpad.net/ubuntu/+source/mutter/+bug/1968040 > > I don't know about possible causes at this point, but it looks like KWin's > equivalent to MUTTER_DEBUG_ENABLE_ATOMIC_KMS=0 is KWIN_DRM_NO_AMS=1 looking > at the code. If you think this is worth trying, you could set it for KWin's > systemd unit (`systemctl --user edit plasma-kwin_wayland.service`): > > ### Editing > /home/kpetso/.config/systemd/user/plasma-kwin_wayland.service.d/override.conf > ### Anything between here and the comment below will become the contents of > the drop-in file > > [Service] > Environment="KWIN_DRM_NO_AMS=1" > > ### Edits below this comment will be discarded I have been testing this for the past 48 hours and it appears to work. Setting Environment="KWIN_DRM_NO_AMS=1" allows my desktop's monitor to properly wake up. (In reply to stevenmcfeely42 from comment #5) > I have been testing this for the past 48 hours and it appears to work. > Setting Environment="KWIN_DRM_NO_AMS=1" allows my desktop's monitor to > properly wake up. Thanks for testing. Let's reassign the bug report to KWin in that case. Can you check whether kwin prints something in the logs? `journalctl --boot --user-unit plasma-kwin_wayland` . Sorry for the late reply, but I just got back from a trip earlier this week. I deleted the drop-in file located at '/home/smcfeely/.config/systemd/user/plasma-kwin_wayland.service.d/override.conf' and then rebooted the machine. However, for the past five days the issue has not reoccurred. It appears as though it was fixed sometime between the last time I tested, either 6.1 or 6.1.1, and 6.1.5. I have also just tested the newly released 6.2 and the problem has not occurred with it either. For reference, the contents of the drop file were: ### Editing /home/smcfeely/.config/systemd/user/plasma-kwin_wayland.service.d/override.conf ### Anything between here and the comment below will become the contents of the drop-in file [Service] Environment="KWIN_DRM_NO_AMS=1" ### Edits below this comment will be discarded Alright, then let's mark this as resolved for now. If you encounter the same issue again, please reopen the bug. |