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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | event_lid » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« 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