You are not logged in.

#1 2010-04-05 12:56:19

dunz0r
Member
From: Sweden
Registered: 2009-03-30
Posts: 258
Website

Two buttons and scroll wheel emulation.

I've got a two button Kensington trackball and I've been trying to get mousewheel emulation by pressing both buttons at once working. I'ts not going very well. Doesn't do squat. I don't know how to solve this.

This is what I've got in my xorg.conf so far:

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "imps/2"
    Option         "Device" "/dev/psaux"
    Option         "Buttons" "7"
    Option         "Emulatewheel" "true"
    Option         "Emulate3Buttons" "yes"
    Option         "EmulateWheelButton" "2"
    Option         "XAxismapping" "6 7"
    Option         "YAxismapping" "4 5"
EndSection

Last edited by dunz0r (2010-04-05 19:48:59)


RTFM or GTFO
hax0r.se

Offline

#2 2010-04-08 18:41:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,803

Re: Two buttons and scroll wheel emulation.

Edit : Sorry, I did not read your post carefully.    The example below is applicable to a touch pad, bit the idea is the same. 
Edit:  You probably should start with /usr/share/hal/fdi/policy/10osvendor/10-x11-input.fdi

Odds are that you are using hal.  As such, you will need to create an fdi file rather than change the xorg.conf file.

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

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
  <device>
    <match key="info.product" contains="ETPS/2 Elantech Touchpad">
        <append key="info.capabilities" type="strlist">input.touchpad</append>
    </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>
        <merge key="input.x11_options.SHMConfig" type="string">true</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">true</merge>

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

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

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

        For other possible options, check CONFIGURATION DETAILS in synaptics man page
        -->
        <merge key="input.x11_options.CircularScrolling" type="string">true</merge>
        <merge key="input.x11_options.CircScrollTrigger" type="string">3</merge>
        <merge key="input.x11_options.LBCornerButton" type="string">2</merge>
        <merge key="input.x11_options.RBCornerButton" type="string">3</merge>
        <merge key="input.x11_options.AccelFactor" type="string">2</merge>
    </match>
  </device>
</deviceinfo>

There is a proforma file at [i][/usr/share/hal/fdi/policy/10osvendor/11-x11-synaptics.fdi/i] which you can copy to /etc/hal/fdi/policy/ and then edit.  Restart hal for the changes to take effect

Last edited by ewaller (2010-04-08 18:47:21)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB