Bug 1051107 - Sound does not return to the speakers after plugging in a headphone and pulling it out again
Summary: Sound does not return to the speakers after plugging in a headphone and pulli...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-09 17:28 UTC by Mike FABIAN
Modified: 2015-06-29 14:18 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-29 14:18:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
speaker-headphone-speaker-problem.ogv (680.52 KB, video/ogg)
2014-01-09 17:28 UTC, Mike FABIAN
no flags Details

Description Mike FABIAN 2014-01-09 17:28:50 UTC
Created attachment 847742 [details]
speaker-headphone-speaker-problem.ogv

- I listen to something which makes sound, for example a youtube video
  and hear the sound correctly via the speakers of the Lenovo T520.
  In “gnome-control-center sound” I see that the speaker icon in

        Choose a device for sound output:
        [sound card icon] アナログ出力 - 内部オーディオ
        [speaker icon]    スピーカー・内部オーディオ    <- selected

  is selected.
  
- I plug in a headset and hear the sound correctly via the headset,
  the speakers are switched off automatically. Now
  the headset icon is selected in “gnome-control-center sound”:
  
        Choose a device for sound output:
        [sound card icon] アナログ出力 - 内部オーディオ
        [headset icon]    アナログヘッドフォン・内部オーディオ  <- selected

- Now I pull the plug of the headset again:

  -> Silence! The sound does not return to the speakers.

  In “gnome-control-center sound” now the sound card icon is selected:

        Choose a device for sound output:
        [sound card icon] アナログ出力 - 内部オーディオ     <- selected
        [speaker icon]    スピーカー・内部オーディオ
  
- Now I click in “gnome-control-center sound” on the speaker
  icon again and the sound returns to the speakers.

I would expect that the sound automatically returns to the speakers
when pulling out the headset.

Actually this is not 100% reproducible, I thought it was but
while writing this bug report, I found that sometimes the sound
returns to the speakers when pulling the headset plug and sometimes
it does not.

It seems to me that more often the sound does not return to the
speakers when pulling the headset, I tried many times now, it seems to
be rather random.

See attached video.

Hardware: Lenovo T520

mfabian@ari:~
$ cat /etc/redhat-release 
Fedora release 20 (Heisenbug)
mfabian@ari:~
$ rpm -q control-center
control-center-3.10.2-3.fc20.x86_64
mfabian@ari:~
$ rpm -q pulseaudio
pulseaudio-4.0-9.gitf81e3.fc20.x86_64
mfabian@ari:~
$

Comment 1 Markus S. 2014-02-15 15:51:53 UTC
100% reproducible way for me:

Plug in headphones while system is running. Shutdown system with headphones plugged in. Unplug them. Turn on system.

Result: Speaker are at 0% volume.


I think the problem is that automute not only mutes the speaker, the volume level is also set to zero.

Comment 2 Štefan Gurský 2014-03-07 10:17:20 UTC
I have similar symptoms as Mike FABIAN.

gnome-control-center shows "Analog output - Built-in audio" with soundcard icon and "Speakers - built in audio" with speaker icon, when headphones are not plugged-in. After disconnecting headphones, Speaker is always selected, but the sound does not play (in contrast to Mike FABIAN's version). Switching to "Analog output" starts playing sound, but must be done after every disconnection of headphones.

I tried running alsamixer and selecting "0  HDA Intel PCH" to see what is happening. When with controls in gnome-control-center, three sliders, "Master", "Headphone", "Speaker", seem to be affected. Slider in g-c-c changes master (seems to be working fine).
Selecting "speakers" in g-c-c sets "speaker" in alsamixer to 100 and headphones to 0 and mute.
Selecting "analog output" in g-c-c sets "Headphone" in alsamixer to 100 and "speaker" to 0 (not mute).
Moving "Headphone" slider up in alsamixer while g-c-c has "Speakers" selected affects sound output from speakers. "Speaker" slider in alsamixer seems to do nothing.

Comment 3 Štefan Gurský 2014-04-23 17:09:12 UTC
It seems that booting from live CD and removing content of /var/lib/alsa/ (especially file asound.state, but I removed also asound.state.lock, so I mention it here in case it is relevant) helped me (when I removed the files from running system, it seemed to recreate wrong file back).
Now inserting and removing phones switches the sound as it should. The devices in gnome-control-center that are used are Headphone and Speaker and it switches between theese two as expected.

A smaller problem persists: after reboot and login the sound does not play from speakers (after inserting phones it plays from phones, after removing it plays from speakers). It seems connected to this bug - when in gnome-contro-center "Analog Output - Built-in audio" is selected, speakers do not play (with phones removed).

Comment 4 Mike FABIAN 2015-04-22 09:12:41 UTC
It works on Fedora 21.

Comment 5 Fedora End Of Life 2015-05-29 10:24:46 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 6 Fedora End Of Life 2015-06-29 14:18:00 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.