Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
extra keyboard keys on the console?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Tue May 10, 2005 5:53 am    Post subject: extra keyboard keys on the console? Reply with quote

I know how to use xev and xmodmap to map those extra, non-standard keyboard keys under X.

Is there a way to do this for VTs, too?

For instance, I want to do something like map the xev keycodes 233 and 234 to function keys F19 and F20.
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue May 10, 2005 5:57 am    Post subject: Reply with quote

Yes. Refer to the man pages for loadkeys and dumpkeys, and check the /etc/init.d/keymaps script for an example on how to use them.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Tue May 10, 2005 6:53 am    Post subject: Reply with quote

Thanks. Is there an analog to xev ? The 233 and 234 codes don't seem to work with loadkeys... I'm getting nothing after doing
Code:
# loadkeys
keycode 233 = F19
keycode 234 = F20
string F19 = "pressedF19"
string F20 = "pressedF20"
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue May 10, 2005 6:59 am    Post subject: Reply with quote

Perhaps they're not the same keycodes - run showkey to check. Note that once it runs you can't quit it since it hijacks the keyboard - wait 10 seconds without any keypress and it will quit by itself.
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Gentree
Watchman
Watchman


Joined: 01 Jul 2003
Posts: 5350
Location: France, Old Europe

PostPosted: Tue May 10, 2005 7:15 am    Post subject: Reply with quote

you're a gold mine mooch' 8)
_________________
Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86
Back to top
View user's profile Send private message
moocha
Watchman
Watchman


Joined: 21 Oct 2003
Posts: 5722

PostPosted: Tue May 10, 2005 7:29 am    Post subject: Reply with quote

Aw, shucks... *shuffles to the closest corner to blush, simultaneously trying to beat down the inflating ego* :wink:
_________________
Military Commissions Act of 2006: http://tinyurl.com/jrcto

"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin
Back to top
View user's profile Send private message
Gherald
Veteran
Veteran


Joined: 23 Aug 2004
Posts: 1399
Location: CLUAConsole

PostPosted: Tue May 10, 2005 7:32 am    Post subject: Reply with quote

moocha wrote:
run showkey to check

Gentree wrote:
you're a gold mine mooch' 8)

Indeed, thanks much!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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