diff options
Diffstat (limited to 'hal-0.5.11-patches/0006-add-zoom-and-ThinkPad-events-to-acpi-addon-for-IBM-L.patch')
-rw-r--r-- | hal-0.5.11-patches/0006-add-zoom-and-ThinkPad-events-to-acpi-addon-for-IBM-L.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/hal-0.5.11-patches/0006-add-zoom-and-ThinkPad-events-to-acpi-addon-for-IBM-L.patch b/hal-0.5.11-patches/0006-add-zoom-and-ThinkPad-events-to-acpi-addon-for-IBM-L.patch new file mode 100644 index 00000000..7d8d778e --- /dev/null +++ b/hal-0.5.11-patches/0006-add-zoom-and-ThinkPad-events-to-acpi-addon-for-IBM-L.patch @@ -0,0 +1,42 @@ +From 825b88b6a64bdbd995a1e37b27be413ec1717648 Mon Sep 17 00:00:00 2001 +From: Paul Bolle <pebolle@tiscali.nl> +Date: Tue, 17 Jun 2008 20:03:44 +0200 +Subject: [PATCH 06/48] add zoom and ThinkPad events to acpi addon for IBM/Lenovo + +Add "zoom" ("Fn+Space") and "ThinkPad" (a.k.a. "Access IBM" and +"ThinkVantage") button events to the acpi addon for IBM/LENOVO ThinkPads. +As of kernel 2.6.25 there are acpi events generated for these buttons too. + +Fixed a trivial typo too ("Fn=Insert"). + +(Note: fix/close bug fd.o #16335) +--- + hald/linux/addons/addon-acpi.c | 8 +++++++- + 1 files changed, 7 insertions(+), 1 deletions(-) + +diff --git a/hald/linux/addons/addon-acpi.c b/hald/linux/addons/addon-acpi.c +index ea4ad30..fb4847d 100644 +--- a/hald/linux/addons/addon-acpi.c ++++ b/hald/linux/addons/addon-acpi.c +@@ -143,11 +143,17 @@ handle_ibm_acpi_events (LibHalContext *ctx, int type, int event) + button = "Fn+Backspace"; + break; + case 4110: /* Fn+Insert*/ +- button = "Fn=Insert"; ++ button = "Fn+Insert"; + break; + case 4111: /* Fn+Delete*/ + button = "Fn+Delete"; + break; ++ case 4116: /* Fn+Space */ ++ button = "zoom"; ++ break; ++ case 4120: /* ThinkPad */ ++ button = "ThinkPad"; ++ break; + case 20489: /* Tablet rotated */ + button = "tabletpc_rotate_180"; + break; +-- +1.6.1.2 + |