Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autologin problem after mintupgrade from 21.3 to 22 (Cinnamon) #108

Open
enigma131 opened this issue Aug 20, 2024 · 5 comments
Open

Autologin problem after mintupgrade from 21.3 to 22 (Cinnamon) #108

enigma131 opened this issue Aug 20, 2024 · 5 comments

Comments

@enigma131
Copy link

Hi,
I have successfully upgrade via mintupgrade to latest version.
All is working fine except autologin problem, it was working perfect on previous version.
Each time I restart the computer, it ask me for login password, I don't want this because I'm the only user.
GUI setting is OK and same as before, and lightdm.conf is ok too.
Via new Wayland (experimental), autologin is working ..but I need x11.
I have done a forum thread there, but only response is to revert V 21.3 ... :
https://forums.linuxmint.com/viewtopic.php?p=2512577#p2512577
I think It's a bug from upgrade process.
How to solve this issue ?

ps: I have fisrt post in wrong section

@ThoreauHenry
Copy link

Same issue as well. At first it was a black screen, booted to rescue kernel. All fine there. Feels like there is a stale package, or not all packages were installed/configured properly.

lightdm-autologin-greeter doesn't seem to do squat whether it's installed or removed. The gui doesn't do anything either. Modifying /etc/lightdm/lightdm.conf.d/lightdm-autologin-greeter.conf and /etc/lightdm/lightdm.conf does nothing, even though it's configured to mirror working installs.

I don't know what's going on, but something is preventing it from working and half the time it just black screens.
This was an upgrade from 21.3.

Here is my hardware info for posterity:

