From 6e50da6f8d2d1f473c442b8ea0e8d5710bc33f04 Mon Sep 17 00:00:00 2001 From: gitea Date: Wed, 26 Jul 2023 09:26:48 +0800 Subject: [PATCH] [modify] add comments about laptop lid --- update/restore.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update/restore.sh b/update/restore.sh index 6b845d2..eab286b 100644 --- a/update/restore.sh +++ b/update/restore.sh @@ -42,6 +42,18 @@ ABORT=9 # lack of bluetooth drivers and wireless net card(Intel AX101)drivers -- ibt-0040-1050.sfi # cp ibt-0040-0041.sfi ibt-0040-1050.sfi # cp ibt-0040-0041.ddc ibt-0040-1050.ddc +# ------------------------------------------------------------------------------------------------------------- +# do nothing when closing laptop lid +# Firstly, edit file /etc/systemd/logind.conf +# HandleLidSwitch=ignore +# HandleLidSwitchExternalPower=ignore +# HandleLidSwitchDocked=ignore +# LidSwitchIgnoreInhibited=yes +# +# Candidate: suspend/lock/ignore/poweroff/hibernate +# +# Secondly, reboot the system + # ============================================================================================================= # This script must be executed by root privilege