Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 08-23-2003, 03:47 PM   #1
LQ Newbie
Registered: Aug 2003
Posts: 15

Rep: Reputation: 0
Keyboard multimedia setup

hello I want to setup my microsoft multimedia wireless keyboard so i can use my play stop and next and previous buttons
I found a reply from a posting on here that someone posted couple months ago
Which is listed below
I opened the console terminal and ran .xmodmap and got a list of all the keys codes
But in the old posting i found
It does not say how to change the codes
for example: i was to say modify line code 164 to XF86AudioStop
What command do I type in the terminal?
Im new to linux catchin on quick but i still need detailed instruction hehehe

Old posting:

The fastest way is to change the keyboard layout
(Control Center) Keyboard Layout -> Keyboard model (choose your keyboard: e.g. mine is Logitech Internet Navigator iTouch)

If your keyboard is not supported you will need to map those extra multimedia and internet keys manually (mine has 20 something extra keys). I've tried that by using CLI on console and modifying my .Xmodmap -> It's not that difficult ;-) All you need to know is the generated keycode from those buttons. It looks like this:

keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 160 = XF86AudioMute
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 162 = XF86AudioPause

Help yourself: search on xmodmap, xev, scancode, showkey, setkeycodes, loadkeys, keymaps, xf86audio (this is one of my mm plugin), xmms-itouch (this was my xmms-plugin), bbkeys, gpm, etc.

Good luck and have fun :-)
Old 08-24-2003, 02:46 AM   #2
Registered: Jun 2003
Location: Northern California (NorCal)
Distribution: Ubuntu 7.04 and DSL/Puppy etc
Posts: 342

Rep: Reputation: 30
I got this ref, ,
so, using that, and I'm sure you read all the 'references' listed in your reference,
you would,

$ xmodmap -e "keycode 164 = XF86AudioStop"

This link had some helpful hints, ,
now, if you reboot and your changes are gone, then, you have to re-read all the references again. Another thing, Distro's have changed the security model, (including how XDM or similar, is applied on your system), so the references to .xinitrc and such, may have changed the 'where' and 'what' file you update things in/on (if that makes sense, you're doing fine!).

You may want to put that in .xsession or .xmodmaprc file (if you got one?), see references above.
Old 08-24-2003, 02:51 AM   #3
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
You can create a file called .Xmodmap in your home directory. with all the keycode lines in it as you stated (IF you have other keys link App keys with mail on etc you can assign them F key numbers upto 35).

keycode 115 = F13
keycode 117 = F14

Then run the command xmodmap ~/.Xmodmap

This should work.

Also if you wish to make this permanant add it too .bashrc or .profile or similar file in your home directory.

I have a script in ~/.kde/autostart that runs the command.

Last edited by leonscape; 08-24-2003 at 02:52 AM.
Old 08-25-2003, 01:49 PM   #4
LQ Newbie
Registered: Aug 2003
Posts: 15

Original Poster
Rep: Reputation: 0
Hey guys I ran the xmodmap -pk
and the following keys that I need are already listed
It looks like its already configured but my multimedia buttons still don't work.
What do you think

stop = 164
rew = 144
ff = 153
play = 162
media = 237
messenger = 133
musikk = 188
bilder = 228
dokumenter = 101
mail = 236
home = 178
calculator = 161
mute = 124
volumeup = 176
volumedown = 174
logoff = 150
sleep = 223


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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
No keyboard on FC3 or Ubuntu--MS Multimedia Keyboard (PS/2) TravisOSF Linux - Hardware 4 03-04-2008 05:21 PM
Multimedia keyboard tayyab Linux - Hardware 2 08-14-2005 03:54 PM
Multimedia keyboard greenthing SUSE / openSUSE 6 05-09-2005 04:34 PM
Multimedia keyboard help Darcan Linux - Hardware 2 09-01-2004 06:05 AM
Multimedia keyboard. vexer Linux - Hardware 8 05-25-2003 03:15 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:43 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
Open Source Consulting | Domain Registration