Bug 337079 - sddm theme doesn't focus password field
Summary: sddm theme doesn't focus password field
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Global Theme packages (show other bugs)
Version: 5.4.1
Platform: unspecified Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL: https://github.com/sddm/sddm/issues/612
Keywords:
: 337080 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-04 15:29 UTC by Harald Sitter
Modified: 2020-11-28 23:53 UTC (History)
20 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Sitter 2014-07-04 15:29:59 UTC
when:
- only one user is present
- after logout it will not focus the password field of the recent user which is selected

Reproducible: Always
Comment 1 David Edmundson 2014-07-07 10:18:59 UTC
You say, after logout. Does it work correctly the first time?
Comment 2 Harald Sitter 2014-07-07 10:28:50 UTC
No, also broken on first start.
Comment 3 Harald Sitter 2014-07-08 20:30:01 UTC
*** Bug 337080 has been marked as a duplicate of this bug. ***
Comment 4 David Edmundson 2014-07-08 21:03:29 UTC
Git commit dfc4b8b2a0e2b012f68f0192e29081ee230e8c03 by David Edmundson.
Committed on 08/07/2014 at 21:04.
Pushed by davidedmundson into branch 'master'.

force focus onto password input

Not code I'm happy with, but we need a bodge before release

M  +11   -0    lookandfeel/contents/loginmanager/Main.qml

http://commits.kde.org/plasma-workspace/dfc4b8b2a0e2b012f68f0192e29081ee230e8c03
Comment 5 Peter Lewis 2015-05-09 13:34:23 UTC
Just installed Plasma 5 and SDDM on Archlinux for the first time, and this bug is present for me still.

SDDM version 0.11.0, Plasma 5.3.

Can provide more info if needed.
Comment 6 Ingmar Vanhassel 2015-06-01 10:31:53 UTC
Same problem as comment #5 here
The Lockscreen still doesn't focus the Password input field.
Using 5.3.1
Comment 7 Chris 2015-09-19 20:20:53 UTC
This is happening to me with SDDM 0.12.0, Plasma 5.4.1.
Comment 8 Quentin 2015-09-21 21:24:01 UTC
As saif Chris on comment #7, it's happening to me too on sddm 0.12.0 and plasma 5.4.1
Comment 9 Janek Bevendorff 2015-09-23 16:12:21 UTC
Confirmed on 5.4.1
Comment 10 Mika Norén 2015-09-27 17:52:10 UTC
I can also confirm this.

Arch Linux
sddm 0.12.0-2
plasma 5.4.1-1
Comment 11 gritzer.roland 2015-10-07 19:30:21 UTC
I have two computers with Arch Linux running both with SDDM 0.12.0 and Plasma 5.4.1.
On my notebook everything works as expected.
On my desktop the bug appears as described.
Comment 12 benjo316 2015-10-22 07:14:00 UTC
I can confirm this on ArchLinux with theme maui on sddm 0.12.0-4 and plasma 5.4.2
With theme breeze, the password entry field is focused by default, but with maui it's not, and there's no way to focus it with the keyboard, as far as I can tell.
Comment 13 Martin Kho 2015-10-22 16:46:14 UTC
Hi,

I've installed Fedora23 beta TC7:
1. Bare metal, AMD radeon Turks graphics card and two monitors -> no focus, sddm only shows up on the primairy screen. Secondairy screen is black, /w x-mouse cursor.
2. Virtual machine, qlx 'graphics' card' and one 'monitor/screen' -> focus is okay.

So may be used graphics card and/or number of monitors can be relevant?

HTH

Martin Kho
Comment 14 Janek Bevendorff 2015-10-22 16:50:34 UTC
I don't think so. I have the exact same issues and I'm on an NVIDIA
GTX960 w/ proprietary drivers.
I guess it has rather something to do with dual monitor setups (but that
is also just a wild guess).
Comment 15 benjo316 2015-10-22 16:54:08 UTC
No, only one monitor here.
AMD R9 270x, FOSS drivers.
Comment 16 alohaeh 2015-11-01 21:05:38 UTC
It worked after I copied the cludge from comment #4 into /usr/lib64/qt5/qml/SddmComponents/PasswordBox.qml

    TextBox {
        id: txtMain
        width: parent.width; height: parent.height
        font.pixelSize: 14
        echoMode: TextInput.Password
        focus: true
        Timer {
           interval: 200
           running: true
           onTriggered: txtMain.forceActiveFocus()
        }
    }
