Graphics Card Detection and Xorg setup

Questions about the installation of FreeBSD
Post Reply
uchuugaka
Posts: 3
Joined: Mon May 25, 2020 10:09 am
Has thanked: 0
Been thanked: 0

Graphics Card Detection and Xorg setup

Post by uchuugaka »

How is the 20.04 installer doing this magic?
I have never successfully gotten xorg to work with my Radeon RX 570 on FreeBSD nor previously with TrueOS or GhostBSD or OpenBSD or NetBSD.
I had to use scfb or (more usefully) switch the monitor cable to the Intel integrated graphics HDMI port.

Now I went and tried the new release of GhostBSD and it just magically figured things out!
The day before I struggled with FreeBSD as usual in hopes that 12.1 had something smarter in it.

What does GhostBSD do to determine the right xorg config?
How can we get FreeBSD to do the same thing?
This is something I really want to understand as most Linuxes do not have this trouble and I prefer BSD for the license and the system underneath makes more sense to me.

Thanks in advance, and great job!

User avatar
ericbsd
Developer
Posts: 1568
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 52 times
Been thanked: 84 times

Re: Graphics Card Detection and Xorg setup

Post by ericbsd »

We load the drm-kernel model for Radeon and AMD and set the modesetting driver in Xorg.

uchuugaka
Posts: 3
Joined: Mon May 25, 2020 10:09 am
Has thanked: 0
Been thanked: 0

Re: Graphics Card Detection and Xorg setup

Post by uchuugaka »

But how does it figure out the settings that work?
If you can even point me to the code I am happy to read through.

uchuugaka
Posts: 3
Joined: Mon May 25, 2020 10:09 am
Has thanked: 0
Been thanked: 0

Re: Graphics Card Detection and Xorg setup

Post by uchuugaka »

Is it the ghostbsd/xconfig repo's shell file at xconfig /bin/xconfig ?
In the function start_drm_modesetting() ?
Or is it possibly the surrounding start_xorg() when it reaches the fail_safe() function?

I am curious how much is the minimum to transfer to a plain FreeBSD install to use to get X going on the card.
Looks like I need to go learn to understand sed again... I never use it enough to remember what it is doing exactly.

yesudeep
Posts: 1
Joined: Tue Aug 25, 2020 3:03 pm
Has thanked: 0
Been thanked: 0

Re: Graphics Card Detection and Xorg setup

Post by yesudeep »

Do you load nvidia drivers too? I'm trying to start GhostBSD on a fairly new laptop, very specifically the Eluktronics Max-17, and
the installer doesn't detect my screen. I tried using scfb/vesa and it does show the GUI, but the touchpad freezes as well.

apsturk
Posts: 1
Joined: Sat Oct 24, 2020 3:08 pm
Has thanked: 0
Been thanked: 0

Re: Graphics Card Detection and Xorg setup

Post by apsturk »

No I does not work but it did on an earlier version. Buy I an done Linux works

Post Reply