← Back to team overview

desktop-packages team mailing list archive

[Bug 1246683] Re: Middle button does not work for scrolling

 

I know, it's not the best means of sharing this, but since it appears to be a problem here:
Here is a more general way of solving this. Additionally, the script activates natural scrolling.


#!/bin/bash

set -eu

id=$(xinput list | sed -n '/SynPS\/2 Synaptics
TouchPad/s/.*id=\([0-9]\+\).*/\1/p')


naturalScroll=$(xinput list-props "$id" | sed -n '/Natural Scrolling Enabled (/s/.*(\([0-9]\+\)).*/\1/p')

click=$(xinput list-props "$id" | sed -n '/libinput Click Method Enabled
(/s/.*(\([0-9]\+\)).*/\1/p')

tap=$(xinput list-props "$id" | sed -n '/libinput Tapping Enabled
(/s/.*(\([0-9]\+\)).*/\1/p')


xinput set-int-prop "$id" "$naturalScroll" 8 1
xinput set-prop "$id" "$click" 0 1
xinput set-prop "$id" "$tap" 1

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-input-evdev in Ubuntu.
https://bugs.launchpad.net/bugs/1246683

Title:
  Middle button does not work for scrolling

Status in xserver-xorg-input-evdev package in Ubuntu:
  Invalid

Bug description:
  With my Lenovo T440s laptop the Trackpad/Trackpoint laptop scrolling
  does not work when pressing middle button + moving the Trackpoint.
  evdev seems to be set correctly ( http://paste.ubuntuusers.de/416732/
  ). Middle button itself works fine for middle clicks just no
  scrolling.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: xserver-xorg-input-evdev 1:2.7.3-0ubuntu3.1
  Uname: Linux 3.12.0-031200rc7-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.1
  Architecture: amd64
  Date: Thu Oct 31 12:36:14 2013
  InstallationDate: Installed on 2013-10-17 (13 days ago)
  InstallationMedia: Xubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016)
  MarkForUpload: True
  SourcePackage: xserver-xorg-input-evdev
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-evdev/+bug/1246683/+subscriptions