You are not logged in.

#1 2008-11-08 11:29:37

Sotamarsu
Member
From: Guineapig province in Finland
Registered: 2008-11-07
Posts: 11

[Solved]Keyboard layout screwed up and some keys don't work

After I reinstalled xorg-server 1.5.3-1 and installed xf86-input-evdev 2.0.1-1 and xf86-input-keyboard 1.3.1-1 some of my keys don't work and keyboard layout screwed up. I had finnish (fi) layout, but now it's "us". Arrows, insert- delete- home- end- pg up- pg down- print screen- scroll lock- pause- keys don't work. All characters behind Alt Gr + "" don't work either.

How to fix this?

Last edited by Sotamarsu (2008-11-08 13:57:25)

Offline

#2 2008-11-08 11:54:58

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: [Solved]Keyboard layout screwed up and some keys don't work

Quick diagnostic: if you run "setxkbmap fi", do you get your normal layout back?

Offline

#3 2008-11-08 12:04:23

Sotamarsu
Member
From: Guineapig province in Finland
Registered: 2008-11-07
Posts: 11

Re: [Solved]Keyboard layout screwed up and some keys don't work

yes, that worked! Will it work if I restart my systen?

After restarting it fixed arrows and delete, insert, ..., but language layout didn\t change

Last edited by Sotamarsu (2008-11-08 12:11:04)

Offline

#4 2008-11-08 12:09:34

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: [Solved]Keyboard layout screwed up and some keys don't work

No, that's only for that session. X seems to have forgot your keyboard settings; where did you originally set your layout?

Offline

#5 2008-11-08 12:20:18

Sotamarsu
Member
From: Guineapig province in Finland
Registered: 2008-11-07
Posts: 11

Re: [Solved]Keyboard layout screwed up and some keys don't work

my brother installed this system, so can't say for sure, but I can check some places, if you name them. I have three users in this computer and I think they use same language/layout file.

Last edited by Sotamarsu (2008-11-08 12:22:38)

Offline

#6 2008-11-08 12:26:09

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: [Solved]Keyboard layout screwed up and some keys don't work

The usual place would be "/etc/X11/xorg.conf". Look for an "InputDevice" section with the "kbd" driver. There may be a line in that section that looks like this:

Option "XkbLayout" "fi"

If there isn't, copy that line in (you'll need to edit the file as root). Another place to check is your desktop environment's settings. Are you running Gnome, KDE, XFCE, or something else?

Offline

#7 2008-11-08 12:37:41

Sotamarsu
Member
From: Guineapig province in Finland
Registered: 2008-11-07
Posts: 11

Re: [Solved]Keyboard layout screwed up and some keys don't work

Found it and there is

    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "fi"

I'm using KDE. Isn't there any easy way to change layout to all users with one file or command?

Last edited by Sotamarsu (2008-11-08 12:42:03)

Offline

#8 2008-11-08 12:58:27

Sotamarsu
Member
From: Guineapig province in Finland
Registered: 2008-11-07
Posts: 11

Re: [Solved]Keyboard layout screwed up and some keys don't work

If I start KDEs System setting and choose region and language and there keyboard setting and choose Suomi "fi", after reboot scandic work, but arrows, insert- delete-.... keys don't work. There is command "setxkbmap -model pc104 -layout fi -variant" if I switch this option on.

Offline

#9 2008-11-08 13:16:02

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: [Solved]Keyboard layout screwed up and some keys don't work

Unfortunately, xorg.conf is the system-wide setting, and KDE's keyboard settings override it. I don't have KDE installed at the moment; is there any way to tell KDE not to interfere? Look for an option like "system default".

Offline

#10 2008-11-08 13:56:28

Sotamarsu
Member
From: Guineapig province in Finland
Registered: 2008-11-07
Posts: 11

Re: [Solved]Keyboard layout screwed up and some keys don't work

brother fixed it with next code

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
<!--
    <match key="info.capabilities" contains="input.keys">
      <append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
    </match>
-->
    <match key="info.capabilities" contains="input.keys">
      <!-- <merge key="input.xkb.model" type="string">pc104</merge> -->
      <!-- <merge key="input.xkb.rules" type="string">evdev</merge> -->
      <merge key="input.x11_options.XkbRules" type="string">base</merge>
      <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
      <merge key="input.x11_options.XkbLayout" type="string">fi</merge>
      <append key="input.x11_options.XkbOptions" type="strlist">altwin:menu</append>
<!--
      <merge key="input.xkb.layout" type="string">fi</merge>
      <append key="input.xkb.options" type="strlist">altwin:menu</append>
-->
    </match>
  </device>
</deviceinfo>

Last edited by Sotamarsu (2008-11-08 13:59:18)

Offline

#11 2008-11-15 18:27:41

kcr
Member
Registered: 2007-02-09
Posts: 21

Re: [Solved]Keyboard layout screwed up and some keys don't work

hello i have the same problem,  i have a g15 logitech, xorg-server 1.5.3-2, xf86-input-evdev 2.0.1-1,xf86-input-keyboard 1.3.1-1 and latest catalyst.. my layout is "it" and many buttons don't work..
what can i do?

thanks..

Offline

Board footer

Powered by FluxBB