Summary: | X Error of failed request: BadValue (integer parameter out of range for operation) | ||
---|---|---|---|
Product: | xkeyboard-config | Reporter: | nakaji |
Component: | General | Assignee: | xkb |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | critical | ||
Priority: | medium | CC: | nakaji |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | FreeBSD | ||
URL: | http://lists.freebsd.org/pipermail/freebsd-x11/2007-September/005287.html | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
nakaji
2007-09-23 17:50:24 UTC
(In reply to comment #0) > As I reported to freebsd-x11 list, on FreeBSD/pc98, "Major opcode of failed > request: 101 (X_GetKeyboardMapping)" error occurs when I hit any key on xterm > or kterm, after the upgrade of xorg to 7.3. > > Note: the platform "pc98" is NEC's PC, it is simillar to x86(ia32) but > different. this is a server/keymap problem. pc98 generates a keymap with a max keycode of 134. the core keyboard is initialised to a max code of 255. On the initial connection reply, this is the range the client receives, and when it calls GetKeyboardMapping it supplies this map range. The server then responds with an error, because the keymap has changed to 8-134 when you hit the key. The main problem is that client's don't deal with shrinking/growing keymaps. The only way to get around that is force smaller keymaps (like pc98) to be max 255. Find your xfree98 file (/usr/share/X11/xkb/keycodes/xfree98) and replace the "maximum = 134" with "maximum=255". I'm not sure if it necessary to pad the keymaps with empty symbols reach the max keycode 255 though. I suspect this procedure needs to be applied to all keymaps < 255. alternatively, xkbcomp could be modified to auto-pad everything. (In reply to comment #1) > Find your xfree98 file (/usr/share/X11/xkb/keycodes/xfree98) and replace the > "maximum = 134" with "maximum=255". I'm not sure if it necessary to pad the > keymaps with empty symbols reach the max keycode 255 though. It worked! Thanks!! sergey, could you please give all keyboard maps a range of 8-255? Daniel, what about the memory consumption? anyway, committed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.