Comment 4 for bug 264287

Revision history for this message
Benjamin Prosnitz (aetherane) wrote : Re: zoom and calculator keys dont work in my microsoft natural keyboard 4000

For me, the calculator button works but I'm having trouble with the zoom slider.

I tried 3 different methods described in the HotKeyResearch page. None of them reported any keycodes, or even had any response to my presses whatsoever.

The Gentoo site says the following about the zoom key:
"Due to limitations of X11 protocol (no keycodes outside 9—255 range are allowed), some kernel keycode bindings should be fixed in order to make zoom throttle and «Spellcheck» key work under X. Apply the following patch to include/linux/input.h file of kernel sources (only 3 lines are changed):

File:

--- /usr/src/linux/include/linux/input.h.orig 2007-12-31 12:36:02.000000000 +0300
+++ /usr/src/linux/include/linux/input.h 2007-12-30 18:37:19.000000000 +0300
@@ -510,8 +510,8 @@
 #define KEY_TWEN 0x19f
 #define KEY_VIDEOPHONE 0x1a0 /* Media Select Video Phone */
 #define KEY_GAMES 0x1a1 /* Media Select Games */
-#define KEY_ZOOMIN 0x1a2 /* AC Zoom In */
-#define KEY_ZOOMOUT 0x1a3 /* AC Zoom Out */
+#define KEY_ZOOMIN 246 /* AC Zoom In */
+#define KEY_ZOOMOUT 247 /* AC Zoom Out */
 #define KEY_ZOOMRESET 0x1a4 /* AC Zoom */
 #define KEY_WORDPROCESSOR 0x1a5 /* AL Word Processor */
 #define KEY_EDITOR 0x1a6 /* AL Text Editor */
@@ -524,7 +524,7 @@
 #define KEY_ADDRESSBOOK 0x1ad /* AL Contacts/Address Book */
 #define KEY_MESSENGER 0x1ae /* AL Instant Messaging */
 #define KEY_DISPLAYTOGGLE 0x1af /* Turn display (LCD) on and off */
-#define KEY_SPELLCHECK 0x1b0 /* AL Spell Check */
+#define KEY_SPELLCHECK 235 /* AL Spell Check */
 #define KEY_LOGOFF 0x1b1 /* AL Logoff */

 #define KEY_DOLLAR 0x1b2
"