Table of Contents

Debugging Graphics Problems

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.

Getting Information

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 | grep drm2

* xorg-udev-setup-check.sh

* another tool

Debugging Tips

Complaints From glxinfo/glxgears

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

Kernel Features

compat.linuxkpi.enable_fbc: Enable frame buffer compression for power savings (default: -1 (use per-chip default))

DRM-specific issues

dev.drm.drm_debug_persist="1"

dev.drm.drm_debug=-1

KMS Drivers

# mkdir /debug && mount -t debugfs none /debug

Hardware Acceleration