This is an old revision of the document!


Acceleration

:!: The following instructions only apply to amd64 and x86 systems with Intel graphics. Skip ahead for Nvidia and Radeon GPUs.

You have three video driver choices below. Choose the drm-legacy-kmod driver for older hardware like the 82945G. For newer “HD” and “UHD” graphics, go with the drm-kmod driver. If all else fails, go with the xf86-video-intel driver. The commands below switch to root, install a kernel module, either reboot or switch back to your normal login, and finally start a new X session. Time to decide:

$ su -
 (enter root password)
# pkg install drm-kmod
# sysrc kld_list="/boot/modules/i915kms.ko"
# reboot

… or …

$ su -
 (enter root password)
# pkg install drm-legacy-kmod
# sysrc kld_list="/boot/modules/i915kms.ko"
# reboot

… or …

$ su -
 (enter root password)
# pkg install xf86-video-intel

Try the first. If X won't start and you have older hardware, try the second. The third option is a last resort. If you need to switch drivers, be sure to remove the old one. Example: you tried drm-kmod which did not work for you so you want to try drm-legacy-kmod.

$ su -
 (enter root password)
# pkg remove drm-kmod
# pkg install drm-legacy-kmod
# reboot

Another example: you tried the legacy drm driver which did not work so you want to fall back to the xf86 driver which also requires removing the kld_list entry before reboot.

$ su -
 (enter root password)
# pkg remove drm-legacy-kmod
# sysrc kld_list-=/boot/modules/i915kms.ko
# pkg install xf86-video-intel
# reboot

Back to your ordinary login …

$ startx

At this point you should have a working X session with accelerated Intel graphics.

TODO

You have three video driver choices below. Choose the drm-legacy-kmod driver for older hardware. For newer graphics, go with the drm-kmod driver. If all else fails, go with the xf86-video-ati driver. The commands below switch to root, install a kernel module, either reboot or switch back to your normal login, and finally start a new X session. Time to decide:

$ su -
 (enter root password)
# pkg install drm-kmod
# sysrc kld_list="/boot/modules/radeonkms.ko"
# reboot

… or …

$ su -
 (enter root password)
# pkg install drm-legacy-kmod
# sysrc kld_list="/boot/modules/radeonkms.ko"
# reboot

… or …

$ su -
 (enter root password)
# pkg install xf86-video-ati

Try the first. If X won't start and you have older hardware, try the second. The third option is a last resort.


  • unitrunker/acceleration.1595717653.txt.gz
  • Last modified: 2020/07/25 22:54
  • by unitrunker