Fix Suspend on Linux Mint
Published on 2023-11-15
You might get a black screen after trying to suspend your Linux Mint. This script does not fix the problem per se, but serves as an alternative method of suspending your system.
Script
sudo sleep 0.1
cinnamon-screensaver-command -l
echo deep | sudo tee /sys/power/mem_sleep
echo mem | sudo tee /sys/power/state
For other distros, replace (or remove) cinnamon-screensaver-command -l
. This locks your desktop.
Using the Script
Open text editor and paste the previously listed script.
Save it as suspend.sh
on your desktop.
Right click on it -> Properties -> Permissions -> Allow executing…
Double click on it and choose Run in Terminal.
Enter your password to suspend your PC.
You will have to use this script every time you want to suspend your PC.
More Resources
Distro-specific suspend methods may fail on certain drivers. Using this method, you interact directly with the kernel.