OLD | NEW |
| (Empty) |
1 #!/bin/sh | |
2 | |
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 logger "action_lid.sh: " `cat /proc/acpi/button/lid/*/state` | |
8 | |
9 grep -q "closed" /proc/acpi/button/lid/*/state | |
10 if [ $? != 0 ]; then | |
11 logger "action_lid.sh: lid is not closed. Bailing out." | |
12 exit 0 | |
13 fi | |
14 | |
15 logger "action_lid.sh: lid closed. Requesting suspend." | |
16 /usr/bin/dbus-send --type=signal --system / \ | |
17 org.chromium.PowerManager.RequestSuspend | |
OLD | NEW |