hal and keyboard quirks problem

Doncho N. Gunchev gunchev at gmail.com
Mon Oct 1 07:11:17 UTC 2007


I have Acer Aspire 5610 hw id ebf36068-3809-426c-ade0-d0c531b5b402 .
I've been trying to fix my key map with hal in rawhide (which now
is 0.5.10-0.git20070925.fc8) as described at
http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html
When issuing 'lshal | grep keymap' after haldaemon restart there's
nothing. I then tried the utopia.repo from
http://people.freedesktop.org/~hughsient/fedora/
The new hal daemon is 0.5.10-0.57.20070925git.fc7.hughsie.i386, but
there's still nothing in 'lshal | grep keymap'.

Here's the log message ('Sep 30 23:22:32 fc8 kernel: ' removed from
each line):
--- cut ---
atkbd.c: Unknown key pressed (translated set 2, code 0xb3 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e033 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xb3 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e033 <keycode>' to make it known.
atkbd.c: Unknown key pressed (translated set 2, code 0xb4 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e034 <keycode>' to make it known.
atkbd.c: Unknown key released (translated set 2, code 0xb4 on isa0060/serio0).
atkbd.c: Use 'setkeycodes e034 <keycode>' to make it known.
--- cut ---
and the stripped down file I was testing:
--- cut ---
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="@input.originating_device:info.linux.driver" string="atkbd">
      <match key="/org/freedesktop/Hal/devices/computer:system.hardware.vendor" prefix="Acer">
        <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" prefix="Aspire">
          <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains="5610">
            <append key="input.keymap.data" type="strlist">e033:prog1</append> <!-- FIXME Euro symbol -->
            <append key="input.keymap.data" type="strlist">e034:prog2</append> <!-- FIXME Dollar symbol -->
          </match>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>
--- cut ---
and 'lshal | grep system\\.hardware\\.'
--- cut ---
  system.hardware.primary_video.product = 10146  (0x27a2)  (int)
  system.hardware.primary_video.vendor = 32902  (0x8086)  (int)
  system.hardware.product = 'Aspire 5610'  (string)
  system.hardware.serial = 'LXAU60C008647239B21601'  (string)
  system.hardware.uuid = '70B30AC2-ECF7-0413-6DB6-0016D45AA792'  (string)
  system.hardware.vendor = 'Acer'  (string)
  system.hardware.version = 'V3.03'  (string)
--- cut ---
'setkeycodes e033 ...' from rc.local works, but I'm under the impression
hal should do this for me.

I tried the same with FC7 and the same repo, this time 'lshal | grep keymap'
showed something:
--- cut ---
  input.keymap.data = {'e033:prog1', 'e034:prog2', 'e059:brightnessdown', 'e06f:brightnessup'} (string list)
--- cut ---
but besides some SELinux denials (SELinux is in Permissive mode) nothing
new - the message from syslog about 'setkeycodes e033' is still there.

Am I missing something? What else should I do?

-- 
Regards,
  Doncho N. Gunchev, GPG key ID: 0EF40B9E, Key server: pgp.mit.edu




More information about the test mailing list