canonical / lightdm

Display Manager
GNU General Public License v3.0
845 stars 139 forks source link

Lightdm broke and stuck in TTY #370

Closed Archurcl4w closed 3 months ago

Archurcl4w commented 4 months ago

I am using a Raspberry Pi 4 B 8GB RAM, 5.4.83-Re4son-V7l+kernel and Kali Linux ARM image from kali.org. After updating/upgrading Kali Linux ARM 32-bit to the latest version 2024.2 had problems related with the display managers such as lighdm version: 1.32.0. Due to that I am unable to have a working login screen so far. I reinstalled again lightdm and kali-desktop-xfce, which did not resolve anything. Step to reproduce: Just upgrading Here is the log of –test-mode -debug

[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=2115
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.00s] DEBUG: _g_io_module_get_default: Found default implementation local (GlocalVfs) for ?gio-vfs?
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] Warning: Could not enumerate user data directory /var/lib/lightdm/data: Error opening directory '/var/lib/lightdm/data': No such file or directory
[+0.01s] DEBUG: Aquired bus name org.freedesktop.DisplayManager
Failed to use bus name org.freedesktop.DisplayManager, do you have appropriate permissions?

The root cause of this dbus error - " Failed to use bus name org.freedesktop.DisplayManager, do you have appropriate permissions?" It points to a lightdm bug which was fixed already before as per this links https://bugs.kali.org/view.php?id=8429

263

It fixed and resolved this issue by changing the value from true to false in /etc/lightdm/lightdm.conf as

#logind-check-graphical=true

and change it to be

logind-check-graphical=false

(remove the # )

After this lightdm just working fine again !

For freezing at lightdm login screen related with the X.Org X Server 1.21.1.11. The errors were found in the Xorg.0.log

75.025] (II) config/udev: Adding input device Chicony  USB Keyboard (/dev/input/event0)
[    75.025] (II) No input driver specified, ignoring this device.
[    75.025] (II) This device may have been added with another device file.
[    75.029] (II) config/udev: Adding input device Chicony  USB Keyboard System Control (/dev/input/event1)
[    75.029] (II) No input driver specified, ignoring this device.
[    75.031] (II) This device may have been added with another device file.
[    75.036] (II) config/udev: Adding input device Chicony  USB Keyboard Consumer Control (/dev/input/event2)
[    75.036] (II) No input driver specified, ignoring this device.
[    75.036] (II) This device may have been added with another device file.
[    75.040] (II) config/udev: Adding input device PixArt Dell MS116 USB Optical Mouse (/dev/input/event3)
[    75.040] (II) No input driver specified, ignoring this device.
[    75.040] (II) This device may have been added with another device file.
[    75.045] (II) config/udev: Adding input device PixArt Dell MS116 USB Optical Mouse (/dev/input/mouse0)
[    75.045] (II) No input driver specified, ignoring this device.
[    75.045] (II) This device may have been added with another device file.

It is fixed by sudo apt install xserver-xorg-inputll-all. If not successful , try sudo apt install --reinstall xserver-xorg-inputll-all Please don't repost this by copy and paste on bugs.kali.org by other persons, not me.