Anyone got laptop Dell Inspiron 13 7000 AMD Raven Ridge Radeon Vega Series GPU working on FreeBSD 13.2?

First_Law_of_Unix I think astyle is absolutely right. After days of trials the system is most likely borked up by now
and it would be much easier to start over again.

Just install FreeBSD new and than do the few steps described in the handbook to install KDE. As said earlier I have a notebook with the same
hardware you have and there was no magic things to do to get KDE working.

Just go with the handbook and it will work. The only thing the handbook does not tell you is that your first login MUST be a X11 session.
If the first login is wayland you have problems again and that's for me the most likely reason that your last install did not work.
 
Alright, I have finally solved the issue.

I deleted all of the desktop manager packages (in this case, KDE Plasma 5):

pkg delete xorg
pkg delete x11/kde5
pkg delete sddm

Now FreeBSD 13.2 is booting AMD GPU drivers as intended smoothly every time after every reboot and interrupted shutdowns.

I had a theory that FreeBSD 13.2 was not booting the AMD GPU drivers due to the fact that I have first explicitly installed the desktop environment manager packages instead of the AMD GPU drivers. This caused a conflict with the installed KDE Plasma 5 packages which it did not detect any installed AMD GPU drivers.

Now that I have completely removed all of the desktop environment packages along with all of it's dependencies using " pkg autoremove" and reinstalled the packages again, did a reboot and viola, FreeBSD 13.2 is booting the AMD GPU drivers perfectly every time. Would like to note that all of the desktop environment dependencies should be removed else simply doing " pkg delete" will not solve the issue as I have tried this numerous times and does not delete the 4GB of desktop environment dependencies.

Screenshot_20231109_180632.jpg

So it seems the best way to install a desktop environment on a fresh install of FreeBSD 13.2 is to first install the GPU drivers then install the desktop environment packages. I guess I could have tried other solutions like editing the xorg config files and state AMD GPU info, but just wanted to try deleting the DE packages and reinstall them which solved the issue of the AMD GPU drivers not loading.

Anyone who uses modern AMD GPUs, you would only need two GPU driver packages to install for FreeBSD 13.x:
pkg install drm-510-kmod
pkg install gpu-firmware-kmod

If anyone is curious how to properly install KDE Plasma 5 on FreeBSD 13.x, I use this tutorial guide, works all the time:

View: https://www.youtube.com/watch?v=kzIWXdcrK5I&t=1091s&pp=ygUjaG93IHRvIGluc3RhbGwgZnJlZWJzZCBrZGUgcGxhc21hIDU%3D

Would like to thank all of the gentlemens on this thread for their support and time.
 
Never mind.

After couple of reboots and shutdowns. AMD GPU drivers are now not booting anymore.

Really weird. Back to square one again… I guess I’ll try FreeBSD 14.

I guess FreeBSD 13.2 is modifying some GPU boot parameters because every time I delete and reinstall desktop environments packages, FreeBSD 13.2 is able to boot AMD GPU drivers, but after some reboots it stops loading AMD drivers.
 
Wrong way to start sddm.... You need to run the following as root:
service sddm start (It could be onestart rather than start... I'm a little fuzzy on that, because that's service-specific.)

Tanks for the reply. This is what I get:

IMG_4339.jpeg

Also: If you do have an Internet connection on that machine (I assume you do, given that you can install packages from a remote repo):

Yes, I have internet connection. I have setup a WiFi USB card.

Not sure how to make use of the command scripts you provided.
 
FreeBSD 13.2 will working with your GPU. you not need to install 14.

no matter which you install first, in FreeBSD Xorg need to configured to work properly.

you should say to Xorg to use which driver.

scfb (xf86-video-scfb package) and vesa (xf86-video-vesa) hasn't hardware acceleration.

you need xf86-video-amdgpu and amdgpu (from drm-510-kmod) kernel module and gpu firmware. kernel module and gpu firmware will install by installing drm-kmod meta-package.

to see which modules are loaded use kldstat

for config the Xorg see handbook examples. use amdgpu for driver in config file to use xf86-video-amdgpu instead of vesa/scfb:

Code:
Section "Device"
        Identifier "Card0"
        Driver      "amdgpu"
EndSection


if kernel module and firmware loaded you can run startx.

after that all window managers and DEs will work
 
for config the Xorg see handbook examples. use amdgpu for driver in config file to use xf86-video-amdgpu instead of vesa/scfb:

Code:
Section "Device"
        Identifier "Card0"
        Driver      "amdgpu"
EndSection

Thanks for the reply.

I have read the handbook and also tried your example. Does work but every time I reboot again it will not boot or launch the x-server, sddm or startx…

It fluctuates, sometimes AMD drivers boot and sometimes it doesn’t. Also it sometimes boot the generic VESA drivers too. This means every now and then startx, sddm or x-sever will work randomly.

