Imported Upstream version 1.15.1
[deb_xorg-server.git] / config / x11-input.fdi
CommitLineData
a09e091a
JB
1<?xml version="1.0" encoding="UTF-8"?>
2<deviceinfo version="0.2">
3 <device>
4
5 <!-- The way this works:
6
7 Match against some input device (see the HAL specification for more
8 information), and then merge in keys, which you can use to specify
9 the configuration similar to the way you would in xorg.conf. You will
10 need to restart HAL after making changes. If you are having issues,
11 starting X with the -logverbose 7 flag may yield useful information.
12
13 Keys Supported:
14
15 Key "input.x11_driver" (string)
16 This specifies the driver to use. You MUST specify this option,
17 or a driver will not be loaded and the rest will be ignored by
18 Xorg
19
20 Key "input.x11_options.<option name>" (string)
21 This allows you to specify arbitrary options to pass to the driver.
22 Anything you would normally specify in xorg.conf goes here. So, for
23 option "Mode" in xorg.conf, you would specify the key name of
24 "input.x11_options.Mode".
25
26 Do not specify "input.x11_options.Device" since "input.device"
27 will be used automatically.
28
29 You MUST specify all options as strings, otherwise the server will
30 ignore them.
31
32 Legacy Keys
33 "input.xkb.rules"
34 "input.xkb.model"
35 "input.xkb.layout"
36 "input.xkb.variant"
37 "input.xkb.options"
38
39 These keys are deprecated. Use these instead:
40 "input.x11_options.XkbRules"
41 "input.x11_options.XkbModel"
42 "input.x11_options.XkbLayout"
43 "input.x11_options.XkbVariant"
44 "input.x11_options.XkbOptions"
45
46 See the evdev documentation for more information.
47
48 FIXME: Support tablets too.
49 TODO: I think its fixed, can't test
50
51 -->
52
53 <match key="info.capabilities" contains="input.mouse">
54 <merge key="input.x11_driver" type="string">mouse</merge>
55 <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
56 string="Linux">
57 <merge key="input.x11_driver" type="string">evdev</merge>
58 </match>
59 <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
60 string="SunOS">
61 <match key="input.device" contains="usb">
62 <merge key="input.x11_options.StreamsModule" type="string">usbms</merge>
63 <merge key="input.x11_options.Protocol" type="string">VUID</merge>
64 </match>
65 </match>
66 </match>
67
68 <match key="info.capabilities" contains="input.keys">
69 <merge key="input.x11_options.XkbRules" type="string">base</merge>
70
71 <!-- If we're using Linux, we use evdev by default (falling back to
72 kbd otherwise). -->
73 <merge key="input.x11_driver" type="string">kbd</merge>
74 <merge key="input.x11_options.XkbModel" type="string">pc105</merge>
75 <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
76 string="Linux">
77 <merge key="input.x11_driver" type="string">evdev</merge>
78 <merge key="input.x11_options.XkbModel" type="string">evdev</merge>
79 </match>
80 <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
81 string="SunOS">
82 <match key="input.device" contains="usb">
83 <merge key="input.x11_options.StreamsModule" type="string">usbkbm</merge>
84 <merge key="input.x11_options.Protocol" type="string">VUID</merge>
85 </match>
86 </match>
87
88 <merge key="input.x11_options.XkbLayout" type="string">us</merge>
89
90 <merge key="input.x11_options.XkbVariant" type="string" />
91 </match>
92 </device>
93</deviceinfo>