Blank screen after resuming from sleep (Thinkpad T430)

I installed FreeBSD recently, only been using it on the console, no graphical environment yet.
So I wanted to see if suspend-to-RAM worked, suspension indeed worked but resuming not so much; the system actually resumes, there's disk activity and I can still type commands (like reboot), but the screen remains turned off.

Looking through the kernel logs I see this (maybe could be related?) which appears before suspending:
Code:
pcib0: failed to set ACPI power state D2 on \_SB_.PCI0: AE_BAD_PARAMETER
and these when booting:
Code:
ACPI: \_SB.WMI1.WQBA: 1 arguments were passed to a non_method ACPI object (Buffer) (20221020/nsarguments-361)
...
ACPI: \_SB.WMI2.WQBB: 1 arguments were passed to a non_method ACPI object (Buffer) (20221020/nsarguments-361)

I tried these sysctls but nothing changed:
Code:
kern.vt.suspendswitch=0
kern.vt.deadtimer=60
hw.usb.no_suspend_wait=1
Running 14.2-RELEASE.
 
no graphical environment yet
You need to install and enable a drm-kmod driver:

Handbook 14.6.7. Suspend/Resume

Note

In order for the suspend/resume functionality to work correctly the graphics drivers must be loaded on the system. In
non-KMS-supported graphics cards sc(4) must be used not to break the suspend/resume functionality.

More information about which driver to use and how to configure it can be found at the The X Window System chapter.
sc(4) won't work on UEFI systems, though.
 
Installed the drm-kmod driver and enabled it. Now the console is stuck after a "drm initialized i915".
Running 14.2-RELEASE.
You probably have installed the driver from package. I should have mentioned that drm-kmod driver for 14.2 has to be installed from ports, or from FreeBSD-kmod package repository (see Thread 96058 for details).

The reason is: Graphics driver kernel modules must be compiled against the running kernel version. 14 branch packages are currently build for 14.1 until end-of-life on March 31.

FreeBSD 14.2-RELEASE Errata

Open Issues
  • drm-kmod packages compiled on FreeBSD 14.1 result in the text console being inoperative when the
    kernel module is loaded. Recompiling the package from the ports tree will restore the lost
    functionality. This issue will also resolve itself after the FreeBSD 14.1 EoL, when packages for
    14-STABLE will start being built on FreeBSD 14.2-RELEASE.

The driver matching the kernel version is also mentioned in the post-install message, you might have overlooked it. To review, pkg info -D drm-61-kmod (or *-515-*):
Code:
[...]
Please note that this package was built for FreeBSD 14.1.
If this is not your current running version, please rebuild
it from ports to prevent panics when loading the module.

So... no support for UEFI devices, do I have to install in legacy mode instead? Is my laptop too new for FreeBSD?
i915kms from ports or from the FreeBSD-kmods package repository should resolve the issue.
 
Back
Top