MATLAB Answers

Garrett
15

MEvent. Case! When Two-Finger Scrolling

Asked by Garrett
on 15 Jan 2014
Latest activity Commented on by TaeHong Kim on 22 Nov 2017
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?

  2 Comments

What Java libraries did you install? I have the same problem, and I am using openJDK 7.0. I think this may be the source of the problem, but I have no clue as to how to fix this problem as well.
I agree that it must have something to do with the libraries, but it doesn't appear to be limited to just OpenJDK 7 since I'm using Oracle Java 7 through Web Upd8's PPA.

Sign in to comment.

4 Answers

Answer by Guillaume on 23 Feb 2014
 Accepted Answer

The issue come from java and Horizontal Two Finger Scrolling. The easiest fix is to simply deactivate the horizontal two finger scrolling which is not so useful in Matlab. One way to do that is:
!synclient HorizTwoFingerScroll=0

  9 Comments

Evan
on 25 May 2016
Put the command in your startup file.
Hi,
I am getting an error stating "/bin/bash: synclient: command not found". Any fixes for this. I am using gnome with 17.04.

Sign in to comment.


Answer by Paulo Zúñiga on 27 Oct 2016
Edited by Paulo Zúñiga on 14 Sep 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:

  0 Comments

Sign in to comment.


Answer by Lorenzo Campus on 15 Sep 2016
Edited by Walter Roberson
on 28 Oct 2016

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 Comments

Walter Roberson, You sure are Correct I missed it and now it works like a charm thanks for the heads-up catch!!
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.
Thanks Ian, this solution worked for me as well

Sign in to comment.


Answer by Tor Djarv on 22 Apr 2017
Edited by Walter Roberson
on 22 Apr 2017

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.

  0 Comments

Sign in to comment.