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

Hello,

I’m trying to get GPU on dell laptop to work.

Laptop details:

OS: FreeBSD 13.2-RELEASE-p4 and64

CPU: AMD Ryzen 5 2500U with Radeon Vega Mobile Gf (8) @ 1.996GHz

GPU: Raven Ridge
[Radeon Vega Series / Radeon Vega Mobile Series]

Memory: 474MiB
7787MiB

I installed;
pkg install drm-kmod

I also added on rc.conf:
kld_list=“amdgpu”

Nothing works after reboot, same heavily pixelated display.

Also “startx” doesn’t work either showing error about screen not found.

View picture below for reference:
IMG_4271.jpegIMG_4273.jpeg

Thanks for any advice.
 
I have no idea why this happens, I get the error when entering sddm.

If I keep reenter it again for 3 to 4 times. It actually starts the sddm.

Super weird.
Look at the pics:

IMG_4278.jpeg

IMG_4277.jpeg

Here is the /etc/fstab file:

IMG_4281.jpeg

So I’m able to get KDE Plasma 5 to load:

IMG_4283.jpeg

However I’m not able to get FreeBSD 13.2 to load the amd driver during boot and KDE5 plasma also doesn’t automatically boot. I have to manually start sddm by deliberately entering it 3-4 times, then GPU driver along with KDE 5 loads.

Also would like to point out, I also install VESA driver (BIOS boot mode):
pkg install xf86-video-vesa

I also installed this as well:
pkg install xf86-video-amdgpu

Thanks.
 
I have seen this "core dumped" message when I don't compile the drm-510-kmod port at the same time as the kernel (I usually ran stable-13 port, not release kernel and so compiled the kernel + world locally). The same thing now with stable-14 and drm-515-kmod port. I haven't actually tried running 13.2-RELEASE kernel but you can try compiling the port locally.....
 
Thanks for this information.

I have a desktop PC with AMD FX8350 with RX580 card. I installed drm-510-kmod on FreeBSD 13.1 without compiling and it works great. I’ll try to compile it for the dell laptop and see how it goes.

So for now on the dell laptop, KDE 5 plasma sees the graphics processor as “LLVMPIPE”. This seems to be the wrong driver or perhaps it is due to the fact that I have installed the VESA driver.

pkg install xf86-video-vesa

IMG_4284.jpeg

YouTube plays great at 4K resolution:

IMG_4285.jpeg
 
From what I can see on your pictures it's looks like you want to start a kde/wayland session.
This does not work without to put some work into wayland. (See handbook)

Try to start a X11 session and let us know what happens than.

I do not have a Dell notebook but a hp one with exactly the same hardware and it works fine for me.
(But only as X11, wayland crashes the machine)
 
I do not have a Dell notebook but a hp one with exactly the same hardware and it works fine for me.
(But only as X11, wayland crashes the machine)

Thanks for the reply.

Right now I got FreeBSD booted into x11 KDE plasma desktop environment, the only issue now is that I'm not using any GPU to render the graphics, I think it is using CPU to render the graphics since I am using VESA driver which is a generic GPU universal driver.

Can you provide some steps needed to install the GPU driver for FreeBSD 13.2?

So far this is what I've done:

pkg install drm-510-kmod
pkg install gpu-firmware-kmod

Then added to /etc/rc.conf:
Code:
kld_list=“amdgpu”

Rebooted and doesn't solve anything.
However when I installed VESA driver (BIOS Generic GPU driver) this allows me to load SDDM/KDE5/X11:
pkg install xf86-video-vesa

What could be the issue here for AMD driver not loading?


My notebook with vega3 GPU. it works with both (X11 and Wayland)
but with KDE X11 works only

What is in /usr/local/etc/X11/xorg.conf.d/?

Thanks for the reply.

nano usr/local/etc/X11/xorg.conf.d

returns nothing, blank file.
 
I have no idea why this happens, I get the error when entering sddm.

If I keep reenter it again for 3 to 4 times. It actually starts the sddm.

Super weird.
Look at the pics:

View attachment 17243

View attachment 17244

Here is the /etc/fstab file:

View attachment 17245

So I’m able to get KDE Plasma 5 to load:

View attachment 17246

However I’m not able to get FreeBSD 13.2 to load the amd driver during boot and KDE5 plasma also doesn’t automatically boot. I have to manually start sddm by deliberately entering it 3-4 times, then GPU driver along with KDE 5 loads.

Also would like to point out, I also install VESA driver (BIOS boot mode):
pkg install xf86-video-vesa

I also installed this as well:
pkg install xf86-video-amdgpu

Thanks.
By default sddm select the plasma5-wayland-session which is not supported actually.

Choose plasma-session-X11 instead
 
Thanks for the reply.

Right now I got FreeBSD booted into x11 KDE plasma desktop environment, the only issue now is that I'm not using any GPU to render the graphics, I think it is using CPU to render the graphics since I am using VESA driver which is a generic GPU universal driver.

Can you provide some steps needed to install the GPU driver for FreeBSD 13.2?

