I'm running Debian Testing, up to date as of today, and for a few months now have had no audio. I used to have sound both on the desktop and in the browser then I lost sound in the browser and finally in the desktop.
I suspect that an upgrade somewhere along the way has caused this but I don't know what and I haven't been able to cure it.
aplay -l gives me:
**** List of PLAYBACK Hardware Devices **** card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 card 3: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 3: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 3: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0
My monitor has built-in speakers and uses an HDMI connection so card 3 should be the one to use.
This actually produces the intended sound:
aplay -D plughw:3,3 /usr/share/sounds/alsa/Front_Center.wav
Putting those results into /etc/asound.conf as under:
pcm.!default { type plug slave { pcm "hw:3,3" } }
ctl.!default { type hw card 3 }
produces no sound.
If I boot from a live Kubuntu distro I get sound on the desktop but not in a browser.
So that means I have exhausted my knowledge of Linux and audio and I still don't have any sound. Any suggestions would be gratefully received.
On Tue, Jul 26, 2016 at 04:31:09PM +0100, Barry Samuels wrote:
I'm running Debian Testing, up to date as of today, and for a few months now have had no audio. I used to have sound both on the desktop and in the browser then I lost sound in the browser and finally in the desktop.
I suspect that an upgrade somewhere along the way has caused this but I don't know what and I haven't been able to cure it.
Which desktop environment are you using? It's likely you're running pulseaudio (which has a bad reputation, but I haven't had any problems with in quite some time). If you're using GNOME 3 (the default) then if you go to Sound in the control panel you should be able to select the appropriate HDMI output as the default. Alternatively you might find playing with "pacmd" useful:
$ pacmd list-sinks | grep -e 'name:' -e 'index'
gives me:
index: 0 name: <alsa_output.pci-0000_00_03.0.hdmi-stereo> * index: 1 name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
Indicating the analog output is the default at present. I could change that with:
$ pacmd set-default-sink alsa_output.pci-0000_00_03.0.hdmi-stereo
and if that did what I wanted then /etc/pulse/default.pa is where the default configuration lives and I could add the "set-default-sink alsa_output.pci-0000_00_03.0.hdmi-stereo" there.
J.
On 27/07/16 12:10:59, Jonathan McDowell wrote:
On Tue, Jul 26, 2016 at 04:31:09PM +0100, Barry Samuels wrote:
I'm running Debian Testing, up to date as of today, and for a few months now have had no audio. I used to have sound both on the desktop and in the browser then I lost sound in the browser and finally in the desktop.
I suspect that an upgrade somewhere along the way has caused this but I don't know what and I haven't been able to cure it.
Which desktop environment are you using? It's likely you're running pulseaudio (which has a bad reputation, but I haven't had any problems with in quite some time). If you're using GNOME 3 (the default) then if you go to Sound in the control panel you should be able to select the appropriate HDMI output as the default. Alternatively you might find playing with "pacmd" useful:
$ pacmd list-sinks | grep -e 'name:' -e 'index'
gives me:
index: 0
name: <alsa_output.pci-0000_00_03.0.hdmi-stereo>
- index: 1
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
Indicating the analog output is the default at present. I could change that with:
$ pacmd set-default-sink alsa_output.pci-0000_00_03.0.hdmi-stereo
and if that did what I wanted then /etc/pulse/default.pa is where the default configuration lives and I could add the "set-default-sink alsa_output.pci-0000_00_03.0.hdmi-stereo" there.
Jonathan
Thanks for your reply which is interesting.
I generally run Fluxbox but have also tried KDE and XFCE with this problem but with the same results.
Yes I am using Pulse Audio. This wasn't my choice, as such, but came with the Debian default install.
At your suggestion I tried:
$ pacmd list-sinks | grep -e 'name:' -e 'index'
* index: 0 name: <alsa_output.0.analog-stereo>
So it isn't even seeing the HDMI bit which explains why, when I run pavucontrol, the configuration tab shows a message 'No cards available for configuration'.
I couldn't try your final suggestion as I wouldn't know what to put for the name.
Where do you think I should go fom here?
On Wed, Jul 27, 2016 at 01:57:11PM +0100, Barry Samuels wrote:
I generally run Fluxbox but have also tried KDE and XFCE with this problem but with the same results.
Yes I am using Pulse Audio. This wasn't my choice, as such, but came with the Debian default install.
At your suggestion I tried:
$ pacmd list-sinks | grep -e 'name:' -e 'index'
- index: 0
name: <alsa_output.0.analog-stereo>
So it isn't even seeing the HDMI bit which explains why, when I run pavucontrol, the configuration tab shows a message 'No cards available for configuration'.
I couldn't try your final suggestion as I wouldn't know what to put for the name.
Where do you think I should go fom here?
I've got no immediate suggestions, but there's a bunch of stuff out there about HDMI not working correctly; using https://ubuntuforums.org/showthread.php?t=1009407 as a basis there's a chance:
$ pacmd load-module module-alsa-sink device=hw:3,3
might do the trick. If not I got nothing...
J.
On 27/07/16 14:18:25, Jonathan McDowell wrote:
On Wed, Jul 27, 2016 at 01:57:11PM +0100, Barry Samuels wrote:
I generally run Fluxbox but have also tried KDE and XFCE with this problem but with the same results.
Yes I am using Pulse Audio. This wasn't my choice, as such, but came with the Debian default install.
At your suggestion I tried:
$ pacmd list-sinks | grep -e 'name:' -e 'index'
- index: 0
name: <alsa_output.0.analog-stereo>
So it isn't even seeing the HDMI bit which explains why, when I run pavucontrol, the configuration tab shows a message 'No cards available for configuration'.
I couldn't try your final suggestion as I wouldn't know what to put for the name.
Where do you think I should go fom here?
I've got no immediate suggestions, but there's a bunch of stuff out there about HDMI not working correctly; using https://ubuntuforums.org/showthread.php?t=1009407 as a basis there's a chance:
$ pacmd load-module module-alsa-sink device=hw:3,3
might do the trick. If not I got nothing...
J.
I did another search and struck lucky. It suggested putting:
load-module module-alsa-sink device=plughw:1,3
in /etc/pulse/default.pa
So I did that and restarted pulse and voila!
I now have sound back for the desktop including VLC but I still get no audio in a browser (Firefox or Chromium) with or without HTML5 or Flash.
If anyone has any suggestions for that I would be most grateful.