diff --git a/src/radeon_probe.c b/src/radeon_probe.c index baca574..e37cfa1 100644 --- a/src/radeon_probe.c +++ b/src/radeon_probe.c @@ -46,6 +46,7 @@ #include "atipcirename.h" #include "xf86.h" +#include #include "xf86drmMode.h" #include "dri.h" @@ -92,6 +93,16 @@ static Bool radeon_kernel_mode_enabled(ScrnInfoPtr pScrn, struct pci_device *pci busIdString = DRICreatePCIBusID(pci_dev); ret = drmCheckModesettingSupported(busIdString); + if (ret) { + if (xf86LoadKernelModule( +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) + "radeonkms" +#else + "radeon" +#endif + )) + ret = drmCheckModesettingSupported(busIdString); + } free(busIdString); if (ret) { xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, 0,