alfin K

I plan to use this place to document my work, keep short notes for easy reference and write about things I might forget.

FreeBSD desktop issues

I write about my experience with FreeBSD

Published
written by Alfin · category software ·

I was playing around with FreeBSD 15 and was planning on daily driving it until some major issues started popping up.

WiFi#

My card is not supported currently but I heard drivers are on the way. So I had to use a package called wifibox which spins up a headless Alpine Linux on the built-in bhyve virtualisation tool. It exposes sockets to control the wpa_supplicant on the guest machine to the host machine using socat. It worked really well. I have no issues with it.

Graphics#

The real issue was with graphics. I have an all AMD machine meaning my CPU, iGPU, dGPU all of them are AMD. So drivers should never be an issue. I set up amdgpu and xorg. For some reason my primary GPU was always the dGPU. When I forced xorg to change primary to iGPU it would boot to a black screen. Not sure why this happens but if i were to guess it would be that the kernel finds the dGPU first since its at CPI:3:0:0 (iGPU is at 7:0:0) and flips the mux that way since my laptop is set to hybrid mode.

The main reason I decided not to daily drive FreeBSD was because some packages install nvidea-drivers as dependencies. Now that itself is not an issue. but when these drivers are installed it replaces the mesa libglx.so.0 library in the modules directory of xorg with nvidia versions of it. So now my glxinfo gives me "cannot load glx module" errors. There is no blocklist for pkg through which I can ban all things related to nvidia. So now I have to do some hacky fix to get my graphics pipeline working praying that an update does not break it.