Omarchy

How-To: Figure Out Why Your Linux Laptop Is Slow to Wake From Sleep

Leave a comment

The HP ZBook fix in Omarchy is a good reminder that slow resume usually leaves fingerprints in the logs. Here’s how to find them.

1. See which sleep mode you’re using

cat /sys/power/mem_sleep

The one in brackets is active. [s2idle] is modern standby; deep is classic S3 if your firmware offers it.

2. Do a controlled test

sudo rtcwake -m mem -s 60

That sleeps for 60 seconds and wakes on its own, so you can time it.

3. Read the kernel log from that cycle

journalctl -k -b | grep -Ei 'PM: |suspend|resume|IO_PAGE_FAULT|timeout|nvme'

Look at the timestamps between PM: suspend exit and the lines before it to see where the time went. Long gaps next to a device (often NVMe, Wi-Fi or USB) point at the culprit. IO_PAGE_FAULT lines point at the IOMMU, like the HP case.

4. Try one change at a time

Update the BIOS first. Then test kernel parameters one at a time from your bootloader config and re-run the rtcwake test. Write down what you changed so you can undo it.

God Bless, and Use the Source!

References & Further Reading

Subscribe (RSS) Follow How-Tos via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.