starting wayland (wayfire) fails using nvidia card [Found 0 GPUS]

if you follow the video and my notes you should be fine

if you have any problems give me a shout

you will want to install the dwlb package for the bar

Code:
dwlb-s20240516                 Feature-complete bar for DWL

Code:
sudo pkg install dwlb
 
NapoleonWils0n
Thank you very much for providing the dwl tutorial, it helped me a lot.
I am writing now from my freshly installed FreeBSD machine running dwl.
As for the tutorial I have a suggestion to make.
Regarding the command: git clone https://codeberg.org/dwl/dwl.git.
While it clones the main branch of dwl, it is incompatible with FreeBSD right now due to the lacking support of wlroots019.
The main branch of dwl was build against wlroots version 19.
So, I would recommend to change the above mentioned command to git clone --branch 0.7 https://codeberg.org/dwl/dwl.git for the tutorial.
That way dwl will compile fine.

I have also two questions.
The first one is, how can I set up a background image ?
I patched dwl with the autostart patch, but it uses wbg for setting up background images.
As far as I know FreeBSD doesn't have wbg in fresh ports so, I tried out swaybg, but with no luck.
Instead it crashes my PC each time I start dwl.
Can you recommend me a background image setting port/pkg which would work with dwl?

The second question is, how can I prevent flickering with firefox ?
I am using nvidias driver version 570.133.07.
The flickering mainly occurs while scrolling through a page.

I have compiled dwl with xwayland support.
 
hi mate

i think when i did the tutorial using git worked
but since an update to wlroots you need dwl 0.7


so i just download the dwl 0.7 tar.gz


i have used swaybg with labwc for the wallpaper

but i dont have a wallpaper with dwl
and have never set one up, because i always have windows open on each monitor so never see it

i just upgrade to the latest quarterly branch and am using the nvidia 570.124.04 driver

i have never had flickering with Firefox on wayland
by default i think Firefox is set to use Wayland

if you open

Code:
about:config

in Firefox and search for wayland it should say GDK_Backend Wayland

you could try creating a new Firefox profile to see if that resolve the issue

20250407_18h29m59s_grim.png
 
Hmm...
I tried out everything I could, but wayland still gives me very bad flickering, and not only with firefox.
As of now, I am going to wait, but I hope that the Nvidia/wayland mess will be solved someday.
Today I found a very nice tutorial about dwm you made 5 years ago, I think.
It helped me to install dwm, and it luckily works, but I have one small problem.
I want to get dwmblocks-async to work with dwm, because I read that it works with i3blocks options and is basically i3blocks for dwm.
Here is the content of the Makefile of dwmblock-async:
Code:
.POSIX:

BIN := dwmblocks
BUILD_DIR := build
SRC_DIR := src
INC_DIR := include

DEBUG := 0
VERBOSE := 0
LIBS := xcb-atom

PREFIX := /usr/local
CFLAGS := -Ofast -I. -I$(INC_DIR) -std=c99
CFLAGS += -DBINARY=\"$(BIN)\" -D_POSIX_C_SOURCE=200809L
CFLAGS += -Wall -Wpedantic -Wextra -Wswitch-enum
CFLAGS += $(shell pkg-config --cflags $(LIBS))
LDLIBS := $(shell pkg-config --libs $(LIBS))

SRCS := $(wildcard $(SRC_DIR)/*.c)
OBJS := $(subst $(SRC_DIR)/,$(BUILD_DIR)/,$(SRCS:.c=.o))

INSTALL_DIR := $(DESTDIR)$(PREFIX)/bin

# Prettify output
PRINTF := @printf "%-8s %s\n"
ifeq ($(VERBOSE), 0)
    Q := @
endif

ifeq ($(DEBUG), 1)
    CFLAGS += -g
endif

all: $(BUILD_DIR)/$(BIN)

$(BUILD_DIR)/%.o: $(SRC_DIR)/%.c config.h
    $Qmkdir -p $(@D)
    $(PRINTF) "CC" $@
    $Q$(COMPILE.c) -o $@ $<

$(BUILD_DIR)/$(BIN): $(OBJS)
    $(PRINTF) "LD" $@
    $Q$(LINK.o) $^ $(LDLIBS) -o $@

clean:
    $(PRINTF) "CLEAN" $(BUILD_DIR)
    $Q$(RM) $(BUILD_DIR)/*

install: $(BUILD_DIR)/$(BIN)
    $(PRINTF) "INSTALL" $(INSTALL_DIR)/$(BIN)
    $Qinstall -D -m 755 $< $(INSTALL_DIR)/$(BIN)

uninstall:
    $(PRINTF) "RM" $(INSTALL_DIR)/$(BIN)
    $Q$(RM) $(INSTALL_DIR)/$(BIN)

.PHONY: all clean install uninstall
Do you eventually know what I should change for it in order to get it installed on FreeBSD ?
I think I need to change _POSIX_C_SOURCE=200809L, but I don't really know.
Sadly, I didn't find a post of someone about how to get that status bar working.
Maybe it isn't popular enough on FreeBSD. :-/

EDIT:
I tried out slstatus, and dwmstatus, and ultimately decided to stay with sltatus since it does the same as i3-blocks did with much fewer lines of code, and a much cleaner approach...

Now, DWM works the way I wanted it to work.
 
Back
Top