If you are having problems with Graphics on FreeBSD, you may be asked to provide information from your system.
Here are some things that you need to know.
dmesg. (If the output is incomplete, you many need to look at /var/run/dmesg.boot.)vgapci0: <VGA-compatible display> port 0xdc80-0xdcff mem 0xf6000000-0xf6ffffff,0xc0000000-0xdfffffff,0xf4000000-0xf5ffffff irq 24 at device 0.0 on pci2 vgapci0: Boot video device [...] sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
kldstat -v gives you detailed information about which devices are built into your kernel, and also, which other modules have been loaded. drm2 module loaded, and if so, where it came from:
kldstat -v | grep drm2
* another tool
If you get libGL error: failed to open drm device, try the following suggestion from CarlosPuga:
pw groupmod video -m <youruser> cat >> /etc/devfs.rules << EOF add path 'dri/*' mode 0666 group video add path 'drm/*' mode 0666 group video EOF
% sysctl -d compat.linuxkpi.enable_fbc
compat.linuxkpi.enable_fbc: Enable frame buffer compression for power savings (default: -1 (use per-chip default))
debug.debugger_on_panic=0/boot/loader.conf can help in these scenarios: dev.drm.skip_ddb="1"/boot/loader.conf to ensure debug output remains enabled. The one problem with it is that debug output will slow things down enough to mask many problems:
dev.drm.drm_debug_persist="1"
dev.drm.drm_debug=-1
# mkdir /debug && mount -t debugfs none /debug
glxgears, but by default it may force syncing with your display (60fps for example). To disable this you can invoke glxgears like so: $ env vblank_mode=0 glxgears