Keypad PageUp PageDown issues
Just wanted to share a quick solution with you all in case you ever come across it.
I recently came across a nice rack mount monitor keyboard mouse that folds flat and takes up one rack unit. The problem with it is that there are no arrow keys or insert, home, end, page up, page down keys. (but there is a delete key) Well I thought, No problem! I got numlock. Until I realized that with numlock off, shift keypad page up wont actually scroll the console back!!! Thank god for less and more. However that should not be the the solution... So... here it is...
For a strait up linux terminal no X server running:
type 'dumpkeys > fixPgKeys'
edit the file fixPgKeys and search for KP_9 and KP_3
add the following lines:
shift keycode 73 = Scroll_Backward
shift keycode 81 = Scroll_Forward
73 of course will be the key code for your 9 key on the keypad and 81 is the 3 key on the keypad. Save the file and type 'loadkeys fixPgKeys'
you might need to do this as root. This is just a quick solution but should get you headed in the right direction. Really this should be added to some boot scripts somewhere.
OK... now for xmodmap...
simply bring up a terminal or edit the standard files or add it to your .xinit file...
xmodmap -e 'keycode 81 = Prior KP_9'
xmodmap -e 'keycode 89 = Next KP_3'
This basically just forces KP_Prior and KP_Next to be regular Prior and Next which is what the normal Page Up and Page Down keys are set to...
As I pasted these lines in I realized the key codes are different... You should check your key codes for both the plane text console and X and probably on a per lay out basis.
now I can stop being frustrated with my server... at least on the keyboard end.
|