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

Unified Diff: src/platform/acpi/action_hotkey.sh

Issue 1593003: Added mute key handling to the WM. Also removed ACPI hotkey handler (Closed)
Patch Set: Created 10 years, 9 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 | src/platform/acpi/event_hotkey » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/acpi/action_hotkey.sh
diff --git a/src/platform/acpi/action_hotkey.sh b/src/platform/acpi/action_hotkey.sh
deleted file mode 100755
index 3ca6a870a0b8e7e2c5c0e446cee9425d0efd9550..0000000000000000000000000000000000000000
--- a/src/platform/acpi/action_hotkey.sh
+++ /dev/null
@@ -1,31 +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.
-
-# TODO: This is specific to eeepc. Figure out a way to generalize and
-# add support for additional hotkeys.
-#
-# TODO(ajwong): Find a better way to talk to pulseaudio than changing to the
-# chronos user and talking to pulseaudio via amixer.
-
-USER_ID="$(/usr/bin/id -u chronos)"
-MINIJAIL_FLAGS="--use-capabilities"
-
-export PULSE_RUNTIME_PATH=/var/run/pulse
-
-case "$3" in
- 00000013) # Toggle sound
- /sbin/minijail ${MINIJAIL_FLAGS} --uid=${USER_ID} -- \
- /usr/bin/amixer set Master toggle
- ;;
- 00000014) # Decrease volume
- /sbin/minijail ${MINIJAIL_FLAGS} --uid=${USER_ID} -- \
- /usr/bin/amixer set Master 5%-
- ;;
- 00000015) # Increase volume
- /sbin/minijail ${MINIJAIL_FLAGS} --uid=${USER_ID} -- \
- /usr/bin/amixer set Master 5%+
- ;;
-esac
« no previous file with comments | « no previous file | src/platform/acpi/event_hotkey » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698