chamoysvoice / touchegg

Automatically exported from code.google.com/p/touchegg
0 stars 0 forks source link

Trackpad, gestures work well, but cursor dosn't move #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
So, I have MBA 2012, put linux on it and trying to make gestures.
First I checked if kernel has found my device by mtdev-test /dev/input/event9 
(my trackpad), yeah it has. Then was using synaptics driver and it worked well 
(with 2 fingers scroll and 3 fingers tap), but I wanted more...
I commented xorg.conf.d/10-synaptics.conf (here it is, anyway, works well):
# Section "InputClass"
#  Identifier "Synaptics on trackpad"
#  Driver "synaptics"
#  MatchIsTouchpad "on"
#  MatchDevicePath "/dev/input/event9"
#  Option "TapButton1" "1"
#  Option "TapButton2" "3"
#  Option "TapButton3" "2"
# EndSection
With this driver touchegg gestures works, but only for 4 or 5 fingers (2 pinch 
and other 2-3 fingers gestures take synaptics by itself as 2-3 finger move).
So I am going with evdev, here xorg.conf.d/10-evdev.conf trackpad section:
Section "InputClass"
 Identifier "Evdev on trackpad"
 Driver "evdev"
 MatchUSBID "05ac:024d"
 Option "CorePointer"
 MatchIsTouchpad "on"
 MatchDevicePath "/dev/input/event9"
