Author Topic: Loss of Sound  (Read 27059 times)

0 Members and 1 Guest are viewing this topic.

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Loss of Sound
« on: September 27, 2017, 01:45:13 pm »
Can anyone please help with the following problem ?

The sound on a desktop PC running Debian Jessie has stopped working - no
sound from any websites (e.g. BBC or YouTube) and trying to play a
standard sound file I have saved which is used to test the sound with
vlc gives:

Audio output failed:
The audio device "default" could not be used:
Device or resource busy.

and in the terminal window it says:

VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[00000000013f0608] pulse audio output error: PulseAudio server
connection failure: Connection refused
[0000000001318118] core libvlc: Running vlc with the default interface.
Use 'cvlc' to use vlc without interface.
[00000000013f0608] alsa audio output error: cannot open ALSA device
"default": Device or resource busy
[00000000013f0608] core audio output error: module not functional
[00007fc2a8c02b08] core decoder error: failed to create audio output

The sound was then suddenly regained.

The sound has now been suddenly lost again.

Loose wiring is not suspected.

The only file in /etc/pulse is client.conf

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #1 on: September 27, 2017, 02:09:21 pm »
have you tried renaming the pulseaudio configuration directory in your home folder, then restarting plusleaudio so it's automatically recreated

In recent versions of Ubuntu the pulseaudio config directory would be at
~/.config/pulse
but earlier versions had it at
~/.pulse
I'm not sure which it'll be in Debian.

so try renaming that directory to say
~/.config/pulse-old
or
~/.pulse-old
then restart pulseaudio with:
Code: [Select]
pulseaudio -k
pulseaudio should automatically respawn, and the pulseaudio config directory automatically recreated.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #2 on: September 28, 2017, 01:15:57 pm »
 Thanks Very Much for your reply.

 I am new to this forum.

 Can you please tell me what Code: Select means ?

 Thanks.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #3 on: September 28, 2017, 02:27:41 pm »
ignore the words "Code: [Select]", they are there just to tell you what follows is a code box (ie. it either contains a terminal command for you to run, or the output from a command that you have already run)

Just open a terminal and run the following command (the bit between the lines)
Code: [Select]
pulseaudio -k
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound Update - need help
« Reply #4 on: September 29, 2017, 11:50:19 am »
I would be very grateful if someone could help to solve the following
problem with support by telephone. If anyone is willing and able to
supply such support, could they please let me know their availability
and how much they would charge per hour.  Thanks very much.

(a) The sound on a desktop PC running Debian Jessie has stopped working - no
sound from any websites (e.g. BBC or YouTube) and trying to play a
standard sound file I have saved which is used to test the sound with
vlc gives:

Audio output failed:
The audio device "default" could not be used:
Device or resource busy.

and in the terminal window it says:

VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[00000000013f0608] pulse audio output error: PulseAudio server
connection failure: Connection refused
[0000000001318118] core libvlc: Running vlc with the default interface.
Use 'cvlc' to use vlc without interface.
[00000000013f0608] alsa audio output error: cannot open ALSA device
"default": Device or resource busy
[00000000013f0608] core audio output error: module not functional
[00007fc2a8c02b08] core decoder error: failed to create audio output

(b) The sound was then suddenly regained.

(c) The sound has now been suddenly lost again.

(d) Loose wiring is not suspected.

(e) The only file in /etc/pulse is client.conf

(f) Running the pulseaudio command :-

% pulseaudio -k

gives

pulseaudio: Command not found.


(g) files in .pulse are:

259df95a2b75426bb6ef25f372b08be2-runtime@
3e0b1f6422592f67f9f012034c3323d0-card-database.tdb
3e0b1f6422592f67f9f012034c3323d0-default-sink
3e0b1f6422592f67f9f012034c3323d0-default-source
3e0b1f6422592f67f9f012034c3323d0-device-volumes.tdb
3e0b1f6422592f67f9f012034c3323d0-runtime@
3e0b1f6422592f67f9f012034c3323d0-stream-volumes.tdb

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #5 on: September 29, 2017, 02:42:58 pm »
Did you rename to .pulse directory (in the home folder of the user you normally log in as) ?

According to the Debian wiki:
https://wiki.debian.org/PulseAudio#Restarting_the_Pulseaudio_Daemon
to restart the pulseaudio daemon (after renaming the directory) run
Code: [Select]
$ pulseaudio --kill
$ pulseaudio --start
(as the user you normally log in as, not as root)

That said, is pulseaudio even installed in Debian by default ? .. check with:
Code: [Select]
dpkg -l | grep pulseaudio

If not and you're using ALSA, do you have 2 sound cards by any chance ?

