I'm in need of help to figure out the proper audio configuration on linux, specifically on my Lubuntu box, running Ubuntu 16.04.3 LTS and kernel: Linux 4.4.0-93-generic #116-Ubuntu SMP x86_64 GNU/Linux
The system is fully updated.
Having spent a few hours configuring and troubleshooting both ALSA and Pulseaudio, I've managed to get things working to an acceptable degree, although I'm somewhat stuck on the following two issues:
Firstly, I get the sense that something's wrong with the configuration of ALSA on my system, as I'm currently unable to list any playback devices using:
aplay -l
This is the output I get:
**** List of PLAYBACK Hardware Devices ****
ALSA lib conf.c:3357:(snd_config_hooks_call) Cannot open shared library libasound_module_conf_pulse.so
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL hw:0
aplay: device_list:277: control open (0): No such file or directory
Should this be considered a problem (and in that case, how do I fix it?) or can it be safely ignored?
The second issue is more of a functional one, being that I would like my TV speakers to be the default output device (sink?), when my headphones aren't connected. This only halfway works at the moment, as, after a reboot, I need to plug-in and then unplug my headphones, for sound to be played on the TV speakers (connected via HDMI). After re-plugging the headphones, however, auto switching works seamlessly.
Any ideas as to what might be wrong and how to correct it?
Here's a link to a copy of the contents of my Pulseaudio "default.pa" file: https://pastebin.com/KzDfe8a3
And here's the output from ls -l /dev/snd/:
drwxr-xr-x 2 root root 60 Sep 12 23:37 by-path
crw-rw----+ 1 root audio 116, 2 Sep 12 23:37 controlC0
crw-rw----+ 1 root audio 116, 8 Sep 12 23:37 hwC0D0
crw-rw----+ 1 root audio 116, 9 Sep 12 23:37 hwC0D3
crw-rw----+ 1 root audio 116, 4 Sep 12 23:37 pcmC0D0c
crw-rw----+ 1 root audio 116, 3 Sep 13 00:09 pcmC0D0p
crw-rw----+ 1 root audio 116, 6 Sep 12 23:37 pcmC0D2p
crw-rw----+ 1 root audio 116, 5 Sep 12 23:37 pcmC0D3p
crw-rw----+ 1 root audio 116, 7 Sep 12 23:37 pcmC0D7p
crw-rw----+ 1 root audio 116, 1 Sep 12 23:37 seq
crw-rw----+ 1 root audio 116, 33 Sep 12 23:37 timer
My personal user is member of the audio group.
Contents of ~/.asoundrc:
# --auto-generated-- by /etc/kodi/live.d/01-make-asoundrc.sh
# AUTOUPDATE=True # change this to disable updating of this file
pcm.!default {
type plug;
slave.pcm "plughw:CARD=DAC,DEV=0";