LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2008, 01:42 PM   #1
tinfalco
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
Ubuntu hosted by Microsoft Virtual PC - ALT-GR key seized as escape character


Hello
I am currently hosting Ubuntu on Microsoft Virtual PC - never mind the reasons for this -

I have installed Ubuntu successfully on the virtualisation software but the problem is this. The Ubuntu virtual machine takes over the ALT-GR key to use to escape the virtual machine and return to the host.

¿Why is this a problem? - I am in Spain, and use a Spanish keyboard layout. And the ALT-GR key is very important (muy importante). Here are some of the characters that it accesses: @ | {} []. So I can't send an email, concatenate in Oracle, program in "C" [or do whatever square brackets can help with].

Does anyone have any ideas how I can
[EITHER] select a different candidate for the breakout key in the Ubuntu virtual machine ||''|| [OR] find a different way of accessing @ | {} [] that does not use ALT-GR, bit preserves the rest of my Spanish keyboard layout {Because I look @ my keyboard sometimes}

Thanks

Last edited by tinfalco; 02-27-2008 at 01:44 PM. Reason: Change title
 
Old 02-27-2008, 02:57 PM   #2
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
Tell us the result of this command:
Code:
xmodmap -e 'keycode 113 = ISO_Level3_Shift'
Look here for more details: http://cygwin.com/ml/cygwin-xfree/2004-03/msg00420.html

Last edited by anupamsr; 02-27-2008 at 02:59 PM.
 
Old 02-28-2008, 02:29 PM   #3
tinfalco
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Feedback to suggestion

Quote:
Originally Posted by anupamsr View Post
Tell us the result of this command:
Code:
xmodmap -e 'keycode 113 = ISO_Level3_Shift'
Look here for more details: http://cygwin.com/ml/cygwin-xfree/2004-03/msg00420.html
My inference was that the line you suggest should be run at the terminal, so I did. It did not produce an error, but also it did not give me back ALT-GR functionality.

I read the linked document and found it quite difficult to understand what the person who wrote it was talking about, or how it related to my problem, but this is not a critiscism of the author, it is more a reflection of my level of knowledge of Linux / Unix type systems.

I do appreciate your taking the trouble to make this suggestion, though. Thanks
 
Old 03-06-2008, 11:45 AM   #4
jc1cell
LQ Newbie
 
Registered: Mar 2008
Posts: 2

Rep: Reputation: 0
I'm also running both desktop and server versions of Ubuntu 7.10 in virtual pc on xp. However, the key combo I use to give control of the pointer back to xp is the right Alt key and enter.

Try that and see if it works.

jc
 
Old 03-06-2008, 12:32 PM   #5
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
Oh... I thought that right now your Alt-Gr key acts like "Esc" key, so I told you to re-map it. May be it is a different problem, in which case I don't know the answer, and you may stop reading this post. But if I am correct, you can read further:


Each key, when pressed, produces a signal.
Your system should understand this signal, and what it is supposed to mean.

For example, when you press a key right next to capslock, a unique signal is sent to the computer, and your system (X server), should understand that it means you are pressing 'a'. Then it should do what it is supposed to do when it gets a signal for 'a', like if you are in an editor, it should type a "a" character.

There are two cases of your problem:
1) When you press the right-Alt key, some signal is sent, but right now your computer doesn't understand it as Alt-Gr, but as Escape key.
2) Your computer does understand it as Alt-Gr, but it is supposed to act like "Esc" character. In this case I don't know what to do.

But if your case is 1st one, please do one thing:
Type "xmodmap" in a terminal, and give us the output.
 
Old 03-09-2008, 05:19 PM   #6
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 370

Rep: Reputation: 30
Hi!

I haven't heard from you, so I am assuming your problem was solved. In case it wasn't, try this:
1. Open a editor and type in this:
Code:
keycode 113 = Mode_switch Mode_switch
and then save it as ".xmodmap" in your home directory.
2. Open a terminal and type:
Code:
xmodmap ~/.xmodmap
3. Try using AltGr in this terminal window (ex, press AltGr+e). It should work!
4. Now give this command:
Code:
ln -s ~/.xmodmap ~/.Xmodmap
5. Logout and login.

Voila!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo escape character weirdness insecurityman Programming 7 10-20-2008 05:20 AM
sh scripting -- escape * character? Brender Linux - Newbie 2 10-12-2007 10:33 AM
.bashrc is there an escape character for alias? acummings Slackware 11 01-13-2007 11:56 AM
Escape character ? juanb Linux - Newbie 2 08-31-2004 11:03 AM
Right ALT key, 'agetty' on unused virtual terminal. Tarts Linux - Newbie 0 08-14-2003 05:47 AM


All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration