--- title: "Fixing Resume on ThinkPad X1 Extreme G2 on FreeBSD due to integrated graphic card" category: bsd abstract: you need to load the driver date: 2023-02-27T10:27:55+01:00 year: 2023 draft: false tags: - ThinkPad - FreeBSD - tutorial --- *This applies to FreeBSD 13.1* Recently I [posted](/2023/freebsd-on-thinkpad-x1-extreme-g2/) about my problems with FreeBSD. One of them was resume. After installing FreeBSD, I was able to put my laptop to sleep via ``` acpiconf -s 3 ``` And this worked fine. However, I was not able to resume it back from sleep. After pressing the power button laptop woke, but the screen was still black. I could `reboot`, and it would work, so only the screen was the problem. After asking about this on [FreeBSD Forums](https://forums.freebsd.org/threads/resume-on-thinkpad-x1-extreme-g2-ends-in-black-screen.88162/), [bsduck](https://forums.freebsd.org/members/bsduck.61635/) and [smithi](https://forums.freebsd.org/members/smithi.71028/) pointed me to dedicated drivers for the integrated Intel GPU. And it worked like a charm. All I had to do was: ``` # pkg install drm-kmod # sysrc -f /etc/rc.conf kld_list+=i915kms # reboot ``` (via [FreeBSD wiki](https://wiki.freebsd.org/Graphics#Intel_Integrated_Graphics_.28aka_HD_Graphics.29)). Now the computer can sleep and resume without any problems. At least when using [sleep mode 3](https://man.freebsd.org/cgi/man.cgi?acpiconf(8)). The 4th doesn't work for me at all.