Mageia6 pulseaudio reverts on reboot
Posted:
Aug 28th, '17, 07:41
by griffin
The sound configuration in Mageia 6 Pulseaudio reverts to default settings on reboot. I can set the sound card and output to a configuration that works using the Plasma System Settings Multimedia controls, but I have to do it all over again after every reboot. Saving the configuration using the "alsactl store" command doesn't work, whereas that worked in the past. Sound just worked in Mageia 5: I set it once and the system remembered the settings and restored them on each reboot, and this was confirmed by the test sound playing when the Mageia Welcome panel was shown, but that no longer plays.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Aug 28th, '17, 22:33
by doktor5000
What do you change in particular, the default sound device? And you change that from what to what?
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Aug 29th, '17, 02:09
by griffin
Plasma System Settings, Multimedia has three subsections - Audio Volume, Audio and Video, and CDDB Retrieval - the last of which is irrelevant for sound configuration.
Upon reboot, the Audio Volume subsection shows five tabs: Applications, Recording, Output Devices, Input Devices, and Configuration. Of these, Applications shows Notification Sounds at 100% volume (but the Mageia Welcome music was not heard on startup). The next tab, Recording, shows no applications recording audio. The next tab, Output Devices, shows Built-in Audio Analog Stereo with the speaker icon displaying a red dash (for muted) and the Port with Line Out selected but the volume slider greyed-out at 100%, and the port drop-down list also shows Headphones; selecting Headphones shows the volume slider not greyed-out at 50%, but the speaker icon still shows the red dash (muted). The next tab, Input Devices, shows no input devices available. The next tab, Configuration, shows two devices: on top is Barts HDMI Audio (Radeon HD 6800 Series), my video card, with the Profile Off; and below that, Built-in Audio, with the Profile Analog Stereo Output.
The Audio and Video subsection shows three tabs: Device Preference, Audio Hardware Setup, and Backend. Taking these back to front, the Backend tab shows Phonon GStreamer above Phonon VLC. I believe that Phonon VLC was on top initially and I had to select Phonon GStreamer and use the ^Prefer button to set that as the preferred backend. The Audio Hardware Setup tab shows the Sound Card as the Barts HDMI Audio (Radeon HD 6800 Series) device with the Profile Off and the Device Configuration area below the Hardware area greyed-out. The Sound Card drop-down list also contains the Built-in Audio device with the Profile Analog Stereo Output, and I have to select the Built-in Audio device as the Sound Card here following each reboot. When I do that, the Device Configuration area is displayed with the Sound Device shown as Playback (Built-in Audio Analog Stereo) and the test panel below it, and I can click on the two speaker buttons to hear the test sounds. The Device Preference tab shows the Built-in Audio Analog Stereo device above the Barts HDMI Audio (Radeon HD 6800 Series), which is greyed-out, and I have to click on the Built-in Audio Analog Stereo device to highlight the Test button below. Clicking the Test button plays the test sound. Clicking on the Apply Device List To... button enables selecting (all) playback categories.
After making the changes described above, I click on Apply. There is a (load) Defaults button, but not a Store Settings (as default) button, so after clicking on Apply I just close the window.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Aug 30th, '17, 01:25
by doktor5000
Can you post the output as regular user of
- Code: Select all
pacmd ls
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 4th, '17, 15:25
by griffin
Here are the messages that appear in the systemd journal as the result of using System Settings, Multimedia to reset the sound configuration as described above:
- Code: Select all
Sep 02 23:42:16 eris systemsettings5[3642]: org.kde.kcoreaddons: Error loading plugin "kcm_pulseaudio" "The shared library was not found."
Plugin search paths are ("/usr/lib64/qt5/plugins", "/usr/bin")
The environment variable QT_PLUGIN_PATH might be not correctly set
Sep 02 23:42:17 eris systemsettings5[3642]: Trying to use rootObject before initialization is completed, whilst using setInitializationDelayed. Forcing completion
Sep 02 23:42:17 eris systemsettings5[3642]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_0e.1.analog-stereo.monitor"
Sep 02 23:42:39 eris systemsettings5[3642]: "/home/ram/.config/kde.org/libphonon.conf"
Sep 02 23:42:39 eris systemsettings5[3642]: libpaths ("/usr/lib64/qt5/plugins", "/usr/bin")
Sep 02 23:42:39 eris systemsettings5[3642]: void BackendSelection::load() "/usr/bin/phonon4qt5_backend" does not exist
Sep 02 23:42:39 eris systemsettings5[3642]: qooooooooo
Sep 02 23:42:39 eris systemsettings5[3642]: "/home/ram/.config/kde.org/libphonon.conf"
Sep 02 23:42:39 eris systemsettings5[3642]: libpaths ("/usr/lib64/qt5/plugins", "/usr/bin")
Sep 02 23:42:39 eris systemsettings5[3642]: void BackendSelection::load() "/usr/bin/phonon4qt5_backend" does not exist
Sep 02 23:42:39 eris systemsettings5[3642]: qooooooooo
Sep 02 23:42:39 eris systemsettings5[3642]: qooooooooo
Sep 02 23:42:40 eris systemsettings5[3642]: context_state_callback "Terminated"
Sep 02 23:42:40 eris systemsettings5[3642]: context_state_callback "Terminated"
Sep 02 23:42:40 eris systemsettings5[3642]: context_state_callback "Terminated"
Sep 02 23:42:40 eris systemsettings5[3642]: Doing update 0
Sep 02 23:42:40 eris systemsettings5[3642]: Got info about card "Barts HDMI Audio [Radeon HD 6800 Series]"
Sep 02 23:42:40 eris systemsettings5[3642]: Doing update 0
Sep 02 23:42:40 eris systemsettings5[3642]: Got info about card "Built-in Audio"
Sep 02 23:42:40 eris systemsettings5[3642]: Got info about sink "Built-in Audio Analog Stereo"
Sep 02 23:42:40 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:42:40 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:42:40 eris systemsettings5[3642]: Doing update 0
Sep 02 23:43:00 eris systemsettings5[3642]: "Updating ports for device 'Built-in Audio Analog Stereo' (2 ports available)"
Sep 02 23:43:00 eris systemsettings5[3642]: Doing update 1
Sep 02 23:43:08 eris systemsettings5[3642]: Got info about sink "Built-in Audio Analog Stereo"
Sep 02 23:43:08 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:08 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:08 eris systemsettings5[3642]: Got info about sink "Built-in Audio Analog Stereo"
Sep 02 23:43:08 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:08 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:08 eris systemsettings5[3642]: Got info about sink "Built-in Audio Analog Stereo"
Sep 02 23:43:08 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:22 eris systemsettings5[3642]: Got info about sink "Built-in Audio Analog Stereo"
Sep 02 23:43:22 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:27 eris systemsettings5[3642]: Got info about sink "Built-in Audio Analog Stereo"
Sep 02 23:43:27 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:27 eris systemsettings5[3642]: "Want ID: No; Have ID: No"
Sep 02 23:43:30 eris systemsettings5[3642]: void BackendSelection::save()
Sep 02 23:43:30 eris systemsettings5[3642]: ~~~~~~~~~~~~~~
Sep 02 23:43:30 eris systemsettings5[3642]: "/home/ram/.config/kde.org/libphonon.conf"
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 4th, '17, 20:40
by doktor5000
I can only check once I'm at an mga6 box. But at least the first lines from systemd journal regarding the shared library and then phonon backend are worrisome, I'd say.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 4th, '17, 21:20
by griffin
This is on a fresh install of Mageia 6, so perhaps the Plasma install process missed that library? The phonon sound backend configuration is saved successfully in ~/.config/kde.org/libphonon.conf after the first time it is adjusted so that doesn't need to be redone after every reboot:
- Code: Select all
[root@eris ram]# cat ./.config/kde.org/libphonon.conf
[Backends]
1\iid=org.kde.phonon.gstreamer
2\iid=org.kde.phonon.vlc
size=2
[VideoCaptureDevice]
Category_-1=@Variant(\0\0\0\x7f\0\0\0\vQList<int>\0\0\0\0\0)
[root@eris ram]#
But the rest of the pulseaudio sound configuration isn't saved and restored after reboot, apparently, despite the fact that the service alsa-state is running and the service alsa-restore is run at boot.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 4th, '17, 21:53
by doktor5000
griffin wrote:despite the fact that the service alsa-state is running and the service alsa-restore is run at boot.
That is pretty much irrelevant, it was only relevant back when there was no pulseaudio with pure alsa.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 4th, '17, 22:35
by griffin
Okay, but why does systemd still run those services if they are irrelevant with pulseaudio? Where does pulseaudio store the system sound configuration anyway? I haven't stumbled across that information yet, but I'm still looking.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 4th, '17, 23:19
by doktor5000
Because nobody cared about removing them, because the maintainer didn't find time for it, because they do no harm? Could be several reasons.
And pulse stores the system configuration under /etc/pulse/default.pa and then the rest is per-user in ~/.config/pulse
See e.g.
https://wiki.archlinux.org/index.php/Pu ... tion_files or
https://wiki.archlinux.org/index.php/Pu ... figuration
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 5th, '17, 01:22
by griffin
doktor5000 wrote:pulse stores the system configuration under /etc/pulse/default.pa and then the rest is per-user in ~/.config/pulse <snip>
Thanks. If I study those configuration files and play around for a few days or weeks maybe I can figure out how to make sound work consistently on my system. However, I would rather have the System Settings Multimedia tool save the sound settings like it should, rather than having to revisit it and reset the sound configuration every time I reboot the system.
It's not entirely unreasonable of Pulseaudio to make the sound hardware on a (once up a time expensive) graphics card the default output device, but... once I reconfigure the multimedia system to use the internal sound hardware instead, the configuration tool should save that as the new default configuration. Using the Multimedia tool should simply work.
I'm not going to try to figure out how to beat the sound system into submission by editing the system configuration files.
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 5th, '17, 18:05
by doktor5000
griffin wrote:It's not entirely unreasonable of Pulseaudio to make the sound hardware on a (once up a time expensive) graphics card the default output device, but... once I reconfigure the multimedia system to use the internal sound hardware instead, the configuration tool should save that as the new default configuration. Using the Multimedia tool should simply work.
I believe the easier way to do that is via kmix and select the default output.
But you can also change the priority to be lesser for the HDMI output, but I've got to look in my Mageia notes how to do that "properly"
A similar form of the problem you describe I believe was reported as
https://bugs.freedesktop.org/show_bug.cgi?id=93946You could also take a look at the hints in e.g.
https://bbs.archlinux.org/viewtopic.php?id=164868
Re: Mageia6 pulseaudio reverts on reboot
Posted:
Sep 7th, '17, 08:46
by griffin
doktor5000 wrote:griffin wrote:Using the Multimedia tool should simply work.
I believe the easier way to do that is via kmix and select the default output.
Kmix is deprecated now, apparently, since it's not included in the latest Plasma desktop. It operates on the alsa configuration. And that still means revisiting the sound configuration after every reboot. That's often enough to be rather annoying, if one reboots every few months after a kernel upgrade. It's also a step back from sound that stayed working in Mageia 5.
Thank you. However, while those are interesting and instructive, they don't resolve my particular problem in Mageia 6. Pulseaudio is built on top of alsa, so the alsa tools can't be expected to control it, although they're kept for legacy use. It would be nice if pulseaudio provided a complete solution, but it doesn't, even though it offers some low level pieces. The Plasma desktop comes closest to a solution with its System Settings Multimedia tool, but that doesn't save changes. Well, it does save the Phonon backend selection in ~/.config/systemsettingsrc (a poorly chosen name there, by the way), but that's all. As I see it, the Multimedia setup tool should save any changes that the user makes to the pulseaudio configuration in such a way that pulseaudio uses that modified configuration when it starts after a reboot.