You are not logged in.

#1 2009-09-20 14:45:14

mongoose088
Member
Registered: 2008-09-14
Posts: 32

Setting mousepad configurations with .fdi

Hello all,

Since I've gotten this Dell Laptop, (which has an ALPS touchpad) I've been controlling my configurations with "gpointing-device settings". The only problem was that the settings wouldn't save after each reboot, so I chucked the program looking for better alternatives.

Currently, my touchpad is functional. Horizontal scrolling is enabled, and tapping is enabled. Both buttons work.

The wiki mentioned using HAL hotplugging to control the mousepad. However, my touchpad is not behaving the way I want to : I believe xorg.conf might be controlling the touchpad instead of HAL, but I'm unsure. I want to have tapping disabled, vertical and horizontal scrolling disabled, and 2 finger scrolling disabled. I want circular scrolling enabled.

Are there some special steps involved in enabling the .fdi to take control of the touchpad?

Here is my /etc/hal/fdi/policy/11-x11-synaptics.fdi

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
     <match key="info.product" contains="AlpsPS/2 ALPS">
       <merge key="input.x11_driver" type="string">synaptics</merge>
    </match>
    <match key="info.capabilities" contains="input.touchpad">
        <merge key="input.x11_driver" type="string">synaptics</merge>
        <merge key="input.x11_options.TapButton1" type="string">1</merge>
        <merge key="input.x11_options.TapButton2" type="string">2</merge>
        <merge key="input.x11_options.TapButton3" type="string">3</merge>
        <!-- Arbitrary options can be passed to the driver using
             the input.x11_options property since xorg-server-1.5. -->
        <!-- EXAMPLES:
        Switch on shared memory, enables the driver to be configured at runtime
        <merge key="input.x11_options.SHMConfig" type="string">true</merge>
        Maximum movement of the finger for detecting a tap
        <merge key="input.x11_options.MaxTapMove" type="string">2000</merge>

        Enable vertical scrolling when dragging along the right edge
        <merge key="input.x11_options.VertEdgeScroll" type="string">false</merge>

        Enable vertical scrolling when dragging with two fingers anywhere on the touchpad
        <merge key="input.x11_options.VertTwoFingerScroll" type="string">false</merge>

        Enable horizontal scrolling when dragging with two fingers anywhere on the touchpad
        <merge key="input.x11_options.HorizTwoFingerScroll" type="string">false</merge>

        If on, circular scrolling is used
        <merge key="input.x11_options.CircularScrolling" type="string">true</merge>
        <merge key="input.x11_options.CircScrollTrigger" type="string">8</merge>
        <merge key="input.x11_options.CircScrollDelta" type="string">0.1</merge>

        For other possible options, check CONFIGURATION DETAILS in synaptics man page
        -->
    </match>
  </device>
</deviceinfo>

Here is my /etc/X11/xorg.conf (relavant portion only):

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

#Section "InputDevice"
#    Identifier     "Synaptics"
#    Driver         "touchpad"
#     Option         "MaxTapTime" "0"
#    Option        "SHMConfig"  "true"
#    Option          "VertTwoFingerScroll"   "1"
#    Option          "HorizTwoFingerScroll"  "1"
#    Option          "EmulateTwoFingerMinZ"  "120"
#     Option      "MinSpeed"          "0.40"  # speed factor for low pointer movement
#     Option      "MaxSpeed"          "0.80"  # maximum speed factor for fast pointer movement
#     Option      "AccelFactor"       "0.0030"    # acceleration factor for normal pointer movements

#EndSection


Let me know if you need any more information. Thanks for your help

Mongoose

Offline

#2 2009-09-20 16:04:24

MadTux
Member
Registered: 2009-09-20
Posts: 553

Re: Setting mousepad configurations with .fdi

May be a dumb question but why do you need that remaining InputDevice section in xorg.conf? I have a pointing stick on my laptop and only hal policy in place (no xorg.conf) at all. As far as I understand it, xorg.conf takes over if there is a relevant section in it. If you need the ZAxisMapping entries, you can move them to your hal policy, just as I did with mine:

bash-4.0# cat /etc/hal/fdi/policy/mouse-wheel.fdi
<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.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>

That way I am independent of xorg.conf.

Offline

Board footer

Powered by FluxBB