You are not logged in.

#1 2008-12-04 14:50:09

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

[Solved] Keymap issues

Ok. I upgraded to xorg 1.5. That broke my system which I have finally fixed. Everything is working fine again. However a problem I had before upgrading still persists. I was hoping Xorg 1.5 would fix it but that didn't happen. I use a Finnish keyboard and my issue is that my questionmark and underscore don't work (Both "Shift+" keys). All my other keys work fine. What I discovered whilst messing around with the new xorg is that my keyboard works perfectly when I don't load KDEmod i.e. in the console. Also my keyboard works perfectly in the login screen of KDEmod. However once the desktop has loaded up, my keyboard stops working properly.

In the new xorg, I have a very minimal xorg.conf (that would be useless to post here) and I have changed the keymap in the .fdi place. I removed "us" and replaced it with "fi".

This problem persisted before I upgraded my xorg. Obviously it seems this problem is related to the X-server. Any idea what could be wrong here....


BFC

Last edited by BlueFightingCat (2008-12-15 07:49:44)

Offline

#2 2008-12-04 14:53:41

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: [Solved] Keymap issues

did you check your keyboard layout in kde (via systemsettings) ?


what goes up must come down

Offline

#3 2008-12-04 14:55:49

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

Re: [Solved] Keymap issues

Yeah. Its set to "evdev-managed keyboard". And obviously the correct keymap is selected.

BFC

Offline

#4 2008-12-04 16:14:34

darkglow
Member
Registered: 2007-08-01
Posts: 12

Re: [Solved] Keymap issues

I have a Finnish keyboard and it seems to work fine with X.Org X Server 1.5.3. I have installed KDE from the extra repo, I don't use KDEmod. I just tried typing questionmark and underscore in kwrite and they work OK.

Let's see what I have in /etc/hal/fdi/policy/10-keymap.fdi:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->                                                                                                     
<deviceinfo version="0.2">
  <device>
    <match key="info.capabilities" contains="input.keymap">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <merge key="input.xkb.rules" type="string">evdev</merge>

      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.xkb.model" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">evdev</merge>
      </match>

      <merge key="input.xkb.layout" type="string">fi</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

It seems that the "input.xkb.rules" (evdev), "input.xkb.model" (evdev), and "input.xkb.layout" (fi) are the important sections.

And here are the "InputDevice" sections for keyboard and mouse in my /etc/X11/xorg.conf:

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Driver      "evdev"
        Option      "Device"        "/dev/input/event1"
        Option      "XkbRules"      "evdev"
        Option      "XkbModel"      "evdev"
        Option      "XkbLayout"     "fi"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Driver      "evdev"
        Option      "Protocol"      "evdev"
        Option      "Device"        "/dev/input/event5"
        Option      "ZAxisMapping"  "4 5"
EndSection

So how did I figure out what which event numbers in /dev/input control the keyboard and the mouse? That's easy, I just checked where the symlinks in /dev/input/by-path point to.

Hope this helps. smile

Offline

#5 2008-12-04 17:07:24

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

Re: [Solved] Keymap issues

Hey,

Thanks for the advice. I tried what you said but that didn't help. This is a really annoying problem. It's really strange.

BFC

Offline

#6 2008-12-04 17:41:33

darkglow
Member
Registered: 2007-08-01
Posts: 12

Re: [Solved] Keymap issues

Sorry to hear it didn't work for you.  sad

If you already have the xf86-input-evdev package installed and the hal daemon added to /etc/rc.conf, then I can't think of any further advice. Still, you might want to try some other window manager to test your keyboard. If the same keyboard problem appears also outside KDEmod, then you'll know for sure that it's an Xorg-related problem and not a bug in KDEmod.

Offline

#7 2008-12-04 17:47:02

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

Re: [Solved] Keymap issues

Hmmm.....I'm not too excited about installing another windows manager. Is there any easy quick way to do that...

BFC

Offline

#8 2008-12-04 20:16:49

lurst
Member
Registered: 2008-06-25
Posts: 8

Re: [Solved] Keymap issues

BlueFightingCat wrote:

Hmmm.....I'm not too excited about installing another windows manager. Is there any easy quick way to do that...

BFC

Sure,

pacman -S openbox

Offline

#9 2008-12-04 21:04:11

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

Re: [Solved] Keymap issues

Ok so I installed OpenBox and tested it. The keyboard works perfectly. So it seems the problem has something to do with KDEmod (4.1) and not the Xserver. I'll post a message in the KDEmod forums, see if I can get any help there.

Thanks for the advice so far! Appreciate it.

BFC

Offline

#10 2008-12-15 07:49:27

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

Re: [Solved] Keymap issues

I finally found the solution to my problem. It was my KDE4 that was causing the problem. All I had to do to fix the problem was reset my .kde4 directory.  Problem solved!!

BFC

Offline

#11 2008-12-16 12:33:19

Rulatir
Banned
Registered: 2007-02-05
Posts: 94

Re: [Solved] Keymap issues

NOT solved at all.

"Reset your .kde4 directory" is a "solution" in the style of "backup, format, reinstall Windows". It doesn't tackle the problem at all, it just takes chances that the problem will not occur again - and as a bonus, you get to redo your beautifully and ergonomically customized panels and settings from scratch.

Perhaps the problem can be narrowed down to KDM - the KDE4's display manager. I don't use KDE4, but I do use KDM as the display manager and I am having the problem too. For now I just type

setxkbmap pl

in the Verve command line after logging in.

Offline

#12 2008-12-16 12:51:40

BlueFightingCat
Member
From: Helsinki
Registered: 2007-12-22
Posts: 72

Re: [Solved] Keymap issues

I tried that. It didn't help.

And you're right. My solution is indeed a work around.

BFC

Offline

#13 2009-01-11 11:04:34

Rulatir
Banned
Registered: 2007-02-05
Posts: 94

Re: [Solved] Keymap issues

BlueFightingCat wrote:

I tried that. It didn't help.

In your case it should probably be something along the lines of:

setxkbmap fi

smile

Offline

Board footer

Powered by FluxBB