LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Sound has Disappeared. (https://www.linuxquestions.org/questions/slackware-14/sound-has-disappeared-4175610936/)

cwizardone 07-30-2017 08:55 PM

Sound has Disappeared.
 
Turned the computer on this morning and all was well.
Left it on, which I normally do, when I went out for a few hours.
Came back in the afternoon and all audio had disappeared.
Oh, it is Slackware64-current.
pulse has been working very well since it was added to Slackware...
until now.
I've looked at various files, deleted many, and re-booted, but
nothing has worked. The various applicatiions that use sound
haven't complained. It is as if a mute switch has been turned on, but if so, I can't find it.
Any ideas?
Thanks.

frankbell 07-30-2017 09:01 PM

You could start by narrowing down the issue.

If these are internal speakers, try jacking external speakers or a headset in the speaker jack and check whether there is sound there. If there is, it's likely a hardware issue with the speakers.

You might also try booting to a live CD of something and testing the sound. If it works with the live CD, then it is likely a Slackware issue.

If these are external speakers and there are no internal speakers, try getting a compatible USB sound card and testing with that.

If you post the make/model of the computer, perhaps there is someone who has experience with that particular box.

cwizardone 07-30-2017 09:29 PM

I booted over to Xp on another partition and the default realtek audio device wouldn't work, but when playing a video in VLC (for windows, of course) I directed the audio to the HDMI audio devuce on the video card, and the sound came to life. I was able to duplicate this in Slackware64-current and VLC.
I'm starting to wonder if it is possible the realtek audio chip on the motherboard decided to "retire." :)

The external speakers are attached in two different ways. There is a cable running from the "audio out" on the motherboard to the speakers on the monitor and they are also connected via the HDMI cable running from the video card to the monitor.
As mentioned above, there appears to be no sound coming from the realtek chip to either the speakers or the headphones.

kingbeowulf 07-30-2017 10:04 PM

Did you check to see if the realek module is loaded and if 'lspci' sees the audio device? That's the 1st step if you suspect the chip went belly up. Also, There's a '/usr/bin/alsa-info.sh' script that attempts to do some diagnostics.

You can try "aplay" to see what devices ALSA sees, since if ALSA doesn't see the device, then neither will pulseaudio:
Code:

-l, --list-devices      list all soundcards and digital audio devices
-L, --list-pcms        list device names

Use the pcm device names to figure out where the sound is going:
Code:

$ speaker-test -c2 -Dplug:front -twav
I had a case once where for some reason, no doubt something silly I did, the sound shifted from REAR to FRONT speakers on an old Soundblaster card (long before pulsaudio was added so I can't blame that). There was nothing plugged in to the FRONT jacks. It took me a day to figure that out until I discovered 'speaker-test'. Nuts.

cwizardone 07-31-2017 09:36 AM

Here are the two important lines from lspci,

Quote:

00:04.0 Multimedia audio controller: NVIDIA Corporation CK804 AC'97 Audio Controller (rev a2)
and
05:00.1 Audio device: NVIDIA Corporation GK208 HDMI/DP Audio Controller (rev a1)

and from aplay -l

Quote:

**** List of PLAYBACK Hardware Devices ****
card 0: CK804 [NVidia CK804], device 0: Intel ICH [NVidia CK804]
Subdevices: 0/1
Subdevice #0: subdevice #0
card 0: CK804 [NVidia CK804], device 2: Intel ICH - IEC958 [NVidia CK804 - IEC958]
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

and from aplay -L

Quote:

aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
default:CARD=CK804
NVidia CK804, NVidia CK804
Default Audio Device
sysdefault:CARD=CK804
NVidia CK804, NVidia CK804
Default Audio Device
front:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
Front speakers
surround21:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
4.0 Surround output to Front and Rear speakers
surround41:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804 - IEC958
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 1
HDMI Audio Output

From speaker test,

Quote:

speaker-test -c2 -Dplug:front -twav

speaker-test 1.1.4

Playback device is plug:front
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 8 to 16384
Period size range from 8 to 16384
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
1 - Front Right
Time per period = 2.731305
0 - Front Left
1 - Front Right....
and so on, and on on, and so on....

It looks in order, but, as frankbell suggested, I just booted from a LiveSlack DVD (dated 2-14-17) and the problem remains. Absolutely no
sound via the default realtek 'AC97 device (aka, NVidia CK804), but you can route sound in VLC through the HDMI audio device on the video card.

I'm no expert (obviously :) ), but it would appear to be a motherboard/hardware problem. I've been putting off buying a new motherboard until the release of the next LTS kernel, but maybe this will force me to bite the bullet.

OTOH, if it is possible to have pulseaudio force ALL audio through the HDMI card AND to the headphones, then I can live with that, but from what I've read so far while trying to diagnose this problem, that does not appear to be feasible.

Any suggestion would be appreciated.
Many thanks.
:hattip:

cwizardone 07-31-2017 12:17 PM

OK, I've been digging around in the Arch documentation and found that by setting the analog device as the secondary source I now have sound through the HDMI device on the video card. That adds a new item in pavucontrol entitled,
"Simultaneous output to Built-in Audio, GK20 HDMI/DP Audio Controller Digital Stereo (HDMI 2), Built-in Audio Analog Stereo."

So, sound is now available via the speakers, but I have yet to be able to route it through the headphones.
Work in progress.
:)

cwizardone 08-01-2017 04:11 AM

Well, no luck with the headphones. It appears the audio ports
on the motherboard are dead.
So, the hunt begins for a new motherboard and CPU.

JJJCR 08-01-2017 04:59 AM

If it happens all of a sudden, I think there's a good chance that audio chip has gone south. USB with audio ports I think it's kinda cheap. Just saying for alternative, but of course if you got extra cash then a new one is definitely better.

aus9 08-01-2017 06:43 PM

is this a tower/case or a laptop/netbook

if tower, it might be that your connectors on the motherboard to the audio ports such as to headphones etc are loose and need re-bedding
meaning push down on the connectors.

Drakeo 08-02-2017 12:45 AM

Wonders is the MB or the speakers bad cable. Sad if the card is going. had a short on a cable once drove me crazy.

Darth Vader 08-02-2017 03:36 AM

@cwizardone

To note that I have a motherboard which lost his voice around 5 years ago, then used it in a server box, where do its duty until present.

Losing the audio part is not an End of World, the motherboard can continue to work many years later.

The best option is, in my opinion, to use a cheap PCI audio card, which anyways would outperform the built-in audio.

If you can live with HDMI and headphones, there are plenty of headphones who use directly the USB and appear as an audio device, if you do not want that, a small USB audio stick would do the job.

enorbet 08-02-2017 03:06 PM

I find myself wondering why you even bother with the onboard chip when HDMI works for you. The HDMI should be superior sound and more free of mobo noise so why not just disable the realtek in BIOS/UEFI ? Keep It Simple, right?

cwizardone 08-02-2017 05:21 PM

Quote:

Originally Posted by enorbet (Post 5743458)
I find myself wondering why you even bother with the onboard chip when HDMI works for you. The HDMI should be superior sound and more free of mobo noise so why not just disable the realtek in BIOS/UEFI ? Keep It Simple, right?

Oh, I would agree, but I haven't been able to route the sound to the headphones. The headphone jack orginates on the motherboard and all the audio ports on the motherboard appear to be dead.

One problem I've noticed with using HDMI is the multimedia keys don't work correctly. In Xfce they allow you to mute and lower the sound, but once lowered you can't raise the volume with the key, but have to use the mouse and the slider. Not quick enough. I haven't tried it in KDE-4.

cwizardone 08-02-2017 05:30 PM

Quote:

Originally Posted by Darth Vader (Post 5743070)
@cwizardone

To note that I have a motherboard which lost his voice around 5 years ago, then used it in a server box, where do its duty until present.

Losing the audio part is not an End of World, the motherboard can continue to work many years later.

The best option is, in my opinion, to use a cheap PCI audio card, which anyways would outperform the built-in audio.

If you can live with HDMI and headphones, there are plenty of headphones who use directly the USB and appear as an audio device, if you do not want that, a small USB audio stick would do the job.

So, you are saying those little eight dollar doogles that plug into a USB port are actually sounds cards and give one a working headphone jack?

Darth Vader 08-02-2017 05:47 PM

Quote:

Originally Posted by cwizardone (Post 5743516)
So, you are saying those little eight dollar doogles that plug into a USB port are actually sounds cards and give one a working headphone jack?

Yup, that's idea. ;)

They are some (lame) sound cards, with headphone and microphone jacks.

BUT, they work well, if you ask them for what they're built.


All times are GMT -5. The time now is 10:15 PM.