1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Valmor de Almeida wrote: |
5 |
> Valmor de Almeida wrote: |
6 |
>> Hello, |
7 |
>> |
8 |
>> After an evdev+hal+xorg-1.5.3 upgrade, I suppose I don't need a input |
9 |
>> device section for a mouse in my xorg.conf. (I do need xorg.conf so I |
10 |
>> can get an external monitor working with my laptop correctly). However I |
11 |
>> would like to reverse the order of the buttons and this old xorg.conf |
12 |
>> section does not do it: |
13 |
>> |
14 |
>> Section "InputDevice" |
15 |
>> Identifier "Mouse0" |
16 |
>> Driver "mouse" |
17 |
>> Option "Protocol" "auto" |
18 |
>> Option "Device" "/dev/input/mice" |
19 |
>> Option "ZAxisMapping" "4 5 6 7" |
20 |
>> Option "ButtonMapping" "3 2 1" |
21 |
>> EndSection |
22 |
>> |
23 |
>> My driver now is evdev but how about the device driver line? still |
24 |
>> /dev/.../mice? or something else out of the lshal output? |
25 |
>> |
26 |
>> info.product = 'Microsoft Basic Optical Mouse' (string) |
27 |
>> info.subsystem = 'input' (string) |
28 |
>> info.udi = |
29 |
>> '/org/freedesktop/Hal/devices/usb_device_45e_83_noserial_if0_logicaldev_input' |
30 |
>> (string) |
31 |
>> input.device = '/dev/input/event7' (string) |
32 |
>> |
33 |
> |
34 |
> Okay. If I do |
35 |
> |
36 |
> Driver "evdev" |
37 |
> Option "Device" "/dev/input/event7" |
38 |
> |
39 |
> it works. However the touchpad which is event9 does not reverse buttons |
40 |
> (as expected). Do I need to configure a second input device and point it |
41 |
> to the appropriate event? Is this the right way of configuring |
42 |
> evdev/xorg through hal? |
43 |
> |
44 |
|
45 |
As I understand it, everything that can be done in xorg.conf can be done |
46 |
via HAL, but I'm not sure how you would do so for the video devices. |
47 |
That said, you should be able to completely get rid of the input devices |
48 |
in xorg.conf, and instead install this in a file in /etc/hal/fdi/policy: |
49 |
|
50 |
- --- 8< --- /etc/hal/fdi/policy/99-local.fdi --- >8 --- |
51 |
<?xml version="1.0" encoding="UTF-8"?> |
52 |
<deviceinfo version="0.2"> |
53 |
<device> |
54 |
<match key="info.capabilities" contains="input.mouse"> |
55 |
<merge key="input.x11_driver" type="string">evdev</merge> |
56 |
<merge key="input.x11_options.ZAxisMapping" type="string">4 5 6 7</merge> |
57 |
<merge key="input.x11_options.ButtonMapping" type="string">3 2 1</merge> |
58 |
</match> |
59 |
</device> |
60 |
</deviceinfo> |
61 |
- --- 8< --- /etc/hal/fdi/policy/99-local.fdi --- >8 --- |
62 |
|
63 |
This sets the options for each device that has the "input.mouse" |
64 |
capability to the same values you had in xorg.conf. |
65 |
|
66 |
- -- |
67 |
ABCD |
68 |
-----BEGIN PGP SIGNATURE----- |
69 |
Version: GnuPG v2.0.11 (GNU/Linux) |
70 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
71 |
|
72 |
iEYEARECAAYFAkoE3RsACgkQOypDUo0oQOoW0gCaA0OWFsV48eA4nQNGkSED8JOL |
73 |
8eEAoI9aJ12kWRezJSMmdTTkI6f6VwKz |
74 |
=xiXE |
75 |
-----END PGP SIGNATURE----- |