LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Keymap broken (https://www.linuxquestions.org/questions/linux-desktop-74/keymap-broken-678585/)

Bluefightingcat 10-23-2008 11:49 AM

Keymap broken
 
Hi,

I use arch linux with KDEmod 4.1. I have this really wierd problem. My "question mark" and "underscore" don't work. All my other keys seem to work (I have a Finnish keyboard). I've tried different keymaps (Finnish & Swedish) but the problem is the same.

Does anybody have any idea why this happens or where I should start looking to find out where the problem is.


BFC

pgpython 10-23-2008 02:28 PM

Similar
 
I have a similar problem with my uk keyboard, the arrow keys don't work and insert, delete, home, end, page up and page down don't behave propely. My Xorg.0.log shows:

Code:

(**) Option "CoreKeyboard"
(**) Keyboard: always reports core events
(EE) Keyboard: No device specified.
(II) UnloadModule: "evdev"
(EE) PreInit returned NULL for "Keyboard"
(EE) No Input driver matching `mouse'
(EE) No Input driver matching `mouse'
Could not init font path element /usr/share/fonts/TTF/, removing from list!
Could not init font path element /usr/share/fonts/OTF, removing from list!
(II) config/hal: Adding input device Logitech Logitech USB Keyboard
(**) Logitech Logitech USB Keyboard: always reports core events
(**) Logitech Logitech USB Keyboard: Device: "/dev/input/event4"
(II) Logitech Logitech USB Keyboard: Found x and y relative axes
(II) Logitech Logitech USB Keyboard: Found mouse buttons
(II) Logitech Logitech USB Keyboard: Found keys
(II) Logitech Logitech USB Keyboard: Configuring as mouse
(II) Logitech Logitech USB Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Logitech Logitech USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "xorg"
(**) Logitech Logitech USB Keyboard: xkb_rules: "xorg"
(**) Option "xkb_model" "evdev"
(**) Logitech Logitech USB Keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "uk"
(**) Logitech Logitech USB Keyboard: xkb_layout: "uk"
(II) config/hal: Adding input device Logitech Logitech USB Keyboard
(**) Logitech Logitech USB Keyboard: always reports core events
(**) Logitech Logitech USB Keyboard: Device: "/dev/input/event3"
(II) Logitech Logitech USB Keyboard: Found keys
(II) Logitech Logitech USB Keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "Logitech Logitech USB Keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "xorg"
(**) Logitech Logitech USB Keyboard: xkb_rules: "xorg"
(**) Option "xkb_model" "evdev"
(**) Logitech Logitech USB Keyboard: xkb_model: "evdev"
(**) Option "xkb_layout" "uk"
(**) Logitech Logitech USB Keyboard: xkb_layout: "uk"
(II) config/hal: Adding input device Logitech USB-PS/2 Optical Mouse
(**) Logitech USB-PS/2 Optical Mouse: always reports core events
(**) Logitech USB-PS/2 Optical Mouse: Device: "/dev/input/event2"
(II) Logitech USB-PS/2 Optical Mouse: Found x and y relative axes
(II) Logitech USB-PS/2 Optical Mouse: Found mouse buttons
(II) Logitech USB-PS/2 Optical Mouse: Configuring as mouse
(II) XINPUT: Adding extended input device "Logitech USB-PS/2 Optical Mouse" (type: MOUSE)

And /etc/X11/xorg.conf is

Code:

Section "InputDevice"
    Identifier  "Keyboard"
    Driver      "evdev"
    Option        "CoreKeyboard"
    Option        "XkbRules" "xorg"
    Option        "XkbModel" "pc105"
#    Option    "XkbOptions" "grp:toggle,grp_led:scroll"
    Option        "XkbLayout" "uk"
EndSection


Bluefightingcat 10-23-2008 02:30 PM

Interesting. I had a look at my Xorg logs and I found this:

Quote:

Error Error compiling keymap (server-0)
Error XKB: Couldn't compile keymap
I also had a look at my kdm.log file and found the following:

Quote:

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server

This obviously has something to do with it.

BFC

pgpython 10-23-2008 02:52 PM

Try running setxkbmap -layout fi and setxkbmap -layout se and seeing what it says

Bluefightingcat 10-24-2008 09:34 AM

Nope. Makes no difference. No output whatsoever.

BFC

pgpython 10-24-2008 05:38 PM

Check the output of /var/log/Xorg.0.log. also check what keymaps you have installed (Probably /usr/share/keymaps/i386/qwerty)

unihiekka 10-25-2008 03:26 AM

What do you get when you run the following:
Code:

xmodmap -pke
Is there a question mark and underscore in that list and if so under what keys. You can find that out with
Code:

xev

Bluefightingcat 10-25-2008 03:56 AM

According to xmodmap both questionmark and underscore can be found at "Keycode 61":

Quote:

keycode 61 = minus underscore slash question endash dead_abovedot

"Xev" produces this when I press the questionmark and underscore:

Quote:

KeyRelease event, serial 33, synthetic NO, window 0x5200001,
root 0x13b, subw 0x0, time 679760, (425,732), root:(431,757),
state 0x11, keycode 61 (keysym 0x5f, underscore), same_screen YES,
XLookupString gives 1 bytes: (5f) "_"
XFilterEvent returns: False
and

Quote:

KeyRelease event, serial 33, synthetic NO, window 0x5200001,
root 0x13b, subw 0x0, time 717973, (605,747), root:(611,772),
state 0x11, keycode 20 (keysym 0x3f, question), same_screen YES,
XLookupString gives 1 bytes: (3f) "?"
XFilterEvent returns: False
So it seems that the system actually recognises the buttons and when they are pushed. For some reason its just not getting communicated further.

This is what my Xorg.0.log looks like. I can't post the whole thing since this forum has a limit. But here I think is the relevant stuff:

Quote:

Information Initializing extension GLX
From config file Option "Protocol" "auto"
From config file Mouse0: Device: "/dev/input/mice"
From config file Mouse0: Protocol: "auto"
From config file Option "CorePointer"
From config file Mouse0: always reports core events
From config file Option "Device" "/dev/input/mice"
Default setting Mouse0: Emulate3Buttons, Emulate3Timeout: 50
From config file Option "ZAxisMapping" "4 5 6 7"
From config file Mouse0: ZAxisMapping: buttons 4, 5, 6 and 7
From config file Mouse0: Buttons: 11
From config file Mouse0: Sensitivity: 1
From config file Option "CoreKeyboard"
From config file Keyboard0: always reports core events
From config file Option "Protocol" "standard"
From config file Keyboard0: Protocol: standard
From config file Option "AutoRepeat" "500 30"
From config file Option "XkbRules" "xorg"
From config file Keyboard0: XkbRules: "xorg"
From config file Option "XkbModel" "pc105"
From config file Keyboard0: XkbModel: "pc105"
From config file Option "XkbLayout" "fi"
From config file Keyboard0: XkbLayout: "fi"
From config file Option "XkbVariant" "nodeadkeys"
From config file Keyboard0: XkbVariant: "nodeadkeys"
From config file Option "CustomKeycodes" "off"
From config file Keyboard0: CustomKeycodes disabled
Information evaluating device (Keyboard0)
Information XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
Information evaluating device (Mouse0)
Information XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
Probed Mouse0: PnP-detected protocol: "ExplorerPS/2"
Information Mouse0: ps2EnableDataReporting: succeeded
Error Error compiling keymap (server-0)
Error XKB: Couldn't compile keymap
Information Mouse autoprobe: Disabling secondary wheel
BFC

unihiekka 10-26-2008 09:28 AM

I have a Finnish keyboard, too (several, actually) and on none is there a question mark on the minus/underscore button:

Quote:

keycode 61 = minus underscore slash question endash dead_abovedot
My question mark is together with the plus and the backslash. Are you sure you have the correct keymap for your layout?

The way your keyboard works is that when you press the [61st] key you get minus, Shift+[61st] you have the underscore, AltGr+[61st] gives a slash and AltGr+Shift+[61st] gives the question mark. That's indeed weird.

What's your keyboard's manufacturer?

Bluefightingcat 10-26-2008 10:30 AM

I have a logitech wireless keyboard.

BFC

Bluefightingcat 12-02-2008 10:05 AM

I installed the lastest Xorg 1.5 yesterday. This caused me some problems. Whilst fixing the results I discovered something that could have something to do with my keymap problem.

I use KDE4.1. When the login screen comes up my keyboard works perfectly. I can type in a "question mark" and an "underscore" and they appear. Perfect.

However after I have logged in and KDE has started-up the question mark and underscore no longer work.

Does anybody know what the problem could be here. How does KDE handle keymaps.

BFC


All times are GMT -5. The time now is 12:32 PM.