Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant change keyboard layout
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Arbon
n00b
n00b


Joined: 08 Apr 2009
Posts: 24

PostPosted: Tue Jan 26, 2010 11:35 pm    Post subject: cant change keyboard layout Reply with quote

Hello
In my X-Server (better said, in gnome) i have an english keyboard layout, but i need the german one. writing with the english layout is a real pain!
In the console the german layout works fine, so the problem must be x-server related.

As i dont have a xorg.conf i configured the keyboard layout using those hal policy files. My keyboard file (/etc/hal/fdi/policy/10-x11-input.fdi) looks like the following

Code:

arm@gentoo /etc/hal/fdi/policy $ cat 10-x11-input.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
    <!-- Mouse configuration -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">evdev</merge>
    </match>

    <!-- Keyboard configuration -->
    <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.model" type="string">evdev</merge>
      <merge key="input.x11_driver" type="string">evdev</merge>
      <merge key="input.xkb.layout" type="string">de</merge>
      <merge key="input.xkb.variant" type="string">de</merge>
      <append key="input.xkb.options" type="strlist">compose:menu</append>
    </match>
  </device>
</deviceinfo>


When trying to change the layout using gnome, or on gnome startup it gives me an error

Code:

Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
10605000

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd


The result of xprop -root | grep XKB
Code:

arm@gentoo ~ $ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "evdev", "de", "de", ""
_XKB_RULES_NAMES(STRING) = "evdev", "evdev", "de", "de", ""


- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
Code:

arm@gentoo ~ $ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [de_DE]
 options = [grp   grp:alts_toggle]
 model = pc105


I dont really see any configurations mistakes, i hope you have a solution for this
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Jan 27, 2010 1:11 am    Post subject: Reply with quote

Use only 'string', 'strlist' was the old type.
See /usr/share/X11/xkb/rules/evdev.lst - there's no 'de' variant of
'de' layout. 'hal-setup-keymap' block is most probably redundant.
Back to top
View user's profile Send private message
Arbon
n00b
n00b


Joined: 08 Apr 2009
Posts: 24

PostPosted: Wed Jan 27, 2010 12:54 pm    Post subject: Reply with quote

After replacing the strlist with string and replacing the de variant with nodeadkeys the keyboard layout finally works. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum