Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-20-2005, 09:50 AM   #1
LQ Newbie
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
maping keys of multiple keyboards

I have 2 keyboards plugged into my computer one is a IBM model M. The other is a logitech elite keyboard. I want to remap the keys of the logitech keyboard while leaving the keys on the IBM the same. Is this even possible? How should I go about setting this up?


Old 10-20-2005, 02:41 PM   #2
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 31
Which keys do you want to remap? Remapping the standard keys will affect both keyboards (I think). But if you are talking about some flashy extra keys on the logitech, this is easy.

It's different for console and X.

For the console, the keymaps are under /usr/share/kbd/keymaps/i386/* (on Slackware anyway). These are loaded with the loadkeys command. You can copy one of these and modify it to your requirements (I put mine in /etc/ and load it at boot time. (You can also compile it into the kernel).

For X, create ~/.Xmodmap and put 'xmodmap ~/.Xmodmap' in your ~/.xinitrc (or ~/.xsession). See the xmodmap man page for the syntax of this file. Use xev to see the keycodes for the keys and plug them into your .Xmodmap.

If you're talking about remapping the whole keyboard, I don't know if this is possible yet (no way to differentiate between keyboards -- I seem to recall reading that this is being worked on, but I can't remember any details).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Multiple monitors and keyboards and mice, OH MY! dlublink Linux - Hardware 2 02-08-2005 03:16 PM
Advanced Key maping 4of11 Linux - General 0 10-07-2004 03:50 PM
Using GPG Keys on Multiple Computers General_Tso Linux - Security 5 10-06-2004 11:37 AM
Working with SSH and multiple private keys IgD Linux - Security 2 09-08-2003 11:07 PM
Keyboard Maping with rlogin from HP-UX Jacknight Linux - General 0 12-06-2001 01:14 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:02 PM.

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