Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Thanks
---------------------------------------
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:
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.
This link had some helpful hints, http://fake.by-infonet.de/laptop/ ,
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.
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).
i.e.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.