Hi Friends,
I had the same issue with my ASUS Laptop.
I made a modification in script in following way.(I have hard coded my
touchpad’s number in script - device 17)
And output the values of variables to terminal. Then commented the last line.
----------------------------------------------------------------------------------------------------------------------------------------------
#!/bin/bash
i=0
while read label min delim max; do
if [ $i -eq 0 ]; then
minx=$min
maxx=$max
elif [ $i -eq 1 ]; then
miny=$min
maxy=$max
break
fi
(( i++ ))
done < <(xinput list "17" | grep Range)
#the 17 above is the my device number.
left=`echo \($maxx - $minx\) / 2 + $minx | bc -l`
right=$maxx
top=`echo \($maxy - $miny\) \* 0.8 + $miny | bc -l`
bottom=$maxy
echo "$left"
echo "$right"
echo "$top"
echo "$bottom"
#xinput set-prop "ETPS/2 Elantech Touchpad" "Synaptics Soft Button Areas" $left
$right $top $bottom
--------------------------------------------------------------------------------------------------------------------------------------------------
I ran the script the got following output.
aj@Ajeesh-K55VJ:~/Downloads$ ./enable-rightbutton.sh
1624.50000000000000000000
3249.000000
1778.4000000
2223.000000
Then take these values and run the below command.
aj@Ajeesh-K55VJ:~/Downloads$ xinput set-prop 17 324 1624.50000 3249.0000
1778.40000 2223.0000 0 0 0 0
Basically added 4 zeroes to the command.
I hope someone with a better shell scripting capabilities can create a new
script for everyone based above details.....
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-input-synaptics in Ubuntu.
https://bugs.launchpad.net/bugs/944961
Title:
Can't enable Right Button Area on Elantech ETPS/2 Clickpad
Status in “xserver-xorg-input-synaptics” package in Ubuntu:
Confirmed
Bug description:
Running precise amd64.
I used the script posted on ubuntu-devel to try to enable right-click
on the Elantech clickpad of my Asus UX31E. Here is the script:
The script ends with the following line:
xinput set-prop "$1" "Synaptics Right Button Area" $left $right $top $bottom
I get the following error returned:
property Synaptics Right Button Area doesn't exist, you need to specify its
type and format
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xserver-xorg-input-synaptics 1.5.99~git20120223-0ubuntu1
Uname: Linux 3.3.0-030300rc5-generic x86_64
ApportVersion: 1.93-0ubuntu2
Architecture: amd64
Date: Fri Mar 2 11:56:54 2012
DistUpgraded: Fresh install
DistroCodename: precise
DistroVariant: ubuntu
DpkgLog:
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64
(20120127.2)
MachineType: ASUSTeK Computer Inc. UX31E
ProcEnviron:
TERM=xterm
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.3.0-030300rc5-generic
root=UUID=6fb5c681-fd2b-4e0a-a9a0-d4a1acb88cce ro quiet splash elevator=noop
vt.handoff=7
SourcePackage: xserver-xorg-input-synaptics
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/26/2011
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: UX31E.210
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: UX31E
dmi.board.vendor: ASUSTeK Computer Inc.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer Inc.
dmi.chassis.version: 1.0
dmi.modalias:
dmi:bvnAmericanMegatrendsInc.:bvrUX31E.210:bd12/26/2011:svnASUSTeKComputerInc.:pnUX31E:pvr1.0:rvnASUSTeKComputerInc.:rnUX31E:rvr1.0:cvnASUSTeKComputerInc.:ct10:cvr1.0:
dmi.product.name: UX31E
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK Computer Inc.
version.compiz: compiz 1:0.9.7.0~bzr2995-0ubuntu5
version.ia32-libs: ia32-libs N/A
version.libdrm2: libdrm2 2.4.30-1ubuntu1
version.libgl1-mesa-dri: libgl1-mesa-dri 8.0.1-0ubuntu2
version.libgl1-mesa-dri-experimental: libgl1-mesa-dri-experimental N/A
version.libgl1-mesa-glx: libgl1-mesa-glx 8.0.1-0ubuntu2
version.xserver-xorg-core: xserver-xorg-core 2:1.11.4-0ubuntu4
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev
1:2.6.99.901+git20120126-0ubuntu2
version.xserver-xorg-video-ati: xserver-xorg-video-ati
1:6.14.99~git20111219.aacbd629-0ubuntu2
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.17.0-1ubuntu4
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau
1:0.0.16+git20111201+b5534a1-1build2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/944961/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp