You are not logged in.
Pages: 1
Topic closed
Hi, when i leave my PC with SDDM DM without login for some time it switches screen off. When i want to login i pressed Space (or something else) and pressed key instantly placed into password area. How can i ignore key pressed for awaking? Is it SDDM config or xserver?
linux 5.1.16-1-ck
yay -Q sddm xorg-server plasma-meta
sddm 0.18.1-1
xorg-server 1.20.5-2
plasma-meta 5.16-1
Last edited by hills_of_eternity (2019-07-22 10:12:00)
Offline
How about just pressing a key that doesn't produce a character? ctrl, shift etc...
Or the first letter of your password.
Offline
How about just pressing a key that doesn't produce a character? ctrl, shift etc...
Or the first letter of your password.
I do it for ages, but my GF doesn't )
Offline
"Message" is a required field in this form.
Last edited by linux-mate (2020-01-05 21:57:14)
Offline
hills_of_eternity wrote:Slithery wrote:How about just pressing a key that doesn't produce a character? ctrl, shift etc...
Or the first letter of your password.
I do it for ages, but my GF doesn't )
When screen goes off map space key to ctrl for example and map it back to space when screen comes on, or on first press of it. Or teach your GF not to do it
Offline
This would have to be provided by the client (SDDM) - at least by checking the DPMS condition, but actually (since the latter is non-deterministic as the tested input will also break DPMS) by disabling the DPMS timers and handling DPMS itself (thus knowing the state)
Assuming SDDM doesn't provide that, you could probably stitch xautolock and "xset dpms force off" along some
xterm -geometry 0x0 -e 'bash -c "read -n 1"'
together for some sddm setup script.
No idea whether she's worth that :-P
Offline
This would have to be provided by the client (SDDM) - at least by checking the DPMS condition, but actually (since the latter is non-deterministic as the tested input will also break DPMS) by disabling the DPMS timers and handling DPMS itself (thus knowing the state)
Assuming SDDM doesn't provide that, you could probably stitch xautolock and "xset dpms force off" along some
xterm -geometry 0x0 -e 'bash -c "read -n 1"'
together for some sddm setup script.
No idea whether she's worth that :-P
Actually she doesn't I figured out that issue is much harder than i expected. Let it be as is.
Offline
You could try on it to improve your skills and just tell her you did it out of love.
Certainly nothing I would have ever done, though… >)
Offline
I know this thread is really old, but it was still the first one I found when looking into this problem. I found a pretty simple solution, at least if you don't want to use a space in your password.
Go to /usr/share/sddm/themes/<YourTheme> and open the Main.qml file. Look for the password input field. In most cases, it should be a TextField or PasswordField with an id like "passwordBox," "passwordField," or something similar. Sometimes it's not in the Main.qml file, but in another file like Login.qml.
Remember to make a backup of the theme before editing it!
Now you can just add:
onTextChanged: {
passwordBox.text = passwordBox.text.replace(/\s/g, '');
}
It should look something like this:
PlasmaExtras.PasswordField {
id: passwordBox
font.pointSize: fontSize + 1
Layout.fillWidth: true
onTextChanged: {
passwordBox.text = passwordBox.text.replace(/\s/g, '');
}
placeholderText: i18nd("plasma-desktop-sddm-theme", "Password")
focus: !showUsernamePrompt || lastUserName
// Disable reveal password action because SDDM does not have the breeze icon set loaded
rightActions: []
onAccepted: {
if (root.loginScreenUiVisible) {
startLogin();
}
}
...
I hope this helps a few people who stumble upon this thread like I did.
I'm completely new to this forum. If it isn't allowed to post in old closed threads, please just remove this post.
Last edited by jonathan-dd (2024-06-30 16:48:31)
Offline
Welcome to the forums. We generally discourage posting to old threads, unless it is truly relevant. Sometimes it is a bit grey. Your solution seems relevant, but I hope the OP is not still having the issue
In any event, I am going to use this opportunity to close this old thread.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed