[SOLVED] Sound through speakers stops working on Stretch, headphones work
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sound through speakers stops working on Stretch, headphones work
Hi all.
I just installed Debian Stretch on an Acer Aspire E1. After a few minutes into a session sound stops comming out from the laptop speakers, although it plays over headphones or external speakers (connected through 3.5mm port). I've noticed it happens when changing the volume of a youtube or other site video. Last time it happend I ran dmesg and noticed this:
Code:
Jun 3 17:58:13 sophus kernel: [ 2042.987363] perf interrupt took too long (2592 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
I have now. It was very enlightening but not particularly useful. I know now that the problem probably stems from PulseAudio, so the real question is how I diagnose it.
Update on this (hopefully someone has experienced this as well): audio through speakers goes mute after 5 minutes or so of playing simultaneously a flash/html5 video on firefox and an mp3 file on totem. I still get both streams on headphones. There is nothing useful on any of the files in /var/log. Any ideas of how to diagnose/solve this?
EDIT: here's the contents of /etc/pulse/client.conf:
Code:
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
## Configuration file for PulseAudio clients. See pulse-client.conf(5) for
## more information. Default values are commented out. Use either ; or # for
## commenting.
; default-sink =
; default-source =
; default-server =
; default-dbus-server =
; autospawn = yes
; daemon-binary = /usr/bin/pulseaudio
; extra-arguments = --log-target=syslog
; cookie-file =
; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; auto-connect-localhost = no
; auto-connect-display = no
I notice that the default input and output have no value and are commented. I tried running /usr/lib/pulseaudio/pulse/gconf-helper and I got this:
Code:
(process:1687): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
GConf Error: No D-BUS daemon running
(process:1687): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
GConf Error: No D-BUS daemon running
and nothing else happend except the PS1 turned into a ! as if expecting something; I had to Ctrl+C to get back to the terminal. I have been trying to make speakers work again by restarting both alsa and pulseaudio from the terminal to no avail. Any ideas?? Please help, it's rather annoying. Thanks in advance.
Last edited by AdbekunkusMX; 06-05-2016 at 03:48 PM.
Reason: More info
Hi, I have the same problem with stopping sound from speakers and the same message in syslog (haven't checked with headphones though).
Running on ubuntu 16-04.
AdbekunkusMX, have you found a solution to this? Thanks for any input.
Hi, I have the same problem with stopping sound from speakers and the same message in syslog (haven't checked with headphones though).
Running on ubuntu 16-04.
AdbekunkusMX, have you found a solution to this? Thanks for any input.
Hi. Sorry for the delay.
I quite frankly don't remember how I solved this issue (or if I solved it, for that matter); that box is long gone.
However I did experience a quite similar problem on my current laptop (Dell Inspiron 5667 with Intel sound card) and the following steps solved it:
1. Install libsamplerate0.
2. Uncomment the following lines in /etc/pulse/daemon.conf:
3. Set "resample-method ="; I used "src-sinc-best-quality". The whole list of options is here: http://www.mega-nerd.com/SRC/faq.html
4. Create /etc/modprobe.d/alsa.conf with the following contents:
Code:
options snd-hda-intel model=headset-mic
(I can't quite remember exactly what this does, to be honest).
5. PROFIT!!
I had been having the same issue (sound through headphone jack but not speakers). The solution posted by AdbekunkusMX, to use libsamplerate0, worked for me. My daemon.conf file didn't have the line 'avoid-resampling' so I added it.
I had been having the same issue (sound through headphone jack but not speakers). The solution posted by AdbekunkusMX, to use libsamplerate0, worked for me. My daemon.conf file didn't have the line 'avoid-resampling' so I added it.
Thanks very much!
I'm glad it worked for you; I'm now marking the tread as solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.