pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/37674: x11/xf86-input-keyboard doesn't map some useful USB keycodes
>Number: 37674
>Category: pkg
>Synopsis: x11/xf86-input-keyboard doesn't map some useful USB keycodes
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 03 01:10:00 +0000 2008
>Originator: Anthony Mallet
>Release: NetBSD 4.99.40 i386
>Organization:
>Environment:
System: NetBSD 4.99.40 (FICUS) #88: Wed Jan 2 22:13:55 CET 2008
troot@ficus:/usr/obj/sys/arch/i386/compile/FICUS
>Description:
I added the following USB keycodes, which are present on e.g. my sun type 5 usb
keyboard:
KEY_Power
KEY_Help
KEY_L1 -> L10
KEY_Mute
KEY_AudioRaise
KEY_AudioLower
Without this patch, they are mapped to MIN_KEYCODE (==8) no matter what I do.
The USB keycodes seems universal (as per
http://www.win.tue.nl/~aeb/linux/kbd/scancodes-14.htm) and I think this deserve
a
patch.
>How-To-Repeat:
>Fix:
--- usbkbd-patch begins here ---
--- src/bsd_KbdMap.c~ 2008-01-03 00:36:39.000000000 +0100
+++ src/bsd_KbdMap.c 2008-01-03 01:04:24.000000000 +0100
@@ -405,7 +405,7 @@
/* 99 */ KEY_KP_Decimal, /* Keypad . Del */
/* 100 */ KEY_Less, /* < > on some keyboards */
/* 101 */ KEY_Menu, /* Menu */
- /* 102 */ KEY_NOTUSED,
+ /* 102 */ KEY_Power,
/* 103 */ KEY_KP_Equal, /* Keypad = on Mac keyboards */
/* 104 */ KEY_NOTUSED,
/* 105 */ KEY_NOTUSED,
@@ -419,20 +419,20 @@
/* 113 */ KEY_NOTUSED,
/* 114 */ KEY_NOTUSED,
/* 115 */ KEY_NOTUSED,
- /* 116 */ KEY_NOTUSED,
- /* 117 */ KEY_NOTUSED,
- /* 118 */ KEY_NOTUSED,
- /* 119 */ KEY_NOTUSED,
- /* 120 */ KEY_NOTUSED,
- /* 121 */ KEY_NOTUSED,
- /* 122 */ KEY_NOTUSED,
- /* 123 */ KEY_NOTUSED,
- /* 124 */ KEY_NOTUSED,
- /* 125 */ KEY_NOTUSED,
- /* 126 */ KEY_NOTUSED,
- /* 127 */ KEY_NOTUSED,
- /* 128 */ KEY_NOTUSED,
- /* 129 */ KEY_NOTUSED,
+ /* 116 */ KEY_L7,
+ /* 117 */ KEY_Help,
+ /* 118 */ KEY_L3,
+ /* 119 */ KEY_L5,
+ /* 120 */ KEY_L1,
+ /* 121 */ KEY_L2,
+ /* 122 */ KEY_L4,
+ /* 123 */ KEY_L10,
+ /* 124 */ KEY_L6,
+ /* 125 */ KEY_L8,
+ /* 126 */ KEY_L9,
+ /* 127 */ KEY_Mute,
+ /* 128 */ KEY_AudioRaise,
+ /* 129 */ KEY_AudioLower,
/* 130 */ KEY_NOTUSED,
/* 131 */ KEY_NOTUSED,
/* 132 */ KEY_NOTUSED,
--- usbkbd-patch ends here ---
Home |
Main Index |
Thread Index |
Old Index