tvrzna / emptty

Dead simple CLI Display Manager on TTY
MIT License
696 stars 26 forks source link

Black screen after login Ubuntu 24.04 #122

Closed BuiHoangTu closed 2 months ago

BuiHoangTu commented 3 months ago

I want to try emptty on my laptop with Ubuntu 24.04. I only installed emptty, systemctl enable emptty@tty5 and reboot. After reboot:

Here is some log and its status mZfu6K33

I also tried installing emptty on linux mint 22 with the above steps and it worked normally.

tvrzna commented 3 months ago

Please set SESSION_ERROR_LOGGING to appending in your /etc/emptty/conf and then post your log from /var/log/emptty/session-errors.5.log. It will tell us more about the problem.

BuiHoangTu commented 3 months ago

20240804_001256.jpg

There aren't any logs. I noticed that tt5 stucks with update-notifier autostart, I saw tty5 finished other autostart apps. Hope this helps. 20240804_001522.jpg

tvrzna commented 3 months ago

I'm sorry, I haven't noticed you have set in your service to use config file /etc/emptty/conf-tty5. Put that option there, please.

BuiHoangTu commented 3 months ago

20240804_012451.jpg

Still no session errors

BuiHoangTu commented 3 months ago

@tvrzna I found ~/.xsession-errors which may contain why emptty didnt work: dbus-update-activation-environment: setting DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting DISPLAY=:0 dbus-update-activation-environment: setting XAUTHORITY=/home/tu/.Xauthority dbus-update-activation-environment: setting XDG_CURRENT_DESKTOP=ubuntu:GNOME /etc/X11/Xsession.d/30x11-common_xresources: line 16: has_option: command not found /etc/X11/Xsession.d/75dbus_dbus-launch: line 9: has_option: command not found dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 /etc/X11/Xsession.d/90x11-common_ssh-agent: line 9: has_option: command not found dbus-update-activation-environment: setting SHELL=/bin/bash dbus-update-activation-environment: setting QT_ACCESSIBILITY=1 dbus-update-activation-environment: setting XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg dbus-update-activation-environment: setting LANGUAGE=en_US dbus-update-activation-environment: setting DESKTOP_SESSION=ubuntu dbus-update-activation-environment: setting GTK_MODULES=gail:atk-bridge dbus-update-activation-environment: setting PWD=/home/tu dbus-update-activation-environment: setting XDG_SESSION_DESKTOP=ubuntu dbus-update-activation-environment: setting LOGNAME=tu dbus-update-activation-environment: setting XDG_SESSION_TYPE=x11 dbus-update-activation-environment: setting GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1 dbus-update-activation-environment: setting XAUTHORITY=/home/tu/.Xauthority dbus-update-activation-environment: setting XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/tu dbus-update-activation-environment: setting GDM_LANG=en_US dbus-update-activation-environment: setting HOME=/home/tu dbus-update-activation-environment: setting IM_CONFIG_PHASE=1 dbus-update-activation-environment: setting LANG=en_US.UTF-8 dbus-update-activation-environment: setting XDG_CURRENT_DESKTOP=ubuntu:GNOME dbus-update-activation-environment: setting XDG_SESSION_CLASS=user dbus-update-activation-environment: setting USER=tu dbus-update-activation-environment: setting DISPLAY=:0 dbus-update-activation-environment: setting SHLVL=0 dbus-update-activation-environment: setting XDG_RUNTIME_DIR=/run/user/1000 dbus-update-activation-environment: setting DEBUGINFOD_URLS=https://debuginfod.ubuntu.com dbus-update-activation-environment: setting XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/home/tu/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop dbus-update-activation-environment: setting PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/texlive/2024/bin/x86_64-linux dbus-update-activation-environment: setting GDMSESSION=ubuntu dbus-update-activation-environment: setting DBUS_SESSION_BUSADDRESS=unix:path=/run/user/1000/bus dbus-update-activation-environment: setting =/usr/bin/dbus-update-activation-environment

tvrzna commented 3 months ago

I've tried installation of Ubuntu 24.04 LTS, same as you only installed emptty (on updated system) without issue, so I'm unable to replicate the problem to see, how it could be handled. Did it work for you with default gdm? Also, if possible, please try to log into different DM/WM (ideally something lightweight as lxde/lxqt/openbox).

BuiHoangTu commented 2 months ago

Hi @tvrzna

After trying emptty on VM, I found out that it worked fine with default config. But if I add .config/emptty, it only displays black screen after choosing Xorg. Screenshot from 2024-08-16 12-35-56

My problem is Gnome Desktop started by emptty vs other DM like gdm, lightdm is very different. What do I need to do ?

Thank you.

tvrzna commented 2 months ago

Hello @BuiHoangTu try to replace exec dbus-launch $@ by exec $@. In my VM there is no dbus-launch available and it could cause problem. Also make sure, that xrandr has correct values (e.g. output display, supported resolution), but with Gnome you can remove this line.

BuiHoangTu commented 2 months ago

Replacing with exec $@ did make emptty work. Thanks.

One more question if you dont mind. How can i make Gnome Display started by emptty look like this Screenshot from 2024-08-16 13-44-21 instead of this Screenshot from 2024-08-16 13-43-28

gdm or lightdm both start Gnome like the first image.

Emptty-started Gnome refuses to open setting. Screenshot from 2024-08-16 14-01-33

tvrzna commented 2 months ago

There is an issue with XDG_CURRENT_DESKTOP in emptty, it takes values as they are set in *.desktop files with semicolons, however Gnome expects colons. You can try to clone latest commit and build emptty yourself or you can add export XDG_CURRENT_DESKTOP=ubuntu:GNOME before exec $@ in your .config/emptty file as temporal workaround. But be awere this simple workaround could cause issues with different desktop environments (you can improve it with some condition).

BuiHoangTu commented 2 months ago

thanks, everything works now. I replace ; in XDG_CURRENT_DESKTOP with :. Is there anyway to do it with every users or I need to add it manually.

tvrzna commented 2 months ago

No, there is no global workaround available except to build emptty by yourself.

BuiHoangTu commented 2 months ago

Okay, thank you.