aboutsummaryrefslogtreecommitdiff
blob: 7d8d778e6abb83f1eea393bd3c54a01054c3a3f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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