summaryrefslogtreecommitdiff
path: root/content/2023/fixing-resume-on-thinkpad-x1-extreme-g2-on-freebsd.md
blob: e30d3cf1ed383e7cb69d0ce4470eeb79c785e625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
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.