diff options
-rw-r--r-- | yoga/README.md | 6 | ||||
-rw-r--r-- | yoga/etc/systemd/logind.conf | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/yoga/README.md b/yoga/README.md index d7d2d12..9b3e57d 100644 --- a/yoga/README.md +++ b/yoga/README.md @@ -28,3 +28,9 @@ $ sudo tlp start and see the settings in `/etc/tlp.conf`. Especially CPU scaling is important to reduce power usage on battery. + +### Suspend + +The laptop apparently does not support S3 and suspension upon closing the +laptop does not work out of the box. However, we can use `systemctl suspend` / +`systemctl suspend-then-hibernate`; see `/etc/systemd/logind.conf`. diff --git a/yoga/etc/systemd/logind.conf b/yoga/etc/systemd/logind.conf new file mode 100644 index 0000000..7a2b659 --- /dev/null +++ b/yoga/etc/systemd/logind.conf @@ -0,0 +1,4 @@ +[Login] +HandleLidSwitch=suspend-then-hibernate +HandleLidSwitchExternalPower=suspend-then-hibernate +HandleLidSwitchDocked=suspend-then-hibernate |