MEvent. Case! When Two-Finger Scrolling
Mostrar comentarios más antiguos
I'm using MATLAB R2013b on my laptop running Ubuntu 13.10, and am experiencing a rather annoying issue. Whenever I use the two-finger scrolling gesture on my touchpad in either the editor or the main window, the following output appears in the command window:
MEvent. CASE!
While the scrolling works, this line is output over and over again as I continue to perform the gesture.
Any ideas for how to stop this from happening?
Respuesta aceptada
Más respuestas (3)
Paulo Zúñiga
el 27 de Oct. de 2016
Editada: Paulo Zúñiga
el 14 de Sept. de 2017
I use xinput options to fix the problem (disable the horizontall scrolling) in a Dell Laptop.
Instructions:
1. Open terminal and select your devices
xinput list
In my case:
Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ DLLC6B2:00 06CB:75BF Touchpad id=11 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=13 [slave pointer (2)]
2. See options for your touchpad device ("11" for dell touchpad driver.)
xinput list-props 11
3. "Synaptics Two-Finger Scrolling" has the following values (1: enable, 0:disable):
Synaptics Two-Finger Scrolling (283): 1, 1
The second value is associated to the horizontal scrolling.
4. Finally, set a new value for the horizontal scrolling:
xinput --set-prop 11 "Synaptics Two-Finger Scrolling" 1 0
5. Enjoy :)
Maybe the problem persists after rebooting your laptop. However, it is possible to solve it by using the startup options on Ubuntu:

Lorenzo Campus
el 15 de Sept. de 2016
Editada: Walter Roberson
el 28 de Oct. de 2016
1 voto
Is it possible to fix this WITHOUT DEACTIVATING THE SCROLLING (which is useful)?
Is it possible to load older versions of Java into Ubuntu or Matlab? Apparently this was not a problem before new Java versions. https://bugs.openjdk.java.net/browse/JDK-7130140
7 comentarios
Lorenzo Campus
el 15 de Sept. de 2016
Actually, it works. Creating the startup.m script (and the finish.m with values back to 1 for when Matlab exits) does NOT deactivate the two-finger scrolling. It just fixes the problem. You can still scroll on the Command Window with two-finger scrolling. THANKS!
Andrea Nardin
el 8 de Nov. de 2016
Sorry can you please explain your fix with more details? I'd like to fix this issue while using the scrolling, but I don't understand where should I save the scripts and what to write inside them. Thank you.
Alex Eakins
el 1 de Feb. de 2017
Editada: Walter Roberson
el 5 de Mzo. de 2017
this is what i am getting... any advice?
>> synclient HorizEdgeScroll=0 HorizTwoFingerScroll=0
Undefined function or variable 'synclient'.
>> synclient HorizEdgeScroll=0 HorizTwoFingerScroll=0;
Undefined function or variable 'synclient'.
>> synclient HorizTwoFingerScroll=0
Undefined function or variable 'synclient'.
Walter Roberson
el 1 de Feb. de 2017
Alex you missed the ! before the command. The ! is a needed part of it.
Alex Eakins
el 5 de Mzo. de 2017
Walter Roberson, You sure are Correct I missed it and now it works like a charm thanks for the heads-up catch!!
Ian Hunter
el 14 de Jul. de 2017
Editada: Walter Roberson
el 15 de Jul. de 2017
This worked for me as well. Creating a startup.m file in my MATLAB/R2017a/toolbox/local/ folder with the lines
!synclient HorizEdgeScroll=0
!synclient HorizTwoFingerScroll=0
Has resolved the issue such that whenever I open matlab the issue no longer occurs without me needing to enter any special commands.
It is worth noting that I am on Ubuntu distribution 3.15.0-17-generic, MATLAB R2017a, and java-7-openjdk-amd64.
Thanks a ton all! This was driving me up the wall.
TaeHong Kim
el 22 de Nov. de 2017
Thanks Ian, this solution worked for me as well
Tor Djarv
el 22 de Abr. de 2017
Editada: Walter Roberson
el 22 de Abr. de 2017
0 votos
The problem is that Matlab is bundled with an old version of JVM which it uses. It is possible to make Matlab use the system install of JVM by modifying the MATLAB_JAVA environment variable, more details can be seen here: https://wiki.archlinux.org/index.php/matlab.
I did this and the scrolling problem disappeared.
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!