[Pkg-utopia-maintainers] Bug#524098: xserver-xorg: dependency on console-setup broke keyboard settings

Sylvain Sauvage Sylvain.Sauvage at metanoesis.net
Sat May 2 10:44:40 UTC 2009


Hi,

  I found this trick: remove the callout for some/all keyboards.
No modifications/deletions of /usr/share/hal files needed.

<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
  <device>
    <!-- prevent console-setup automagic -->
    <match key="input.xkb.layout" exists="true">
      <remove key="info.callouts.add" type="strlist">debian-setup-keyboard</remove>
    </match>
    <!-- use console-setup automagic except for my remote control -->
    <match key="input.xkb.layout" exists="true">
      <match key="info.product" contains_not="HID 3353:3713">
        <append key="info.callouts.add" type="strlist">debian-setup-keyboard</append>
      </match>
    </match>
    <!-- set layout for remote control -->
    <match key="info.capacities" contains="input.keys">
      <match key="info.product" contains="HID 3353:3713">
        <merge key="input.xkb.layout" type="string">us</merge>
        <merge key="input.xkb.variant" type="string" />
      </match>
    </match>
  </device>
</deviceinfo>

  Seems to work well.

-- 
 Sylvain Sauvage





More information about the Pkg-utopia-maintainers mailing list