Out of interest, what is seatd needed for in this X11 stack?seatd support is enabled by default, but I have added it as a port OPTION (SEATD) and you can disable it during builds if you want to. So yes it will take in sysutils/seatd by default.
Out of interest, what is seatd needed for in this X11 stack?seatd support is enabled by default, but I have added it as a port OPTION (SEATD) and you can disable it during builds if you want to. So yes it will take in sysutils/seatd by default.
That doesn't match my experience. When launched via a login manager such as dtlogin it runs as user nobody while still trying to write its logs in /var/logs, failing miserably of course unless I change the permissions to 777.Most importantly, when ran as a normal user, it will use the ~/.local/share/xorg/Xorg.log folder for its logs.
Well that's becauseThat doesn't match my experience. When launched via a login manager such as dtlogin it runs as user nobody while still trying to write its logs in /var/logs, failing miserably of course unless I change the permissions to 777.
nobody's ~/ is /nonexistent hence no ~/.local/share/xorg/Xorg.log.From dtlogin(1).A value of "local_uid" indicates that an Xserver should be
started for this entry under a specific user id. A user name
such as "root" must follow in next field. In the following
example, by placing "root" here, Xserver starts under the
user id of "root".
:0 Local local_uid@console root /usr/openwin/bin/Xsun :0
Out of interest, what is seatd needed for in this X11 stack?
A seat management daemon, that does everything it needs to do. Nothing more, nothing less. Depends only on libc.
Still doesn't work. I set the home directory for the user nobody to /home/nobody, created the structure /home/nobody/.local/share/xorg/Xorg.log/Well that's becausenobody's ~/ is /nonexistent hence no ~/.local/share/xorg/Xorg.log.
Try running X as your own user / another user that has a writable home. (You can create a user named _x11 )
From dtlogin(1).
I do not think that it is a good idea to modify theStill doesn't work. I set the home directory for the user nobody to /home/nobody, created the structure /home/nobody/.local/share/xorg/Xorg.log/
(I tried also /home/nobody/.local/share/xorg/ )with the proper permissions and the server still tries to write the log in /var/log.
BTW, I am sure that the user nobody recognized its new home directory because he set up its cache there.
nobody's default configuration, it is not supposed to have a home folder.I agree about the user nobody default configuration, I rolled back the homedir to /nonexistent already. With that said, as I wrote before my experience WRT the logs is different from yours as unless I specify theI do not think that it is a good idea to modify thenobody's default configuration, it is not supposed to have a home folder.
Just set the user in dtlogin to your own user, or create a dedicated X11 user named "_x11" like how OpenBSD does it. I have tested it in this way and there has not been any issues.
You don't need to create the folders. It will automatically create them if the permissions are correct.
-logfile switch XLibre always tries to write to /var/log, regardless of the user (i.e both nobody and my own user show the same problem).Nice, I am a little out-of-date with FreeBSD's stack and didn't realize this was in place yet (or rather still used the Xorg.wrapper approach).it helps the X server fully drop its root privileges and stick to the principle of least privilege
FWIW, I switched because of this and of tearfree.Nice, I am a little out-of-date with FreeBSD's stack and didn't realize this was in place yet (or rather still used the Xorg.wrapper approach).
If this is Xlibre specific (i.e not in Xorg), then this is actually a good reason to switch.
I found out why this happens...I agree about the user nobody default configuration, I rolled back the homedir to /nonexistent already. With that said, as I wrote before my experience WRT the logs is different from yours as unless I specify the-logfileswitch XLibre always tries to write to /var/log, regardless of the user (i.e both nobody and my own user show the same problem).
Anyways, I solved my problem and that's good enough for me (I write the logs to /var/tmp instead of /var/log keeping the default user nobody - I don't see the point to create a new user just for this). Now I'm waiting for the updated packages to show up in the official ports to update and check again but I don't foresee any further issues.
Yes seatd support is exclusive to XLibre and Devuan's modified version of X.Org (That's where XLibre got the patches for this change).Nice, I am a little out-of-date with FreeBSD's stack and didn't realize this was in place yet (or rather still used the Xorg.wrapper approach).
If this is Xlibre specific (i.e not in Xorg), then this is actually a good reason to switch.
I've compiled the ports yesterday and gave it a try. I'm getting a black screen, too. Something like a non-blinking white command line block cursor remains on the top left, and nothing responds: no mouse, no keystrokes. The only exit: The hardware power button. As this is no fun to debug I've switched back to x11/xorg-minimal. On my test environment (bhyve) everything worked (but there I didn't found x11-drivers/xlibre-xf86-video-scfb (yet?), so I've build a custom version of x11-drivers/xf86-video-scfb which does its job).Occasionally, my system will panic or the display will go black when I start XLibre.
pciconf -lv | grep -B4 VGAvgapci0@pci0:7:0:0: class=0x030000 rev=0xc7 hdr=0x00 vendor=0x1002 device=0x743f subvendor=0x1da2 subdevice=0xe458
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Navi 24 [Radeon RX 6400/6500 XT/6500M]'
class = display
subclass = VGA
[2025-12-27 22:08:46] (II) xfree86: Adding drm device (/dev/dri/card0)
[2025-12-27 22:08:46] (II) Platform probe for /dev/dri/card0
[2025-12-27 22:08:46] (**) OutputClass "AMDgpu" ModulePath for driver amdgpu reset to default
[2025-12-27 22:08:46] (--) PCI:*(7@0:0:0) 1002:743f:1da2:e458 rev 199, Mem @ 0xd0000000/268435456, 0xe0000000/2097152, 0xfca00000/1048576, I/O @ 0xe000/256, BIOS @ 0x????????/65536
[2025-12-27 22:08:46] (II) LoadModule: "glx"
[2025-12-27 22:08:46] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/extensions/libglx.so
[2025-12-27 22:08:46] (II) Module glx: vendor="X.Org Foundation"
[2025-12-27 22:08:46] compiled for 1.25.1, module version = 1.0.0
[2025-12-27 22:08:46] ABI class: X.Org Server Extension, version 11.0
[2025-12-27 22:08:46] (II) Applying OutputClass "AMDgpu" to /dev/dri/card0
[2025-12-27 22:08:46] loading driver: amdgpu
[2025-12-27 22:08:46] (==) Matched amdgpu as autoconfigured driver 0
[2025-12-27 22:08:46] (==) Matched ati as autoconfigured driver 1
[2025-12-27 22:08:46] (==) Matched modesetting as autoconfigured driver 2
[2025-12-27 22:08:46] (==) Matched scfb as autoconfigured driver 3
[2025-12-27 22:08:46] (==) Matched vesa as autoconfigured driver 4
[2025-12-27 22:08:46] (==) Assigned the driver to the xf86ConfigLayout
[2025-12-27 22:08:46] (II) LoadModule: "amdgpu"
[2025-12-27 22:08:46] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/drivers/amdgpu_drv.so
[2025-12-27 22:08:46] (II) Module amdgpu: vendor="X.Org Foundation"
[2025-12-27 22:08:46] compiled for 1.25.1, module version = 25.0.1
[2025-12-27 22:08:46] Module class: X.Org Video Driver
[2025-12-27 22:08:46] ABI class: X.Org Video Driver, version 28.1
[2025-12-27 22:08:46] (II) LoadModule: "ati"
[2025-12-27 22:08:46] (WW) Warning, couldn't open module ati
[2025-12-27 22:08:46] (EE) Failed to load module "ati" (module does not exist, 0)
[2025-12-27 22:08:46] (II) LoadModule: "modesetting"
[2025-12-27 22:08:46] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/drivers/modesetting_drv.so
[2025-12-27 22:08:46] (II) Module modesetting: vendor="X.Org Foundation"
[2025-12-27 22:08:46] compiled for 1.25.1, module version = 1.25.1
[2025-12-27 22:08:46] Module class: X.Org Video Driver
[2025-12-27 22:08:46] ABI class: X.Org Video Driver, version 28.1
[2025-12-27 22:08:46] (II) LoadModule: "scfb"
[2025-12-27 22:08:46] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/drivers/scfb_drv.so
[2025-12-27 22:08:46] (II) Module scfb: vendor="X.Org Foundation"
[2025-12-27 22:08:46] compiled for 1.25.1, module version = 0.0.5
[2025-12-27 22:08:46] ABI class: X.Org Video Driver, version 28.1
[2025-12-27 22:08:46] (II) LoadModule: "vesa"
[2025-12-27 22:08:46] (II) Loading /usr/local/lib/xorg/modules/xlibre-25/drivers/vesa_drv.so
[2025-12-27 22:08:46] (II) Module vesa: vendor="X.Org Foundation"
[2025-12-27 22:08:46] compiled for 1.25.1, module version = 25.0.0
[2025-12-27 22:08:46] Module class: X.Org Video Driver
[2025-12-27 22:08:46] ABI class: X.Org Video Driver, version 28.1
[2025-12-27 22:08:46] (II) AMDGPU: Driver for AMD Radeon:
All GPUs supported by the amdgpu kernel driver
[2025-12-27 22:08:46] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[2025-12-27 22:08:46] (II) scfb: driver for wsdisplay framebuffer: scfb
[2025-12-27 22:08:46] (II) VESA: driver for VESA chipsets: vesa
[2025-12-27 22:08:46] (--) Using pcvt driver
[2025-12-27 22:08:47] (II) Platform device "/dev/dri/card0" at 0@7:0:0 can be claimed.
[2025-12-27 22:08:47] (II) Platform device "/dev/dri/card0" skipped because
[2025-12-27 22:08:47] (II) PCI bus id 0@7:0:0 has already been claimed by "Autoconfigured Video Device".
[2025-12-27 22:08:47] (II) PCI device skipped because
[2025-12-27 22:08:47] (II) PCI bus id 0@7:0:0 has already been claimed by "Autoconfigured Video Device".
[2025-12-27 22:08:47] (WW) Falling back to old probe method for modesetting
[2025-12-27 22:08:47] (II) DRI device "/dev/dri/card0" has already been claimed by "Autoconfigured Video Device".
[2025-12-27 22:08:47] (WW) Falling back to old probe method for scfb
[2025-12-27 22:08:47] scfb trace: probe start
[2025-12-27 22:08:47] (II) "Autoconfigured Video Device scfb" can be claimed.
[2025-12-27 22:08:47] (II) scfb(1): using default device
[2025-12-27 22:08:47] scfb trace: probe done
[2025-12-27 22:08:47] (II) PCI device skipped because
[2025-12-27 22:08:47] (II) PCI bus id 0@7:0:0 has already been claimed by "Autoconfigured Video Device".
[2025-12-27 22:08:47] (II) Platform device "/dev/dri/card0" skipped because
[2025-12-27 22:08:47] (II) PCI bus id 0@7:0:0 has already been claimed by "Autoconfigured Video Device".
[2025-12-27 22:08:47] (II) Platform device "/dev/dri/card0" skipped because
[2025-12-27 22:08:47] (II) PCI bus id 0@7:0:0 has already been claimed by "Autoconfigured Video Device".
[2025-12-27 22:08:47] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
#0 0x000011387cb81155 in ??? () at /usr/local/lib/libGLX_mesa.so.0
#1 0x000011387cb887ff in ??? () at /usr/local/lib/libGLX_mesa.so.0
#2 0x000011387cb859d4 in ??? () at /usr/local/lib/libGLX_mesa.so.0
#3 0x00001138523a73fe in epoxy_glx_version () at /usr/local/lib/libepoxy.so.0
#4 0x0000113848bb4451 in ??? () at /usr/local/lib/libgdk-3.so.0
#5 0x0000113848bb4777 in ??? () at /usr/local/lib/libgdk-3.so.0
#6 0x0000113848bbefca in ??? () at /usr/local/lib/libgdk-3.so.0
#7 0x0000113848bbab5d in ??? () at /usr/local/lib/libgdk-3.so.0
#8 0x0000113848bab577 in ??? () at /usr/local/lib/libgdk-3.so.0
#9 0x0000113848b77d7c in gdk_display_manager_open_display () at /usr/local/lib/libgdk-3.so.0
#10 0x000011386d421791 in XREMain::XRE_mainStartup(bool*) () at /usr/local/lib/firefox/libxul.so
#11 0x000011386d4264b1 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) () at /usr/local/lib/firefox/libxul.so
#12 0x000011386d426aba in XRE_main(int, char**, mozilla::BootstrapConfig const&) () at /usr/local/lib/firefox/libxul.so
#13 0x000011301dc8314c in main ()
amdgpu
I suspect you tried out XLibre server with a version less than 20.0.0.18, and forgot to pass in IgnoreABI for the NVIDIA drivers, (This is not required now in the later versions).I've compiled the ports yesterday and gave it a try. I'm getting a black screen, too. Something like a non-blinking white command line block cursor remains on the top left, and nothing responds: no mouse, no keystrokes. The only exit: The hardware power button. As this is no fun to debug I've switched back to x11/xorg-minimal. On my test environment (bhyve) everything worked (but there I didn't found x11-drivers/xlibre-xf86-video-scfb (yet?), so I've build a custom version of x11-drivers/xf86-video-scfb which does its job).
Side note: Palit GeForce RTX 3050 KalmX - I've got to use Nvidias 550.163.01 driver instead of the actual shipped with the ports/packages, otherwise I get a black screen with no response on X.org, too… So there might be a problem with the firmware modifications Palit does to get a RTX 3050 fanless.
I suspect you tried out XLibre server with a version less than 20.0.0.18
ls /usr/ports/distfiles/xlibre/server/ says it was X11Libre-xserver-25.1.0-xlibre-xserver-25.1.0_GH0.tar.gz.Didn't tell me anything - not a single error entry (and since the error logs are difficult to access when the system is no longer responsive - and in my case switching between the working setup and x11libre also requires "a little attention" - I'm not going to spend more time on it for now).But any further diagnosis requires logs
Just FYI the X server logs are stored in /var/log/ so even if a session crashes they are still available.and since the error logs are difficult to access when the system is no longer responsive
sleep 30; pkill -9 X
Do you really need some specific feature present in the xlibre-xf86-video-amdgpu driver that is not present on modesetting?
If you just have installed it out of habit from X.Org I suggest you remove that driver and try the default modesetting driver included in XLibre.
A glxinfo log would also be nice.
glxinfo would also segfault. But it hardly matters because I'm running.So as far as I understand it, we need to compile x11/plasma6-plasma-desktop manually, since the X11 option is on per default, right?