Missing Xorg configuration for GCN-based GPUs in Handbook

Missing Xorg configuration for GCN-based GPUs (or newer). While reinstalling the OS, I noticed that the handbook lacks an example of an Xorg configuration for GCN-series graphics cards (which use the `amdgpu` driver); it only provides a configuration for older cards that use the `radeon` driver. With the help of ChatGPT, I managed to put together a configuration that works with my graphics card (an RX 470). However, I’m not sure if this configuration is correct or if it might cause issues in the future(since I am a newcomer to FreeBSD). below is an example of a config
Screenshot_20261126_180025.png
 
Hi Sopsan a note about custom config files, by default xorg/xlibre will do automatic detection and will use modesetting unless a DDX driver picks up the hardware. The custom files are required if you want to force a specific driver.

The current list of supported drivers on a given install can be obtained by checking what is on the /usr/local/lib/xorg/modules/drivers/ directory. For example for me:
$ ls -la /usr/local/lib/xorg/modules/drivers/
total 168
drwxr-xr-x 2 root wheel 512 19 nov 19:14 .
drwxr-xr-x 5 root wheel 512 19 nov 19:14 ..
-rwxr-xr-x 1 root wheel 112424 15 nov 06:20 modesetting_drv.so
-rwxr-xr-x 1 root wheel 19488 3 nov 01:26 scfb_drv.so
-rwxr-xr-x 1 root wheel 27096 3 nov 01:22 vesa_drv.so
A prerequisite of using modesetting is that you have the appropriate DRM driver installed (i.e. drm-612-kmod for intel and amdgpu/radeon) and loaded, otherwise it will try the scfb (UEFI) or vesa (BIOS) drivers. Also note that modesetting uses Glamour (i.e. OpenGL rendering) which require an OpenGL ES 2.0 or OpenGL 2.1 capable device.

If you install DDX drivers (i.e. the xf86-video-* packages) those may take precedence, on current hardware modesetting offers better results but for example on slighly older hardware the DDX driver maybe the way to go.

Important note for AMD users, GCN 1.0 a 1.1 cards are handled by the radeon drm driver not amdgpu unless forced (will be true until drm-74-kmod at least).

So if anyone comes here in the future and has issues:
  1. remove all xf86-video packages other than vesa/scfb (BIOS/UEFI boot respectively)
  2. install the drm package for your hardware (just drm-[B]xyz[/B]-kmod for intel/amd plus nvidia-drm-[B]xyz[/B]-kmod for nvidia)
  3. If x11 looks good you are done!
  4. install the xf86-video-* package for your hardware (for example xf86-video-intel, xf86-video-ati, etc, check with pkg search xf86-video-*)
  5. If x11 looks good you are done!
  6. If you still have issues, force a driver with custom device configuration
  7. If x11 looks good you are done!
  8. If you still have issues, create a custom device configuration that uses the scfb or the vesa drivers and ask for help if needed
 
Hi Sopsan a note about custom config files, by default xorg/xlibre will do automatic detection and will use modesetting unless a DDX driver picks up the hardware. The custom files are required if you want to force a specific driver.

The current list of supported drivers on a given install can be obtained by checking what is on the /usr/local/lib/xorg/modules/drivers/ directory. For example for me:

A prerequisite of using modesetting is that you have the appropriate DRM driver installed (i.e. drm-612-kmod for intel and amdgpu/radeon) and loaded, otherwise it will try the scfb (UEFI) or vesa (BIOS) drivers. Also note that modesetting uses Glamour (i.e. OpenGL rendering) which require an OpenGL ES 2.0 or OpenGL 2.1 capable device.

If you install DDX drivers (i.e. the xf86-video-* packages) those may take precedence, on current hardware modesetting offers better results but for example on slighly older hardware the DDX driver maybe the way to go.

Important note for AMD users, GCN 1.0 a 1.1 cards are handled by the radeon drm driver not amdgpu unless forced (will be true until drm-74-kmod at least).

So if anyone comes here in the future and has issues:
  1. remove all xf86-video packages other than vesa/scfb (BIOS/UEFI boot respectively)
  2. install the drm package for your hardware (just drm-[B]xyz[/B]-kmod for intel/amd plus nvidia-drm-[B]xyz[/B]-kmod for nvidia)
  3. If x11 looks good you are done!
  4. install the xf86-video-* package for your hardware (for example xf86-video-intel, xf86-video-ati, etc, check with pkg search xf86-video-*)
  5. If x11 looks good you are done!
  6. If you still have issues, force a driver with custom device configuration
  7. If x11 looks good you are done!
  8. If you still have issues, create a custom device configuration that uses the scfb or the vesa drivers and ask for help if needed
Thank you for the response.
 
Back
Top