Remove lid events and actions. Power manager now gets this event from the input layer. This cl is from a batch of related cls for power manager repartitioning: *3230002 - Remove lid events and actions, acpi 3126026 - Power Manager Repartitioning - power_manager 3169033 - Add powerm.conf - init 3195027 - Added more dbus service constants - libchromeos 3132027 - Add to power_manager ebuild - chromiumos-overlay BUG=6149 TEST=None Change-Id: I4ce18fb02793bec494df07bd341207cc944724f0 Signed-off-by: Benson Leung <bleung@chromium.org> Review URL: http://codereview.chromium.org/3230002
diff --git a/action_lid.sh b/action_lid.sh deleted file mode 100755 index 7c66d87..0000000 --- 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
diff --git a/event_lid b/event_lid deleted file mode 100644 index f8ed40a..0000000 --- a/event_lid +++ /dev/null
@@ -1,6 +0,0 @@ -# Copyright (c) 2009 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. - -event=button[ /]lid -action=/etc/acpi/action_lid.sh