MEvent. Case! When Two-Finger Scrolling

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 件のコメント

Alejandro
Alejandro 2014 年 1 月 22 日
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.
Garrett
Garrett 2014 年 2 月 24 日
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.

サインインしてコメントする。

 採用された回答

Guillaume
Guillaume 2014 年 2 月 23 日

21 投票

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

10 件のコメント

Garrett
Garrett 2014 年 2 月 24 日
編集済み: Garrett 2014 年 3 月 20 日
I appreciate you taking the time to answer, but this is completely unhelpful. Of course I could avoid the issue by disabling the gesture (or not performing it at all!), but the whole point is that I want to use it without the message cluttering up the command window.
Edit: From Rob's comment below, I see that I misunderstood your comment. I don't need two finger horizontal scrolling, so this is an acceptable solution. Thanks!
Rob
Rob 2014 年 3 月 7 日
I can confirm this works and does not impact my workflow at all as this affects horizontal, not vertical scrolling. I call matlab from a bash script:
synclient HorizEdgeScroll=0 HorizTwoFingerScroll=0
matlab -desktop
Simon Olofsson
Simon Olofsson 2015 年 2 月 11 日
I get the MEvent. CASE! message whenever I scroll upwards in MATLAB. I'm using my mouse, and my computer doesn't have any touch-functions at all, which means I don't have any synaptic drivers, and just get an error message that synclient couldn't be found. I'm running Ubuntu 14.04 LTS, and haven't been able to find any information about what to do in the non-touch case.
Any ideas what to do?
M L
M L 2015 年 6 月 20 日
編集済み: M L 2015 年 6 月 20 日
Where to type the command:
synclient HorizTwoFingerScroll=0
I type it in the terminal and then it appeared:
Couldn't find synaptics properties. No synaptics driver loaded?
What should I do? Thanks!
Rashmi Sankepally
Rashmi Sankepally 2015 年 10 月 21 日
Type on Matlab terminal. It works.
Saurabh Kataria
Saurabh Kataria 2016 年 5 月 17 日
Your solution works but this issue comes up every time I run MATLAB. Can you please provide a permanent solution? Thanks.
Evan
Evan 2016 年 5 月 25 日
編集済み: Evan 2016 年 5 月 25 日
Put the command in your startup file.
nishant nair
nishant nair 2017 年 6 月 3 日
Hi,
I am getting an error stating "/bin/bash: synclient: command not found". Any fixes for this. I am using gnome with 17.04.
Walter Roberson
Walter Roberson 2017 年 7 月 15 日
Irmak Ergin
Irmak Ergin 2021 年 11 月 22 日
Hello, I'm receiving this error: " X server supports X Input 1.3. I need 1.5." when I try to use the code. Any idea how to make it work?
Ps. I use x2goclient to connect a server to work with a linux desktop.

サインインしてコメントする。

その他の回答 (3 件)

Paulo Zúñiga
Paulo Zúñiga 2016 年 10 月 27 日
編集済み: Paulo Zúñiga 2017 年 9 月 14 日

2 投票

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
Lorenzo Campus 2016 年 9 月 15 日
編集済み: Walter Roberson 2016 年 10 月 28 日

1 投票

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 件のコメント

Lorenzo Campus
Lorenzo Campus 2016 年 9 月 15 日
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
Andrea Nardin 2016 年 11 月 8 日
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
Alex Eakins 2017 年 2 月 1 日
編集済み: Walter Roberson 2017 年 3 月 5 日
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
Walter Roberson 2017 年 2 月 1 日
Alex you missed the ! before the command. The ! is a needed part of it.
Alex Eakins
Alex Eakins 2017 年 3 月 5 日
Walter Roberson, You sure are Correct I missed it and now it works like a charm thanks for the heads-up catch!!
Ian Hunter
Ian Hunter 2017 年 7 月 14 日
編集済み: Walter Roberson 2017 年 7 月 15 日
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
TaeHong Kim 2017 年 11 月 22 日
Thanks Ian, this solution worked for me as well

サインインしてコメントする。

Tor Djarv
Tor Djarv 2017 年 4 月 22 日
編集済み: Walter Roberson 2017 年 4 月 22 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeStartup and Shutdown についてさらに検索

質問済み:

2014 年 1 月 15 日

コメント済み:

2021 年 11 月 22 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by