Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

About 1 week ago, I installed MATE desktop (Gnome2 fork) because I wanted to use XMonad in gnome. So I am pretty sure this problem has something to do with MATE.

My keyboard is just a basic HP keyboard (US layout); it doesn't have any specialised media/audio keys. So I decided, that since I never use the Alt_Gr, Super_L and Menu keys (3 consecutive keys), I could get the desktop environment to use those effectively as 'media keys'. Until I switched to MATE, I had been using XFCE and this worked very nicely.

However now that I try to reconfigure this in MATE, I found that these 3 keys specifically are not detected by the keyboard-shortcuts-setup-utility-thing. I suspected maybe XFCE was blocking them or something, but resetting XFCE's shortcuts to defaults didn't fix it. I even tried manually editing the shortcuts in mateconftool-2 (gconf), without success.

I have not been able to detect these 3 keys in any way, and dmesg shows nothing of interest. The only way I know they are working is that borders in programs jump, or do something, whenever I press one of these keys.

Are there any other tests I can run, or other suggestions?

share|improve this question
    
Have you tried xev and a custom keymap? –  jasonwryan Nov 7 '12 at 1:04
    
@jasonwryan I have tried xev, this is the output if I press Alt_Gr: pastebin.com/7r7ZBU8F The only detected KeyEvents are the keys I use to close windows –  geniass Nov 7 '12 at 11:59
    
Is that the Super_L and Shift_L? See the Extra Keys page on the Arch Wiki for some more suggestions... –  jasonwryan Nov 7 '12 at 20:57
    
@jasonwryan those are just regular shift and "Windows" keys. Every key is detected properly except the 3 I mentioned originally –  geniass Nov 8 '12 at 6:00
    
You should check for scancodes for each of those keys; either with showkey or dmesg if xev isn't helping... –  jasonwryan Nov 8 '12 at 7:23
show 2 more comments

1 Answer

up vote 0 down vote accepted

I finally found a solution for this problem. This page shows how to use xmodmap to remap a keycode to symbol, and since showkey lists these keys' keycodes, I can just do this:

xmodmap -e 'keycode 100=Alt_R'
xmodmap -e 'keycode 126=Super_R'
xmodmap -e 'keycode 127=Menu'

Problem solved, but I still don't understand what caused it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.