Comment 17 Hugo Parente Lima 2016-01-29 15:40:07 UTC
No focus to me too on start-up.

sddm 0.13.0-2
plasma 5.5.4

notebook + monitor
Comment 18 Alessandro 2016-06-03 07:44:18 UTC
Same problem here. Adding David's hack to `/usr/lib64/qt5/qml/SddmComponents/PasswordBox.qml` fixes it.

sddm 0.13.0
plasma 5.5.5
Comment 19 David Edmundson 2016-06-18 13:27:23 UTC
>Same problem here. Adding David's hack to `/usr/lib64/qt5/qml/SddmComponents/PasswordBox.qml` fixes it.

If you're doing it there, you're not using the Breeze theme at which point this isn't the right place to report it.

If someone has this with the Breeze theme. Please reopen. For any other theme report it to SDDM.
Comment 20 Björn Lindqvist 2016-08-28 21:34:31 UTC
I have this problem and I'm using the Breeze theme. So I think we should reopen this bug.
Comment 21 Dennis Schridde 2016-08-28 21:46:59 UTC
(In reply to Björn Lindqvist from comment #20)
> I have this problem and I'm using the Breeze theme. So I think we should
> reopen this bug.

Which versions of Plasma Breeze and SDDM are you using?
Comment 22 Björn Lindqvist 2016-08-28 21:54:11 UTC
sddm: 0.13.0-3  breeze: 5.7.3-1
Comment 23 Nicolas Dietrich 2016-09-17 17:27:21 UTC
I also have this issue on sddm-0.13.0 from xenial with neon/stable.

Why is this resolved as invalid? To many of us, this issue is still present, please reopen.
Comment 24 Nicolas Dietrich 2016-09-17 17:44:56 UTC
Addendum: I only have the issue with the Maui theme, with the Breeze theme the focus is set as intended.
Comment 25 Christian Bueno 2016-10-13 20:24:51 UTC
(In reply to alohaeh from comment #16)
> It worked after I copied the cludge from comment #4 into
> /usr/lib64/qt5/qml/SddmComponents/PasswordBox.qml
> 
>     TextBox {
>         id: txtMain
>         width: parent.width; height: parent.height
>         font.pixelSize: 14
>         echoMode: TextInput.Password
>         focus: true
>         Timer {
>            interval: 200
>            running: true
>            onTriggered: txtMain.forceActiveFocus()
>         }
>     }

hello how do you know that that portion of code have to be there. I want to learn every day.
Comment 26 Christian Bueno 2016-10-13 20:45:29 UTC
(In reply to David Edmundson from comment #4)
> Git commit dfc4b8b2a0e2b012f68f0192e29081ee230e8c03 by David Edmundson.
> Committed on 08/07/2014 at 21:04.
> Pushed by davidedmundson into branch 'master'.
> 
> force focus onto password input
> 
> Not code I'm happy with, but we need a bodge before release
> 
> M  +11   -0    lookandfeel/contents/loginmanager/Main.qml
> 
> http://commits.kde.org/plasma-workspace/
> dfc4b8b2a0e2b012f68f0192e29081ee230e8c03

How can we use that portion of code?.  
If not because they said that we have add that portion of code  there
 `/usr/lib64/qt5/qml/SddmComponents/PasswordBox.qml`
I would not know where tho add that.
Comment 27 Christian Bueno 2016-10-13 23:53:58 UTC
My quick solution
Thanks to YouTuber [Horacio Ros](https://goo.gl/4oJZqH)
When you are already front to lock screen, type:
Ctrl+Alt+F2
type your user and password
type the following to install gdm
sudo pacman -S gdm
after type
sudo systemctl disable lightdm
sudo systemctl enable gdm
After type 
reboot
Comment 28 Christian Bueno 2016-10-13 23:56:18 UTC
(In reply to Christian Bueno from comment #27)
> My quick solution
> Thanks to YouTuber [Horacio Ros](https://goo.gl/4oJZqH)
> When you are already front to lock screen, type:
> Ctrl+Alt+F2
> type your user and password
> type the following to install gdm
> sudo pacman -S gdm
> after type
> sudo systemctl disable lightdm
> sudo systemctl enable gdm
> After type 
> reboot

I forgotten , OS: Antergos (Arch linux) with Desktop KDE plasma 5.8
Comment 29 Nate Graham 2020-11-28 23:53:26 UTC
Needs to be fixed generically in SDDM. See https://github.com/sddm/sddm/issues/612