From 17b75fa6ef5e19e267135b69d11004a97728d431 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Wed, 22 Feb 2023 15:23:52 +0100 Subject: Add note about suspend on yoga --- yoga/README.md | 6 ++++++ yoga/etc/systemd/logind.conf | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 yoga/etc/systemd/logind.conf (limited to 'yoga') 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 -- cgit v1.2.3