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 578174 - gnome-volume-control mutes my audio
gnome-volume-control mutes my audio
Status: RESOLVED OBSOLETE
Product: gnome-media
Classification: Deprecated
Component: gst-mixer
2.24.x
Other All
: Normal minor
: ---
Assigned To: gnome media maintainers
gnome media maintainers
Depends on:
Blocks:
 
 
Reported: 2009-04-06 20:55 UTC by Vadim Peretokin
Modified: 2015-01-19 11:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Correctly sets the recoding toggle for capture tracks on startup (387 bytes, patch)
2009-06-19 03:54 UTC, Robert Ancell
rejected Details | Review
Fixes initial state of recording toggle and only shows mute button for input tracks (1.79 KB, patch)
2009-06-19 04:53 UTC, Robert Ancell
needs-work Details | Review

Description Vadim Peretokin 2009-04-06 20:55:53 UTC
Please describe the problem:
The program is muting my audio when I quit it, making it impossible to record anything - when I need to. It also gives no reason as to why did it mute it (technical problem? I don't know).

Steps to reproduce:
1. Open volume control
2. unmute capture and digital in recording tab
3. close it
4. open again, observe them muted


Actual results:


Expected results:
I'd expect my preference to stay.

Does this happen every time?
Yes

Other information:
Comment 1 Vadim Peretokin 2009-04-06 21:05:02 UTC
Video: http://drop.io/bokmpxp

bugzilla did not want to accept the attachment, hence why on an external website.
Comment 2 André Klapper 2009-04-18 14:24:05 UTC
Please tell us way more information about your system (e.g. the distribution).
Comment 3 Vadim Peretokin 2009-04-18 15:11:51 UTC
Ubuntu 8.10 64bit, and here is my hardinfo report: http://dl.getdropbox.com/u/84880/hardinfo_report.html

Let me know if anything else is needed.
Comment 4 Matthäus Brandl 2009-05-01 09:49:19 UTC
This bug was filed for the wrong product, it should be gnome-volume-control IMHO
No idea how to change this...
Comment 5 André Klapper 2009-05-01 10:59:04 UTC
gnome-volume-control does not exist
Comment 6 Edwin ten Brink 2009-05-01 11:38:33 UTC
The preferences in gnome-volume-control 2.24.0 (in fedora 10 packaged under gnome-media-2.24.0.1-2.fc10.i386) also will not get saved. Each time after a reboot, the muted PCM channel needs to be un-muted again, which is very annoying.

This might be a duplicate of bug 577341 (though reported against a different version).

The product for this bug should be gnome-media, which includes g-v-c. Please change.
Comment 7 André Klapper 2009-05-01 11:48:20 UTC
Might be related to https://bugzilla.redhat.com/show_bug.cgi?id=488620 .
Comment 8 Edwin ten Brink 2009-05-02 09:24:32 UTC
On my system it's not related to https://bugzilla.redhat.com/show_bug.cgi?id=488620 at all. The sound buttons on my keyboard function just fine. But then, I'm not using a Thinkpad but a desktop (with cordless Logitech keyboard).
Comment 9 Marc-Andre Lureau 2009-05-02 22:20:20 UTC
Thank you for reporting. I can confirm this bug.

Comment 10 Marc-Andre Lureau 2009-05-02 22:21:42 UTC
lower severity to minor since:
- gstmixer is deprecated
- the bug does not affect hw alsamixer state (it's only UI side) 
Comment 11 Robert Ancell 2009-06-19 03:54:54 UTC
Created attachment 136967 [details] [review]
Correctly sets the recoding toggle for capture tracks on startup

This fixes a definite problem with the recording toggle not being set on startup.

There appears to be another problem with the mute input being shown for capture tracks but it not being stored.  This mute is not shown in alsamixer but GST_MIXER_TRACK_NO_MUTE is not set for this track.  I suspect there is a problem in another layer (GST/Alsa).

I'm not if this fixes what the reporters of this bug or the downstream bug (https://bugs.launchpad.net/ubuntu/+source/gnome-media/+bug/299642) are reporting though, please confirm if you are getting the problem this is what you are seeing
Comment 12 Robert Ancell 2009-06-19 04:53:55 UTC
Created attachment 136971 [details] [review]
Fixes initial state of recording toggle and only shows mute button for input tracks

I can't find confirmation but I think the mute should be disabled for tracks that do not have GST_MIXER_TRACK_OUTPUT set.

The description of GST_MIXER_TRACK_NO_MUTE is "play track doesn't support mute" implying to me that there must be a play track.

http://library.gnome.org/devel/gst-plugins-libs/unstable/gst-plugins-base-libs-gstmixertrack.html#GstMixerTrackFlags
Comment 13 Vadim Peretokin 2009-06-19 12:07:14 UTC
Sorry... what do you want me to do?
Comment 14 Hielos 2009-06-25 03:07:27 UTC
I am sorry to bother you, but I think I have the same problem. I am actually using a USB hard-drive on a Dell Optiplex 755 (I may use some other configuration). My OS is Ubuntu 9.04 (Jaunty) with 2.6.28-13 kernel This computer has the intel 82801I (ICH9) sound card. I haven't updated anything regarding sound (only the codecs).
The issue is that I can't record anything at all, not microphone nor sounds coming from the computer (audacious, for instance). I know that Audacious is using the ALSA output. I have configured everything on the Sound Preferences (System > Preferences > Sound) to use ALSA (even the HDA Intel (Alsa Mixer) ). When I go to the gnome-sound-recorder, I see the Capture in the Input option, and I can even see a little bar moving back and forth, without getting any sound.
Just very recently (while I was writing this), I started to play around with the mixer in the volume control. I had already tried to ummute the Capture mixer in the Recording tab without any success (I ummuted it, closed the mixer and when re-opened, the damn thing was muted again and again). Just now, I left the Input Source (in the Options tab of the volume control mixer) to Front Mic and (don't ask me why there is another just below that) the second Input Source to just Mic. The outcome is that the gnome-sound-recorder DOES record, but at a VERY low level.
I would like to try using your patches, but my ignorance does not let me. I come to you in the hope that you can tell me how to compile, run, install or :S whatever I have to do to use it, please? help?! If in your magnanimous response you can tell me what is going on with the sound recording, I would forever thank you :D .
Comment 15 André Klapper 2009-06-25 11:35:42 UTC
(In reply to comment #14)
> I would like to try using your patches, but my ignorance does not let me. I
> come to you in the hope that you can tell me how to compile, run, install or :S

This is out of scope for Bugzilla. Please ask in a forum.
Comment 16 Hielos 2009-06-25 18:54:14 UTC
Well, I finally managed to learn how to compile the patch
just run:
$ sudo apt-get build-dep gnome-media
$ sudo apt-get source gnome-media
$ cd gnome-media-xxxx
download the patches to the gnome-media-xxxx folder (use $ sudo cp PATCH-FOLDER/PATCH-FILE . ) the dot is not a typo.
$ patch -p1<PATCH-FILE
$ sudo ./configure
$ sudo make
$ sudo make install

Well, my outcome was that I could not record anything at all. The Capture, Mic, Front Mic, Boost (and virtually every other level bar, except for the main volume) went away. Besides there is a second Sound button in System > Preferences. I hope this helps. Thank you ;)
Comment 17 Marc-Andre Lureau 2009-07-13 20:32:27 UTC
Robert, I don't understand the point of the first patch.

About the second patch, could you make some comments about Hielos results? and eventually send a second patch (which would not also contain the first patch)

thanks!
Comment 18 Robert Ancell 2009-07-14 00:57:08 UTC
Hi Marc-Andre,

The first patch is due to the fact the boolean value is actually internally an integer.  In track.c gnome_volume_control_button_set_active() is called with GST_MIXER_TRACK_HAS_FLAG(track, GST_MIXER_TRACK_RECORD) which does a bitmask and returns a non-zero value. Unfortunately the value is not the same as TRUE so gtk_button_clicked() is called even though button->active was already set. The patch ensures that a non-zero value is always the same number.  (This code is the same as in the GTK+ toggle button code).

I believe this is is the reason for the "there's something fishy" comment above the code.

Helios,

First try compiling without the patch, this way you can check if it is the patch that is causing the problem or something else.

You are missing the --enable-gstmix flag to configure to build the correct mixer as used by Ubuntu.

For reference to build this package for Ubuntu you should do the following:
$ sudo apt-get build-dep gnome-media
$ apt-get source gnome-media
$ cd gnome-media-xxxx
$ cp 06_track_capture_toggle.patch debian/patches
$ debuild
This will produce a new .deb file built with all the Ubuntu patches and configure options

But I'd recommend building locally like this:
$ sudo apt-get build-dep gnome-media
$ apt-get source gnome-media
$ cd gnome-media-xxxx
$ patch -p1 <06_track_capture_toggle.patch
$ ./autogen.sh --prefix=`pwd`/build --enable-gstmix
$ make
$ make install
$ ./build/bin/gnome-volume-control

If you do this second form you need to look into debian/rules to see what configure flags are required.
Comment 19 Hielos 2009-07-18 01:04:43 UTC
Hello Robert Ancell,
     I am very sorry, but right now I am very busy doing school stuff. I managed to do what I wanted by removing the gnome-media from Synaptic and installing almost everything there is to install regarding pulse-audio and alsa. I will try to do as you say as soon as possible. However, I honestly believe that compiling without the patch would do no difference, since I had not modified the audio configuration prior to installing your patch. I am also guessing that the --enable-gstmix will only let me see the mixer bars that I was missing. As I said, I will eventually give it a try, but I don't think I'll play with my actual configuration (it's working now). I may try it by means of another computer. Farewell for now.

Hielos
Comment 20 Bastien Nocera 2015-01-19 11:49:49 UTC
gnome-media has been obsolete since the release of GNOME 3, nearly 4 years ago.
Furthermore, the gnome-volume-control program in gnome-media has been replaced
by the Sound panel in gnome-control-center.

The new Settings panel should not be affected by the bugs you filed, however, please
make sure to file new bugs against the gnome-control-center product.