<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Changing device profile to HDMI is reset to default after short delay"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93946">93946</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Changing device profile to HDMI is reset to default after short delay
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>clients
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mike.cloaked@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have an arch linux system with an up to date plasma desktop (plasma-framework
5.18.0-3 (kf5) and plasma-desktop 5.5.4-1 (plasma), and running pulseaudio for
sound.

After recent package updates to:

[2016-01-23 10:56] [ALPM] upgraded libpulse (7.1-3 -> 8.0-1)
[2016-01-23 10:56] [ALPM] upgraded pulseaudio (7.1-3 -> 8.0-1)
[2016-01-23 10:56] [ALPM] upgraded pulseaudio-gconf (7.1-3 -> 8.0-1)

I found that my usual sound setting to have sound output going to the HDMI
output to my monitor speakers had been changed to analogue.  

>From the plasma K menu, I have to go to System Settings -> Multimedia then
Audio and Video tab - choose Audio Hardware Setup tab - and then select the
sound card profile as Digital Stereo (HDMI 2) Output and Analog Stereo Input
and click Apply.  If I then run "pactl list sinks" in a terminal I get output
which has the tail end as:

device.product.name = "7 Series/C210 Series Chipset Family High Definition
Audio Controller"
                device.form_factor = "internal"
                device.string = "hdmi:0,1"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "hdmi-stereo-extra1"
                device.profile.description = "Digital Stereo (HDMI 2)"
                device.description = "Built-in Audio Digital Stereo (HDMI 2)"
                alsa.mixer_name = "Intel PantherPoint HDMI"
                alsa.components = "HDA:10ec0892,80862036,00100302
HDA:80862806,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, available)
        Active Port: hdmi-output-1
        Formats:
                pcm

Then sound through the HDMI connection to the speakers on the monitor works
fine, but only for some limited period. 

After some period of time, leaving the system not using any sound output, the
sound stops working again, and the command "pactl list sinks" in a terminal
then shows:

device.product.name = "7 Series/C210 Series Chipset Family High Definition
Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Intel PantherPoint HDMI"
                alsa.components = "HDA:10ec0892,80862036,00100302
HDA:80862806,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        Ports:
                analog-output-lineout: Line Out (priority: 9900, not available)
                analog-output-speaker: Speakers (priority: 10000)
                analog-output-headphones: Headphones (priority: 9000)
        Active Port: analog-output-speaker
        Formats:
                pcm

If I then go back to the System Settings, and look again at Multimedia then
Audio and Video tab - choose Audio Hardware Setup tab, my settings have
reverted back to "Analogue Stereo Output".

So it seems that pulseaudio has some kind of timeout for the changed setting
and it does not remain permanent despite changing it and applying it in the
plasma settings area.  I have also tried changing the setting by right clicking
the volume icon in the system tray which then leads to the same GUI and
options. But this has the same result.   

This may be be relevant in the journal log:
Jan 29 21:35:34 home1 systemsettings5[16487]: Error loading plugin
"kcm_pulseaudio" "The shared library was not found."
                                              Plugin search paths are
("/usr/lib/qt/plugins", "/usr/bin")
                                              The environment variable
QT_PLUGIN_PATH might be not correctly set

and later in the journal:
Jan 30 09:10:23 home1 pulseaudio[685]: E: [pulseaudio] module.c: Module
"module-device-manager" should be loaded once at most. Refusing to load.

and later again in the journal:
Jan 30 09:11:03 home1 systemd[517]: pulseaudio.service: Service hold-off time
over, scheduling restart.
Jan 30 09:11:03 home1 systemd[517]: Stopped Sound Service.
Jan 30 09:11:03 home1 systemd[517]: Starting Sound Service...
Jan 30 09:11:03 home1 pulseaudio[19809]: W: [pulseaudio] pid.c: Stale PID file,
overwriting.
Jan 30 09:11:03 home1 systemd[517]: Started Sound Service.

Does this indicate a possible pulseaudio bug or is this a config error? 
However until the recent package update this problem did not exist on my
computer.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>