Bug 467703 - I got locked out from my account after closing and opening my laptop lid.
Summary: I got locked out from my account after closing and opening my laptop lid.
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.3
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-22 20:07 UTC by John van Spaandonk
Modified: 2024-06-28 03:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John van Spaandonk 2023-03-22 20:07:35 UTC
SUMMARY
I have a DELL xps 15 (l501x)  laptop with KDE (Fedora 37 with plasma 27.3). I closed the lid and immediately opened it after the display went dark. At this point  my session was locked with a black screen. I killed the power by holding the power button. 

Since then I cannot login to that account anymore (I get to the login screen, can enter the credentials and press enter, after this the black screen)

As a workaround I I created a new user (after logging in as root) and that user works fine.
Following a suggestion at reddit.com/r/kde I used the new account to type (as root)  loginctl unlock-sessions
but this did not help.

Perhaps there is a config file or something that I need to delete? I would like to be able to access my account in KDE, I did not expect it was so easy to get locked out :-(

STEPS TO REPRODUCE
1. cl.ose laptop lid
2. open laptop lid immediately after the screen goes dark.


OBSERVED RESULT
Black screen, no response to keypresses. Cannot use the virtual terminals CTRL-F1 etc.
CTRL-F2 shows the login screen grayed out, but unresponsive. Laptop fan is blowing and I see
some disk activity. It is almost as if the session is started normally but there is a problem with the power state so the display does not work. 
How to reset this?

EXPECTED RESULT
Computer is either asleep (flashing on-button, I should be able to press the button once to wake up) OR wakes up. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
The laptop has (in Fedora) two screens, the primary screen uses the graphics of the intel processor, the secondary screen uses an nvidea graphics card. Not sure if this info is useful...
Comment 1 John van Spaandonk 2023-03-23 05:31:54 UTC
In the session (looking at a black screen), I can press CTRL-ALT-DEL and then enter, and the computer shuts down. Perhaps everything is running, but it is just the screen that is black?
Comment 2 John van Spaandonk 2023-03-23 06:15:04 UTC
Additional information:
1. After I log in, I see the monitor backlight switch off, as when the monitor goes to sleep. 
The monitor then stays off and also does not wake on key strokes or mouse movement.

2.
I can press CTRL-ALT-DEL and then enter to log out, or I can press the power button once, which I configured to shut down. Then the laptop shuts down. 

Perhaps the session starts and runs normally, but somehow KDE causes the backlight of the monitor to switch off, exactly like it did when I closed the lid the last time that it still was switched on. 
But the backlight is now stuck in this position and also KDE does not wake up the monitor anymore. 
How to restore the power configuration without removing the user account?
I tried moving my .config directory to .config_old but this did has no effect on the problem.
Comment 3 John van Spaandonk 2023-03-26 08:55:05 UTC
I finally managed to solve this by choosing X11 instead of Wayland.
So the conclusion, which I verified multiple times, is that something related to Wayland, and outside of the .config directory, causes my screen to go black immediately after logging in. 
I changed the component to plasma-wayland-protocols, that is the only one that seemed to fit.
Comment 4 Aleix Pol 2023-03-27 00:26:33 UTC
Please enter which version you are referring to.
Comment 5 David Edmundson 2023-03-28 13:03:31 UTC
from the x11 session please run kwin_wayland and see if a nested kwin can be launched or if it provides some more actionable errors.
Comment 6 John van Spaandonk 2023-04-02 18:36:31 UTC
[john@fedora ~]$ kwin_wayland
[a window opens saying ...... press right control key to grab input, the following is the command line output]
No backend specified, automatically choosing X11 because DISPLAY is set
kf.globalaccel.kglobalacceld: Failed to register service org.kde.kglobalaccel
OpenGL vendor string:                   Intel
OpenGL renderer string:                 Mesa Intel(R) HD Graphics (ILK)
OpenGL version string:                  2.1 Mesa 22.3.7
OpenGL shading language version string: 1.20
Driver:                                 Intel
GPU class:                              Unknown
OpenGL version:                         2.1
GLSL version:                           1.20
Mesa version:                           22.3.7
Linux kernel version:                   6.2.8
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_core: eglPostSubBufferNV not supported, have to enable buffer preservation - which breaks v-sync and performance
kwin_core: Parse error in tiles configuration for monitor "d3b3d9bc-06de-5748-bbfe-56dd26acb3ce" : "illegal value" Creating default setup
kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Comment 7 Bug Janitor Service 2023-04-17 03:45:35 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 John van Spaandonk 2023-04-17 06:27:47 UTC
apparently I forgot to set the state to reported.
Comment 9 David Edmundson 2024-05-29 10:32:21 UTC
This bug is a crash report that is over a year old without any activity, as our software is always changing, the information in this ticket is unlikely to still be useful.

If this issue is still reproducible in a newer version of kwin (5.27.5 or 6.0) please reopen this ticket with a bumped version number or it will be closed in 30 days.
Comment 10 Bug Janitor Service 2024-06-13 03:47:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2024-06-28 03:48:01 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!