After upgrading x11/xcb-proto and x11/libxcb (commits id 7e24850e7401db82881c2152d8d90225cda83702 and 16a47197890e0bd8d1f87a24f9ea1d3ce73f93c2) when slim starts (slim_enable="YES" in /etc/rc.conf) it seems that the ttyv8 is allocated but it remains black. I'm trying with a .xinitrc as simple as exec "${1}" but the result is the same. I can't see any relevant message in /var/log/Xorg.0.log and in /var/log/slim.log ".." is printed approximately every second until I run "sudo service slim stop". Running startx with e.g. exec /usr/local/bin/fluxbox runs as expected.
Did you try recompiling slim after those updates ? Maybe it needs a bump.
Same here. Turns out: when executing startx as unprivileged user xorg starts as if root executed startx. Xorg then tries to access files in root's home directory: xauth: timeout in locking authority file /root/serverauth.##### would be printed on screen several times. Nevertheless a X sessions starts but ignoring formentioned unprivileged users .xinitrc. Now when executing firefox it complains again about being unable to access files in root's home: (firefox:#####): GLib-GIO-Warning**: $timestamp: Failed to create /root/.config/glib-2.0/settings: Permission denied and firefox is not able to read a profile. I cannot pinpoint this behavior to a specific port. I can only say: whatever causes this was introduced with today's updates. But I'm quite confident this is why slim won't function properly. regards Frank
(In reply to Frank Reisert from comment #2) Addendum: I'm on 14.0-RELEASE-p5 amd64.
I have to report that i have the same bug on two platform running FreeBSD 13.3-STABLE (one laptop with HD4000 graphics, the other one an nvidia K2000) the Xorg seems to be running at first, but slim doesn't connect into /var/log/slim.log looks like this: slim: waiting for X server to begin accepting connections. .. .. .. .. .. .slim: unexpected signal 15 the last line appears when slim timeout, and because he's the one summoning Xorg, the black display stop running and return to the vty. tried to recomplie slim to no avail and noticed one thing: invoking tsartx from root work but not from my unprivilegied account.
erratum (In reply to Martin MATO from comment #4) i mean "startx"
Could this be related to https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/73 and https://gitlab.freedesktop.org/xorg/lib/libxcb/-/commit/095255531b90f0b442e6ca41fb3752a058562d07 ?
(In reply to Emmanuel Vadot from comment #1) I've tried rebuilding all the ports printed by $ pkg info -dx slim-1.3.6_23 with no luck. I'm on stable/13, last updated from git today, after hitting that problem.
(In reply to Ale from comment #7) I'm not sure what's going on then, xdm, sddm and startx works fine for me so I went ahead and commited this update.
Please ignore my remarks regarding unprivileged user, startx, home directory and access of root's files. That all was due to an unrelated problem. Shame on me ... Leaves me with slim's black screen and /var/log/slim.log as Martin MATO in comment #4 described, although I get: ---8<--- .. .. .. Giving up. slim: unable to connect to X server slim: waiting for X server to shut down --->8--- When reverting to a slightly older boot environment with libxcb-1.15_2 still installed, slim works as expected. regards Frank
(In reply to Frank Reisert from comment #9) I can confirm as well that reverting libxcb (and in my case also xcb-proto thinking they are related) make slim working again. This is the first thing I tested after watching at my X session hanging.
(In reply to Ale from comment #10) In fact I've reported those two ports in the title, even if today many other X11 related ports have been updated.
It's probably not slim-specific, but more general breakage. While testing Plasma6 built from tcberner@ ports overlay repo, I found another clue. Initially, there weren't any problems with KDE apps, but at some point communication with xcb broke, and apps were no longer able to start: % dolphin Authorization required, but no authorization protocol specified qt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available platform plugins are: wayland, vnc, minimal, xcb, wayland-egl, offscreen, vkkhrdisplay.
Removing /usr/ports/x11/slim/files/patch-const.h worked for me. It was submitted in bug 206050. I cannot reproduce that problem so I think it's safe to delete the patch. Ivan, can you confirm?
(In reply to Tijl Coosemans from comment #13) I can not say something meaning, I switch to lightdm in December 2023. My slim config was a bit hacky: default_xserver /usr/bin/nice xserver_arguments -n -15 /usr/local/bin/X -nolisten tcp vt09 login_cmd /usr/bin/su -l ${USER} -c "env XAUTHORITY=${XAUTHORITY} XDG_SESSION_COOKIE=${XDG_SESSION_COOKIE} DISPLAY=${DISPLAY} ~/.xinitrc %session" this helps avoid most issues with slim for me.
(In reply to Tijl Coosemans from comment #13) Tested, thank you, 100% working solution. Please commit it as soon as possible to save slim users trouble and preserve slim userbase.
Created attachment 249108 [details] patch I found last remote installation with slim and it was affected. After apply attached patch, rebuild and reinstall it start work again.
(In reply to Tijl Coosemans from comment #13) I'm confirming Removing the /usr/ports/x11/slim/files/patch-const.h and recompiling slim worked for me too. Thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=c18748795747558915016758d78d865e0fe9d50b commit c18748795747558915016758d78d865e0fe9d50b Author: Ivan Rozhuk <rozhuk.im@gmail.com> AuthorDate: 2024-03-13 21:32:19 +0000 Commit: Juraj Lutter <otis@FreeBSD.org> CommitDate: 2024-03-13 21:34:04 +0000 x11/slim: Fix blank display after xcb and xcbproto update PR: 277502 Reported by: Ale <discipline@tiscali.it> Approved by: jsm (maintainer) x11/slim/Makefile | 2 +- x11/slim/files/patch-const.h (gone) | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-)
Committed, thanks.