I have reinstalled FreeBSD 13.2 in UEFI mode, same results.

When I enter xrandr
It returns:
Code:
can't open display

Now I’ll try FreeBSD 14.
 
Aright, I’ve installed FreeBSD 14.

IMG_4369.jpeg

With these packages:
pkg install drm-515-kmod
pkg install gpu-firmware-kmod
pkg install xorg

Did a reboot and same issue as to FreeBSD 13.2, same pixelated console.
Sometimes AMD drivers loads properly and the console screen is high resolution but most times it is always pixelated after reboots.

I’m starting to think drivers are not at top notch since it is a hit or miss for the AMD drivers to load properly or something is wrong with the BIOS settings for the built-in graphics hardware within the AMD CPU. I’ve glimpsed at the BIOS AMD GPU settings, I got lost in it’s option maze after few seconds, so much options and settings it’s crazy.

Notice how I haven’t installed x11/kde5 nor sddm, but only installed xorg. This is because installed the AMD drivers and it should at least provide a high resolution console mode after boot, but in my case it does not. I didn’t want to install full desktop environment packages without fixing the AMD drivers first.

I have to reenter startx like about 5-8 times until it loads.

Here is what startx outputs:

IMG_4371.jpeg

After the 5th to 8th reenter of startx, it will load. This is weird and sounds like a bug:

IMG_4373.jpeg

Also my USB WiFi now needs to be manually typed every time to get it work:

ifconfig wlan0 create wlandev rtwn0
service netif restart

Never had to do this on FreeBSD 13.x.

This is how I configured my WiFi card:

wpa_passphrase WIFINETWORK PASSWORD >> /etc/wpa_supplicant.conf

nano /etc/rc.conf
Code:
wlans_rtwn0=“wlan0”
ifconfig_wlan0=“WPA DHCP”

nano /boot/loader.conf
Code:
if_urtwn_load="YES"
legal.realtek.license_ack=1

send output of these commands:

$ kldstat
$ cat /usr/local/etc/X11/xorg.conf.d/*.conf

Thanks for the reply.

kldstat returns:

IMG_4370.jpeg

cat /usr/local/etc/X11/xorg.conf.d/*.conf returns:

IMG_4375.jpeg
 
You should have many more amdgpu_raven_* modules installed... What does "pkg info | grep gpu-firmware-amd" return? You should have 41 entries. What does "sysrc -n kld_list" return? It should have at least amdgpu. Mine returns "ig4 iichid amdgpu amdsmb amdtemp linux64 linux".
 
What does "pkg info | grep gpu-firmware-amd" return?

Thanks for the reply.
I get the following:

IMG_4383.jpeg

What does "sysrc -n kld_list" return? It should have at least amdgpu.
I get the following:

IMG_4384.jpeg

I have solved the uncertainty why AMD drivers load “randomly”. It’s due to BIOS GPU settings not registering with the FreeBSD boot process.

Every time I go to the GPU BIOS configuration, change some arbitrary GPU related options save and exit. FreeBSD will always load and boot the AMD GPU drivers correctly, every single time. Super weird but it works and removes the mystery and able to predictively boot the AMD drivers as intended with the console booting to high resolution.

Question is how can I make this automated, have FreeBSD register the correct BIOS GPU settings.

IMG_4379.jpeg
IMG_4376.jpeg
IMG_4381.jpeg
 
for me 14.0-RC4 has some problems. in 13.2 the kldstat output was similar?

Xorg need configured to use the kernel driver. You not configure the Xorg yet.
you should configure the Xorg to get working. refer to #31
 
for me 14.0-RC4 has some problems. in 13.2 the kldstat output was similar?

Xorg need configured to use the kernel driver. You not configure the Xorg yet.
you should configure the Xorg to get working. refer to #31
According to the Handbook, Xorg shouldn't require configuration - read the second Tip section (the one with a light green background). If the GPU driver is loaded properly (as reflected by kldstat) that's all Xorg needs. That's been my experience, too, so I can confirm that it's easier to follow the Handbook.
 
but Xorg uses scfb (in BIOS system:rolleyes:).
it seems Xorg not used/found amdgpu driver
Dunno if you noticed, but in post #36, OP actually has Xorg already configured... Konsole is visible in the attached photos. Now that is a sign that I'm right... I edited the quote below for Aminavy :

I have solved the uncertainty why AMD drivers load “randomly”. It’s due to BIOS GPU settings not registering with the FreeBSD boot process.

Every time I go to the GPU BIOS configuration, change some arbitrary GPU related options save and exit. FreeBSD will always load and boot the AMD GPU drivers correctly, every single time. Super weird but it works and removes the mystery and able to predictively boot the AMD drivers as intended with the console booting to high resolution.
 
Back
Top