LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
LinkBack Search this Thread
Old 01-15-2011, 08:59 PM   #1
huangho
LQ Newbie
 
Registered: Oct 2009
Location: Porto Alegre, Brazil
Distribution: Debian
Posts: 4

Rep: Reputation: 0
xmodmap: Mapping ISO_Level3_Shift does not work


Hello!

I'm trying to have both Mode_switch and ISO_Level3_Shift on the same keymap, but X is ignoring my ISO_Level3_Shift binding.

I want to have something like this in my xmodmap:

Code:
keysym c = c C ccedilla Ccedilla ccircumflex Ccircumflex
and have AltGr+c produce ccedilla and Insert+c produce ccircumflex. (Yes, Insert. It is in a strange place in this keyboard.) The original modifier map was:

Code:
vitor@pts5 vitor(0)$ cat /tmp/x
xmodmap:  up to 3 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)
AltGr sends keycode 113 and keysym Alt_R. Insert sends keycode 106 (and keysym Insert, of course.) Then I tried:

Code:
vitor@pts5 vitor(0)$ xmodmap -e 'keycode 113 = Mode_switch'
vitor@pts5 vitor(0)$ xmodmap -e 'keycode 106 = ISO_Level3_Shift'
vitor@pts5 vitor(0)$ xmodmap -e 'keysym c = c C x X y Y z Z'
Now AltGr+c produces x, but Insert+c produces c.

Then I tried:

Code:
vitor@pts7 vitor(1)$ xmodmap -e 'clear mod5'
vitor@pts7 vitor(0)$ xmodmap -e 'add mod5 = Mode_switch'
But the problem persists. Trying to assign ISO_Level3_Shift to the AltGr key doesn't work either.

Any idea about what is happening here? I'm using Xorg 7.3 on Debian 5.07. Thanks in advance!
 
Old 01-15-2011, 09:31 PM   #2
huangho
LQ Newbie
 
Registered: Oct 2009
Location: Porto Alegre, Brazil
Distribution: Debian
Posts: 4

Original Poster
Rep: Reputation: 0
Crude solution

I changed xorg.conf to use "us(intl)" instead of "us" as keymap and now it honors ISO_Level3_Shift. Does not make a lot of sense, but it works...
 
  


Reply

Tags
keymaps, x11, xmodmap, xorg


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rdesktop drive mapping to xp does not work Rush_898 Linux - Software 0 06-05-2008 02:01 PM
getting xmodmap to work for all users? harkonen Fedora 4 12-07-2007 01:11 AM
Mapping CTRL+Click as right click using xmodmap in Modular X.Org 7 on Gentoo amitron Linux - General 0 10-12-2006 11:25 AM
xmodmap does not work Takalah Linux - Hardware 4 11-28-2004 11:24 AM
physical scsi channel mapping to scsiX device node mapping, how to configure manually drthornt Linux - Hardware 3 02-09-2003 11:50 AM


All times are GMT -5. The time now is 07:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration