]> git.pld-linux.org Git - packages/acpid.git/commitdiff
- mic mute button support
authorAdam Osuchowski <adwol@pld-linux.org>
Thu, 23 Oct 2014 19:17:29 +0000 (21:17 +0200)
committerAdam Osuchowski <adwol@pld-linux.org>
Thu, 23 Oct 2014 19:17:29 +0000 (21:17 +0200)
acpid-micmute.patch [new file with mode: 0644]
acpid.spec

diff --git a/acpid-micmute.patch b/acpid-micmute.patch
new file mode 100644 (file)
index 0000000..7a2e69c
--- /dev/null
@@ -0,0 +1,14 @@
+diff -ruNp acpid-2.0.10.orig/input_layer.c acpid-2.0.10/input_layer.c
+--- acpid-2.0.10.orig/input_layer.c    2011-03-12 17:22:34.000000000 +0100
++++ acpid-2.0.10/input_layer.c 2014-10-23 21:15:00.054570789 +0200
+@@ -115,6 +115,10 @@ static struct evtab_entry evtab[] = {
+               "button/volumeup VOLUP 00000080 00000000"},
+       {{{0,0}, EV_KEY, KEY_MUTE, 1}, 
+               "button/mute MUTE 00000080 00000000"},
++      {{{0,0}, EV_KEY, KEY_MICMUTE, 1}, 
++              "button/micmute MICMUTE 00000080 00000000"},
++      {{{0,0}, EV_KEY, KEY_F20, 1}, 
++              "ibm/hotkey HKEY 00000080 0000101b"},
+       /* cd play/pause buttons */
+       {{{0,0}, EV_KEY, KEY_NEXTSONG, 1}, 
+               "cd/next CDNEXT 00000080 00000000"},
index 7ea630f3b7a12e6b5398c9d41c88a9282791cb86..5cdf2b23e4dae49b7549ef376ac5668e72d4b57e 100644 (file)
@@ -27,6 +27,7 @@ Source7:      %{name}.battery.sh
 Source8:       %{name}.upstart
 Source9:       %{name}.service
 Source10:      %{name}.preconfig
+Patch1:                %{name}-micmute.patch
 URL:           http://tedfelix.com/linux/acpid-netlink.html
 BuildRequires: rpmbuild(macros) >= 1.647
 Requires(post,preun):  /sbin/chkconfig
@@ -77,6 +78,7 @@ wyłącznie jako dyspozytor wiadomości.
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %{__make} \
This page took 0.368706 seconds and 4 git commands to generate.