LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 07-19-2006, 06:24 AM   #1
devit
Member
 
Registered: Jan 2004
Distribution: Slackware 9.1
Posts: 82

Rep: Reputation: 15
keyboard multimedia keys


I have a keyboard that has some multimedia keys, like WWW, search, Vol-, Vol+, mute... and I would like to activate these keys. The system I use is openSUSE 10 with KDE 3.4. On the same system, but using GNOME I managed to activate these keys in Desktop->GNOME Control Center->Shortcuts. There, by clicking the Volume mute field in the table I get a message "New accelerator", then I press the "Mute" key on my keyboard and the field is filled with the value 0xa0. I've done the same with all the other keys and it worked. Do you know how could I activate these keys on KDE? I've tried in Control Center->Regional&Accessibility->Keyboard Shortcuts but when I select something like Copy and try to replace the Ctrl+C by pressing my "Copy" key nothing happens(if I press Alt+W it works). So, what should I do to make this keys functional?
Thanks!
 
Old 07-19-2006, 04:26 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
You need to use xmodmap to map the keycodes to keynames before kde can recognize them. This page has a pretty good rundown on how to do it:

http://cweiske.de/howto/xmodmap/allinone.html

The hardest part for me was finding useful keybindings. If you just want multimedia functions, the XF86Audio* codes should be fine, but you can bind them to other codes for different functions. There's a list of usable keynames in the XKeysymDB file, which was in /usr/share/X11 on my system. When I tried XF86AudioMute for one of my keys, it would automatically start kmix and mute my sound with it for me even before I configured anything else. Well, I didn't want that, and I couldn't find how to change it, so I decided to use XF86Launch0 instead (which doesn't seem to do anything on my system), and used Control Center to bind the key to something else (I ended up setting my buttons to switch between virtual desktops).

I personally had some trouble getting the .Xmodmap file to load at startup myself, since I don't use the kdm login manager. I finally just added a short launch script to the kde Autostart folder and now it all works.

If you want to go the lazy route and don't mind having another daemon running, then check out lineak (and lineakconfig) instead. It provides an easy way to set up multimedia keys.

Last edited by David the H.; 07-19-2006 at 04:32 PM.
 
  


Reply


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
Function keys on HP Multimedia Keyboard nymusicman Linux - Hardware 4 04-29-2009 10:27 PM
Multimedia keys killerbob Slackware 2 05-20-2005 09:21 PM
logitech cordless keyboard configuration for multimedia keys milad126 Suse/Novell 1 03-09-2005 04:24 PM
reassingning multimedia keys ajagodnik Linux - Hardware 1 12-14-2004 09:18 PM
Multimedia Keys in KDE 3.2 GameboyHippo Linux - Software 2 12-15-2003 01:41 PM


All times are GMT -5. The time now is 03:41 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration