You are not logged in.

#1 2009-02-14 17:04:50

fourreux
Member
Registered: 2008-03-12
Posts: 56

xorg.conf keymap and known issues again

I'm sorry to post again on that subject but I simply don't get what to do ...

I have in my xorg.conf

Section "ServerFlags"
Option "AutoAddDevices" "False"
Option "AutoEnableDevices" "false"
EndSection

to prevent hotplugging and stuff. so my xorg.conf should be read normally according to the wiki.

Section       "InputDevice"
Identifier    "Keyboard0"
Driver       "kbd"
#Option      "XkbRules" "xorg"
Option      "XkbModel" "pc105"
Option      "XkbLayout" "us,de,ru,ar"
Option       "XkbVariant" "nodeadkeys"
#Option      "XkbOptions" "grp:shift_alt_toggle"
EndSection

this should allow me to switch with setxkbmap us/de ... between my layouts. It simply doesn't work anymore.
It all happened with a recent update a day ago. I first didn't realize and then everything seemed very mixed up. sometimes I got german layout in firefox, but not in console or text editor and terminal and all of a sudden it switches there too.

I don't want to switch to hotplugging because I don't see the reason for me. All was working smooth and now that.

really don't understand.

my rc.conf is like that:

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Vienna"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

.
.
.
DAEMONS=(syslog-ng network netfs crond dbus hal alsa cups)

Xorg.0.log in explicit EEs only complains about

(EE) config/hal: NewInputDeviceRequest failed

Offline

#2 2009-02-14 18:50:08

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: xorg.conf keymap and known issues again

Here I switched to evdev. with us keyboard only though I got this

/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">base</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">de</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

something with the encoding perhaps?! why is that iso and not utf-8. may I simply switch that?

OK.  that was because my rc.conf was still on us. now as it's on de i'm writing with german layout: TERMINAL ONLY! here in firefox again in english layout. even in gvim it's still english.

there's something terribly wrong with my settings. if i only knew what!

Last edited by fourreux (2009-02-14 19:15:02)

Offline

#3 2009-02-14 19:27:38

fourreux
Member
Registered: 2008-03-12
Posts: 56

Re: xorg.conf keymap and known issues again

well. well.

some progress.

right now my rc.conf is back to us, which does not affect anything as far as I can see

LOCALE="en_US.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Vienna"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

my 10-keymap.fdi looks like this with UTF-8 on top line

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- 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">base</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">de</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

and german layout everywhere! lets see whether I'll also manage to get us map working ...

if I change the one line to

  <merge key="input.xkb.layout" type="string">de,us</merge>

everything gets mixed up again ... something to do with the gnome settings maybe?

all I want is to may switch witch setxkbmap between several layouts. that's all (just to remind you about that sad )

maybe to do witch xbindkeys that is running? let's check that out ...

not really except that I can make the @ sign by alt+q in terminal while having german layout there. but in firefox still us layout ...

Last edited by fourreux (2009-02-14 19:39:55)

Offline

#4 2009-03-06 12:10:04

wazow
Member
From: Europe
Registered: 2008-11-11
Posts: 39

Re: xorg.conf keymap and known issues again

I see the same problem here.  setxkbmap no longer switches the keyboard layout for many apps (including firefox).  It does work for terminal windows though.  All this broke few weeks ago.

Offline

#5 2009-03-06 12:52:21

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: xorg.conf keymap and known issues again

For me the thing that solved it (quite a while ago actually, so I can only hope it's the same problem as you have) was that 'variant' had to have the same amount of commas as 'layout'. See mine:

      <merge key="input.xkb.layout" type="string">us,sk,de</merge>
      <merge key="input.xkb.variant" type="string">altgr-intl,qwerty,</merge>

Offline

#6 2009-03-06 18:39:59

void_false
Member
Registered: 2009-02-22
Posts: 13

Re: xorg.conf keymap and known issues again

Append the following to ~/.xinitrc

setxkbmap "us,ru" ",winkeys" "grp:alt_shift_toggle,grp_led:scroll"

Every other method failed on my system. I have no HAL running and these lines in xorg.conf

Section "ServerFlags"
    Option         "AllowMouseOpenFail" "true"
    Option         "AutoAddDevices" "False"
EndSection

Last edited by void_false (2009-03-06 18:44:29)

Offline

Board footer

Powered by FluxBB