I've installed FreeBSD 12.1-RELEASE on a Lenovo Thinkpad X1 Yoga 1st Gen with an i7-6600U CPU and an Intel HD 520 IGP. I've followed the instructions in this blog post to set up root filesystem encryption with UEFI, though I had to move /etc/loader.conf to /boot/loader.conf after installing to get it to boot.
I'm trying to get graphics to work now, and I've installed graphics/drm-kmod (which installs graphics/drm-fbsd12.0-kmod on this system) with pkg, but when I load /boot/modules/i915kms.ko, the screen goes black for a few seconds, then the Lenovo logo appears and the system boots again. The filesystems are not dismounted properly, and so far I've had to fsck them once in the process of trying to debug this problem. This happens whether I use kldload or put the module in /etc/rc.conf.
Here's what I've tried:
I'm trying to get graphics to work now, and I've installed graphics/drm-kmod (which installs graphics/drm-fbsd12.0-kmod on this system) with pkg, but when I load /boot/modules/i915kms.ko, the screen goes black for a few seconds, then the Lenovo logo appears and the system boots again. The filesystems are not dismounted properly, and so far I've had to fsck them once in the process of trying to debug this problem. This happens whether I use kldload or put the module in /etc/rc.conf.
Here's what I've tried:
- Looking for obvious culprits in the BIOS. I've disabled execution prevention and increased the graphics memory setting. Neither one nor both had an effect, and I've undone the changes.
- Using the built-in legacy i915kms kernel module. It loaded successfully, but of course it didn't do anything, since my IGP is too new.
- Installing a different drm-kmod from ports. Every alternative that was available in my ports tree refused to install, saying my kernel was too old or too new.
- Reinstalling with an MBR partitioning scheme and legacy boot instead of using UEFI. This had no effect.