After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336783 - volume up keyboard shortcut does not increase volume
volume up keyboard shortcut does not increase volume
Status: RESOLVED DUPLICATE of bug 389996
Product: gnome-control-center
Classification: Core
Component: [obsolete] settings-daemon
2.15.x
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-01 00:06 UTC by Phillip Calvin
Modified: 2007-02-14 17:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Phillip Calvin 2006-04-01 00:06:55 UTC
Please describe the problem:
The keyboard shortcut for "Volume Up," once configured, does not raise the
volume when the key is pressed.  The OSD is displayed, but the volume stays the
same.  

Volume down and mute work fine.

Steps to reproduce:
1. Set a keyboard shortcut for "Volume up"
2. Logout/login (sometimes needed to flush settings)
3. Press the key(s)


Actual results:
OSD is displayed, volume stays constant

Expected results:
Volume should increase

Does this happen every time?
Yes

Other information:
Tried with different keys.  The key is being reported correctly to the system
(checked with showkey) and the audio device does not appear to be a problem,
since down and mute work.  The key does not appear to be bound twice (checked
under GConf.)
Comment 1 Sebastien Bacher 2006-04-14 10:29:54 UTC
Ubuntu bug about that: https://launchpad.net/products/control-center/+bug/36302/+index
Comment 2 Phillip Calvin 2006-04-22 03:12:32 UTC
http://cvs.gnome.org/viewcvs/gnome-control-center/gnome-settings-daemon/gnome-settings-multimedia-keys.c?rev=1.18&view=markup

This may be the offending file.  The acme stuff abstracts to a set_level function, so that doesn't appear to be the problem.  I can't build GNOME, otherwise I would try to fix this.  

Someone might put a debugging message after line 760 and find out if vol is really getting changed -- perhaps that section of the case is not being run.
Comment 3 Elijah Newren 2006-06-03 21:34:20 UTC
*** Bug 342997 has been marked as a duplicate of this bug. ***
Comment 4 Elijah Newren 2006-06-03 21:36:19 UTC
For reference, Dimitrios pointed out some upstream Fedora bugs about this issue:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=187572
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=184561
Comment 5 Cameron Hutchison 2006-06-16 23:36:53 UTC
This bug is in the acme volume controls for gstreamer. The function acme_volume_gstreamer_set_volume truncates a floating point value when it assigns it to an int. The alsa equivalent round the value before assigning it.

By not rounding, if the volume_step (gconf key /apps/gnome_settings_daemon/volume_step) is too small, the volume never makes it up to the next setting.

Lowering the volume still works because truncation works for rounding down but not up.
Comment 6 Dimitrios 2006-06-18 21:54:42 UTC
You imply that volume down works, but it doesn't work here.

Not only does it not work, but the OSD bar doesn't appear on the screen.

Neither does "mute" work anymore, is that a float/int conversion problem as well?

I'm guessing that the key actions are lost somewhere...
Comment 7 Cameron Hutchison 2006-06-18 22:53:48 UTC
I do not imply that volume down works. It is stated in the original bug report. No implication necessary. CLearly the key actions are not being lost, as the original poster says that volume down and mute work, and volume up displays the volume bar, but the volume does not change.

Your problem would appear to be unrelated to this bug. Perhaps you should open another one? Check the output of "xmodmap -pke | grep XF86Audio" to see if you have duplicates for RaiseVolume, LowerVolume and Mute. If so, that is likely to be your problem - which is another bug in gnome-settings-daemon. Verify the correct keysyms with xev and remove the duplicates - most likely the lower numbered keycodes - with "xmodmap -e 'keycode nnn ='" (ie assign it nothing).
Comment 8 Dimitrios 2006-06-18 23:07:40 UTC
I did open another one and someone marked it as duplicate of this bug!

$ xmodmap -pke | grep XF86Audio
keycode 129 = XF86AudioMedia
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
keycode 159 = XF86AudioMute
keycode 160 = XF86AudioMute
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 171 = XF86AudioLowerVolume
keycode 173 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
keycode 175 = XF86AudioRaiseVolume
keycode 176 = XF86AudioRaiseVolume
keycode 237 = XF86AudioMedia

you are right, there are duplicates!

i'll try the procedure you suggested, thank you.
Comment 9 Sebastien Bacher 2006-08-04 14:18:07 UTC
The bug happens with GNOME 2.15.90 on my desktop with /apps/gnome_settings_daemon/volume_step set to 3 as pointed on https://launchpad.net/distros/ubuntu/+source/control-center/+bug/36302
Comment 10 Gabriel Wicke 2006-08-11 23:07:27 UTC
(In reply to comment #5)
> This bug is in the acme volume controls for gstreamer. The function
> acme_volume_gstreamer_set_volume truncates a floating point value when it
> assigns it to an int. The alsa equivalent round the value before assigning it.
> 
> By not rounding, if the volume_step (gconf key
> /apps/gnome_settings_daemon/volume_step) is too small, the volume never makes
> it up to the next setting.
> 
> Lowering the volume still works because truncation works for rounding down but
> not up.

Changing the key /apps/gnome_settings_daemon/volume_step from 2 to 3 makes the difference for me (now up works again), so i can confirm this analysis.
Comment 11 Jack Malmostoso 2006-09-15 05:40:27 UTC
Hi there,

I have a similar issue but I think it is unrelated to this "rounding bug".
I have installed a SB Audigy LS on my AMD64 system and configured it after disabling the onboard audio (Asus A8N-E).

Now when I use the keyboard shortcut the volume does not change. I suppose this is due to the fact that the shorcut is controlling the wrong mixer channel: if I keep the mixer window open I can see the "headphones" channel (which is the first channel listed) changing, but the actual volume is controlled by the "Analog Front" channel.

I could set the correct association in the preferences for the volume applet, but couldn't find a way to do the same with the keyboard shortcut.

Gnome 2.14 on Debian Sid AMD64. Thanks for any help!
Comment 12 Jens Granseuer 2007-02-14 17:25:40 UTC
Several different issues mentioned here, but most should be answered by bug 389996.

*** This bug has been marked as a duplicate of 389996 ***