Alt-Gr key not responding on MATLAB 7.4.0 (R2007a) on Ubuntu 8.04

Asked by Gerard Sanromà

Hi all!

I have MATLAB 7.4.0 (R2007a) installed on a Dell inspiron 530s machine with Ubuntu 8.04 (Hardy Heron) on it.
The problem is simple.. Alt-Gr key does not respond neither in the command window nor in the editor of the MATLAB Desktop.
This problem is quite annoying because, in fact, I cannot use brackets like these ones { [.. which are necessary in Matlab programming..
I sincerely have no idea of where comes the problem from.

Any help is appreciated.. Thanks!

Gerard.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sun-java6 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andre Mangan (kyphi) said :
#1
Revision history for this message
Andre Mangan (kyphi) said :
#2

The URL above refers to Windows - my mistake.

Try: http://ubuntuforums.org/showthread.php?t=550960

Revision history for this message
Gerard Sanromà (gsanroma) said :
#3

It seems that it is not only a MATLAB problem, but a JAVA problem.
Since matlab uses jre, it is affected.
Other threads regarding this problem suggest to do something with SCIM

http://ubuntuforums.org/showthread.php?t=624536

Another thread suggests to set the value of the AWT_TOOLKIT variable

http://ubuntuforums.org/showthread.php?t=862135

Finally, the following bug suggests to make changes in /etc/environment file

https://bugs.launchpad.net/ubuntu/+bug/250990

No one of these worked for me :(
I realized that uncompressing jre 1.5 into a directory, and setting the variable MATLAB_JAVA in <matlab_dir>/bin/matlab in order to point to this directory, then this problem was solved but another problem related to compiz appeared.

The momentary solution I've adopted is to start matlab with an script that, first disables compiz, then runs matlab and, finally enables compiz again

(metacity --replace &) && (matlab) && (compiz --replace &) && (sleep 1)

If anything else works for you, this could be a possible solution.

Any help is appreciated.

Gerard.

Revision history for this message
toffyrn (toffyrn) said :
#4

Had the same problem using archlinux. The problem was because my system wide locale was written in lowercase. Try change your locale so that it is 100% correct.

Revision history for this message
yoshi252 (torsten-stremlau) said :
#5

I'm using Ubuntu 8.10 and I had the same problem, I couldn't use AltGr in Matlab. The problem seems to be caused by SCIM, as mentioned above. I could fix the problem by disabling SCIM. After I'm done with matlab, I enable SCIM again.

Can you help with this problem?

Provide an answer of your own, or ask Gerard Sanromà for more information if necessary.

To post a message you must log in.