Page 1 of 1

Graphics Card Detection and Xorg setup

Posted: Mon May 25, 2020 10:18 am
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!

Re: Graphics Card Detection and Xorg setup

Posted: Tue May 26, 2020 8:29 am
by ericbsd
We load the drm-kernel model for Radeon and AMD and set the modesetting driver in Xorg.

Re: Graphics Card Detection and Xorg setup

Posted: Tue May 26, 2020 8:50 am
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.

Re: Graphics Card Detection and Xorg setup

Posted: Sat Jun 06, 2020 5:38 am
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.

Re: Graphics Card Detection and Xorg setup

Posted: Wed Sep 02, 2020 5:13 am
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.

Re: Graphics Card Detection and Xorg setup

Posted: Sat Oct 24, 2020 3:10 pm
by apsturk
No I does not work but it did on an earlier version. Buy I an done Linux works