Re: Wayfire does not work on FreeBSD 14.0?

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 25 Feb 2024 19:32:10 UTC
Mario Marietto <marietto2008@gmail.com> writes:

> (my graphic card is one nVidia GTX 1060)
[...]
> rot@marietto:/usr/home/marietto # wayfire -c ./config/wayfire/wayfire.ini
>
> II 20-02-24 08:44:06.531 - [src/main.cpp:334] Starting
> wayfire version v0.8.0
>
> II 20-02-24 08:44:06.531 - [backend/x11/backend.c:395]
> Creating X11 backend
>
> II 20-02-24 08:44:06.531 - [backend/x11/backend.c:478] X11
> does not support shared pixmaps
>
> EE 20-02-24 08:44:06.531 - [backend/x11/backend.c:607]
> Failed to query DRI3 DRM FD
>
> EE 20-02-24 08:44:06.531 - [src/main.cpp:134] Fatal error:
> Segmentation fault

Wayfire requires DRM drivers, even when nested under Xorg. Before
playing with Wayfire try DRM troubleshooting:

  # pkg install nvidia-drm-kmod
  # sysrc kld_list-=nvidia && kldunload nvidia
  # sysrc kld_list-=nvidia-modeset && kldunload nvidia-modeset
  # sysrc kld_list+=nvidia-drm && kldload nvidia-drm

then ensure /dev/dri/card0 exists and confirm KMS/DRM works:

  # pkg install kmscube
  $ vidcontrol -s 1 </dev/ttyv0
  $ kmscube

Disclaimer: I don't have an NVIDIA GPU and don't use Wayfire.