Add ACPI action for mute button

master
Chosto 2018-10-23 18:20:44 +02:00
parent 49547358ae
commit 61790709ba
2 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Example file to bind an ACPI event to a simple action.
In my case up and down volume buttons are recognized and have a
keycode/sym but mute don't have. However the ACPI event when using
the key is correctly catched (button/mute).
We use acpid daemon to bind the appropriate action
Copy this file to `/etc/acpi/events`.

View File

@ -0,0 +1,2 @@
event=button/mute
action=amixer -D hw:PCH -M sset 'Master' toggle