diff options
author | Camil Staps | 2023-02-22 15:23:52 +0100 |
---|---|---|
committer | Camil Staps | 2023-02-22 15:23:52 +0100 |
commit | 17b75fa6ef5e19e267135b69d11004a97728d431 (patch) | |
tree | 174f8c1848c3d73dfec3c31b45568bd12f46bb41 | |
parent | i3: use non-monospace font; add Mod+Shift+H shortcut for hibernation (diff) |
Add note about suspend on yoga
-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 |