Tiny Core Linux
Tiny Core Extensions => TCE Corepure64 => Topic started by: thane on March 20, 2018, 05:10:33 AM
-
I've set up Corepure64 on an old laptop I recently acquired (Lenovo X201 ThinkPad). It generally works ok, but in Firefox (59.0.1) there is no sound.
According to Mozilla Support, this is a known issue in Firefox 58 and 59 on certain linux distros, which will be fixed in Firefox 60:
https://support.mozilla.org/en-US/kb/no-sound-firefox-59-linux
Since alsa speaker-test works and dbus is running (PulseAudio) I assume the Firefox issue is the culprit. However because this is the first time I'm trying Corepure64 (and on a box I hadn't used before) I'd like to double-check. Anybody else have similar issues?
-
Hello Thane, The simplest and most reliable resolution to the sound issue is install pavucontrol.tcz and setup pulseaudio as per the info file.
http://tinycorelinux.net/9.x/x86/tcz/pulseaudio.tcz.info
When setup correctly use pavucontrol to resolve the audio feed and volume
-
As far as I know, Firefox needs pulseaudio. Alsa alone, even when "speaker-test" works", can not enable sound in Firefox/Youtube.
Chromium Browser does not need the Pulseaudio sound server.
Sound is a bit tricky in Core. It works after installing alsa-config.tcz and alsa.tcz. But after reboot sound is gone. It has something to do with the asound.state file in /usr/local/etc/alsa
Is there somebody out there who can give me a hint?
-
Hi beerstein
... It works after installing alsa-config.tcz and alsa.tcz. But after reboot sound is gone. It has something to do with the asound.state file in /usr/local/etc/alsa ...
That's not a persistent file. Maybe you need to add usr/local/etc/alsa/asound.state to your /opt/filetool.lst file and run
a backup?
-
Mozilla developers went with Pulse-Audio as the only working interface between Firefox and the audio driver. There is no remaining access to the Alsa driver within firefox, however the code has not been removed in case of future development. There are ways overcome the situation without installing pulseaudio but they are unreliable.
So as it stands today, if you use firefox and want sound the most reliable and best resolution IMO is install and setup pulse-audio. Pulse-audio is a dependency of pavucontrol so installing pavucontrol will give you the best volume and audio stream control possible, though you'll have to setup pulse-audio as per the info file for flawless operation.
-
Thanks for the replies. I'll try installing pavucontrol. Also, I should have been more clear that I already have alsa, alsa-config, and PulseAudio installed and setup as suggested in their info files, which worked on a 32-bit box I use.
Thane
-
Hello Thane, are you sure that alsa-config.tcz is required? probably not needed.. alsa-config.tcz needs to be loaded first to be useful iirc
Even with pulse-audio installed and running, the source usually needs to be configured. This is easy to accomplish with pavucontrol :)
-
Hi Rich:
Thank you for your hint. I tried the following:
1. added to bootlocal:
for i in $(seq1 30; do alsactl restore && break || sleep 0.1; done
(I took that from the squeezelite HOW TO)
2. added to .filetool.lst
usr/local/etc/alsa/asound.state
var/lib/alsa
I created this /var/lib/alsa folder
After rebboot there is no immediate sound. After:
$ sudo alsactl restore
the alsamixer levels will be reset and I have sound.
Is there a way to avaid restoring everztime?
-
Hi beerstein
1. added to bootlocal:
for i in $(seq1 30; do alsactl restore && break || sleep 0.1; done
(I took that from the squeezelite HOW TO)
Shouldn't there be a closing parenthesis someplace in there? Maybe try moving the restore a little later in the boot process.
Remove that command from bootlocal.sh. Create a file in your .X.d directory containing:
for i in $(seq 1 10); do alsactl restore && break || sleep 1; done
-
To store alsa settings, I do 'sudo alsactl store' in a terminal (after setting everything in alsamixer).
To preserver the settings between boots, I added 'usr/local/etc/alsa/asound.state' to .filetool.lst, and '/usr/local/sbin/alsactl restore' to bootlocal.sh. No quotes of course!
Thane
-
thanks thane and rich.
I used thanes recommendation and now it works.
From Richs post I was not able to understand how to name the file he recommended to put into the .Xd directory?
-
Hi beerstein
From Richs post I was not able to understand how to name the file he recommended to put into the .Xd directory?
It doesn't matter what you call it. Once the GUI is up, the .xsession file in your home directory will open each file it finds
in .X,d and execute the command inside.