Disabling special keys

Jim azanorak at gmail.com
Tue Jul 12 14:30:11 MST 2022


Recently I got one of those ergonomic keyboards because it started 
hurting my wrists  to turn them so I could type on a regular keyboard.  
It arrived the other day and it works, but there are these extra keys on 
it that I've had problems with. The others I was able to deal with using 
xmodmap, but  one is a printer key.  When I press it xev tells me it's 
sending the Control_L and p codes at the same time.  I want to remap it  
so it sends only one keycode.  Here's what xev shows when I press it.


KeyPress event, serial 44, synthetic NO, window 0x4800001,
     root 0x2a4, subw 0x4800002, time 2679765, (28,30), root:(1349,77),
     state 0x10, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
     XLookupString gives 0 bytes:
     XmbLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyPress event, serial 44, synthetic NO, window 0x4800001,
     root 0x2a4, subw 0x4800002, time 2679765, (28,30), root:(1349,77),
     state 0x14, keycode 33 (keysym 0x70, p), same_screen YES,
     XLookupString gives 1 bytes: (10) ""
     XmbLookupString gives 1 bytes: (10) ""
     XFilterEvent returns: False

KeyRelease event, serial 44, synthetic NO, window 0x4800001,
     root 0x2a4, subw 0x4800002, time 2679861, (28,30), root:(1349,77),
     state 0x14, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
     XLookupString gives 0 bytes:
     XFilterEvent returns: False

KeyRelease event, serial 44, synthetic NO, window 0x4800001,
     root 0x2a4, subw 0x4800002, time 2679861, (28,30), root:(1349,77),
     state 0x10, keycode 33 (keysym 0x70, p), same_screen YES,
     XLookupString gives 1 bytes: (70) "p"
     XFilterEvent returns: False

If I disable keycode 33, the p key also doesn't work.  Is there some way 
to get it to send just one code?

Thanks.



More information about the PLUG-discuss mailing list