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 675902 - indicate if headphones are plugged in
indicate if headphones are plugged in
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-11 19:27 UTC by William Jon McCann
Modified: 2012-12-08 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Update copy-pasted libgnome-volume-control (128.90 KB, patch)
2012-10-18 17:49 UTC, Giovanni Campagna
committed Details | Review
GvcMixerStream: expose form factor from PulseAudio (6.96 KB, patch)
2012-10-18 17:49 UTC, Giovanni Campagna
committed Details | Review
Gvc: make GvcMixerStreamPort a boxed type (3.53 KB, patch)
2012-10-18 17:49 UTC, Giovanni Campagna
committed Details | Review
VolumeMenu: show headphone icon when headphones are plugged in (4.03 KB, patch)
2012-10-18 17:49 UTC, Giovanni Campagna
committed Details | Review

Description William Jon McCann 2012-05-11 19:27:57 UTC
It might be nice to indicate whether headphones are plugged in in the sound menu.
This is particularly useful if you are changing the volume because you
can't hear something and don't realize that headphones are plugged in.

It would also be nice to maintain different volume level status for each output
device. So when I plug in phones it goes back to non-ear-bleedingly loud.

Also see bug 675901.
Comment 1 Giovanni Campagna 2012-10-18 17:48:53 UTC
The different volume levels are maintained by PulseAudio now, so the only thing missing here is the icon on the side.
Comment 2 Giovanni Campagna 2012-10-18 17:49:19 UTC
Created attachment 226761 [details] [review]
Update copy-pasted libgnome-volume-control

Taken from gnome-control-center, has new API to support PulseAudio 2.0
Comment 3 Giovanni Campagna 2012-10-18 17:49:30 UTC
Created attachment 226762 [details] [review]
GvcMixerStream: expose form factor from PulseAudio
Comment 4 Giovanni Campagna 2012-10-18 17:49:39 UTC
Created attachment 226763 [details] [review]
Gvc: make GvcMixerStreamPort a boxed type

It's a prerequisite for accessing it from JS
Comment 5 Giovanni Campagna 2012-10-18 17:49:50 UTC
Created attachment 226764 [details] [review]
VolumeMenu: show headphone icon when headphones are plugged in

This will show the user where sound will come out, and should
help if he forgets them plugged, or forgets to plug them before
playing music.
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-10-18 17:56:42 UTC
Review of attachment 226761 [details] [review]:

Sure.
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-10-18 18:08:52 UTC
Review of attachment 226762 [details] [review]:

Are you going to upstream these changes?
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-10-18 18:36:32 UTC
Review of attachment 226764 [details] [review]:

Sure.
Comment 9 Giovanni Campagna 2012-10-18 19:27:59 UTC
(In reply to comment #7)
> Review of attachment 226762 [details] [review]:
> 
> Are you going to upstream these changes?

This is what I'm going to do:
https://mail.gnome.org/archives/gnome-shell-list/2012-October/msg00037.html
Comment 10 Giovanni Campagna 2012-11-27 17:28:07 UTC
(In reply to comment #7)
> Review of attachment 226762 [details] [review]:
> 
> Are you going to upstream these changes?

The libgnome-volume-control submodule work is now used by gnome-settings-daemon and gnome-control-center.
Would you mind reviewing these patches, so that I can switch to libgnome-volume-control at once? I know I'm listed as maintainer of that, but a second pair of eyes is always better.
Also, it is a bit painful to carry this patch, since I'm replacing a directory with a submodule, and git doesn't like that at all.
Comment 11 Cosimo Cecchi 2012-12-07 02:21:35 UTC
Review of attachment 226762 [details] [review]:

::: src/gvc/gvc-mixer-stream.c
@@ +442,3 @@
+
+        g_free (stream->priv->form_factor);
+        stream->priv->form_factor = g_strdup (form_factor);

This is missing a matching g_free in finalize or dispose
Comment 12 Cosimo Cecchi 2012-12-07 02:24:14 UTC
Review of attachment 226763 [details] [review]:

Looks good to me
Comment 13 Giovanni Campagna 2012-12-08 14:58:09 UTC
Pushed as 784b04b191022b3b4e349ed123a2976ccb4007bb.
Comment 14 Colin Walters 2012-12-08 16:15:09 UTC
Looks like this needs srcdir != builddir fixing:

http://ostree.gnome.org/work/tasks/gnomeos-3.8-build/2012.2204/log
Comment 15 Colin Walters 2012-12-08 18:40:59 UTC
I just fixed it; was a bug in the gvc introspection build rules.