Installing driver for Radeon HD 7670M (Device 'AMD Thames [Radeon HD 7550M/7570M/7650M]') on Xorg or Wayland

I’m trying to get my laptop’s graphics working properly on FreeBSD 14.2.
Specs for hp Pavilion g6-2303st:
  • CPU: i5-3230M (3rd Gen Intel)
  • GPU: Radeon HD 7670M (Thames) + Intel HD 4000 iGPU (switchable graphics)
  • Filesystem: [UFS]
Here’s the pciconf output for reference:
Code:
vgapci1@pci0:0:2:0:    class=0x030000 rev=0x09 hdr=0x00 vendor=0x8086 device=0x0166 subvendor=0x103c subdevice=0x1842
    vendor     = 'Intel Corporation'
    device     = '3rd Gen Core processor Graphics Controller'
    class      = display
    subclass   = VGA
--
vgapci0@pci0:1:0:0:    class=0x030000 rev=0x00 hdr=0x00 vendor=0x1002 device=0x6840 subvendor=0x103c subdevice=0x1842
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Thames [Radeon HD 7500M/7600M Series]'
    class      = display
    subclass   = VGA

Problem:
  • When I try to use radeonkms (for the AMD GPU) on Wayland or Xorg, the system kernel panics on startx.
  • LLVMpipe works, but obviously CPU rendering is slow.
  • I want hardware acceleration on Wayland for general desktop use.

What I’ve tried:
  • Loading radeonkms_load="YES" in /boot/loader.conf → panic when startx
  • Fallback to i915kms for Intel → says it works fine but apparently wayland and x11 uses llvmpipe for KDE plasma 6?

What I need help with:
  1. Safe way to use switchable graphics on FreeBSD 14.2 (Intel + AMD)
  2. Avoid kernel panics when using Radeon GPU
  3. Best Wayland setup for hybrid graphics laptops
Any guidance or example loader/xorg/Wayland configs for this setup would be really helpful.
Thanks in advance.
 
Note: Here's my glxinfo ran without the radeonkms driver loaded:
Code:
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 4000 (IVB GT2)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 24.1.7
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.2 (Compatibility Profile) Mesa 24.1.7
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 24.1.7
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00
 
Back
Top