So far this is what I've done:

pkg install drm-510-kmod
pkg install gpu-firmware-kmod

Then added to /etc/rc.conf:
Code:
kld_list=“amdgpu”

Rebooted and doesn't solve anything.
However when I installed VESA driver (BIOS Generic GPU driver) this allows me to load SDDM/KDE5/X11:
pkg install xf86-video-vesa

What could be the issue here for AMD driver not loading?




Thanks for the reply.

nano usr/local/etc/X11/xorg.conf.d

returns nothing, blank file.

What I would do:

Remove xf86-video-vesa driver
Remove any file that is in usr/local/etc/X11/xorg.conf.d

Go to your home directory and remove the folder .cache (dot cache)

Make sure your user belongs to the wheel video operator groups (You need video group for kde)

As you already have installed drm-510-kmod put the following entries into rc.conf

Code:
kld_list="amdgpu"
dbus_enable="YES"
sddm_enable="YES"

And reboot the system.

This should start kde but before you log in set it to a X11 session at the bottom of the login window on the left.

Hope this helps.
 
You need to configure Xorg. install xf86-video-amdgpu package
Create a file with .conf extention (e.g 20-radeon-gpu.conf) in /usr/local/etc/X11/xorg.conf.d/ with this content:
Code:
Section "Device"
    Identifier "Card0"
    Driver "amdgpu"
EndSection

Edit: I see you installed xorg video driver
 
Try this as root to verify you have the correct video driver loaded:
kldstat | grep raven

This should produce 12 lines of stuff. If it doesn't - re-check your setup. And BTW, the Handbook got updated to include GPU setup information: https://docs.freebsd.org/en/books/handbook/x11/#x-configuration-amd

(I don't have it handy right now, but) I do have a laptop with Raven Ridge graphics, and it works OK. I had to retire it, because 8 GB of soldered-only (no SODIMM, which is important) RAM on it was not enough to run a usable KDE desktop. As soon as I started surfing the web with Konqueror and Firefox, the graphics part crashed so hard, it took the rest of the system down, as well, but that's another story. Long story short, I can start KDE on Xorg, with Raven Ridge graphics loaded, but actually using it is another matter due to RAM issues.
 
There is a drop-down menu here

Thanks for the reply.
I have done this and choose x11.

However, this seem to not fix the issue since when I restart PC, FreeBSD boots and fluctuates either into console screen or GUI of plasma login screen. AMD drivers are not loading either.
 
Remove xf86-video-vesa driver
Remove any file that is in usr/local/etc/X11/xorg.conf.d

Thanks for the reply.

Seems like when I delete the VESA generic GPU driver package, it also wants to delete xorg along with it:

pkg delete xf86-video-vesa

Code:
Installed packages to be REMOVED:
xf86-video-vesa: 2.5.0_2
xorg: 7.7_3
xorg-drivers: 7.7_7

Number of packages to be removed: 3

Proceed with deinstalling packages? [y/N]: n

So I use the "-f" option:

pkg delete -f xf86-video-vesa

Code:
Installed packages to be REMOVED:
xf86-video-vesa: 2.5.0_2

Number of packages to be removed: 1

Proceed with deinstalling packages? [y/N]: y

Go to your home directory and remove the folder .cache (dot cache)

Should I delete the .cache folder for root user or normal user? I have deleted the .cache folder for the normal user.

Make sure your user belongs to the wheel video operator groups (You need video group for kde)

I have done this.

As you already have installed drm-510-kmod put the following entries into rc.conf

Code:
kld_list="amdgpu"
dbus_enable="YES"
sddm_enable="YES"

I have done this.

I reboot and get the following:

IMG_4278.jpeg

Maybe I need to delete and reinstall xorg, sddm and x11/kde5 ?

When I reinstall xorg, oddly enough it wants to install VESA drivers for some reason.
 
No. I get the following:

View attachment 17280

Thanks.
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.)

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):
Code:
user@host: ~ su root
Password:
root@host # /usr/local/home/user: script
Script started, output file is typescript
root@host # /usr/local/home/user: (run your commands)
root@host # /usr/local/home/user: exit
Script done, output file is typescript
root@host # /usr/local/home/user: cat ./typescript | nc termbin.com 9999
(get your link, write it down for extraction on another computer)
root@host # /usr/local/home/user: exit
user@host: ~

This is frankly how you're expected to show what's happening in your terminal, rather than photos.

But with all that said, I do think you'll have more success if you just follow the installation instructions in the Handbook with 13.2-RELEASE (or even 14-RELEASE, which is about to happen any time now). Don't be afraid of trying it several times. Deviating from the Handbook is best done when you have a good handle on its contents, and reliable success following instructions in it. :)
 
Thanks for the reply.
I have done this and choose x11.

However, this seem to not fix the issue since when I restart PC, FreeBSD boots and fluctuates either into console screen or GUI of plasma login screen. AMD drivers are not loading either.
You have to choose which session in default in the "system configuration" app
 
Back
Top