You are not logged in.

#1 2009-07-29 20:26:07

samsom
Member
Registered: 2009-07-17
Posts: 88

Unable to load uk keymap ( SOLVED)

Hi,
I have recently installed Arch Linux on my laptop. Initially I had hotplugging disabled and had the uk keymap configured in the /etc/X11/xorg.conf and it worked fine. However on reading that it is better to have hotplugging enabled, I did....and configured the /etc/hal/fdi/policy/10-keymap.fdi replacing us with uk. But, it does not seem to work for some reason. Also now, when I open a virtual console and type loadkeys uk, I still end up with US keys.
Heres the contents of my 10-keymap.fdi file

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

Any advice, please...
Samsom

Last edited by samsom (2009-07-29 20:55:32)


Samsom

Offline

#2 2009-07-29 20:45:24

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Unable to load uk keymap ( SOLVED)

For X, the keymap is "gb", not "uk". At least, it is for setxkbmap, so presumably HAL .fdis follow that. I wish everyone would agree on one or the other.

If all else fails, stick "setxkbmap gb" in ~/.xinitrc. Works for me...


0 Ok, 0:1

Offline

#3 2009-07-29 20:54:24

samsom
Member
Registered: 2009-07-17
Posts: 88

Re: Unable to load uk keymap ( SOLVED)

Thanks a lot, mate. I did both and one or both of them worked.
Cheers
Samsom


Samsom

Offline

Board footer

Powered by FluxBB