sudo pkg install slurp
have you enabled Xwayland support on WayfireWhy,if I use the xfce4-screenshooter tool,it crashes ?
~/.config/wayfire.ini
xwayland = true
sudo pkg install xdg-desktop-portal-wlr
~/.config/wlr-which-key/config.yaml
# Theming
font: Fira Code 18
background: "#282828d0"
color: "#fbf1c7"
border: "#005577"
separator: " ➜ "
border_width: 2
corner_r: 10
padding: 15 # Defaults to corner_r
# Anchor and margin
anchor: center # One of center, left, right, top, bottom, bottom-left, top-left, etc.
# Only relevant when anchor is not center
margin_right: 0
margin_bottom: 0
margin_left: 0
margin_top: 0
menu:
"s":
desc: screenshot
submenu:
"l": { desc: laptop, cmd: grim -o eDP-1 }
"m": { desc: monitor, cmd: grim -o DP-3 }
"b": { desc: both, cmd: grim }
"s": { desc: slurp, cmd: -g "$(slurp)" }
sudo pkg install kanshi
Wayland on a single Nvidia card (no iGPU) works perfect for me.So those of you with wayland working on Nvidia, are you using an iGPU that has an unused Nvidia card? My systems have a single Nvidia GPU, no APU or iGPU available, and none of them work following the handbook with Wayland. Perhaps there are some steps that need to be updated for Nvidia in the handbook? I have tried some of the suggestions here but none of them have resulted in Wayland working on Nvidia.
EDIT: I should also note that following the handbook results in Wayland working with my Intel/AMD APU/Radeon systems. The only systems that fail work work have a dedicated Nvidia GPU.
i dont have a kanshi directory in .config and kanshi still worksfailed to open file /home/marietto/.config/kanshi/config: No such file or directory
So those of you with wayland working on Nvidia, are you using an iGPU that has an unused Nvidia card? My systems have a single Nvidia GPU, no APU or iGPU available, and none of them work following the handbook with Wayland. Perhaps there are some steps that need to be updated for Nvidia in the handbook? I have tried some of the suggestions here but none of them have resulted in Wayland working on Nvidia.
EDIT: I should also note that following the handbook results in Wayland working with my Intel/AMD APU/Radeon systems. The only systems that fail work work have a dedicated Nvidia GPU.
[src/main.cpp:334] Starting wayfire version 0.9.0
[libseat] [libseat/libseat.c:66] Seat opened with backend 'consolekit2'
[libseat] [libseat/backend/consolekit2.c:92] Ping failed: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.9" (uid=1001 pid=4931 comm="wayfire") interface="org.freedesktop.DBus.Peer" member="Ping" error name="(unset)" requested_reply="0" destination="org.freedesktop.ConsoleKit" (uid=0 pid=4895 comm="/usr/local/sbin/console-kit-daemon --no-daemon")
[backend/session/session.c:109] Successfully loaded libseat session
[backend/backend.c:213] Found 1 GPUs
[backend/drm/backend.c:202] Initializing DRM backend for /dev/dri/card0 (nvidia-drm)
[backend/drm/drm.c:60] PRIME import not supported
[backend/backend.c:221] Failed to create DRM backend
[backend/backend.c:232] Could not successfully create backend on any GPU
[backend/backend.c:376] Failed to open any DRM device
[src/main.cpp:131] Fatal error: Segmentation fault
#1 0x36b365 <_ZL14signal_handleri+0xb5> at /opt/wayfire/bin/wayfire
#2 0x83861753f <pthread_sigmask+0x53f> at /lib/libthr.so.3
#3 0x838616afb <pthread_setschedparam+0x83b> at /lib/libthr.so.3
#4 0x8207ab2d3 <__gxx_personality_v0+0x8203788d3> at ???
#5 0x821c361d4 <wlr_backend_get_drm_fd+0x4> at /opt/wayfire/lib//libwlroots.so.12
#6 0x36a443 <main+0x423> at /opt/wayfire/bin/wayfire
#7 0x82be97afa <__libc_start1+0x12a> at /lib/libc.so.7
#5 0x821c361d4 <wlr_backend_get_drm_fd+0x4> at /opt/wayfire/lib//libwlroots.so.12
I physically have iGPU in CoffeeLake CPU and nvidia Quadro P1000 dGPU.So those of you with wayland working on Nvidia, are you using an iGPU that has an unused Nvidia card?
This points to wlroots here. You can see the DRM_CAP_PRIME value with a tool such as drm_info and compare with the value of DRM_PRIME_CAP_IMPORT. Basically, if DRM_CAP_PRIME is an even number, there is no support for DRM_PRIME_CAP_IMPORT, so the error is thrown.
According to the DRM_PRIME_CAP_IMPORT documentation:
"Starting from kernel version 6.6, this bit is always set in DRM_CAP_PRIME."
So I would guess your kernel is not up to date or the bits haven't been ported to your OS kernel yet.
sudo pkg install nvidia-drm-515-kmod
kld_list="nvidia-modeset nvidia-drm"
apart from hikari all the wlroots compositors are build for linux
thats why we have freebsd packages and ports
because the software has to be ported to work on freebsd
have you also installed nvidia-drm-515-kmod
Code:sudo pkg install nvidia-drm-515-kmod
and added it to your kld list in /etc/rc.conf
Code:kld_list="nvidia-modeset nvidia-drm"
#export LD_LIBRARY_PATH=/opt/wayfire/lib/$libdir
#export PATH=/opt/wayfire/bin:$PATH
#export PKG_CONFIG_PATH=/opt/wayfire/share/pkgconfig:/opt/wayfire/libdata/pkgconfig
On Linux wayland works with the opensource-nouveau-drivers but not with nvidia-legacy-drivers