Every Wayland compositor shows a black screen

Fresh install of FreeBSD with an NVIDIA GTX 1050 ti. Starting *any* Wayland compositor gives me a black screen, no mouse, no nothing, and no way to control-C. I have to power cycle the machine to exit. I followed the FreeBSD Handbook almost to the letter.

I can't find any pertinent error messages anywhere in the logs, although I'm new at this and may not be looking in the right place.

I have installed wayland, seatd, sway, wayfire, dwl, plasma6, nvidia-drm-61-kmod, nvidia-settings, nvidia-driver-570, and nvidia-drm-kmod. Starting sway, wayfire, dwl, and plasma-wayland all give the same behavior, using something like



or



I have in /boot/loader.conf:



and in /etc/rc.conf:



X11 works fine, and the NVIDIA X11 Configuration app sees the GPU just fine.
Im reading handbook.

Code:
<span># sysrc kld_list+=nvidia-drm</span>

This is the direct rendering KMS driver.
above is KMS which is not suported by Wayland.

Code:
Both PRIME and Wayland require kernel modesetting.
Prior versions of the driver do not support Direct Rendering.Instead use the modesetting module,by executing the following command:
<span># sysrc kld_list+=nvidia-modeset</span>
Yyou dont need to have nvidia-drm together with nvidia-modeset so one or another, so i think only nvidia-modeset and remove nvidia-drm from rc.conf as its KMS
 
Yyou dont need to have nvidia-drm together with nvidia-modeset so one or another, so i think only nvidia-modeset and remove nvidia-drm from rc.conf as its KMS
Would not correct for nvidia drivers, at least for xorg.
If this is correct, xorg can sanely detect nvidia-modeset.ko (or nvidia.ko directly for specific legacy drivers). But it isn't.
Unless Wayland, which are under developement that "wanna be" succeeding xorg by same developers, has the feature to detect proprietary nvidia driver that xorg does NOT have, additional configuration, seemingly disallowed for Wayland, is mandatory.

On the other hand, using nvidia-drm.ko, it wrapps around underlying actual driver modules to expose DRM interface that xorg and Wayland can detect.
 
Would not correct for nvidia drivers, at least for xorg.
If this is correct, xorg can sanely detect nvidia-modeset.ko (or nvidia.ko directly for specific legacy drivers). But it isn't.
Unless Wayland, which are under developement that "wanna be" succeeding xorg by same developers, has the feature to detect proprietary nvidia driver that xorg does NOT have, additional configuration, seemingly disallowed for Wayland, is mandatory.

On the other hand, using nvidia-drm.ko, it wrapps around underlying actual driver modules to expose DRM interface that xorg and Wayland can detect.
But this is what handbook states. "nvidia-drm" This is the direct rendering KMS driver and its not supported by Wayland.
I dont run Wayland on nVidia, i dont run Wayland at all so i cant test it but i copied directly from Handbook . Section 5.
 
But this is what handbook states. "nvidia-drm" This is the direct rendering KMS driver and its not supported by Wayland.
I dont run Wayland on nVidia, i dont run Wayland at all so i cant test it but i copied directly from Handbook . Section 5.
I don't see that in the handbook, where is it?
 

Attachments

  • section5.png
    section5.png
    117.3 KB · Views: 149
I don't read that as saying that Wayland is incompatible with kms. But it isn't entirely clear.

On the other hand, I found this:

Oh, you know - i just now noted it says PRIOR VERSIONS of the driver. My bad!
So i think you dont need to have nvidia-drm and nvidia-modeset together. as hw.nvidia.modeset="1" loads modeset ( nvidia-drm ) and you have it inside loader.conf.
i know it says PRIOR VERSIONS but question is - which PRIOR VERSIONS. Kinda unclear. 515 ? 510 ?

P.s - i have Volta and Pascal and you have Pascal too - if i recall - i used 515 not 61. Im currently setting up my FreeBSD/bhyve and ill try later to pass my P600 ( Pascal , same as yours ) and try to install FreeBSD and Wayland and see what is what.

I dont know how is it now but in the past you could use Stable Diffusion with libc6-shim , maybe still the case, but im shure 99% libc6-shim not needed to start your VM or load module.

I would try to re-install OS , run update comand freebsd-update fetch / freebsd-update install / reboot. Compile nvidia kmod / drivers , install Wayland only ( no need manually install xwayland as i tihng wayland package will pull it ) , no Xorg, no nvidia-xsettings. sysrc kld_list+=nvidia-drm , add hw.nvidiadrm.modeset="1" to loader.conf - reboot and see if module is loaded. If it is - proceed with Wayland VM or DE.
P.s. i would use nvidia-515-kmod not 61.
 
Back
Top