EndSection
And restarted X. So, as earlier gestures works (now with 2-3 fingers too), but 
suddenly cursor doesn't move. Click Button also works, but cursor..
Next I tried: xinput test-xi2 2 # 2 - my core pointer device, also with 12 - 
slave pointer, trackpad
And it goes well: all taps and moves it printed (x,y positions; pressure, 
orientation and so on). So I tried again with synaptics and found the 
difference: for move actions synaptics sends EVENT type 17 (RawMotion); while 
evdev sends 3 events: EVENT type 22 (RawTouchBegin), EVENT type 23 
(RawTouchUpdate) and EVENT type 23 (RawTouchEnd).
So I think problem in event's type. I'm thinking for write a little program, 
that moves cursor when recive touch events (using this API 
http://www.x.org/wiki/XI2 ); but is here more simple way to fix cursor? Am I 
doing something wrong?
Excuse me, if I should ask it on evdev mail list, not here.

Original issue reported on code.google.com by Japanise...@gmail.com on 4 Oct 2012 at 6:53

GoogleCodeExporter commented 8 years ago
Hi,

You are using Precise, it is? Try to use the synaptics driver and follow this 
instructions to enable the 2/3 finger gestures:
https://wiki.ubuntu.com/Multitouch/TouchpadSupport

Original comment by jose.exposito89@gmail.com on 4 Oct 2012 at 1:58

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
PS - Of course you need to disable gestures with 2 and 3 fingers to allow 
Touchégg to use it, it's more easy to do from  System Settings -> Mouse and 
Touchpad -> Touchpad tab

Original comment by jose.exposito89@gmail.com on 4 Oct 2012 at 2:00

GoogleCodeExporter commented 8 years ago
Hi, thank you for your answer.
No, I'm using Arch. Thanks for advice, I will play with synaptics config, 
xinput and disable 2-3 fingers gestures - thought touchegg needs evdev driver 
to work properly.
If successed today - ask you to write here 
http://code.google.com/p/touchegg/wiki/ConfigureDevices that sometimes it is 
not necessary to replace synaptics driver by evdev (in this redaction it seems 
like it will work right only with evdev).
And thanks for link.

Original comment by Japanise...@gmail.com on 4 Oct 2012 at 3:01

GoogleCodeExporter commented 8 years ago
No, with disabled 2-3 fingers gestures by xinput (synaptics driver) Touchégg 
with default config (where they are and works with evdev driver) does nothing.
So, I see here 2 solutions:
- enable synaptics gestures for 2-3 fingers (that I don't like, case they are 
less  flexible and I loved Touchégg config from first sight);
- write a little daemon that moves cursor, when catch touch event (I'd love to 
fix error in X or what recives this messages, but I don't know where to look, 
so simplier is a little program, maybe in the future fix X, or event's type in 
evdev).
And Xorg.0.log hasn't something helpful for my problem.

Original comment by Japanise...@gmail.com on 4 Oct 2012 at 6:30

GoogleCodeExporter commented 8 years ago
Hi!

Before make the daemon try to ask in the uTouch mailing list, probably Chase 
Douglas could help you

Original comment by jose.exposito89@gmail.com on 5 Oct 2012 at 8:03

GoogleCodeExporter commented 8 years ago
Jose,

Disable configurations in System Settings, doesn't work for me. I need to throw 
synclient commands in a script to disable synaptics 2 and 3 finger gestures and 
Touchegg recognize them.

synclient TapButton2=0
synclient TapButton3=0
synclient ClickFinger2=0
synclient ClickFinger3=0
synclient HorizTwoFingerScroll=0
synclient VertTwoFingerScroll=0

Original comment by vinicius...@gmail.com on 5 Oct 2012 at 12:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Vinicius,
In your case I would add this in ~/.xinitrc like:
exec "$DEFAULT_SESSION" & # after this, adding & at end of line
synclient TapButton2=0
# ...
But, don't know if it works in Ubuntu with it login manager. (on your own risk).

Jose, hi!
I will write there (or in xorg mail list, cause I think it's X11 error). Now 
I'm about ending daemon prototype as temporary answer to my problem.

Original comment by Japanise...@gmail.com on 5 Oct 2012 at 2:48

GoogleCodeExporter commented 8 years ago
Jose, hi!
While i was experimenting found that when I move(Drag) three fingers on the 
left with Touchégg - cursor start moving left (when back - moves back).
That was unexpected o.O

Original comment by Japanise...@gmail.com on 5 Oct 2012 at 4:07

GoogleCodeExporter commented 8 years ago
Check your configuration file, probably you have asssigned drag&drop action to 
the 3 touches drag gesture

Original comment by jose.exposito89@gmail.com on 5 Oct 2012 at 4:19

GoogleCodeExporter commented 8 years ago
No, on the left or right <action type="MOVE_WINDOW">
Also found, that with evdev 2-finger actions (like scrolling) doesn't work 
properly (work, but very strange and not always) and three finger pinch gesture 
crashed Touchégg (segment. fault).
So, I thinking about going with synaptics driver, that does 2-3 fingers actions 
good and Touchégg that works very well with 4-5 finger gestures.
But I will miss two fingers on right action in browser much (if I will not 
configure it with synaptics).

Original comment by Japanise...@gmail.com on 5 Oct 2012 at 4:35

GoogleCodeExporter commented 8 years ago
Move window emulates Alt+Drag&Drop, this is the reason of the mouse movement

Original comment by jose.exposito89@gmail.com on 5 Oct 2012 at 4:45

GoogleCodeExporter commented 8 years ago
I didn't use ~/.xinitrc. I created a script bash and use 
gnome-session-properties or Startup Applications Preferences (as user) to run 
it after login, i use Gnome-Shell in Archlinux, i think it's the same command 
at Unity in Ubuntu (both Gnome-Shell and Unity are shells running over the same 
base system, GNOME3).

Original comment by vinicius...@gmail.com on 5 Oct 2012 at 4:45

GoogleCodeExporter commented 8 years ago
Vinicius,
oh, thank you! I thought it was your question where to put this commands, not 
advice (my bad English). So in 5 comment I disable 2-3 finger actions by xinput 
and it doesn't work. Now find this issue 
http://code.google.com/p/touchegg/issues/detail?id=164 and tried your commands. 
Gestures work, even 2-3 finger with Touchégg.
Jose, thank you too much.
So, I go with synaptics with disabled 2-3 finger actions.
Last question I have - how to made them work not only over some window (over my 
desktop it send "X Error: BadWindow" - can't find answer in config file. Should 
I put <gesture> tag outside <application name="All"> tag?

Original comment by Japanise...@gmail.com on 5 Oct 2012 at 4:57

GoogleCodeExporter commented 8 years ago
Ok, I found this issue http://code.google.com/p/touchegg/issues/detail?id=98
So it's wm error, ok. Currently using fvwm, pekwm and awesome, so will put 
cronky or anything over desktop.
Thank you, guys for answers - it helped much.
Jose, you could close my issue, thanks.

Original comment by Japanise...@gmail.com on 5 Oct 2012 at 5:43

GoogleCodeExporter commented 8 years ago
Ok

Original comment by jose.exposito89@gmail.com on 7 Oct 2012 at 9:40