I am doing something (not sure yet what) that is hosing my keymappings. After whatever it is, my keyboard loses its shift, meta keys, etc. I cannot type capital letters, ampersands, control characters, etc. In particular, for example, shift-7 just prints a "7" instead of an "&".
So I looked at xmodmap, with -pke, and it says that keycode 64 = Shift_L, which seems reasonable. xev seems to confirm that it knows a shift key is being pressed:
KeyPress event, serial 24, synthetic NO, window 0x1200001, root 0x57, subw 0x0, time 421682279, (14,-9), root:(1328,637), state 0x0, keycode 64 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False
KeyRelease event, serial 24, synthetic NO, window 0x1200001, root 0x57, subw 0x0, time 421682865, (14,-9), root:(1328,637), state 0x0, keycode 64 (keysym 0xffe1, Shift_L), same_screen YES, XLookupString gives 0 bytes: So what is wrong here? How do I restore my settings? If I quit X11 and restart, that works, but obviously that is not acceptable. I had a vague plan to somehow maybe use xmodmap to save my current keymappings, then reload them when they go awry, but I don't really see anything wrong to restore. Is that possible? How would I do that? Thanks. -- Richard Cook ✇ Lawrence Livermore National Laboratory Bldg-453 Rm-4037, Mail Stop L-557 7000 East Avenue, Livermore, CA, 94550, USA ☎ (925) 423-9605 (925) 423-6961 --- Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept. (opinions expressed herein are mine and not those of LLNL) |