Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old January 23rd, 2007   #1
eldaria
A Carafe of Ubuntu
 
Join Date: Nov 2005
Location: Tumba, Sweden
Beans: 106
Question KDE Multimedia Keys Works but how to modify?

Hello,

I have a Logitech Keybaord connected to Kubuntu Edgy.

The multimedia keys are working, but I can't find anywhere how to modify what they do or how they do it.

I looked in the System Settings->Accessibility-Input Actions
But the Keys are not configured in here.
I also looked in kmix, but they are not configured there either.

The reason is that I want to modify them is that the volume key changes 10% at a time, this is way to large steps, I want to make them 1% steps.

Also in Amarok the Play/Pause button starts the music from the beginning instead of Pause when already playing.

Where can I modify this behavior?

I found the file where I think the events from the keyboard are sent to the system.
I found this in /usr/share/apps/kxkb/ubuntu.xmodmap

Code:
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext 

keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
But again I can't see where to modify the actual values of Volume changem or what the action is called for Play/Pause instead of Play only.

Any hint's highly appreciated.

Brian.
eldaria is offline   Reply With Quote
Old February 2nd, 2007   #2
lvanderree
A Carafe of Ubuntu
 
lvanderree's Avatar
 
Join Date: May 2006
Location: The Netherlands
Beans: 91
Ubuntu 7.04 Feisty Fawn
Re: KDE Multimedia Keys Works but how to modify?

Maybe this can do what you want, found it on google, so just copy-pasted it:

Quote:
Code:
sudo apt-get install xbindkeys xbindkeys-config
xbindkeys --default > ~/.xbindkeysrc
xbindkeys-config
This will bring up a but-ugly configuration screen. Just click "New" and assign a remark to the new shortcut. Then press "Grab" and press the combination you want

Last edited by lvanderree; February 2nd, 2007 at 04:33 PM..
lvanderree is offline   Reply With Quote
Old February 3rd, 2007   #3
g8m
A Carafe of Ubuntu
 
g8m's Avatar
 
Join Date: Jul 2006
Location: Nederland
Beans: 127
Ubuntu 7.10 Gutsy Gibbon
Re: KDE Multimedia Keys Works but how to modify?

Input actions is one place, but I believe there is also a keyboard-shortcuts, with 3 tabs to modify the key behavior. Also apps like amarok have separate keyboars-shortcut configuration screens. Very confusing in KDE. Also kmix (volume control) has a configuration tool for volume up and down. Although with my KDE install, volume down using the keyboard wheel doesn't work, volume up does. Weird.
__________________
g8m.

Last edited by g8m; February 3rd, 2007 at 02:24 AM..
g8m is offline   Reply With Quote
Old March 1st, 2007   #4
michael003
First Cup of Ubuntu
 
Join Date: Oct 2006
Location: Cape Town, South Africa
Beans: 8
Kubuntu 8.04 Hardy Heron
Re: KDE Multimedia Keys Works but how to modify?

After not finding anything about this issue, I dove into the source code. The step size is not configurable, but if you press Ctrl+VolUp/VolDown it should change in steps of 1%. (Ctrl+VolUp doesn't work on my computer though, although Ctrl+VolDown does.)

The README file with the kmilo source code says
Quote:
If you use CTRL in conjunction with volUp/Down it changes the volume by 10, otherwise by 1.
which contradicts the actual implementation. It makes more sense (to me at least) to do it as the README states.
michael003 is offline   Reply With Quote
Old March 2nd, 2007   #5
eldaria
A Carafe of Ubuntu
 
Join Date: Nov 2005
Location: Tumba, Sweden
Beans: 106
Re: KDE Multimedia Keys Works but how to modify?

Interesting, the ctrl+Volume works.
But that must be implemented somewhere in code, but question is where, I wonder should we enter it as a bug?

And I agree the way you say the readme states it should work, would make more sense.
Could it be the way (k)ubuntu implemented it, that someone got it wrong?
Have not tried any other distributions since Kubuntu 6.06 came out and before that it was windows.
What source did you download by the way?
could be fun to see how they did it.
eldaria is offline   Reply With Quote
Old March 2nd, 2007   #6
michael003
First Cup of Ubuntu
 
Join Date: Oct 2006
Location: Cape Town, South Africa
Beans: 8
Kubuntu 8.04 Hardy Heron
Re: KDE Multimedia Keys Works but how to modify?

Quote:
Originally Posted by eldaria View Post
But that must be implemented somewhere in code, but question is where, I wonder should we enter it as a bug?
Here's the relevent code: http://websvn.kde.org/branches/KDE/3...36&view=markup

If I have time I might hack it and submit a patch.

Quote:
Originally Posted by eldaria View Post
Could it be the way (k)ubuntu implemented it, that someone got it wrong?
No -- it's directly from KDE.
michael003 is offline   Reply With Quote
Old March 2nd, 2007   #7
eldaria
A Carafe of Ubuntu
 
Join Date: Nov 2005
Location: Tumba, Sweden
Beans: 106
Re: KDE Multimedia Keys Works but how to modify?

Quote:
Originally Posted by michael003 View Post
Here's the relevent code:
If I have time I might hack it and submit a patch.
Great, I will look forward to that.

I will also try and look at the code, will see if it makes any sense to me.
I'm new to coding in linux, I used to do some coding in Visual Basic, but hey it might be a learning experience.

Actually the function of the volume key be it 1% or 10% should be configurable, since if for example you have a keyboard with one button for volume up and one for down, pushing it 100 times to go from 100 to 0 or other way around, would be a pain.

However on some keyboards including both of mine, there is "knob" so it is very fast and easy to adjust, and here a 1% step would make more sense.
eldaria is offline   Reply With Quote
Old February 16th, 2008   #8
JanusDC
Spilled the Beans
 
Join Date: Jun 2006
Location: Grenoble, France
My beans are hidden!
Send a message via ICQ to JanusDC Send a message via MSN to JanusDC Send a message via Yahoo to JanusDC Send a message via Skype™ to JanusDC
Re: KDE Multimedia Keys Works but how to modify?

Quote:
Originally Posted by michael003 View Post
After not finding anything about this issue, I dove into the source code. The step size is not configurable, but if you press Ctrl+VolUp/VolDown it should change in steps of 1%. (Ctrl+VolUp doesn't work on my computer though, although Ctrl+VolDown does.)

The README file with the kmilo source code says


which contradicts the actual implementation. It makes more sense (to me at least) to do it as the README states.
It still working like you said. I have a HP Pavilion dv2745se and this works exactly as you said. Thanks for your discovery
__________________
Janus
JanusDC is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 12:32 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry