Hey,
I have installed NixOS 25.05 on my Lenovo Slim 7.
I have previously used Aeon Desktop on the same device, and my device would wake immediately from sleep, whereas on NixOS it takes around 20 seconds.
I was wondering if there is some way to find out what the problem is, and fix it.
Thanks.
Not any kind of expert on this, but hopefully the following will be something you can do to start looking for clues.
- Do a fresh reboot, just so you can be more sure everything is consistent
- Suspend, then resume
journalctl -b -xu systemd-suspend to get the logs after the most recent boot relating to the suspend service, which will look something like:
Click to expand the logs
Oct 21 10:20:00 hostname systemd[1]: Starting System Suspend...
ββ Subject: A start job for unit systemd-suspend.service has begun execution
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ A start job for unit systemd-suspend.service has begun execution.
ββ
ββ The job identifier is 1190.
Oct 21 10:20:00 hostname systemd-sleep[1992]: Successfully froze unit 'user.slice'.
Oct 21 10:20:00 hostname systemd-sleep[1992]: Performing sleep operation 'suspend'...
ββ Subject: System sleep state suspend entered
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ The system has now entered the suspend sleep state.
Oct 21 10:20:15 hostname systemd-sleep[1992]: System returned from sleep operation 'suspend'.
ββ Subject: System sleep state suspend left
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ The system has now left the suspend sleep state.
Oct 21 10:20:15 hostname systemd-sleep[1992]: Successfully thawed unit 'user.slice'.
Oct 21 10:20:15 hostname systemd[1]: systemd-suspend.service: Deactivated successfully.
ββ Subject: Unit succeeded
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ The unit systemd-suspend.service has successfully entered the 'dead' state.
Oct 21 10:20:15 hostname systemd[1]: Finished System Suspend.
ββ Subject: A start job for unit systemd-suspend.service has finished successfully
ββ Defined-By: systemd
ββ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
ββ
ββ A start job for unit systemd-suspend.service has finished successfully.
ββ
β
- Ask for the systemctl logs since βStarting System Suspendβ¦β, so
journalctl -x -S 'Oct 21 10:20:00' in the case of the logs above.
1 Like