Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Xmodmap confusion - Alt key not working properly
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Torbs
n00b
n00b


Joined: 07 May 2007
Posts: 1

PostPosted: Mon May 07, 2007 9:52 pm    Post subject: Xmodmap confusion - Alt key not working properly Reply with quote

Hello people!

I've been trying to get that my keyboard to work properly for some time now, I'm closing in on the solution but I'm no less confused about it..

Problem description:
The keyboard has been working the way it should, all characters mapped to the correct position and all. The only problem has been that neither of the "Alt" keys have been functional, so the @£$-symbols haven't been accessible. I've been trying around with different keyboard settings without luck.

Solution, step 1.
The following two commands gave me a working Alt_R key:
Code:
xmodmap -pke > keytest
xmodmap keytest


[Clarification: "keycode 11 = 2 quotedbl at twosuperior at twosuperior" got @ working etc..]

However, the right Alt key is now in lock-mode, so I have to turn it on and off every time I want to use it.
The key is set to "keycode 113 = ISO_Next_Group"

Also, I repaired a non functional Caps Lock key with the following xmodmap statement:
Code:
add Lock = Caps_Lock


Solution, step 2
I've tried around a bit with "remove Lock" statements but without success. Eventually, the following changes in my xmodmap solved that part:

Code:
 keycode 113 = Alt_R
add Mod5 = Alt_R


This makes Alt_R work properly for me.



Remaining Questions:
Even though I'm getting close to what I want, I'm just completely confused, and Alt_L still remains to be fixed

  • Which Modifier group should I have Alt_L in?
  • Any ideas why I need to reload all keys to get their alternativ functions to get active?? The information i used came directly from xmodmap anyway.. seems slightly suspicious to me.



I currently have the following settings (at least so it seems ;) ) :
Code:
tsun@localhost ~ $ xmodmap
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_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c),  Alt_R (0x71)




Thank you for your thoughts!
/Torbs.
Back to top
View user's profile Send private message
CapnBuzzkill
n00b
n00b


Joined: 16 Mar 2007
Posts: 23
Location: Holland

PostPosted: Fri May 11, 2007 9:16 pm    Post subject: Reply with quote

Hi,

I have two working Alt-keys and my xmodmap output looks like this:
Code:

xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock     
control     Control_L (0x25),  Control_R (0x6d)
mod1        Alt_L (0x40),  Alt_R (0x71),  Alt_L (0x7d),  Meta_L (0x9c)
mod2        Num_Lock (0x4d)
mod3     
mod4        Super_L (0x7f),  Hyper_L (0x80)
mod5        Mode_switch (0x5d),  ISO_Level3_Shift (0x7c)


(I'm using my CapsLock as a meta/escape,in case you're wondering where that went).
So my Alt_R is in (under?) mod1, where yours is in mod5, because you put it there yourself. My xmodmap for the alt-keys:
Code:

$ xmodmap -pke | grep -i alt_
keycode  64 = Alt_L Meta_L
keycode 113 = Alt_R Meta_R
keycode 125 = NoSymbol Alt_L


BTW, I'm using these keyboard settings in xorg.conf:
Code:

    Option "XkbRules"   "xorg"
    Option "XkbModel"   "pc105"
    Option "XkbLayout"  "us"
    Option "XkbOptions" "altwin:meta_alt"


I hope this helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum