Add ACPI action for mute button
parent
49547358ae
commit
61790709ba
|
@ -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`.
|
|
@ -0,0 +1,2 @@
|
||||||
|
event=button/mute
|
||||||
|
action=amixer -D hw:PCH -M sset 'Master' toggle
|
Loading…
Reference in New Issue