| Index: src/platform/acpi/action_lid.sh
|
| diff --git a/src/platform/acpi/action_lid.sh b/src/platform/acpi/action_lid.sh
|
| index 48c8821e7e52a602507d7aae49450ae3f10e28a5..4cab07c965a904aafa8d10bfb410b96958eaab43 100755
|
| --- a/src/platform/acpi/action_lid.sh
|
| +++ b/src/platform/acpi/action_lid.sh
|
| @@ -10,6 +10,12 @@ if ! test -f /var/run/state/logged-in; then
|
| exit 0
|
| fi
|
|
|
| +# Check whether the lid is closed before proceeding
|
| +grep -q open /proc/acpi/button/lid/*/state
|
| +if [ $? = 0 ]; then
|
| + exit 0
|
| +fi
|
| +
|
| # On lid close:
|
| # - lock the screen
|
| export HOME=/home/chronos
|
|
|