LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 10-23-2008, 11:49 AM   #1
Bluefightingcat
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Rep: Reputation: 0
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
 
Old 10-23-2008, 02:28 PM   #2
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 32
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
 
Old 10-23-2008, 02:30 PM   #3
Bluefightingcat
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
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

Last edited by Bluefightingcat; 10-23-2008 at 02:40 PM.
 
Old 10-23-2008, 02:52 PM   #4
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 32
Try running setxkbmap -layout fi and setxkbmap -layout se and seeing what it says
 
Old 10-24-2008, 09:34 AM   #5
Bluefightingcat
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
Nope. Makes no difference. No output whatsoever.

BFC
 
Old 10-24-2008, 05:38 PM   #6
pgpython
Member
 
Registered: Dec 2005
Location: Sheffield, UK
Distribution: Gentoo
Posts: 141

Rep: Reputation: 32
Check the output of /var/log/Xorg.0.log. also check what keymaps you have installed (Probably /usr/share/keymaps/i386/qwerty)
 
Old 10-25-2008, 03:26 AM   #7
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
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
 
Old 10-25-2008, 03:56 AM   #8
Bluefightingcat
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
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), root431,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), root611,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
 
Old 10-26-2008, 09:28 AM   #9
unihiekka
Member
 
Registered: Aug 2005
Distribution: SuSE Linux / Scientific Linux / [K|X]ubuntu
Posts: 273

Rep: Reputation: 32
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?

Last edited by unihiekka; 10-26-2008 at 09:32 AM.
 
Old 10-26-2008, 10:30 AM   #10
Bluefightingcat
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
I have a logitech wireless keyboard.

BFC
 
Old 12-02-2008, 10:05 AM   #11
Bluefightingcat
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
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
 
  


Reply

Tags
keymaps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Keymap Killean Slackware - Installation 2 09-18-2004 05:09 PM
Keymap problems.. balanagireddy Linux - General 0 08-10-2004 02:58 AM
Keymap with ,, ulfob Slackware 1 02-04-2004 11:40 AM
kernel 2.6.1 \ and | keymap iidbis Linux - General 1 02-04-2004 06:47 AM
Keymap For Decvt220 AnselmoMH Linux - Software 0 06-24-2003 08:19 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration