Article information
Published on:
Last update:
Reading time: 1 - 2 minutes
Tools: View source Suggest edit
Arch Linux fixing freeze during suspend
One issue I encountered while using Arch Linux is that after some recent upgrade, the system would freeze if it went into sleep mode, which was quite annoying as it would result in the loss of all your work.
With some detective work, I looked into the logs from the previous boot to see what was happening:
Doing some research for the last line on the internet has resulted in a few reports of this: example 1, example 2. example 3
To fix this bug, we need to make a new systemd unit that disables pm_async
after startup, start by making a new systemd unit using sudo systemctl edit --force --full disable_pm_async
, then pasting the following content:
We now need to activate our new unit, we can do this using sudo systemctl enable disable_pm_async
. If you want to apply the changes without needing to restart the current computer, we need to start the service: sudo systemctl start disable_pm_async
.
You are now free to restart the computer and enjoy sleep mode.