Page 1 of 2

No sound [SOLVED]

Posted: 10 Jan 2019, 14:42
by Kulle
I use Porteus 4.0 Xfce 64-bit.
Since today the following error occurs:
After about a minute, there is no sound left.
After a restart, the sound is back, but again only a minute.
The same error with Porteus 3.1 32-bit.
The same error with Puppy-Linux (LxPupTar)
But on Windows 7 (on the same computer) the error does not occur !!
That is very strange.
Does anyone know why that is?
Is there a way to fix the error?
Many thanks for the help.

Re: No sound

Posted: 10 Jan 2019, 17:34
by Kulle
Addition:
The error had now occurred again, but this time the sound was present for a longer time.
This error is very annoying: A computer without sound!
The question: How to reactivate the sound? (Without a reboot)

Re: No sound

Posted: 11 Jan 2019, 15:23
by Kulle
The question is:
Is there an easy way to "restart" ALSA without needing to reboot
the Computer?
Does anyone have a solution?
Thank you

Re: No sound

Posted: 11 Jan 2019, 16:10
by Blaze
Hi Kulle.
Can you show output of these commands:

Code: Select all

su
toor
lspci -v | egrep -i 'audio|media'
?

BTW, you can swaps the first and second sound cards by these commands

Code: Select all

su
toor
echo 'options snd-hda-intel index=1,0' > /etc/modprobe.d/50-alsa.conf
reboot

Re: No sound

Posted: 11 Jan 2019, 17:40
by Kulle
Thank you for pointing out.
But it was unsuccessful.
After a restart, the sound is always (!) present,
but only for a very short time (one to two minutes)!
I found:
https://totallynoob.com/how-to-restart-alsa/
and
https://bbs.archlinux.org/viewtopic.php?id=60492

Is there a equivalence for Porteus?

Re: No sound

Posted: 12 Jan 2019, 01:26
by Ed_P
Kulle wrote:
11 Jan 2019, 17:40
Thank you for pointing out.
:%) :unknown:
Blaze wrote:
11 Jan 2019, 16:10
Hi Kulle.
Can you show output of these commands:

Code: Select all

su
toor
lspci -v | egrep -i 'audio|media'
?

Re: No sound

Posted: 12 Jan 2019, 08:36
by Kulle
The Output:

Code: Select all

00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)

Re: No sound

Posted: 12 Jan 2019, 09:49
by Blaze
Ok. How about to try Porteus-XFCE-v4.0-x86_64-18.12.25.iso with kernel 4.20.1 provaiding by neko ?

Re: No sound

Posted: 13 Jan 2019, 10:43
by Kulle
Thanks for the clue.
Even with this new Porteus version, the error is present.
Very interesting (!) is this site:
http://www.troubleshooters.com/linux/so ... ooting.htm
It says:
"I love Linux, but at certain times I curse it. Like when I can't get the sound to play.
So many entangled components, so little guidance. This document introduces a few scripts
you can use to make Linux sound troubleshooting quicker and easier."

Troubleshooting and fixing seems to be very complicated.
That's why I use frequently on this computer now
Windows 7, because the sound works.
But:
I got very used to Porteus. It's a very good system.
I hope the bug can be fixed.

Re: No sound

Posted: 13 Jan 2019, 12:19
by ncmprhnsbl
is it actually alsa that needs restarting? not pulseaudio?
in the case of pulseaudio, restart could be done this way: ?i think?

Code: Select all

/etc/rc.d/rc.pulseaudio restart
there is a /etc/rc.d/rc.alsa but it's non-executable and has no start/stop/restart functions

Re: No sound

Posted: 13 Jan 2019, 12:48
by Kulle
Message from restart:
Stopping PulseAudio: /bin/killall pulseaudio
Starting system PulseAudio daemon: /usr/bin/pulseaudio --system --disallow-module-loading &

And Now:
Open any File xyz.mp3 with Audacious:
ALSA error: snd_pcm_open failed: Connection refused

ALSA does not work anymore!

Re: No sound

Posted: 13 Jan 2019, 15:53
by Blaze
I use this audio card ORICO SC2 and don't have any troubles with sound.

Integrated and external sound cards work perfectly:

Code: Select all

00:1f.3 Audio device: Intel Corporation Sunrise Point-H HD Audio (rev 31)
03:00.0 USB controller: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller (prog-if 30 [XHCI])

Re: No sound

Posted: 14 Jan 2019, 13:15
by Kulle
1.) About the problem "snd_pcm_open failed: Connection refused":
https://bbs.archlinux.org/viewtopic.php?id=127137
and
https://ubuntuforums.org/showthread.php?t=2344257
But that didn't help me though.

2.) reboot Porteus
run in terminal: audacious xyz.mp3
ERROR plugin-load.cc:72 [plugin_load]: /usr/lib64/audacious/Input/cdaudio-ng.so could not be loaded:
libcdio.so.16: cannot open shared object file: No such file or directory

Despite the error, the song was played!
But only 47 seconds (!) and no more tone after that.
But the command was still running,
termination only after CTRL c
Does anyone have an idea?

Re: No sound

Posted: 15 Jan 2019, 03:57
by ncmprhnsbl
you're using xfce, right?
after sound fails, can you open "Pulse Audio Volume Control" (Multimedia menu) and if so, does it, maybe, show anything useful?
if not, try from command line : pavucontrol to see what that says, if anything..

also, does this happen in "Always Fresh" ? (just in case one of your added modules or changes is the cause)

Re: No sound

Posted: 15 Jan 2019, 10:03
by Kulle
Many Thanks for the hints.
Pulse Audio Volume Control and pavucontrol: all ok
Reboot in "Always Fresh":
Song xyz.mp3 was played, but only for a short time !
and no more tone after that.
I believe that in this case
troubleshooting and fixing seems to be very, very (!) complicated.
We will never find the bug??