Wednesday, June 19, 2019

15.10 lightdm broken - gdm works




After some updates to my system lightdm seems to be broken (can't get a session with lightdm to work, always ending up in low graphics mode at boot). If I chose gdm it however works. But I would like to have lightdm back because I really dislike the lightdm-gtk-greeter.



lightdm --test-mode --debug gives



[+0.00s] DEBUG: Logging to /home/andreas/.cache/lightdm/log/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.16.6, UID=1000 PID=11764
[+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/50-greeter-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-unity-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-gnome.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/90-nvidia.conf
[+0.00s] DEBUG: [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/gnome/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/ubuntu/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d

[+0.00s] DEBUG: Loading configuration dirs from /usr/share/upstart/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/xdg-ubuntu/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: [SeatDefaults] is now called [Seat:*], please update this configuration
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.00s] DEBUG: Running in user mode
[+0.00s] DEBUG: Using Xephyr for X servers
[+0.00s] DEBUG: Registered seat module xlocal
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity

[+0.02s] DEBUG: Monitoring logind for seats
[+0.02s] DEBUG: New seat added from logind: seat0
[+0.02s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.02s] DEBUG: Seat seat0: Starting
[+0.02s] DEBUG: Seat seat0: Creating greeter session
[+0.02s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.02s] DEBUG: Seat seat0: Creating display server of type x
[+0.03s] DEBUG: Seat seat0: Starting local X display
[+0.03s] DEBUG: DisplayServer x-1: Logging to /home/andreas/.cache/lightdm/log/x-1.log

[+0.03s] DEBUG: DisplayServer x-1: Writing X server authority to /home/andreas/.cache/lightdm/run/root/:1
[+0.03s] DEBUG: DisplayServer x-1: Launching X Server
[+0.03s] DEBUG: Launching process 11769: /usr/bin/Xephyr :1 -seat seat0 -auth /home/andreas/.cache/lightdm/run/root/:1 -nolisten tcp
[+0.03s] DEBUG: DisplayServer x-1: Waiting for ready signal from X server :1
[+0.03s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.03s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.04s] DEBUG: Process 11769 exited with return value 1
[+0.04s] DEBUG: DisplayServer x-1: X server stopped
[+0.04s] DEBUG: DisplayServer x-1: Removing X server authority /home/andreas/.cache/lightdm/run/root/:1
[+0.04s] DEBUG: Seat seat0: Display server stopped

[+0.04s] DEBUG: Launching process 11770: /sbin/prime-switch
Warning: writing to /var/log/gpu-manager.log failed (Permission denied)
log_file: /var/log/gpu-manager.log
last_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
new_boot_file: /var/lib/ubuntu-drivers-common/last_gfx_boot
/etc/modprobe.d is not a file
grep dmesg status 256
dmesg status 256 == 0? No
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file

/etc/modprobe.d is not a file
Is nvidia loaded? yes
Was nvidia unloaded? no
Is nvidia blacklisted? no
Is fglrx loaded? no
Was fglrx unloaded? no
Is fglrx blacklisted? no
Is intel loaded? yes
Is radeon loaded? no
Is radeon blacklisted? no

Is nouveau loaded? no
Is nouveau blacklisted? yes
Is fglrx kernel module available? no
Is nvidia kernel module available? yes
Vendor/Device Id: 8086:a16
BusID "PCI:0@0:2:0"
Is boot vga? yes
Vendor/Device Id: 10de:1290
BusID "PCI:9@0:0:0"
Is boot vga? no

Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Skipping "/dev/dri/card0", driven by "i915"
Skipping "/dev/dri/card1", driven by "nvidia-drm"
Found "/dev/dri/card0", driven by "i915"
output 0:
eDP connector
Number of connected outputs for /dev/dri/card0: 1
Does it require offloading? yes

last cards number = 2
Has amd? no
Has intel? yes
Has nvidia? yes
How many cards? 2
Has the system changed? No
main_arch_path x86_64-linux-gnu, other_arch_path i386-linux-gnu
update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf
Current alternative: /usr/lib/nvidia-358-prime/ld.so.conf
Current core alternative: (null)

Is nvidia enabled? no
Is fglrx enabled? no
Is mesa enabled? no
Is pxpress enabled? no
Is prime enabled? yes
Is nvidia available? yes
Is fglrx available? no
Is fglrx-core available? no
Is mesa available? yes
Is pxpress available? no

Is prime available? yes
Intel IGP detected
Intel hybrid system
Nvidia driver version 358.16 detected
Removing xorg.conf. Path: /etc/X11/xorg.conf
Moved /etc/X11/xorg.conf to /etc/X11/xorg.conf.01122016
Powering off the discrete card
initctl: Name "com.ubuntu.Upstart" does not exist
Unloading nvidia-uvm with "no" parameters
rmmod: ERROR: Module nvidia_uvm is not currently loaded

Unloading nvidia with "no" parameters
rmmod: ERROR: Module nvidia is in use by: nvidia_modeset
[+0.08s] DEBUG: Process 11770 exited with return value 0
[+0.08s] DEBUG: Seat seat0: Exit status of /sbin/prime-switch: 0
[+0.08s] DEBUG: Seat seat0: Stopping; greeter display server failed to start
[+0.08s] DEBUG: Seat seat0: Stopping
[+0.08s] DEBUG: Seat seat0: Stopping session
[+0.08s] DEBUG: Seat seat0: Session stopped
[+0.08s] DEBUG: Seat seat0: Stopped
[+0.08s] DEBUG: Required seat has stopped

[+0.08s] DEBUG: Stopping display manager
[+0.08s] DEBUG: Display manager stopped
[+0.08s] DEBUG: Stopping daemon
[+0.08s] DEBUG: Seat seat0: Stopping session
[+0.08s] DEBUG: Exiting with return value 1


Anyone an idea?



Figured it out on my own after two days of trying:




The problem was that the .Xauthority file for lightdm got missing somehow. Creating it with touch /var/lib/lightdm/.Xauthority and sudo chown lightdm:lightdm /var/lib/lightdm/.Xauthority fixed the issue.


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...