View previous topic :: View next topic |
Author |
Message |
bluesurfer n00b
Joined: 19 Sep 2005 Posts: 18 Location: Regensburg, Germany
|
Posted: Thu Aug 02, 2007 8:09 am Post subject: volume on-screen-display for multimedia keys not working |
|
|
Hi,
i have a HP Compaq nc8430 Notebook with Gentoo installed.
I followed this howto to get my multimedia keys working:
http://gentoo-wiki.com/HOWTO_Use_Multimedia_Keys
I created an Xmodmap file under my home directory which i load
at KDE startup.
The keys work, i can lower, higher or mute the volume with the keys in KDE.
The problem is the on-screen-display of kmix doesn't show up when
I change the volume.
I remember it did show up some time ago, but I didn't change anything
in the config. Perhaps it was caused by an software update.
Can anyone help me please? _________________ "cat /boot/vmlinuz > /dev/dsp" and god speaks to you |
|
Back to top |
|
|
baeksu l33t
Joined: 26 Sep 2004 Posts: 609 Location: Seoul, Korea
|
Posted: Thu Aug 02, 2007 8:13 am Post subject: |
|
|
I believe the OSD is provided by the package 'kmilo'. _________________ Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do. |
|
Back to top |
|
|
bluesurfer n00b
Joined: 19 Sep 2005 Posts: 18 Location: Regensburg, Germany
|
Posted: Thu Aug 02, 2007 8:46 am Post subject: |
|
|
yes that's true, but kmilo should be already included in kdeutils. _________________ "cat /boot/vmlinuz > /dev/dsp" and god speaks to you |
|
Back to top |
|
|
blakedude n00b
Joined: 05 Mar 2005 Posts: 45 Location: Colorado Springs
|
Posted: Thu Aug 02, 2007 7:07 pm Post subject: |
|
|
I just got this working by doing the xmodmap change mentioned in the above MultiMedia Keys HOWTO. It worked for me, and I get a big progress bar display of the volume change and a Mute/Unmute message with the mute button.
I do not have kmilo installed, so it must be some other part of KDE that shows the volume up/down/mute message. |
|
Back to top |
|
|
bluesurfer n00b
Joined: 19 Sep 2005 Posts: 18 Location: Regensburg, Germany
|
Posted: Thu Aug 02, 2007 7:27 pm Post subject: |
|
|
blakedude wrote: | I just got this working by doing the xmodmap change mentioned in the above MultiMedia Keys HOWTO. It worked for me, and I get a big progress bar display of the volume change and a Mute/Unmute message with the mute button.
I do not have kmilo installed, so it must be some other part of KDE that shows the volume up/down/mute message. |
So how do you load the xmodmap file at kde startup? _________________ "cat /boot/vmlinuz > /dev/dsp" and god speaks to you |
|
Back to top |
|
|
blakedude n00b
Joined: 05 Mar 2005 Posts: 45 Location: Colorado Springs
|
Posted: Fri Aug 03, 2007 2:47 pm Post subject: |
|
|
Quote: | So how do you load the xmodmap file at kde startup? |
I put it in my .bash_profile. This may not be correct, but it does load the keymap. You can also just manually type 'xmodmap .xmodmaprc'
Code: | #$HOME/.bash_profile snippet
if [ -z "$XMODDEFINED" ] && [ "$DISPLAY" ]
then
xmodmap .xmodmaprc
export XMODDEFINED yes
fi
|
.xmodmaprc is the file that contains the commands to map the buttons to Xorg functions:
Code: |
!$HOME/.xmodmaprc
keycode 160 = XF86AudioMute
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
|
Blake |
|
Back to top |
|
|
bluesurfer n00b
Joined: 19 Sep 2005 Posts: 18 Location: Regensburg, Germany
|
Posted: Sat Aug 04, 2007 2:17 pm Post subject: |
|
|
thanks blakedude.
I tried your method, but still no luck for me.
It's still the same, I can use the buttons in KDE, but I
don't have a OSD _________________ "cat /boot/vmlinuz > /dev/dsp" and god speaks to you |
|
Back to top |
|
|
blakedude n00b
Joined: 05 Mar 2005 Posts: 45 Location: Colorado Springs
|
Posted: Sun Aug 05, 2007 4:57 am Post subject: |
|
|
Quote: | thanks blakedude.
I tried your method, but still no luck for me.
It's still the same, I can use the buttons in KDE, but I
don't have a OSD :( |
The OSD is put up there by KMilo. That is a KDE service that is part of the kdeutils package, or it can be installed separately.
To turn it on, go to the KDE Control Center (kcontrol), and under "KDE Components", look at "Service Manager". Then in the "Startup Services" box, make sure KMilo is running. On my laptop, I can turn the OSD on and off by starting and stopping KMilo.
There may be USE flags that play into this, but this is a start.
Blake |
|
Back to top |
|
|
bluesurfer n00b
Joined: 19 Sep 2005 Posts: 18 Location: Regensburg, Germany
|
Posted: Sun Aug 05, 2007 1:07 pm Post subject: |
|
|
I think I solved the problem now.
I set the multimedia keys as shortcuts in kmix.
If I remove these shortcuts, the keys still work fine AND I see the OSD.
No idea why this happens.
Anyway, thanks a lot for your help blakedude! _________________ "cat /boot/vmlinuz > /dev/dsp" and god speaks to you |
|
Back to top |
|
|
freifunk_connewitz Apprentice
Joined: 08 Feb 2006 Posts: 238
|
Posted: Wed Sep 05, 2007 8:19 pm Post subject: kmilo kmix and the OSD |
|
|
just for anybody who has a similar problem and did not found the solution in the postings above:
i run into it after switching from monolithic to split KDE ebuilds. the multimedia keys did not work any more. so i configured kmix in the "configure global shortcuts" menu to use them and so i got them working again, but without the OSD.
to get that working again as well i had to follow these exact steps:
- switch the global shortcuts in kmix back to defaults (that is: no global shortcuts)
- go to the service manager of the KDE control center as described above
- switch kmilo off and on again -> the multimedia keys for volume control work again AND the OSD, too.
reason? maybe its some small problem with the emerge order of kmix and kmilo? i don't know... |
|
Back to top |
|
|
ljubo n00b
Joined: 26 Nov 2003 Posts: 73 Location: Karlovac, Croatia
|
Posted: Fri Dec 21, 2007 12:44 pm Post subject: |
|
|
Thanks! Works lika a charm!
This thread should be marked as [SOLVED].
Regards, Ljubo |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Wed Jan 02, 2008 6:56 pm Post subject: |
|
|
Isn't there a default location one can place .xmodmaprc or xmodmaprc or even xmodmap so that it is run by default for all users? The man page for xmodmap doesn't mention any default file locations.
According to /etc/X11/xinit/xinitrc, xinitrc will check first for xmodmap file in /etc/X11/Xmodmap, then $HOME/.Xmodmap. I'm running xdm to start kde, and neither of these work. Removing xdm from the default runlevel and executing "startx" _DOES_ work. The xmodmap file is found and executed with xmodmap.
So it seems xdm/kdm doesn't use /etc/X11/xinit/xinitrc? How does one replicate the startx/xinitrc behavior when using xdm/kdm?
Digging through /usr/kde/3.5/bin/startkde reveals that any script located in /etc/X11/xinit/xinitrc.d/ will be executed as system defaults. Currently on my setup, there is only 30-dbus. So if one adds an executable script that calls "xmodmap </path/to/Xmodmap>" to that dir, the keys are set correctly when kde starts and function correctly with OSD. YEAH!
So, I put Xmodmap in /etc/X11/ and made a simple script called Xmodmap, and chmod'd it to 755
Contents of /etc/X11/xinit/xinitrc.d/Xmodmap:
Code: | xmodmap /etc/X11/Xmodmap |
This way, it will work with both xdm/kdm AND startx.
Is there another "keycode" that would operate the wlan button/led? |
|
Back to top |
|
|
F-0_ICE l33t
Joined: 06 Dec 2004 Posts: 679
|
Posted: Fri Jan 18, 2008 8:55 pm Post subject: |
|
|
two questions: one i got the key and the osd working but is there a way to decrease the volume increase per key press? eg if my volume is at 0 it goes to 12% then 25% and then 38% and +13% so on till 100%. how can i set it to lets say +5% instead of 13%?
two: no a biggie but the osd has a gray background. can it be transparent?
TIA _________________ ~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G
True Knowledge is Best Acquired Through Experience. |
|
Back to top |
|
|
overkll Veteran
Joined: 21 Sep 2004 Posts: 1249 Location: Austin, Texas
|
Posted: Sat Jan 19, 2008 3:30 pm Post subject: |
|
|
FO Ice,
Yes, you should be able to adjust the steping of the volume. I do remember seeing an option somewhere via the KDE Control Center. Unfortunately, I can't tell you exactly where to find it since a) i don't use KDE and b) the laptop I was working on was a customer's. |
|
Back to top |
|
|
F-0_ICE l33t
Joined: 06 Dec 2004 Posts: 679
|
Posted: Sat Jan 19, 2008 5:07 pm Post subject: |
|
|
i found what your talking about in the admin section of kcontrol for IBM thinkpad but it is grayed out. i am trying to use the osd for my desktop if it means anything. _________________ ~AMD64
AMD: Athlon64 X2 3800+
2G PC3200
ATI: RADEON HD 4350
Linksys: WMP54G
True Knowledge is Best Acquired Through Experience. |
|
Back to top |
|
|
|