What's the output from:
Code: [Select]
aplay -l
?
« Last Edit: September 29, 2017, 03:46:00 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #6 on: October 01, 2017, 01:12:45 pm »
Thanks very much for all your advice, Mark.

Pulseaudio was installed on Friday and

% dpkg -l | grep pulseaudio

gave

ii pulseaudio 5.0-13 amd64 PulseAudio sound server
ii pulseaudio-module-x11 5.0-13 amd64 X11 module for PulseAudio sound server
ii pulseaudio-utils 5.0-13 amd64 Command line tools for the PulseAudio sound server

% aplay -l

gave

**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC887-VD Analog [ALC887-VD Analog]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC887-VD Digital [ALC887-VD Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0


Jessie was then re-booted and the sound then re-appeared.

Also

% ls /etc/pulse

gave

client.conf daemon.conf default.pa system.pa

and

% ls ~/.pulse

gave

259df95a2b75426bb6ef25f372b08be2-card-database.tdb
259df95a2b75426bb6ef25f372b08be2-device-volumes.tdb
259df95a2b75426bb6ef25f372b08be2-runtime@
259df95a2b75426bb6ef25f372b08be2-stream-volumes.tdb
3e0b1f6422592f67f9f012034c3323d0-card-database.tdb
3e0b1f6422592f67f9f012034c3323d0-default-sink
3e0b1f6422592f67f9f012034c3323d0-default-source
3e0b1f6422592f67f9f012034c3323d0-device-volumes.tdb
3e0b1f6422592f67f9f012034c3323d0-runtime@
3e0b1f6422592f67f9f012034c3323d0-stream-volumes.tdb

Vlc was used to run a test sound file (soundfile.wav) and that ran okay.

Sound also worked fine on YouTube.

However, the sound was then lost when trying to use vlc again on a sound file and
also was not present when trying to use sound with a Web browser.

% vlc soundfile.wav

gave

VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[0000000000971608] pulse audio output error: PulseAudio server connection failure: Connection refused
[0000000000899118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0000000000971608] alsa audio output error: cannot open ALSA device "default": Device or resource busy
[0000000000971608] core audio output error: module not functional
[00007fcbdcc02b68] core decoder error: failed to create audio output

This behaviour (i.e. sound first working and then not working)
is similar to what happened before the installation of pulseaudio on Friday.

So the cause of the loss of sound remains a mystery, I'm afraid.



Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #7 on: October 01, 2017, 01:33:58 pm »
If (in VLC) you go to:-

Tools > Preferences

then tick the "All" box.

Then in the left panel go to:-

Audio > Output Modules > ALSA

Is the "Audio output device" set to:-

Audio output device: Playback/recording through the PulseAudio sound server

?



And have youu installed pavucontrol ?
« Last Edit: October 01, 2017, 01:35:39 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #8 on: October 03, 2017, 11:46:52 am »
Audio output device is set to "Automatic"

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #9 on: October 05, 2017, 12:02:17 pm »
 I'm afraid that pavucontrol is not installed.

 I very much hope you can continue to help with this
 matter as it is becoming urgent to solve this problem
 and no-one else seems interested to help.

Thanks.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #10 on: October 05, 2017, 08:12:41 pm »
If you've installed pulseadio I'd suggest you also install pavucontrol which will give you a menu item (PulseAudio Volume Control) for configuring pulseaudio input/output.

I'd also try setting VLC to

Audio output device: Playback/recording through the PulseAudio sound server
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #11 on: October 08, 2017, 12:33:24 pm »
vlc appears to now be working although it still gives the following error
(as before):

[000000000104d608] pulse audio output error: PulseAudio server connection failure: Connection refused


Also, there now appears to be sound with the Chromium browser (although this was off and on before so
we shall see if it lasts), but still no sound with the Iceweasel browser.

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #12 on: October 08, 2017, 12:35:02 pm »
The iceweasel browser is the browser needed for most work.


Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 477
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #13 on: October 08, 2017, 12:40:11 pm »
Can you post the output (if any) from:
Code: [Select]
cat ~/.asoundrc
and
Code: [Select]
cat /etc/asound.conf
« Last Edit: October 08, 2017, 12:45:21 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline freelancehelp

  • Jr. Member
  • **
  • Posts: 24
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: Loss of Sound
« Reply #14 on: October 10, 2017, 12:17:28 pm »
% cat ~/.asoundrc
No such file or directory


% cat /etc/asound.conf
pcm.!default {
type hw
card 0
}

ctl.!default {
type hw
card 1
}


 


SimplePortal 2.3.3 © 2008-2010, SimplePortal