HAL, FDI and inverted mouse
MacNean Tyrrell
dardack at gmail.com
Thu Jan 29 07:57:35 PST 2009
Don't know if any of you could help out. I've posted in the ubuntu forums
to no avail, but if you could help or point me to a more knowledgeable
mailinglist/forum i would appreciate that too.
I'm trying to invert the Y axis on my mouse (mainly because Perfect World
Int. doesn't have an ability to do this in game) and I'm old school gamer,
so I can't function without it inverted. Anyways, so before 8.10 (at least
i think so) you would just add this line to your xorg.conf file in the input
device section:
Option InvY "true"
Now xorg or something uses HAL and you have to create an FDI file (which
i've done):
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="input.x11_driver" contains="mouse">
<merge key="input.x11_options.InvY" type="bool">true</merge>
</match>
</device>
</deviceinfo>
and this is seen by running lshal:
for my touchpad:
input.x11_driver = 'synaptics' (string)
input.x11_options.InvY = true (bool)
and then my usb mouse:
< udi = '/org/freedesktop/Hal/devices/usb_device_46d_c51b_noserial_if0_logicaldev_input'
< info.capabilities = {'input', 'input.mouse'} (string list)
< info.category = 'input' (string)
< info.parent =
'/org/freedesktop/Hal/devices/usb_device_46d_c51b_noserial_if0'
(string)
< info.product = 'Logitech USB Receiver' (string)
< info.subsystem = 'input' (string)
< info.udi = '/org/freedesktop/Hal/devices/usb_device_46d_c51b_noserial_if0_logicaldev_input'
(string)
< input.device = '/dev/input/event11' (string)
< input.originating_device =
'/org/freedesktop/Hal/devices/usb_device_46d_c51b_noserial_if0'
(string)
< input.product = 'Logitech USB Receiver' (string)
< input.x11_driver = 'evdev' (string)
< input.x11_options.InvY = true (bool)
< linux.device_file = '/dev/input/event11' (string)
< linux.hotplug_type = 2 (0x2) (int)
< linux.subsystem = 'input' (string)
< linux.sysfs_path =
'/sys/devices/pci0000:00/0000:00:1d.0/usb4/4-1/4-1:1.0/input/input12/event11'
(string)
So it should be working, but it doesn't invert the mouse. Anyone know what
the problem is?
BTW: i have also tried the following to no avail:
<merge key="input.x11_options.InvY" type="string">true</merge>
--
Sincerely,
MacNean C. Tyrrell
--
Sincerely,
MacNean C. Tyrrell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20090129/4fbde0cc/attachment.htm
More information about the hal
mailing list