Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2342)

Unified Diff: action_lid.sh

Issue 3230002: Remove lid events and actions. (Closed) Base URL: http://git.chromium.org/git/acpi.git
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | event_lid » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: action_lid.sh
diff --git a/action_lid.sh b/action_lid.sh
deleted file mode 100755
index 7c66d874cc5f61b9b01793dc528eea5ab6a2436c..0000000000000000000000000000000000000000
--- a/action_lid.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-logger "action_lid.sh: " `cat /proc/acpi/button/lid/*/state`
-
-grep -q "closed" /proc/acpi/button/lid/*/state
-if [ $? != 0 ]; then
- logger "action_lid.sh: lid is not closed. Bailing out."
- exit 0
-fi
-
-logger "action_lid.sh: lid closed. Requesting suspend."
-/usr/bin/dbus-send --type=signal --system / \
- org.chromium.PowerManager.RequestSuspend
« no previous file with comments | « no previous file | event_lid » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698