Comment 5 for bug 16424

Revision history for this message
Hiroyuki Ikezoe (ikezoe) wrote :

Thanks.

I found a bit better way.
The way is to receive the key press event instead of the key release event. In
this way, I could get more quick response.

Panasonic acpi driver sends 0000008x (00000081 or 00000082) event for key
presses and 0000000x (00000001 or 00000002) event for key releases, so I changed
the events file like the following:

Index: panasonic-brightness-down
===================================================================
--- panasonic-brightness-down (revision 440)
+++ panasonic-brightness-down (working copy)
@@ -1,3 +1,3 @@
 # /etc/acpi/events/panasonic-brightness-down
-event=pcc HKEY 00000080 00000001
+event=pcc HKEY 00000080 00000081
 action=/etc/acpi/panabright.sh down
Index: panasonic-brightness-up
===================================================================
--- panasonic-brightness-up (revision 440)
+++ panasonic-brightness-up (working copy)
@@ -1,3 +1,3 @@
 # /etc/acpi/events/panasonic-brightness-up
-event=pcc HKEY 00000080 00000002
+event=pcc HKEY 00000080 00000082
 action=/etc/acpi/panabright.sh up