From 9b6e33c4aaf3a3ffee62ada15955e5be47a1f148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=2E=20Sapka?= Date: Mon, 27 Feb 2023 10:40:34 +0100 Subject: feat: article for 20-23-02-27 --- ...-resume-on-thinkpad-x1-extreme-g2-on-freebsd.md | 35 ++++++++++++++++++++++ content/2023/freebsd-on-thinkpad-x1-extreme-g2.md | 6 +++- content/2023/tomasz-stanko-music-for-k.md | 4 +-- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 content/2023/fixing-resume-on-thinkpad-x1-extreme-g2-on-freebsd.md (limited to 'content/2023') diff --git a/content/2023/fixing-resume-on-thinkpad-x1-extreme-g2-on-freebsd.md b/content/2023/fixing-resume-on-thinkpad-x1-extreme-g2-on-freebsd.md new file mode 100644 index 0000000..f007504 --- /dev/null +++ b/content/2023/fixing-resume-on-thinkpad-x1-extreme-g2-on-freebsd.md @@ -0,0 +1,35 @@ +--- +title: "Fixing Resume on ThinkPad X1 Extreme G2 on FreeBSD" +category: "software" +abstract: you need to load the driver +date: 2023-02-27T10:27:55+01:00 +year: 2023 +draft: false +tags: +- ThinkPad +- FreeBSD +--- +*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. + diff --git a/content/2023/freebsd-on-thinkpad-x1-extreme-g2.md b/content/2023/freebsd-on-thinkpad-x1-extreme-g2.md index 0e60dbb..0d213f0 100644 --- a/content/2023/freebsd-on-thinkpad-x1-extreme-g2.md +++ b/content/2023/freebsd-on-thinkpad-x1-extreme-g2.md @@ -39,7 +39,7 @@ This is one of the few instances when I am rethinking my life choices, and I wou USB devices are detected automatically and mostly work. However, my monitor (Dell P2723QE) has an integrated 1000Base-T ethernet connection, but on FreeBSD, only 100Base-T worked. -Another problem is Suspend/Resume. I can easily [suspend](https://wiki.freebsd.org/SuspendResume) the device, but after resuming it, the screen is still black. This seems to be a known problem across different OSes for this laptop and has some [known warkarounds](https://www.thinkwiki.org/wiki/Problem_with_display_remaining_black_after_resume#Solution_for_ThinkPads_with_Intel_Extreme_Graphics_2) for Linux, but I have no idea how to apply them to BSD. +Another problem is Suspend/Resume. I can easily [suspend](https://wiki.freebsd.org/SuspendResume) the device, but after resuming it, the screen is still black. This seems to be a known problem across different OSes for this laptop and has some [known warkarounds](https://www.thinkwiki.org/wiki/Problem_with_display_remaining_black_after_resume#Solution_for_ThinkPads_with_Intel_Extreme_Graphics_2) for Linux, but I have no idea how to apply them to BSD. (*[update: there is a fix working](#updates)*) The biggest problem here is battery drain. I have `power` enabled, but `acpinfo` reports about over 1% per minute. I was getting about the same drain on Arch Linux, but Manajaro acted much better. @@ -54,3 +54,7 @@ It seems that for a desktop computer everything would work. I'm falling in love with the system and its simplicity and logic. So even if I fail at fixing the above, I'll try to stick with it. And even if I get fed up with the state of hardware support, I'll keep FreeBSD as a secondary system. For personal servers, however, I see no way of abandoning BSD. + +### Updates + +- 2023-02-27: [Fixing resume](/2023/fixing-resume-on-thinkpad-x1-extreme-g2-on-freebsd/) diff --git a/content/2023/tomasz-stanko-music-for-k.md b/content/2023/tomasz-stanko-music-for-k.md index 8c3e72c..40a274f 100644 --- a/content/2023/tomasz-stanko-music-for-k.md +++ b/content/2023/tomasz-stanko-music-for-k.md @@ -15,9 +15,9 @@ tags: *Every monday I will try to post some music, just to bright up someone's day. I stole this idea from [Ruben Schade](https://rubenerd.com/tag/music-monday/).* -A year after [Krzysztof Komeda](https://en.wikipedia.org/wiki/Krzysztof_Komeda)'s death, one of his pupils, [Tomasz Stańko](https://en.wikipedia.org/wiki/Tomasz_Sta%C5%84ko), releases an album dedicated to his mentor. +A year after [Krzysztof Komeda](https://en.wikipedia.org/wiki/Krzysztof_Komeda)'s death, one of his pupils, [Tomasz Stańko](https://en.wikipedia.org/wiki/Tomasz_Sta%C5%84ko), released an album dedicated to his mentor. {{}} -Krzysztof Komedia and Tomasz Stańko are considered to be one the most important Polish jazzmans of all time. +Krzysztof Komeda and Tomasz Stańko are considered to be one the most important Polish jazzmans of all time. -- cgit v1.2.3