You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, July 25th 2006, 7:22pm

KDE 3.5.2 - multimedia keys

Hello everybody.

After some search in these forums and Google I'm still in dark. What is currently the preferred way to get these volume keys working? I've found numerous tutorials - I sure can follow one of them but isn't there a "KDE way" to do it? I installed khotkeys but cannot see where to configure it ?(

This post has been edited 1 times, last edit by "Blues" (Jul 25th 2006, 7:29pm)


2

Tuesday, July 25th 2006, 11:38pm

RE: KDE 3.5.2 - multimedia keys

Well, it's time to answer my question.

First, I created my own xmodmap.

Source code

1
xmodmap -pke > xmodmap.conf

Then I used xev utility to learn keycodes which I defined in that xmodmap.conf.

Source code

1
2
3
4
5
...
keycode 174 = XF86AudioLowerVolume
keycode 175 =
keycode 176 = XF86AudioRaiseVolume
...

I became root and copied that file over to /etc
I edited /usr/kde/3.5/share/config/kdm/Xsession and added a line right after shebang:

Source code

1
/usr/bin/xmodmap /etc/xmodmap.conf

Now my custom keymap is loaded when kdm starts.

Settings > Regional & Accessibility > Input Actions
I added two new actions associated with Vol+ and Vol- buttons, command line 'amixer set PCM 1+' and 'amixer set PCM 1-'. (I'm not using aRts.)

Works like charm.

3

Tuesday, August 1st 2006, 12:18am

Thanks for sharing your solution with us.

other possible solutions are:

select another keyboard in kcontrol: Xorg has several multimedia keyboards available. With some luck yours as well

use keytouch: http://keytouch.sourceforge.net/.
Keytouch is handy if some of the keys on the keyboard don't have keycodes mapped to them.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

4

Tuesday, August 1st 2006, 12:27am

Do you mean KDE Control Center by that kcontrol? I do not have keyboard configuration there. Probably it's not installed, another secret package not listed anywhere?

This post has been edited 1 times, last edit by "Blues" (Aug 1st 2006, 12:28am)


5

Tuesday, August 1st 2006, 8:43am

It's in kcontrol in [regional and accessibility -> keyboard layout] It's part of kdebase, not some secret unlisted package ;)

The spinbox [keyboard model] lets you change your keyboard layout.

It just changes the keyboard settings of your X Server, so you could change this as well in the X-server directly (how depends on your distribution, suse for example uses sax2 for this, or the module [keyboar model] in yast -- that starts the keyboard section of sax2 --)

Regards, Rinse
Help mee om KDE 3.5.5 in het Nederlands te vertalen

6

Tuesday, August 1st 2006, 12:22pm

I started installin g KDE with kdebase-startkde package. This did not include even konqueror which I added separately. Definitely there is no "keyboard layout" in "regional and accessibility", so I obviously do not have it installed. The seckret package(s) statement stands.

7

Friday, August 4th 2006, 12:30pm

How secret packages are is not in the hand of kde ;)

the kcontrol module i referred to is part of kdebase.
If you don't have it, you could blame the packager of your kde version for removing it out of kdebase.
What distribution do you use, and where do the kde packages come from?
Help mee om KDE 3.5.5 in het Nederlands te vertalen

8

Friday, August 4th 2006, 12:51pm

Running on Gentoo. The KDE is split to allegedly 330+ different packages. I say allegedly because I'm unable to find even a list of these packages, let alone descriptions.

9

Monday, August 7th 2006, 11:20am

Pfew, that is indeed a lot of packages 8)

The official kde is about 16 packages, not counting translation modules and external packages like amarok, digikam, koffice or k3b.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

10

Tuesday, December 5th 2006, 9:53pm

No xev ?

I've followed the indications found here to try to enable the Vol+ and Vol- keys without success. I think the point of failure is that when I run xev those keys don't show anything. So I'm not sure at what level I should act now.

I'm on an older Gateway solo 5300 laptop and the keyboard has the reference 7002380 but it's not in the options for the keyboard configuration.

11

Wednesday, January 31st 2007, 11:37pm

found the secret package :

Quoted

* kde-base/kxkb
Latest version available: 3.5.5
Latest version installed: 3.5.5
Size of downloaded files: 69,894 kB
Homepage: http://www.kde.org/
Description: Kxkb is a KControl module and frontend for X11 keyboard extension, allowing the user to configure and switch between keyboard mappings.
License: GPL-2


Always hard to search that stuff :P

This post has been edited 1 times, last edit by "Yui" (Jan 31st 2007, 11:37pm)


12

Thursday, February 1st 2007, 9:42am

Well, it's a default package of kde :)
You can find it in the keyboard settings of kcontrol -> regional and accessibility

kxkb can't make your multimedia keys working though, it lets you choose from a list of keyboard layouts and settings provided by the X-server.
If the layout of your keyboard is not known by your X-server, kxkb won't make your multi media keys working
Help mee om KDE 3.5.5 in het Nederlands te vertalen

13

Thursday, February 1st 2007, 1:00pm

Yeah I know it's in kde-base, but I also use the kdebase-startkde, the gentoo package for a minimal kde desktop. And it's quite difficult to find packages names that are installed by default on kde-base :)

This post has been edited 1 times, last edit by "Yui" (Feb 1st 2007, 1:01pm)