View previous topic :: View next topic |
Author |
Message |
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 315
|
Posted: Fri Aug 07, 2015 10:27 am Post subject: KDE failed to unlock after locked |
|
|
Hi,
My system is KDE 5, Plasma, up to date. I can start and log in the DE successfully. But if I lock the screen, either by issue a screen lock or put the computer to sleep. I won't be able to unlock the screen.
The error is "Unlock failed". From the journal, it says authentication failed...but I am pretty sure I typed in the correct log in password, and I did not set a dedicated screen lock password. _________________ David Shen |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3934 Location: Hamburg
|
Posted: Fri Aug 07, 2015 11:46 am Post subject: |
|
|
And you didn't used an "Y" at a german keyboard - whilst a (assumed to be buggy) screen locker switched to US or <foo bar> layout while being in locked state? |
|
Back to top |
|
|
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 315
|
Posted: Fri Aug 07, 2015 3:34 pm Post subject: |
|
|
Well~ that is possible. But from the lock screen, I don't think I can switch keyboard layout. I always use US keyboard layout. _________________ David Shen |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3934 Location: Hamburg
|
Posted: Fri Aug 07, 2015 5:58 pm Post subject: |
|
|
Just curious - do you use sddm as login manager ? |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9135
|
Posted: Fri Aug 07, 2015 6:00 pm Post subject: |
|
|
Try to re-emerge pam. |
|
Back to top |
|
|
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 315
|
Posted: Sat Aug 08, 2015 12:37 am Post subject: |
|
|
toralf wrote: | Just curious - do you use sddm as login manager ? |
Yes, I do...bad idea? _________________ David Shen |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3934 Location: Hamburg
|
Posted: Sat Aug 08, 2015 8:19 am Post subject: |
|
|
davidshen84 wrote: | toralf wrote: | Just curious - do you use sddm as login manager ? |
Yes, I do...bad idea? | Nope - I used it too.
But there's a nifty issue - it shows me a keyboard layout of "us" - but my german works perfekt (after login).
Even more when I changed that to "de" - then within KDE my keyboard looks like "us". |
|
Back to top |
|
|
davidshen84 Guru
Joined: 09 Aug 2008 Posts: 315
|
Posted: Sat Aug 08, 2015 1:59 pm Post subject: |
|
|
After a long time, i figured it out. It is because NetworkManager changed my hostname after it connected to my WIFI. And for some reason, the screen locker relies on my static hostname.
Any idea why NM changes my host name? _________________ David Shen |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2052 Location: United Kingdom
|
Posted: Sat Aug 08, 2015 7:18 pm Post subject: |
|
|
You need to specify the hostname in the file /etc/NetworkManager/NetworkManager.conf. For example, the hostname of my laptop is clevow230ss so my NetworkManager.conf looks like the following:
Code: | [main]
plugins=keyfile
rc-manager=none
dhcp=dhclient
no-auto-default=*
[keyfile]
hostname=clevow230ss |
(I merged NetworkManager with USE flags "-dhcpcd" and "dhclient" but if you are merged NetworkManager with "dhcpcd" and "-dhclient" then put "dhcp=dhcpcd" instead of "dhcp=dhclient" in NetworkManager.conf.) _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
kakarot n00b
Joined: 02 Feb 2004 Posts: 10
|
Posted: Thu Jan 04, 2018 10:59 am Post subject: |
|
|
Although this thread is 2 years old, I have to add this for reference.
I migrated to an SSD EVO 250 using tar...
The new system is now on btrfs with subvolumes
The profile is 17 with plasma.
The migration went smoothly, login on sddm was ok but when plasma locks I couldn't login back.
The solution that worked was to re-emerge pam, as mentioned by asturm.
Thanks. |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2052 Location: United Kingdom
|
Posted: Thu Jan 04, 2018 1:37 pm Post subject: |
|
|
davidshen84 wrote: | After a long time, i figured it out. It is because NetworkManager changed my hostname after it connected to my WIFI. And for some reason, the screen locker relies on my static hostname.
Any idea why NM changes my host name? |
Fitzcarraldo wrote: | You need to specify the hostname in the file /etc/NetworkManager/NetworkManager.conf. For example, the hostname of my laptop is clevow230ss so my NetworkManager.conf looks like the following:
Code: | [main]
plugins=keyfile
rc-manager=none
dhcp=dhclient
no-auto-default=*
[keyfile]
hostname=clevow230ss |
(I merged NetworkManager with USE flags "-dhcpcd" and "dhclient" but if you are merged NetworkManager with "dhcpcd" and "-dhclient" then put "dhcp=dhcpcd" instead of "dhcp=dhclient" in NetworkManager.conf.) |
As this thread has been resurrected today, for the record the hostname is no longer specified in /etc/NetworkManager/NetworkManager.conf -- see NetworkManager.conf(5). These days I set it as detailed in my posts in the thread NetworkManager and hostname config files. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
Aquideon n00b
Joined: 12 Jan 2007 Posts: 4
|
Posted: Fri Aug 03, 2018 3:49 pm Post subject: |
|
|
For information and documentation:
I'm not sure what just happened, but my case is exactly the same as described above by "kakarot".
I just replaced my normal hard drive with an SSD Samsung 860 EVO and could log in after start, but not after "suspend to ram" and "hibernate".
After trying something around I could break down the problem to a simple scenario: Activate the screenlock. Could not login.
A simple "emerge --oneshot pam" did instantly the trick.
For reference:
- migration from HDD to SSD with rsync (on SysRescCD)
- login-manager SDDM 0.18.0
I don't really expect an answer, but there is something very strange going on. |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9135
|
Posted: Sat Aug 04, 2018 11:19 pm Post subject: |
|
|
rsync did not copy xattr filecaps and `emerge -1 pam` restored that. Other things may be broken as well before rebuild. |
|
Back to top |
|
|
Aquideon n00b
Joined: 12 Jan 2007 Posts: 4
|
Posted: Mon Aug 06, 2018 3:13 pm Post subject: |
|
|
Thanks for the explanation asturm. I completely wasn't aware of the xattrs.
As it seems, I missed a lot of stuff/changes with my well-running Gentoo over the last few years.
A comparison of the former and new root file systems revealed, that the xattrs were missing.
I've done the migration with 'rsync -ravHS' and without 'X', which should preserve extended attributes (at least the manpage claims this).
The hint that more things could be broken is very useful. Thank you!
Update/Edit: Just to be sure and avoid further problems I wiped the partition and did a new "rsync -ravHSAX". After reboot the login on a locked screen worked immediately.
Edit: Typo |
|
Back to top |
|
|
|