Resume on Thinkpad X1 Extreme G2 ends in black screen

Hey. I've installed FreeBSD on my personal laptop. I can easily put it to sleep, but the screen is still black after resuming. Has anyone fixed this issue on ThinkPad X1 Extreme G2? There are some known workarounds on the ThinkPad Wiki, but I have no idea how to apply them to FreeBSD :-(

ps. I wrote a blog post about this and other problems I've encountered (https://d-s.sh/2023/freebsd-on-thinkpad-x1-extreme-g2/) and this is the first I'd love to fix.
 
I had a similar problem with a different model Thinkpad (can't remember which model, unfortunately) and resolved it by disabling TPM, as per this thread:
Might be worth a shot.
 
I tried kldload tpm and disabling it in bios, but the screen still doesn’t wake after resume. I’m in tty, so X is not a factor here.

I can type reboot with the screen still off and the computer reboots, so it’s just the screen.
 
Do you know your exact hardware, mainly CPU/iGPU and discrete GPU?

From ThinkPad X1 Extreme Gen 2 (15") Laptop:
9th Generation Intel® Core™ i9-9880H Processor with vPro™ (2.30 GHz, up to 4.80 GHz with Turbo Boost, 8 Cores, 16 Threads, 16 MB Cache)
NVIDIA® GeForce® GTX 1650 Max-Q 4GB GDDR5
Are these specs the same from your thinkpad?

[...] ThinkPad X1 Extreme G2? There are some known workarounds on the ThinkPad Wiki, [...]
The section you're referencing at ThinkPad Wiki is about:
Solution for ThinkPads with Intel Extreme Graphics 2
That doesn't seem to be like your laptop (also judging by the references made there: X40s/X41s)

edit: Screen blank after sleep/resume-PR 213501 hints in the same direction as bsduck mentioned.
 
According to OP's blog:
Code:
Model mame.............Thinpad X1 Extreme gen2
CPU..............Intel i5-9300 8 core @ 4.1GHz
Memory...................................32 GB
GPU1..........................UHD Graphics 630
GPU2....NVIDIA Geforce GTX 1650 Mobile / Max-Q
Screen size.............................15,6''
 
I tried kldload Tom and disabling it in bios, but the screen still doesn’t wake after resume.

That's 'tpm', right? it's mentioned along with other things for X1 Carbon, the 14" model, at one of these:




X1 carbon: sdhci needs kldunload/kldload after resume

I’m in tty, so X is not a factor here.

Not so. You will need the appropriate drm-kmod, I guess for 13.1?

Took me ages to find out I needed drm-fbsd12.0-kmod for my 12.3 Thinkpad T430s to get clean resumes, long before I ever fired up Xorg.
 
FYI, "updating" to a Beta is usually not "solving" things but asking for them. YMMV
 
Back
Top