Solved lightdm - black screen

Has anybody installed lightdm in recent times?
I connect with ultraVNC to a bhyve vm with current FreeBSD 15 and xfce. I can login on the console and
startxfce4. The desktop comes up fine.

I installed lightdm as in FreeBSD handbook 8.2.3.3. Start XFCE
and enable lightdm in /etc/rc.conf

On boot there is only a black screen.

What else is there to configure?
 
Have you also installed x11/lightdm-gtk-greeter? It does not work without a greeter, then you have to configure it /usr/local/etc/lightdm.conf and /usr/local/etc/lightdm-gtk-greeter.conf. I have installed it in 14.x-RELEASE and system now is upgraded to 15-RELEASE, so not installed recently, but it works and should works for you too.
 
I have installed lightdm-gtk-greeter.

/usr/local/etc/lightdm/lightdm.conf
[Seat:*]
greeter-session=lightdm-gtk-greeter
(this was added by lightdm-gtk-greeter)

lightdm-gtk-greeter.conf has no settings enabled.
 
/usr/local/etc/lightdm/lightdm-gtk-greeter.conf should contains some defaults. Check if the port x11/lightdm-gtk-greeter-settings is installed, it add the lightdm configuration in XFCE settings dialog, maybe it also create the default configuration. If you do not want to install that port try my settings:
INI:
[greeter]
theme-name = Nordic-darker-standard-buttons
icon-theme-name = Tela-grey-dark
cursor-theme-name = fluent-dark-cursors
cursor-theme-size = 16
font-name = Roboto 12
clock-format = %A %d %B %Y - %H:%M:%S
xft-antialias = true
xft-rgba = rgb
xft-hintstyle = hintfull
xft-dpi = 96
indicators = ~clock;~spacer;~host;~spacer;~session;~a11y;~power
change the first 3 item for what theme, icon theme, cursor theme and font name you have installed. I think if you leave them as above they should have some default.
 
If startxfce works but composition is off. The issue maybe that you may be missing x drivers (amd, nvidia, fb, vesa, vga, etc). Plus, drm and associated drivers.
 
/usr/local/etc/lightdm/lightdm-gtk-greeter.conf should contains some defaults. Check if the port x11/lightdm-gtk-greeter-settings is installed, it add the lightdm configuration in XFCE settings dialog, maybe it also create the default configuration. If you do not want to install that port try my settings:
INI:
[greeter]
theme-name = Nordic-darker-standard-buttons
icon-theme-name = Tela-grey-dark
cursor-theme-name = fluent-dark-cursors
cursor-theme-size = 16
font-name = Roboto 12
clock-format = %A %d %B %Y - %H:%M:%S
xft-antialias = true
xft-rgba = rgb
xft-hintstyle = hintfull
xft-dpi = 96
indicators = ~clock;~spacer;~host;~spacer;~session;~a11y;~power
change the first 3 item for what theme, icon theme, cursor theme and font name you have installed. I think if you leave them as above they should have some default.

I added your settings to lightdm-gtk-greeter.conf, no change, still black screen.

Seems that lightdm exits, the service is not running.

Its log is

Code:
[+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=1259
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+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 dirs from /usr/local/etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/local/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.02s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.02s] WARNING: Failed to get system bus: Could not connect: No such file or directory
[+0.03s] DEBUG: Adding default seat
[+0.03s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.03s] DEBUG: Seat seat0: Starting
[+0.03s] DEBUG: Seat seat0: Creating greeter session
[+0.03s] DEBUG: Seat seat0: Creating display server of type x
[+0.03s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.03s] DEBUG: Using VT 9
[+0.03s] DEBUG: Seat seat0: Starting local X display on VT 9
[+0.03s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.03s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.03s] DEBUG: XServer 0: Launching X Server
[+0.03s] DEBUG: Launching process 1275: /usr/local/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt9 -novtswitch
[+0.03s] DEBUG: XServer 0: Waiting for ready signal from X server :0
 
WARNING: Failed to get system bus: Could not connect: No such file or directory
Your /var/run/user should look similar to this:
/var/run # tree user/
user/
└── 1001
├── at-spi
│ └── bus_0
├── dbus-1
│ └── services
├── doc
├── gnupg
│ ├── S.gpg-agent
│ ├── S.gpg-agent.browser
│ ├── S.gpg-agent.extra
│ └── S.gpg-agent.ssh
├── gvfsd
├── ICEauthority
└── pulse
├── native
└── pid
with proper permissions for that user.
 
Well this is out of my knowledge. My lightdm log is similar
Code:
[+0.01s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.01s] DEBUG: Starting Light Display Manager 1.32.0, UID=0 PID=1716
[+0.01s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration dirs from /usr/local/etc/xdg/lightdm/lightdm.conf.d
[+0.01s] DEBUG: Loading configuration from /usr/local/etc/lightdm/lightdm.conf
[+0.01s] DEBUG: Registered seat module local
[+0.01s] DEBUG: Registered seat module xremote
[+0.01s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.46s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.47s] WARNING: Failed to get list of logind seats: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.login1 was not provided by any .service files
[+0.47s] DEBUG: Adding default seat
[+0.47s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.47s] DEBUG: Seat seat0: Starting
[+0.47s] DEBUG: Seat seat0: Creating greeter session
[+0.50s] DEBUG: Seat seat0: Creating display server of type x
[+0.61s] DEBUG: Could not run plymouth --ping: Failed to execute child process “plymouth” (No such file or directory)
[+0.61s] DEBUG: Using VT 9
[+0.61s] DEBUG: Seat seat0: Starting local X display on VT 9
[+0.61s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.62s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.62s] DEBUG: XServer 0: Launching X Server
[+0.70s] DEBUG: Launching process 1737: /usr/local/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt9 -novtswitch
[+0.73s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.75s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.75s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.06s] DEBUG: Loading users from org.freedesktop.Accounts
[+1.06s] DEBUG: User /org/freedesktop/Accounts/User1001 added

I have this warning at the same place of your, but lightdm works

Code:
[+0.47s] WARNING: Failed to get list of logind seats: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.login1 was not provided by any .service files

DBus is enabled?
 
Back
Top