[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Using HAL fdi rules, rather than tweaking xorg.conf ?



Hello,

I am writing a guide to install Lenny on a given laptop (T400).
Like most thinkpad, it requires to add three lines in xorg.conf :

   Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"

        #add those three lines
        Option          "EmulateWheel"          "true"
        Option          "EmulateWheelTimeOut"   "200"
        Option          "EmulateWheelButton"    "2"
   EndSection

I am trying to replace this static configuration file with a HAL policy:

## BEGIN OF /etc/hal/fdi/policy/mouse-trackpoint.fdi ##
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
 <device>
  <match key="info.product" string="TPPS/2 IBM TrackPoint">
   <merge key="input.x11_options.EmulateWheel" type="string">true</merge>
   <merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
   <merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
   <merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
        <!-- Uncomment, to enable horizontal scrolling :
         <merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
         <merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
        -->
  </match>
 </device>
</deviceinfo>
## END OF /etc/hal/fdi/policy/mouse-trackpoint.fdi ##

My problem is that xorg(1:7.3+18) and/or xserver-xorg-input-evdev
(1:2.0.8-1) don't seem to obey those settings.

Is this supported? (or am I wrong).

Regards,

Franklin


After restart, HAL reports:
> udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_Synaptics_pass_through_logicaldev_input'
>   info.addons.singleton = {'hald-addon-input'} (string list)
>   info.capabilities = {'input', 'input.keys', 'input.mouse', 'button'} (string list)
>   info.category = 'input'  (string)
>   info.parent = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_Synaptics_pass_through'  (string)
>   info.product = 'TPPS/2 IBM TrackPoint'  (string)
>   info.subsystem = 'input'  (string)
>   info.udi = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_Synaptics_pass_through_logicaldev_input'  (string)
>   input.device = '/dev/input/event9'  (string)
>   input.originating_device = '/org/freedesktop/Hal/devices/platform_i8042_i8042_AUX_port_Synaptics_pass_through'  (string)
>   input.product = 'TPPS/2 IBM TrackPoint'  (string)
>   input.x11_driver = 'evdev'  (string)
>   input.x11_options.Emulate3Buttons = 'true'  (string)
>   input.x11_options.EmulateWheel = 'true'  (string)
>   input.x11_options.EmulateWheelButton = '2'  (string)
>   input.x11_options.ZAxsisMapping = '4 5'  (string)
>   input.xkb.layout = 'us'  (string)
>   input.xkb.model = 'evdev'  (string)
>   input.xkb.rules = 'base'  (string)
>   input.xkb.variant = ''  (string)
>   linux.device_file = '/dev/input/event9'  (string)
>   linux.hotplug_type = 2  (0x2)  (int)
>   linux.subsystem = 'input'  (string)
>   linux.sysfs_path = '/sys/class/input/input9/event9'  (string)





Reply to: