Summary: | xorg-x11-6.7.0-r2/6.8.0: kbd driver doesn't intercept keypress to switch virtual consoles | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Paul Varner (RETIRED) <fuzzyray> |
Component: | [OLD] Core system | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Paul Varner (RETIRED)
2004-09-12 10:19:29 UTC
Results of using kbd driver and trying to switch to all virtual consoles: garath ~ # cat -v - ^[O7P^[O7Q^[O7R^[O7S^[[15;7~^[[17;7~^[[18;7~^[[19;7~^[[20;7~^[[21;7~^[[23;7~^[[24;7~ *** Bug 63471 has been marked as a duplicate of this bug. *** I just upgraded my other Gentoo box and it has the same problem xorg.conf Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection Xorg.0.log (**) Option "CoreKeyboard" (**) Keyboard0: Core Keyboard (**) Option "Protocol" "standard" (**) Keyboard0: Protocol: standard (**) Option "AutoRepeat" "500 30" (**) Option "XkbRules" "xorg" (**) Keyboard0: XkbRules: "xorg" (**) Option "XkbModel" "pc101" (**) Keyboard0: XkbModel: "pc101" (**) Option "XkbLayout" "us" (**) Keyboard0: XkbLayout: "us" (**) Option "CustomKeycodes" "off" (**) Keyboard0: CustomKeycodes disabled (II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD) (II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE) (EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap setxkbmap -print xkb_keymap { xkb_keycodes { include "xfree86+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete" }; xkb_symbols { include "pc/pc(pc101)+pc/us" }; xkb_geometry { include "pc(pc101)" }; }; /usr/X11R6/lib/X11/xkb/compiled (symlink to /var/lib/xkb) only contains a README with a timestamp of the upgrade time. Don't know if it's a duplicate but with the same symptoms of bug #63795 i got this error message: The XKEYBOARD keymap compiler (xkbcomp) reports: > Error: Include file wrong type (expected CompatMap, got KeyNames) > Include file "xfree86" ignored > Abandoning compatibility map "complete" > Abandoning compatibility map "default" Errors from xkbcomp are not fatal to the X server (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap not in the log but to the vc where i do startx.. the keyboard sections in xorg.conf is only Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection the xorg version installed is: xorg-x11-6.8.0-r2 and only by adding the Option "XkbDisable" line to the keyboard sections eliminates any problem..but i don't want to disable my Xkb driver (and i don't know what are the difference between a kbd-disabled and a kbd-enabled xorg but i suppose that if there are two ways of using my keyboard i want the best and probably kdb is that :) The line: Option "XkbDisable" really doesn't fix the problem. I can only use Ctrl+Alt+F? if I'm not in a text input window. Also, my Windows key still does not work at all. (I have OpenBox map the Windows key.) > The line: Option "XkbDisable" really doesn't fix the problem.
sorry, i tryed and only putting this two lines toghether fixes the problem:
Driver "Keyboard"
Option "XkbDisable
let me know..
I realize that the X11 team is understaffed and overworked. However since this bug is preventing me from upgrading to 6.8.0, please let me know if there is any way that I can help in getting this problem debugged and resolved. Check permissions on /var/lib/xkb. Check that both instances of xkbcomp are non-zero in size. $ ls /var/lib/xkb -ld drwxr-xr-x 2 root root 4096 Nov 21 19:43 /var/lib/xkb $ ls /usr/X11R6/lib/xkb/xkbcomp -l -rwxr-xr-x 1 root root 179580 Nov 21 18:00 /usr/X11R6/lib/xkb/xkbcomp $ ls /usr/X11R6/bin/xkbcomp -l -rwxr-xr-x 1 root root 179580 Nov 21 18:00 /usr/X11R6/bin/xkbcomp Other than that, I have no ideas. Try looking into some XKB documentation, searching bugs.freedesktop.org, etc and seeing whether anything comes up. I've done some more messing around with it and here are my results: This is a fresh emerge of xorg-x11-6.8.0-r3 over xorg-x11-6.7.0-r3 I get the following: $ ls /var/lib/xkb -ld drwxr-xr-x 2 root root 4096 Nov 22 21:59 /var/lib/xkb $ ls /usr/X11R6/lib/xkb/xkbcomp -l ls: /usr/X11R6/lib/xkb/xkbcomp: No such file or directory $ ls /usr/X11R6/bin/xkbcomp -l -rwxr-xr-x 1 root root 171648 Nov 22 21:49 /usr/X11R6/bin/xkbcomp So the first thing I noticed is that I don't have a /usr/X11R6/lib/xkb directory. A search of bugs.freedesktop.org turned up nothing, neither did a google search. Reading the man pages on setxkbmap and xkbcomp, I have discovered the following: My keyboard section in xorg.conf is: Section "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbRules" "xorg" Option "XkbModel" "microsoftmult" Option "XkbLayout" "us" EndSection After starting X, if I do a "setxkbmap -print | xkbcomp - $DISPLAY" I get a working keyboard. Going back to my Xorg.log file, the errors messages are: EE) Couldn't open compiled keymap file /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm (EE) Couldn't load XKB keymap, falling back to pre-XKB keymap Running setxkbmap -print | xkbcomp - gives me a stdin.xkm file, If I copy that file to /var/lib/xkb/server-0.xkm prior to starting X, I no longer receive the errors and the keyboard works properly. Finally, a grep of the error text shows that the source file where the error message is located is xc/programs/Xserver/xkb/ddxLoad.c I only have a rudimentary knowledge of C, so my cursory review showed nothing wrong with the code that I could tell. In summary, I can work around the bug by calling setxkbmap -print | xkbcomp - $DISPLAY, which will load the proper keymap. Based upon the error messages it looks like the keymap is not getting compiled and/or written to /usr/X11R6/lib/X11/xkb/compiled/server-0.xkm during the X server startup If you can give me further direction based upon the above, please let me know. /usr/X11R6/lib/X11/xkb/xkbcomp is what you want to check, sorry. I'm on a different revision. $ ls -l /usr/X11R6/lib/X11/xkb/xkbcomp -rwxr-xr-x 1 root root 0 Nov 22 21:49 /usr/X11R6/lib/X11/xkb/xkbcomp Zero byte file. I'll copy the one from /usr/X11R6/bin/xkbcomp and test. That was the problem, The next question is what happened in the emerge process? Not sure how it's happening, but it's not something the ebuild is doing, it's something in `make World`. If you'd like to help track it down, please do. However, it does appear that the problem isn't happening on new installations -- I don't have it. *** This bug has been marked as a duplicate of 47243 *** |