$ inxi -F
\System:
Host:blackbox Kernel: 6.8.0-41-generic arch: x86_64 bits: 64
Desktop: Cinnamon v: 6.2.9 Distro: Linux Mint 22 Wilma
Machine:
Type: Laptop System: LENOVO product: 82UG v: Legion S7 16ARHA7
serial:
Mobo: LENOVO model: LNVNB161216 v: SDK0T76461 WIN
serial: UEFI: LENOVO v: KFCN40WW date: 04/11/2024
Battery:
ID-1: BAT0 charge: 71.6 Wh (97.9%) condition: 73.1/71.0 Wh (102.9%)
CPU:
Info: 8-core model: AMD Ryzen 9 6900HX with Radeon Graphics bits: 64
type: MT MCP cache: L2: 4 MiB
Speed (MHz): avg: 894 min/max: 400/4935 cores: 1: 400 2: 400 3: 1933
4: 400 5: 3448 6: 400 7: 400 8: 400 9: 2744 10: 400 11: 400 12: 400 13: 400
14: 400 15: 400 16: 1386
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6650 XT / 6700S 6800S] driver: amdgpu
v: kernel
Device-2: AMD Rembrandt [Radeon 680M] driver: amdgpu v: kernel
Device-3: Chicony Integrated Camera driver: uvcvideo type: USB
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi
gpu: amdgpu resolution: 3408x2130~165Hz
API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
platforms: gbm,x11,surfaceless,device
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: PPA renderer: AMD
Radeon 680M (radeonsi rembrandt LLVM 17.0.6 DRM 3.57 6.8.0-41-generic)
API: Vulkan v: 1.3.290 drivers: N/A surfaces: xcb,xlib
Audio:
Device-1: AMD Navi 21/23 HDMI/DP Audio driver: snd_hda_intel
Device-2: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: snd_pci_acp6x
Device-4: AMD Family 17h/19h HD Audio driver: snd_hda_intel
API: ALSA v: k6.8.0-41-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active
Network:
Device-1: Intel Wi-Fi 6E AX210/AX1675 2x2 [Typhoon Peak] driver: iwlwifi
IF: wlp4s0 state: up mac: xxxxxxxxxxx
Bluetooth:
Device-1: Intel AX210 Bluetooth driver: btusb type: USB
Report: hciconfig ID: hci0 state: up address: xxxxxxxxx bt-v: 5.3
Drives:
Local Storage: total: 1.82 TiB used: 829.11 GiB (44.5%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 990 PRO 2TB size: 1.82 TiB
Partition:
ID-1: / size: 1.6 TiB used: 829.01 GiB (50.7%) fs: ext4 dev: /dev/nvme0n1p4
ID-2: /boot/efi size: 1022 MiB used: 99.8 MiB (9.8%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) file: /swapfile
Sensors:
System Temperatures: cpu: 47.1 C mobo: N/A
Fan Speeds (rpm): N/A
GPU: device: amdgpu temp: 36.0 C device: amdgpu temp: 36.0 C fan: 0
Info:
Memory: total: 16 GiB note: est. available: 14.81 GiB used: 3.18 GiB (21.5%)
Processes: 403 Uptime: 14m Shell: Bash inxi: 3.3.34

Boot errors due to garbage commodity bios:

$ sudo dmesg | grep -i error
[ 2.707378] RAS: Correctable Errors collector initialized.
[ 2.707712] ACPI BIOS Error (bug): Could not resolve symbol [_SB.PCI0.LPC0.EC0.OKEC], AE_NOT_FOUND (20230628/psargs-330)
[ 2.707734] ACPI Error: Aborting method _SB.GPIO._EVT due to previous error (AE_NOT_FOUND) (20230628/psparse-529)
[ 3.006659] ACPI Error: No handler for Region [ECSI] (000000002a7e2fe8) [EmbeddedControl] (20230628/evregion-130)
[ 3.006717] ACPI Error: Region EmbeddedControl (ID=3) has no handler (20230628/exfldio-261)
[ 3.006790] ACPI Error: Aborting method _SB.UBTC.ECRD due to previous error (AE_NOT_EXIST) (20230628/psparse-529)
[ 3.006806] ACPI Error: Aborting method _SB.UBTC._DSM due to previous error (AE_NOT_EXIST) (20230628/psparse-529)
[ 4.180784] ucsi_acpi: probe of USBC000:00 failed with error -5
[ 5.784186] legion_laptop: Error WMI call for reading brightness: expected a value between 1 and 2, but got 0
[ 5.784189] legion_laptop: Error reading brightness for light: 5

journald errors:

$ journalctl -p 3 -xb
Aug 22 00:49:22 blackbox kernel: ACPI BIOS Error (bug): Could not resolve symbol [_SB.PCI0.LPC0.EC0.OKEC], AE_NOT_FOUND (20230628/>
Aug 22 00:49:22 blackbox kernel: ACPI Error: Aborting method _SB.GPIO._EVT due to previous error (AE_NOT_FOUND) (20230628/psparse->
Aug 22 00:49:22 blackbox kernel: hub 6-0:1.0: config failed, hub doesn't have any ports! (err -19)
Aug 22 00:49:22 blackbox kernel: ACPI Error: No handler for Region [ECSI] (000000002a7e2fe8) [EmbeddedControl] (20230628/evregion-1>
Aug 22 00:49:22 blackbox kernel: ACPI Error: Region EmbeddedControl (ID=3) has no handler (20230628/exfldio-261)
Aug 22 00:49:22 blackbox kernel: ACPI Error: Aborting method _SB.UBTC.ECRD due to previous error (AE_NOT_EXIST) (20230628/psparse->
Aug 22 00:49:22 blackbox kernel: ACPI Error: Aborting method _SB.UBTC._DSM due to previous error (AE_NOT_EXIST) (20230628/psparse->
Aug 22 00:49:22 blackbox kernel: ucsi_acpi USBC000:00: ucsi_acpi_dsm: failed to evaluate _DSM 2
Aug 22 00:49:22 blackbox systemd-udevd[433]: /etc/udev/rules.d/60-brother-libsane-type1-inst.rules:14 Invalid key 'SYSFS'.
Aug 22 00:49:23 blackbox kernel: Bluetooth: hci0: No dsm support to set reset delay
Aug 22 00:49:24 blackbox kernel: iwlwifi 0000:04:00.0: WRT: Invalid buffer destination
Aug 22 00:49:25 blackbox kernel: Bluetooth: hci0: Malformed MSFT vendor event: 0x02
Aug 22 00:49:25 blackbox bluetoothd[1054]: profiles/sap/server.c:sap_server_register() Sap driver initialization failed.
Aug 22 00:49:25 blackbox bluetoothd[1054]: sap-server: Operation not permitted (1)
Aug 22 00:49:25 blackbox systemd-udevd[433]: /etc/udev/rules.d/60-brother-libsane-type1-inst.rules:14 Invalid key 'SYSFS'.
Aug 22 00:49:25 blackbox systemd-udevd[433]: /etc/udev/rules.d/60-brother-libsane-type1-inst.rules:14 Invalid key 'SYSFS'.
Aug 22 00:49:25 blackbox kernel: iwlwifi 0000:04:00.0: WRT: Invalid buffer destination
Aug 22 00:49:32 blackbox systemd-coredump[2375]: [🡕] Process 1367 (Xorg) of user 0 dumped core.

                                             Module libzstd.so.1 from deb libzstd-1.5.5+dfsg2-2build1.amd64
                                             Module libsystemd.so.0 from deb systemd-255.4-1ubuntu8.2.amd64
                                             Module libudev.so.1 from deb systemd-255.4-1ubuntu8.2.amd64
                                             Stack trace of thread 1367:
                                             #0  0x00007b4a5889eb1c __pthread_kill_implementation (libc.so.6 + 0x9eb1c)
                                             #1  0x00007b4a5884526e __GI_raise (libc.so.6 + 0x4526e)
                                             #2  0x00007b4a588288ff __GI_abort (libc.so.6 + 0x288ff)
                                             #3  0x0000635c9c428c9e OsAbort (Xorg + 0x1e4c9e)
                                             #4  0x0000635c9c42e7e7 n/a (Xorg + 0x1ea7e7)
                                             #5  0x0000635c9c42f867 FatalError (Xorg + 0x1eb867)
                                             #6  0x0000635c9c425e1b n/a (Xorg + 0x1e1e1b)
                                             #7  0x00007b4a58845320 __restore_rt (libc.so.6 + 0x45320)
                                             #8  0x00007b4a5889eb1c __pthread_kill_implementation (libc.so.6 + 0x9eb1c)

If you need more info, let me know.

Thanks.

@ThoreauHenry
Copy link

I've narrowed down the black screen upgrade issue to fractional scaling. Standard scaling of 100/200/etc has no issue. But when the desktop is set to 125%/150%/etc, it can not load or boot properly. This worked pre-upgrade, and is consistently failing now. Perhaps a stale configuration is present or a package is missing where it can properly identify the screen resolutions for it to scale properly. What I have done in the meantime is to reduce the overall display resolution from 2k to 1920x1200(it's on a legion laptop). This will give me time to do a full backup and wipe the drive with a new install, and hope it isn't a LM revision issue.

@enigma131
Copy link
Author

enigma131 commented Sep 14, 2024

I have a look in journalctl:
journalctl -n 2000 | grep lightdm
sept. 14 10:26:27 aspire systemd[1]: Starting lightdm.service - Light Display Manager...
sept. 14 10:26:28 aspire systemd[1]: Started lightdm.service - Light Display Manager.
sept. 14 10:26:47 aspire lightdm[1036]: pam_unix(lightdm-greeter:session): session opened for user lightdm(uid=116) by (uid=0)
sept. 14 10:26:48 aspire systemd-logind[517]: New session c1 of user lightdm.
sept. 14 10:26:48 aspire (systemd)[1042]: pam_unix(systemd-user:session): session opened for user lightdm(uid=116) by lightdm(uid=0)
sept. 14 10:26:48 aspire systemd[1]: Started session-c1.scope - Session c1 of User lightdm.
sept. 14 10:26:49 aspire lightdm[1036]: gkr-pam: couldn't unlock the login keyring.
sept. 14 10:26:53 aspire lightdm[1177]: pam_succeed_if(lightdm:auth): requirement "user ingroup nopasswdlogin" not met by user "toto"
sept. 14 10:27:01 aspire lightdm[1177]: gkr-pam: unable to locate daemon control file
sept. 14 10:27:01 aspire lightdm[1177]: gkr-pam: stashed password to try later in open session
sept. 14 10:27:01 aspire systemd[1]: session-c1.scope: Killing process 1036 (lightdm) with signal SIGKILL.
sept. 14 10:27:01 aspire systemd[1]: Stopped session-c1.scope - Session c1 of User lightdm.
sept. 14 10:27:01 aspire lightdm[1177]: pam_unix(lightdm:session): session opened for user toto (uid=1000) by (uid=0)
sept. 14 10:27:03 aspire lightdm[1177]: gkr-pam: unlocked login keyring
sept. 14 10:27:12 aspire (sd-pam)[1043]: pam_unix(systemd-user:session): session closed for user lightdm

@enigma131
Copy link
Author

Here same from an older Mint 20.3:
journalctl -n 3000|grep lightdm
3834:sept. 14 11:26:27 acer audit[672]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=672 comm="apparmor_parser"
3835:sept. 14 11:26:27 acer audit[672]: AVC apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=672 comm="apparmor_parser"
4623:sept. 14 11:26:28 acer dbus-daemon[729]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service' requested by ':1.16' (uid=0 pid=852 comm="/usr/sbin/lightdm " label="unconfined")
4730:sept. 14 11:26:29 acer lightdm[914]: pam_unix(lightdm-autologin:session): session opened for user toto by (uid=0)

@enigma131
Copy link
Author

I've found the solution here :
https://ubuntuforums.org/showthread.php?t=2493104
by adding a file /etc/lightdm/lightdm.conf.d/50-logind-check.conf with:
[LightDM]
logind-check-graphical=true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants