Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: simulating two finger scrolling on touchpad doesn't work in lucid as it did in karmic

  1. #1
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,013
    Distro
    Xubuntu

    Arrow simulating two finger scrolling on touchpad doesn't work in lucid as it did in karmic

    Solved:
    Quote Originally Posted by tnat View Post
    open a Terminal and paste

    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Pressure" 32 10
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Width" 32 6
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Two-Finger Scrolling" 8 1
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Scrolling" 8 1 1
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Jumpy Cursor Threshold" 32 150
    i created a script and put it into the startup-apps!

    cheers
    touchpad.sh edited
    Code:
    #!/bin/bash
    #
    # list of synaptics device properties http://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html#sect4
    #
    # Some useful commands :
    #	xinput list
    #	xinput list-props "SynPS/2 Synaptics TouchPad"
    #	xinput test "SynPS/2 Synaptics TouchPad"
    #	xinput test-xi2 "SynPS/2 Synaptics TouchPad"
    #
    xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4
    xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8         # Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
    xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0   # vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
    xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 0 0 0       # vertical, horizontal, corner - values: 0=disable  1=enable
    xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 250 # stabilize 2 finger actions - value=pad-pixels
    xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 1 2 0   # pad corners rt rb lt lb tap fingers 1 2 3 (can't simulate more then 2 tap fingers AFAIK) - values: 0=disable 1=left 2=middle 3=right etc. (in FF 8=back 9=forward)
    #xinput --set-button-map "SynPS/2 Synaptics TouchPad" 2 1 3 4 5 6 7 8 9                                       # swap left and middle click, gives you middle click on the left button and left click on tap. - values: lb, mb, rb, b4, b5, etc.
    exit
    For problems with the script loading at startup see : http://ubuntuforums.org/showthread.p...00#post9154700

    ==================================================

    Original post :

    In karmic I used a .fdi file (/etc/hal/fdi/policy/11-x11-synaptics.fdi) to simulate 2 finger scrolling. Modern touchpads that don't support two-finger scrolling, but do support "gestures" will register 2 fingers as a wider touch than a single finger. The width of the touch is what I used to simulate a 2 finger touch.

    Besides the 2finger scrolling I also used the .fdi file to make the touchpad better recognize double clicks. It takes 2 or 3 attempts now before the pad gets it. And to make the left button act as a middle button. The middle button is to functional in linux to do without and simulating the middle button by pressing the left and right button simultaneously is a drag.

    Anyway, I suspect it all has to do with the hal removal (though hal is still installed it seems). I would really like to know what the new lucid way is to get my touchpad tweaks up and running again. Or else, how to resurrect hal.

    For the curious : /etc/hal/fdi/policy/11-x11-synaptics.fdi
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <deviceinfo version="0.2">
    <!-- external mouse
      <device>
         <match key="info.capabilities" contains="input.mouse">
            <merge key="input.x11_driver" type="string">mouse</merge>
            <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
               <merge key="input.x11_driver" type="string">evdev</merge>
               <merge key="input.x11_options.Emulate3Buttons" type="string">false</merge>
               <merge key="input.x11_options.ButtonMapping" type="string">2 1 3</merge>
            </match>
         </match>
      </device>
    -->
      <device>
         <match key="info.capabilities" contains="input.touchpad">
            <merge key="input.x11_driver" type="string">synaptics</merge>
    <!-- 
               DON'T USE SHMConfig (unless you must, for example to run 'synclient -m 10'),
               obsolete (in karmic and later at least) and a security risk.
            <merge key="input.x11_options.SHMConfig" type="string">On</merge> -->
    <!-- 
               The following is an example of swapping buttons on the Synaptics
               TouchPadthat DOESN'T WORK anymore. See the end of 'man synaptics'
            <merge key="input.x11_options.Buttons" type="string">3</merge>
            <merge key="input.x11_options.ButtonMapping" type="string">2 1 3</merge>
    
               NOTES :
            <merge key="input.x11_options.RTCornerButton" type="string">0</merge>          disable tap-right-top-corner button
            <merge key="input.x11_options.LTCornerButton" type="string">0</merge>          disable tap-left-top-corner button
            <merge key="input.x11_options.LBCornerButton" type="string">0</merge>          disable tap-left-bottom-corner button
            <merge key="input.x11_options.ClickFinger1" type="string">1</merge>            For pads that support true multitouch
            <merge key="input.x11_options.ClickFinger2" type="string">3</merge>            For pads that support true multitouch
            <merge key="input.x11_options.ClickFinger3" type="string">2</merge>            For pads that support true multitouch
    -->
            <merge key="input.x11_options.TapButton1" type="string">2</merge>              <!-- set tap-click to middle mouse button, run 'xinput set-button-map "SynPS/2 Synaptics TouchPad" 2 1 3' to swap buttons 1 and 2. This gives you middle click on the left button and left click on tap. -->
            <merge key="input.x11_options.TapButton2" type="string">0</merge>              <!-- disable 2 finger tap-click, 2 finger tap-click to menu = 3 -->
            <merge key="input.x11_options.TapButton3" type="string">0</merge>              <!-- disable 3 finger tap-click -->
            <merge key="input.x11_options.RBCornerButton" type="string">0</merge>          <!-- disable tap-right-bottom-corner button (is on by default on my machine) -->
            <merge key="input.x11_options.VertEdgeScroll" type="string">0</merge>          <!-- disable edge scrolling -->
            <merge key="input.x11_options.EmulateMidButtonTime" type="string">0</merge>    <!-- effectivelly disable middle button emmulation -->
            <merge key="input.x11_options.EmulateTwoFingerMinZ" type="string">4</merge>    <!-- set 2 finger emulation presure -->
            <merge key="input.x11_options.EmulateTwoFingerMinW" type="string">7</merge>    <!-- set 2 finger emulation pinch width -->
            <merge key="input.x11_options.VertTwoFingerScroll" type="string">1</merge>     <!-- enable 2 finger scrolling -->
            <merge key="input.x11_options.JumpyCursorThreshold" type="string">150</merge>  <!-- stabilize 2 finger tapping and 2 finger scrolling -->
            <merge key="input.x11_options.MaxDoubleTapTime" type="string">50</merge>       <!-- make doubletap more responsive -->
         </match>
      </device>
    </deviceinfo>
    Last edited by miegiel; April 21st, 2010 at 08:22 PM. Reason: Changes to xinput, new syntax for device name.

  2. #2
    Join Date
    Apr 2007
    Location
    Ireland
    Beans
    237
    Distro
    Ubuntu Jaunty Jackalope (testing)

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Go to System/Preferences/Mouse

    Click on the touchpad tab and you can select two finger scrolling under the scrolling heading.

    You can also enable horizontal scrolling.

    Hope this helps.
    "The program 'apt-get' is currently not installed. You can install it by typing apt-get install apt" LOL

  3. #3
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,013
    Distro
    Xubuntu

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Quote Originally Posted by tretle View Post
    Go to System/Preferences/Mouse

    Click on the touchpad tab and you can select two finger scrolling under the scrolling heading.

    You can also enable horizontal scrolling.

    Hope this helps.
    I did manage to make my doubletap a bit more responsive. I'm using xubuntu now, but from the last time I used ubuntu, I remember you only had that option if you had a touchpad with true multitouch.

    In xubuntu 10.4 I don't have a two finger scrolling option in my mouse/touchpad preferences (I might have if I had a true multi-touch-pad ). But I don't mind hopping back to ubuntu for a while. It only takes 30min to install the basics.

  4. #4
    Join Date
    Mar 2008
    Beans
    Hidden!

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Two fingers is greyed out.

  5. #5
    Join Date
    Dec 2005
    Location
    Austria
    Beans
    24
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    open a Terminal and paste

    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Pressure" 32 10
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Width" 32 6
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Two-Finger Scrolling" 8 1
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Scrolling" 8 1 1
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Jumpy Cursor Threshold" 32 150
    i created a script and put it into the startup-apps!

    cheers

  6. #6
    Join Date
    Mar 2008
    Beans
    Hidden!

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Nice, I have two finger functionality back. This is awesome.

  7. #7
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,013
    Distro
    Xubuntu

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Quote Originally Posted by tnat View Post
    open a Terminal and paste

    ...
    Great, thanks mate. Now I only need my middle-button back, but I think I can figure that out with this push in the right direction.

    edit:
    Heh, my side-scrolling is still on, but I'll figure that out too.
    Last edited by miegiel; March 3rd, 2010 at 01:10 PM.

  8. #8
    Join Date
    Dec 2005
    Location
    Austria
    Beans
    24
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Quote Originally Posted by miegiel View Post
    Great, thanks mate. Now I only need my middle-button back, but I think I can figure that out with this push in the right direction.

    edit:
    Heh, my side-scrolling is still on, but I'll figure that out too.
    You could disable side-scrolling in the gnome-mouse-properties

  9. #9
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,013
    Distro
    Xubuntu

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    Quote Originally Posted by tnat View Post
    You could disable side-scrolling in the gnome-mouse-properties
    Yet again, not in xubuntu But I can turn it off with xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' ... too. I found a nice list of synaptics device properties. The last thing I need to figure out is to make my left-button below the pad my middle button again. I used to do that by making 1 finger tap my middle button and then swapping the middle and left "click". OK, fixed that too Time to make the script.

    Enable simulated two finger scrolling
    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Pressure" 32 4
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Width" 32 7
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Two-Finger Scrolling" 8 1 1
    Below width 1 finger touch, above width simulate 2 finger touch. Enable vertical and horizontal scrolling.

    It turns out I don't need :
    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Two-Finger Scrolling" 8 1
    Disable edge scrolling :
    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Edge Scrolling" 8 0 0 0
    vertical, horizontal, corner

    Stabilize 2 finger actions :
    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Jumpy Cursor Threshold" 32 250
    Set/disable buttons and shuffle left and middle click :
    Code:
    xinput set-int-prop '"SynPS/2 Synaptics TouchPad"' "Synaptics Tap Action" 8 0 0 0 0 2 0 0
    xinput set-button-map '"SynPS/2 Synaptics TouchPad"' 2 1 3
    pad corners rt rb lt lb tap fingers 1 2 3 - values: 0=disable 1=left 2=middle 3=right etc.(can't simulate more then 2 tap fingers AFAIK)

  10. #10
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,013
    Distro
    Xubuntu

    Re: simulating two finger scrolling on touchpad doesn't work in lucid as it did in ka

    man xinput said --set-int-prop is deprecated and to use --set-prop instead. So I changed the command a bit.

    Final script:
    tochpad.sh
    Code:
    #!/bin/bash
    #
    # list of synaptics device properties http://www.x.org/archive/X11R7.5/doc/man/man4/synaptics.4.html#sect4
    #
    # Some useful commands :
    #	xinput list
    #	xinput list-props "SynPS/2 Synaptics TouchPad"
    #	xinput test "SynPS/2 Synaptics TouchPad"
    #	xinput test-xi2 "SynPS/2 Synaptics TouchPad"
    #
    xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Pressure" 4
    xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Width" 8         # Below width 1 finger touch, above width simulate 2 finger touch. - value=pad-pixels
    xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Two-Finger Scrolling" 1 0   # vertical scrolling, horizontal scrolling - values: 0=disable 1=enable
    xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Edge Scrolling" 0 0 0       # vertical, horizontal, corner - values: 0=disable  1=enable
    xinput --set-prop --type=int --format=32 "SynPS/2 Synaptics TouchPad" "Synaptics Jumpy Cursor Threshold" 250 # stabilize 2 finger actions - value=pad-pixels
    xinput --set-prop --type=int --format=8  "SynPS/2 Synaptics TouchPad" "Synaptics Tap Action" 0 0 0 0 2 8 0   # pad corners rt rb lt lb tap fingers 1 2 3 (can't simulate more then 2 tap fingers AFAIK) - values: 0=disable 1=left 2=middle 3=right etc. (in FF 8=back 9=forward)
    xinput --set-button-map "SynPS/2 Synaptics TouchPad" 2 1 3 4 5 6 7 8 9                                       # swap left and middle click, gives you middle click on the left button and left click on tap. - values: lb, mb, rb, b4, b5, etc.
    exit
    Last edited by miegiel; March 31st, 2010 at 06:04 PM. Reason: Changes to xinput, new syntax for device name.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •