On Fri, 1 Aug 2008, Colin Watson wrote:
On Thu, Jul 31, 2008 at 01:46:07PM -0700, Bryce Harrington wrote:
Colin and I had a discussion yesterday regarding the idea of reusing the
console-setup keyboard settings with the xorg keyboard input-hotplug
stuff in HAL. The idea is that this script would be run from
xorg-server.postinst.
http://people.ubuntu.com/~bryce/InputHotplug/console2fdi.sh
Sample output with a US keyboard with all defaults:
# http://people.ubuntu.com/~bryce/InputHotplug/us-keyboard.fdi
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.xkb.rules" type="string">xorg</merge>
</match>
</device>
</deviceinfo>
What do less-trivial cases look like in the FDI file?
mine looks like this:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<!-- This file is automatically generated, so do not edit it.
Edit /etc/default/console-setup instead, and then run
dpkg-reconfigure xorg-server -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.xkb.rules" type="string">xorg</merge>
<merge key="input.xkb.layout" type="string">fi</merge>
<merge key="input.xkb.options" type="string">lv3:ralt_switch</merge>
</match>
</device>
</deviceinfo>
t
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]