You are not logged in.

#1 2008-12-14 12:46:59

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

[SOLVED] trying to get my keyboard layout to work, & hal to mount..

hi,

prior to the recent xorg upgrade, i had my xorg.conf set my keyboard layout, and hal would automount my phone in pcmanfm. since the xorg update, for the sake of not having to to set up the new hotplugging, I disabled it in my xorg.conf so my keyboard would keep its layout.

obviously though, with hot plugging switched off, hal wont mount my phone, so i am trying to get my keyboard set up and get hal automounting.

i have set    Option       "AutoAddDevices" "True" in my xorg.conf

i have edited /etc/hal/fdi/policy/10-keymap.fdi as follows;

<?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">kbd</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.xkb.model" type="string">logiaccess</merge>
      </match>

      <merge key="input.xkb.layout" type="string">gb</merge>
      <merge key="input.xkb.variant" type="string" />
    </match>
  </device>
</deviceinfo>

basically, my keyboard is still in us layout, and hal still wont mount my phone even after restarting X! what have i missed?

Last edited by ninjaprawn (2008-12-16 20:29:09)


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

#2 2008-12-15 19:11:54

ninjaprawn
Member
From: Manchester, UK
Registered: 2008-01-26
Posts: 485

Re: [SOLVED] trying to get my keyboard layout to work, & hal to mount..

ok, i managed to fix the problem. i edited the .fdi file as follows;

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

for some reason, logiaccess and kbd work in xorg.conf, but no in hal? instead, evdev can do everything!


2007 - Started using Arch Linux as my only/main OS
- Samsung Series 3, Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz - 8Gb DDR3 ram - 700Gb HDD
On board intel Graphics & Sound

Offline

Board footer

Powered by FluxBB