LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2008, 01:47 AM   #1
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scrolling / pageup in terminal briemac Linux - General 4 01-17-2007 04:26 PM
keypad operation carthyc Linux - General 1 06-29-2005 06:49 AM
scrolling config (shift+pageup) acb67 Linux - General 0 03-02-2005 01:06 PM
Console shift-pageup Speek Slackware 2 09-28-2004 09:48 AM
man pages and pageup-down wrongman Linux - Software 1 07-29-2004 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration