You are not logged in.

#1 2009-02-11 11:24:40

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Can't toggle between keyboard layouts anymore

I did switch to Xorg input hotplugging when it became the new standard. At the time of the switch to just recently everything has worked smoothly except for some few minor glitches.

My 10-keymap.fdi looks like this:

<?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">se,us,ru</merge>
      <merge key="input.xkb.options" type="string">grp:alt_shift_toggle</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

As it is now keyboard layout will default to se but I've lost the option to toggle, something I really need (OK I can switch to old school xorg.conf but I wish to solve this). Another strange thing is that in XFCE4 I can't add the the object "keyboard layout", so I suspect there's some bug, or that I've missed that I need to edit something somewhere else as well.

The recent moves, like the need to add lines to PolicyKit as well, are slightly difficult to follow and without this forum I would have been lost.

...

Edit: changing back to old xorg.conf works. Still there's something strange with the panel object "keyboard layout" because it refuses to load. Anyway it's quite obvious which keyboard åäö [;' хжэ I use! smile

Last edited by KimTjik (2009-02-11 11:40:52)

Offline

#2 2009-02-11 13:55:48

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Can't toggle between keyboard layouts anymore

<merge key="input.xkb.variant" type="string" />

This line is wrong and not needed.


English is not my native language .

Offline

#3 2009-02-11 17:54:18

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Can't toggle between keyboard layouts anymore

Thanks for the help of your eyes!

I noticed another thing also: there was one extra </match> which interrupted the section. Here's a working one:

<?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>
      <merge key="input.xkb.layout" type="string">se,us,ru</merge>
      <merge key="input.xkb.options" type="string">grp:alt_shift_toggle</merge>
    </match>
  </device>
</deviceinfo>

Nevertheless there seems to be a bug in XFCE4 since the object "keyboard layout" won't load whatever option I use. Maybe its code doesn't comply to how Xorg and HAL now work?

Offline

#4 2009-02-11 18:33:47

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: Can't toggle between keyboard layouts anymore

I don't use XFCE4 myself but I think I read somewhere that there is a setting to use 'system' layout .


English is not my native language .

Offline

#5 2009-02-12 03:08:41

bsdson.tw
Member
From: Taiwan
Registered: 2005-05-06
Posts: 161

Re: Can't toggle between keyboard layouts anymore

I set my keyboard layout to Dvorak by default in "10-keymap.fdi" and use "xfce4-xkb-plugin 0.5.1-2" to change the layout to Qwerty and everything goes fine!
Have you tried to remove your "xfce4-xkb-plugin" configuration and set it up again?
Remember the "keyboard model" should be set to "Evdev-managed keyboard".
BR,
bsdson.tw

Offline

#6 2009-02-16 21:11:45

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Can't toggle between keyboard layouts anymore

This is funny... not. smile

The working 10-keymap.fdi does suddenly not work any more. I've no idea why because I can't see how anything can have changed. Everything is the same but if hotplugging is enabled it defaults to 'us' keyboard whatever I do and the output of hal seems to indicate that it doesn't take this file into account.

Have something else changed that force us to once more adopt our settings?

My file is the same as in #3.

Offline

#7 2009-02-16 21:18:57

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Can't toggle between keyboard layouts anymore


Give what you have. To someone, it may be better than you dare to think.

Offline

#8 2009-02-16 22:43:00

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Can't toggle between keyboard layouts anymore

Thanks for the link. I presumed it was my fault so I didn't even think about it being a bug. OK, this is good for self confidence!

Offline

Board footer

Powered by FluxBB