-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Valmor de Almeida wrote:
> Valmor de Almeida wrote:
>> Hello,
>>
>> After an evdev+hal+xorg-1.5.3 upgrade, I suppose I don't need a input
>> device section for a mouse in my xorg.conf. (I do need xorg.conf so I
>> can get an external monitor working with my laptop correctly). However I
>> would like to reverse the order of the buttons and this old xorg.conf
>> section does not do it:
>>
>> Section "InputDevice"
>>      Identifier  "Mouse0"
>>      Driver      "mouse"
>>      Option      "Protocol" "auto"
>>      Option      "Device" "/dev/input/mice"
>>      Option      "ZAxisMapping" "4 5 6 7"
>>      Option      "ButtonMapping" "3 2 1"
>> EndSection
>>
>> My driver now is evdev but how about the device driver line? still
>> /dev/.../mice? or something else out of the lshal output?
>>
>>   info.product = 'Microsoft Basic Optical Mouse'  (string)
>>   info.subsystem = 'input'  (string)
>>   info.udi =
>> '/org/freedesktop/Hal/devices/usb_device_45e_83_noserial_if0_logicaldev_input'
>>  (string)
>>   input.device = '/dev/input/event7'  (string)
>>
> 
> Okay. If I do
> 
>  Driver "evdev"
>  Option "Device" "/dev/input/event7"
> 
> it works. However the touchpad which is event9 does not reverse buttons
> (as expected). Do I need to configure a second input device and point it
> to the appropriate event? Is this the right way of configuring
> evdev/xorg through hal?
> 

As I understand it, everything that can be done in xorg.conf can be done
via HAL, but I'm not sure how you would do so for the video devices.
That said, you should be able to completely get rid of the input devices
in xorg.conf, and instead install this in a file in /etc/hal/fdi/policy:

- --- 8< --- /etc/hal/fdi/policy/99-local.fdi --- >8 ---
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
 <device>
  <match key="info.capabilities" contains="input.mouse">
   <merge key="input.x11_driver" type="string">evdev</merge>
   <merge key="input.x11_options.ZAxisMapping" type="string">4 5 6 7</merge>
   <merge key="input.x11_options.ButtonMapping" type="string">3 2 1</merge>
  </match>
 </device>
</deviceinfo>
- --- 8< --- /etc/hal/fdi/policy/99-local.fdi --- >8 ---

This sets the options for each device that has the "input.mouse"
capability to the same values you had in xorg.conf.

- --
ABCD
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoE3RsACgkQOypDUo0oQOoW0gCaA0OWFsV48eA4nQNGkSED8JOL
8eEAoI9aJ12kWRezJSMmdTTkI6f6VwKz
=xiXE
-----END PGP SIGNATURE-----


Reply via email to