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 87277 - Mixer doesn't remember muted state
Mixer doesn't remember muted state
Status: RESOLVED DUPLICATE of bug 61253
Product: gnome-applets
Classification: Other
Component: mixer
git master
Other Linux
: Normal minor
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
: 103265 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-07-03 18:39 UTC by Havoc Pennington
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Probably not the right way of fixing this but have a look at it and give me comments (1.84 KB, patch)
2002-07-21 02:20 UTC, Dennis
none Details | Review
The if volume is 0 set mute and volume 100% version (1.92 KB, patch)
2002-07-21 02:30 UTC, Dennis
none Details | Review

Description Havoc Pennington 2002-07-03 18:39:44 UTC
When you log out with the sound muted, the mixer should come back muted.
Also perhaps moving the slider to 0 should be the equivalent of mute and put 
things in the mute state.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=63436
Comment 1 Dennis 2002-07-21 01:20:26 UTC
I am looking into this bug and there are serval ways of solving this.

1) On startup checking if vol = 0 (seen that is what mute is all about
anyway) and if this is true go into mute state 

now this has a sub problem and that is that the applet indicates
the volume of 0% so what i could do is make it 100% in the applet
and then mute it.

2) Use a gconf key which saves the mute / volume level state and
sets this on startup. However i am not totally sure if we want to
force the volume... (like in if the user changed the volume level
and you suddenly force it up to the old setting)


I would really like to have a quick reply on this so i can start
fixing it. At the moment i am trying solusion 1 but if you guys rather
go for 2 please let me know
Comment 2 Dennis 2002-07-21 02:20:56 UTC
Created attachment 9986 [details] [review]
Probably not the right way of fixing this but have a look at it and give me comments
Comment 3 Dennis 2002-07-21 02:21:57 UTC
This is the when volume is 0% at startup go into mute mode
and leave volume at 0% version.
Comment 4 Dennis 2002-07-21 02:30:23 UTC
Created attachment 9987 [details] [review]
The if volume is 0 set mute and volume 100% version
Comment 5 Dennis 2002-07-21 02:33:40 UTC
Sorry for keep spamming you guys.. i think a gconf version
would be the best solution but then we also have 2 choices

1) Save both mute and volume settings in gconf and set them at
the start of the mixer applet

2) Save both mute and volume settings and when left in a mute
state next time check if the volume is still 0% if so
set muted and the old volume.
Comment 6 Luis Villa 2002-07-30 03:20:09 UTC
Ooh, PATCH. Thanks, Dennis.
Comment 7 Dennis 2002-07-30 11:27:57 UTC
Yep A patch but probably not the way we want it eventually .. 
i would like kevinv to look at my suggestions ..
Comment 8 Marc Deslauriers 2002-08-03 16:22:52 UTC
I would like to see the mute state and volume saved and restored
regardless of what the volume is set at during login. The reasoning is
that on a multi-user machine, two different users can have two
different volume and mute preferences.
Comment 9 Dennis 2002-08-17 23:43:38 UTC
Please can someone with more indept knowledge help me out
and tell me how i should handle this.

If someone comes up with a "You should do this and this" list
i start working on it right away.
Comment 10 Kjartan Maraas 2002-10-22 23:11:17 UTC
Anyone got any good suggestions for Dennis?
Comment 11 Bastien Nocera 2002-12-11 23:03:25 UTC
If the sound is muted, make it muted when you come back and the soundlevel is the same (ie. 0). Otherwise leave the current sound settings.

This isn't the kind of thing you want to do complicated. You only need to keep the current muted state in gconf.
Comment 12 Dennis 2002-12-12 11:57:46 UTC
Yep, Hadess is probably 100% right. It indeed isn't the thing that
should be done complicated and 100% fail proof :). Anyway it has
been a while ago since i've been looking into this. So i could use
some clue about which branch i should check out and start hacking on.

Thanks for the suggestion hadess!
Comment 13 Kevin Vandersloot 2002-12-12 17:57:33 UTC
Dennis: do this for HEAD. 

A question I have is should we save the volume and mute settings. Why
just save the mute settings?
Comment 14 Dennis 2002-12-12 21:24:42 UTC
Kevin sorry i don't exactly understand you could you explain ?

Another side note: I was thinking about the effect it would have
to simply set mute state when volume is 0. When you unmute the volume
will still be 0 because that is the current sound level so maybe a
way to get around this is when muted save the old volume as a gconf
string and then when the applets comes up again it checks if the
volume is 0. If so set muted and when unmuted set the old volume
Comment 15 Kevin Vandersloot 2002-12-13 16:01:39 UTC
How about when the user selects unmute then put the volume to 1? So this: 

The user slides to zero - the applet mutes
The user selectes unmute - the applet sets the volume to 1
The user slides up past zero - the applet unmutes

Dennis: I was thinking of whether we should restore the volume on
startup if we will restore the mute state.
Comment 16 Havoc Pennington 2003-01-13 02:23:50 UTC
*** Bug 103265 has been marked as a duplicate of this bug. ***
Comment 17 Balamurali Viswanathan 2003-02-21 08:51:00 UTC
In Solaris, if the volume is muted from the mixer applet instead
of reducing the volume to 0, ainfo.output_muted is set in the audio
info structure similarly when it is unmuted ainfo.output_muted is
unset. This solves the problem of mixer applet losing the mute status
when removed and added again. I have sumitted a patch to bug 105724
which also solves this problem. Thanks.

Comment 18 Kevin Vandersloot 2003-06-14 20:18:42 UTC

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