[Pkg-utopia-maintainers] Bug#522608: hal: loosing keyboard settings, apparently not updating the cache

Eduard Bloch edi at gmx.de
Mon Apr 6 17:47:24 UTC 2009


retitle 522608 wrong keyboard settings immediately after startup
thanks

#include <hallo.h>
* Michael Biebl [Sun, Apr 05 2009, 03:44:53PM]:
> Eduard Bloch schrieb:
> > Package: hal
> > Version: 0.5.11-8
> > Severity: important
> > 
> > Forwarding Ubuntu bug 275825:
> > https://bugs.launchpad.net/ubuntu/intrepid/+source/hal/+bug/275825
> > 
> > I had very similar issue, only a
> > 
> > config/hal] couldn't initialise context: (null)/(null)
> > 
> 
> Should be fixed.
> We have a dpkg file trigger which will automatically refresh the cache
> whenever a new fdi file under /usr/share/hal/fdi is installed.
> 
> I'm not sure, what more we can do about this within hal.
> 
> Do you remember if this hal trigger was activated or not?

Actually it seems that I am mistaken. The symptoms are following:

 - system boots
 - Xorg and xdm start
 - I get wrong keymap in xdm, and the message mentioned above in the
   Xorg.0.log. Also, all applications started in this session have
   initially a wrong layout. Changing it with setxkbmap only changes the
   setting in applications started aftwards (which is unusual).
 - BUT when I restart Xorg later, then everything works just fine, no hal
   message in Xorg log, applications listen to keymap changes, etc.

So it looks like hal is not ready when xdm starts? But why?

$ ls /etc/rc2.d/*{hal,xdm}
/etc/rc2.d/S24hal  /etc/rc2.d/S99xdm

Here is the contents of /etc/hal/fdi/policy/10-x11-input.fdi , is there
anything suspicious?

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <!-- FIXME: Support tablets too. -->
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
    </match>

    <match key="info.capabilities" contains="input.keys">
      <!-- If we're using Linux, we use evdev by default (falling back to
           keyboard otherwise). -->
      <merge key="input.x11_driver" type="string">keyboard</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
             string="Linux">
        <merge key="input.x11_driver" type="string">evdev</merge>
      </match>
      
      <merge key="input.xkb.layout" type="string">de</merge>
      <merge key="input.xkb.variant" type="string">nodeadkeys</merge>

    </match>
  </device>
</deviceinfo>


-- 
Note 2: if I did not mention /usr/share/common-licenses here, lintian would
	complain because he found the words "GPL" above, but this software
	is not GPL. It is GPL-compatible, though.
	-- Sam Hocevar





More information about the Pkg-utopia-maintainers mailing list