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.
#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.....
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 ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------ K55VJ:~ /Downloads$ ./enable- rightbutton. sh 0000000000 K55VJ:~ /Downloads$ xinput set-prop 17 324 1624.50000 3249.0000 1778.40000 2223.0000 0 0 0 0
-------
I ran the script the got following output.
aj@Ajeesh-
1624.5000000000
3249.000000
1778.4000000
2223.000000
Then take these values and run the below command.
aj@Ajeesh-
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.....