Bug 484054 - Lock screen sometimes not unlockable
Summary: Lock screen sometimes not unlockable
Status: RESOLVED FIXED
Alias: None
Product: plasma-mobile
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: postmarketOS Linux
: NOR normal
Target Milestone: ---
Assignee: Devin Lin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-20 11:35 UTC by Julian Groß
Modified: 2024-06-23 18:23 UTC (History)
2 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 Julian Groß 2024-03-20 11:35:46 UTC
SUMMARY
Sometimes, the lockscreen will stop accepting keyboard input.
This appears to be a regression in Plasma Mobile 6, since I have never observed it in Plasma Mobile 5.
It may work at first and then just stop while typing. It feels like the input field stops being selectable, since switching to the on-screen number keyboard also doesn't allow any input.


STEPS TO REPRODUCE
1. lock your screen
2. try unlocking
3. sometimes it won't be possible to input the password

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: postmarketOS Edge (updated circa 2024-03-19)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 Devin Lin 2024-03-20 14:37:05 UTC
Both the pin-pad and keyboard stop working? Or just the keyboard? Does pressing the "keyboard" button refocus it?
Comment 2 Devin Lin 2024-03-20 14:38:00 UTC
By tapping on the "keyboard" button I mean the button in the drawer, or just tapping on the password bar.
Comment 3 Julian Groß 2024-03-20 16:26:35 UTC
(In reply to Devin Lin from comment #1)
> Both the pin-pad and keyboard stop working? Or just the keyboard? Does
> pressing the "keyboard" button refocus it?

Both, the pin-pad and the physical keyboard stop working.
I forgot to try the normal on-screen keyboard. I will try to remember next time it happens.
Comment 4 Julian Groß 2024-04-10 06:21:15 UTC
(In reply to Julian Groß from comment #3)
> I forgot to try the normal on-screen keyboard. I will try to remember next
> time it happens.

The normal on-screen keyboard also doesn't work in this scenario.
Comment 5 Devin Lin 2024-04-21 14:32:14 UTC
Have another report from the matrix channel of the same behavior
Comment 6 Julian Groß 2024-05-02 14:59:30 UTC
A workaround on postmarketOS is to type `loginctl unlock-session c1` in a different TTY (Ctrl + Alt + 2), and then switch back (Ctrl + Alt + 1).
This can also be used to test the issue. Unfortunately, I haven't been able to find a sure-fire way of reproducing the issue. I run into it multiple times a day though, so I can try whatever might be needed to figure this one out.
Comment 7 Bug Janitor Service 2024-06-23 17:06:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-mobile/-/merge_requests/511
Comment 8 Devin Lin 2024-06-23 18:22:32 UTC
Git commit e044c84219ff849f8727577a9f7bc123dd1db8c3 by Devin Lin.
Committed on 23/06/2024 at 17:03.
Pushed by devinlin into branch 'master'.

lockscreen: Fix potential cause of input unresponsiveness
This is a potential fix for the input to stop working. There was unused code for passwordless login that could cause the "waitingForAuth" variable to never be set to false after user input.

M  +9    -31   shell/contents/lockscreen/LockScreenState.qml
M  +1    -1    tests/LockScreenTest.qml

https://invent.kde.org/plasma/plasma-mobile/-/commit/e044c84219ff849f8727577a9f7bc123dd1db8c3
Comment 9 Devin Lin 2024-06-23 18:23:58 UTC
Git commit a7d0b0283fba734752024e48282987d580baf886 by Devin Lin.
Committed on 23/06/2024 at 18:23.
Pushed by devinlin into branch 'Plasma/6.1'.

lockscreen: Fix potential cause of input unresponsiveness
This is a potential fix for the input to stop working. There was unused code for passwordless login that could cause the "waitingForAuth" variable to never be set to false after user input.

M  +9    -31   shell/contents/lockscreen/LockScreenState.qml
M  +1    -1    tests/LockScreenTest.qml

https://invent.kde.org/plasma/plasma-mobile/-/commit/a7d0b0283fba734752024e48282987d580baf886