Bug 1045631 - Default audio device not retained across reboots
Summary: Default audio device not retained across reboots
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: control-center
Version: 20
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Control Center Maintainer
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-20 21:41 UTC by Grant
Modified: 2015-06-29 13:40 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-29 13:40:42 UTC
Type: Bug


Attachments (Terms of Use)
This is the GUI where I make the change, but it is not retained (46.23 KB, image/png)
2013-12-20 21:41 UTC, Grant
no flags Details
Sink list as I would like it (4.54 KB, text/plain)
2013-12-27 07:38 UTC, Grant
no flags Details
Sink list right after boot (2.17 KB, text/plain)
2013-12-27 07:40 UTC, Grant
no flags Details

Description Grant 2013-12-20 21:41:28 UTC
Created attachment 839819 [details]
This is the GUI where I make the change, but it is not retained

Description of problem:

Starting with Fedora 20 (as of Dec 20, 2013) the chosen device for audio output is not retained after a reboot.  

In my case, I have my analog out going to my speakers, but my monitor also has the capability (though severely limited) to play audio via the HDMI audio.  By the default the HDMI audio is the selected audio device.  Every time I use the computer I have to change this to "analog output".  If I reboot, it gets reset to HDMI.  Quite annoying in my case.

I didn't have this problem in Fedora 19.  Not sure if that's because it selected analog out by default or because it retained my desired audio device.

I suspect there are workarounds by editing configuration files, but it appears that the sound gui is not functioning in the best way.


Version-Release number of selected component (if applicable):

Not sure which package is relevant. Gnome 3.10.2 on a clean Fedora 20 installation.

How reproducible:


Steps to Reproduce:
1. Go to sound GUI
2. Choose a different device than the default
3. Reboot

Actual results:

The device you selected by hand would be used for audio out.

Expected results:

The original device that was selected before your choice is used for audio out (HDMI, in my case).


Additional info:

Comment 1 Grant 2013-12-20 21:52:58 UTC
gnome-control-center 3.10.2

Comment 2 Grant 2013-12-27 07:14:13 UTC
A little additional advice that may help in isolating and correcting the problem.

Correct me if I am wrong but the default device should be stored in a file in ~/.config/pulse/833c6974e30f489185c3c966c0af6caa-default-sink.  Mine reads as follows:

alsa_output.pci-0000_00_1b.0.hdmi-stereo

If I change the device to analog audio in real time, the file contents change to 

alsa_output.pci-0000_00_1b.0.analog-stereo

Is it the case that on reboot this file is being overwritten when it should not be?

BTW I'd appreciate a workaround if you can think of any: any way to permanently disable HDMI audio.  It's quite annoying to have to change the audio device every time I turn on my computer and want to listen to something.  This is new to Fedora 20 and almost makes it worth going back.

Comment 3 Grant 2013-12-27 07:38:20 UTC
Created attachment 842213 [details]
Sink list as I would like it

This is what the sink list looks like after opening the control center and selecting analog

Comment 4 Grant 2013-12-27 07:40:55 UTC
Created attachment 842214 [details]
Sink list right after boot

This is the output of 'pacmd list-sinks' right after booting and before running the command center sound GUI.

Comment 5 Grant 2013-12-27 07:46:09 UTC
To explain the previous attachments:

Looking at the output of 'pacmd list-sinks' I observe that there is only one audio device available after boot: the HDMI.  If right after boot I try and change to analog from the command line:

~> pacmd set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo
Sink alsa_output.pci-0000_00_1b.0.analog-stereo does not exist.

However, if I open the GUI, change to analog device, then change back, the output of 'pacmd list-sinks' now includes both the HDMI and analog devices.  Now

~> pacmd set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo

produces no output.  However, checking the output of 'pacmd list-sinks', I see that the analog output is starred (it is supposedly the default device).  However, there is no sound.  The only way to get sound is by actually selecting it from the GUI.

In short, I don't think this bug is the fault of the command center.  Rather, the GUI is able to do what pulse does not do from the command line nor by default.

Comment 6 Robin Stocker 2014-01-13 12:26:46 UTC
I can confirm the behavior, it occurs since upgrading to Fedora 20.

Name of sink I select in the settings to be the default:

  alsa_output.pci-0000_00_1b.0.analog-stereo

After a reboot, the following is selected instead:

  alsa_output.pci-0000_00_1b.0.hdmi-stereo

Comment 7 kealthou 2014-03-24 08:38:32 UTC
In my case, I want to use the HDMI, but the analog device is chosen. So my workaround is:
$ cat ~/.config/pulse/default.pa
.include /etc/pulse/default.pa
set-card-profile alsa_card.pci-0000_00_08.0 output:hdmi-stereo
set-default-sink alsa_output.pci-0000_00_08.0.hdmi-stereo

In your case, this should work.
.include /etc/pulse/default.pa
set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo
set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo

Comment 8 Grant 2014-03-24 14:38:10 UTC
(In reply to kealthou from comment #7)

> In your case, this should work.
> .include /etc/pulse/default.pa
> set-card-profile alsa_card.pci-0000_00_1b.0 output:analog-stereo
> set-default-sink alsa_output.pci-0000_00_1b.0.analog-stereo

That solution solves my issue.  Thanks, kealthou!

To the devs: perhaps there could be a way to implement this through the GUI (it's a little arcane).

Comment 9 Robin Stocker 2014-04-28 08:17:45 UTC
The problem no longer exists for me, one of the updates seems to have fixed it.

Comment 10 Fedora End Of Life 2015-05-29 10:05:05 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 11 Fedora End Of Life 2015-06-29 13:40:42 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.