Ubuntu turns off automatic hibernation

1. View the current sleep mode

Use systemctl status sleep.target the command to view the current sleep mode. The result is as shown below. The sleep status is enabled, indicating that the automatic sleep mode is on.
Insert image description here

2. Turn off the automatic sleep mode

sudo systemctl mask sleep.target suspend.targetTurn off hibernation with
Insert image description here

3. Confirm sleep mode

Use systemctl status sleep.target the command again to view the current sleep mode. The result is as shown below. The sleep status is masked, indicating that the automatic sleep mode is turned off.
Insert image description here

Guess you like

Origin blog.csdn.net/qq_38429958/article/details/131763351