SlackwareThis Forum is for the discussion of Slackware 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.
Hi, as many of you know I work for Vivaldi. Recently we updated the underlying Chromium that powers the browser to be based on 79 (in internal builds only). At this point I lost support for sound under Slackware. Although it continues to work fine in other distros such as Ubuntu.
I quickly tried a few other Chromium based browsers, that are 79 based (e.g. the Chrome beta) and see the same sound issue there. I also fired up a quick Slackware64 14.2 VM and can replicate. Has anyone else played with a Chromium 79 browser on Slackware64 and see this issue or have any ideas.
If you want to try for yourself you can quickly test by fetching the Chrome beta, unpacking it and running it in place, e.g.
Make a (temp) for for Chrome (beta)
Code:
mkdir /tmp/chrome-beta-sound-test
cd /tmp/chrome-beta-sound-test
Well… on the one hand that is encouraging. However I also find it super weird as I have tried 3 different installs of Slackware. My main work machine and two (VirtualBOX) VMs, the latest of which I just installed and it fails in all of them
Hmm… on further testing I have now noticed that there is a difference between my main machine and the latest VM I have setup. On my physical machine, neither Vivaldi (based on 79) nor Chrome 79 works. On the VM Vivaldi (based on 79) fails but Chrome 79 works. This further confuses me as we have done nothing special in this area that should account for such a difference. However, on the other hand it might explain why none of you see it. Perhaps you would have to test with a Vivaldi (based on 79) to see the issue.
I'll try and get a snapshot (test build) out soon with Vivaldi updated to Chromium 79 and perhaps ask you for another test.
Ok, I see that Opera Developer 66.0.3502.0 (based on Chromium 79) also has no sound either on neither my real machine nor VM. Perhaps one of you would mind testing this for me?
Ok, I see that Opera Developer 66.0.3502.0 (based on Chromium 79) also has no sound either on neither my real machine nor VM. Perhaps one of you would mind testing this for me?
ALSA lib dlmisc.c:283:(snd_dlobj_cache_get0) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_pcm_equal.so ((null): /usr/lib64/alsa-lib/libasound_module_pcm_equal.so: cannot open shared object file: Operation not permitted)
[26973:26973:1119/101626.969869:ERROR:alsa_util.cc(204)] PcmOpen: default,No such device or address
ALSA lib dlmisc.c:283:(snd_dlobj_cache_get0) Cannot open shared library /usr/lib64/alsa-lib/libasound_module_pcm_equal.so ((null): /usr/lib64/alsa-lib/libasound_module_pcm_equal.so: cannot open shared object file: Operation not permitted)
[26973:26973:1119/101626.970017:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,No such device or address
OK now I see it. If pulseaudio is not running yet, opera does not start it and gives
Code:
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM pulse
[18025:18025:1119/121913.944006:ERROR:alsa_util.cc(204)] PcmOpen: default,No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM pulse
[18025:18025:1119/121913.944101:ERROR:alsa_util.cc(204)] PcmOpen: plug:default,No such file or directory
and no sound. But if I have used e.g. firefox before with sound, firefox has started pulseaudio, and it's still running even without firefox using it. Then sound works in opera.
if I have used e.g. firefox before with sound, firefox has started pulseaudio, and it's still running even without firefox using it. Then sound works in opera.
I'm not sure if it's that. I was using Spotify before I fired up Opera and the sound in Opera didn't work.
Now I have tested Youtube with Vivaldi and Firefox, the sound in which worked, then Opera again, and still nothing.
EDIT: I can't help thinking that Opera is looking in the wrong place.
Last edited by Lysander666; 11-19-2019 at 04:33 AM.
Ok, I think I worked it out (or at least I am on the right track now). I still do not fully understand what it going on with my main machine but in the VM, things are more clear cut. 79 based Vivaldi (snapshot) and Opera (developer) cannot play sound, Chrome can. I subsequently realised that Chrome (beta) is version 79.0.3945.36 (note the 36), while Vivaldi is built on 79.0.3945.27 and Opera is even older 79.0.3945.16. I went through the changes from 27 to 36 and noticed this commit: A fix/change to the audio sandbox policy
Chromium's own sandbox prevents other processes it spawns from accessing certain things, so it is reasonably to conclude that if it is misconfigured then a Chromium based browser might not be able to use the files it needs to play sound. As a test I tried running with “--no-sandbox” and sure enough sound plays just fine, even on my main machine. I therefore suspect that once we (and Opera) upgrade to 79.0.3945.36 (or above) this issue will be resolved for most people and this will obviously happen long before we go final.
My only slight concern is that I think that the policy is still slightly off given my main machine cannot play sound even with Chrome beta 79.0.3945.36 but I have time to work that out and who knows perhaps another fix is in the pipeline. Anyway, thanks to all for testing.
Sorry to tell you this, but if pulseaudio is not running here yet, even google-chrome-beta-79.0.3945.36 does not start it here and there's no sound. If I play sound with firefox first, it starts pulseaudio, and chrome plays sound.
I use fvwm as window manager so I do not have anything playing sounds before I start chrome. Yesterday sound on chrome worked because I had played sounds earlier in firefox, so pulseaudio was already running.
EDIT: It's even more unpredictable. If I "killall pulseaudio" and then start chrome, it sometimes starts pulseaudio and sound works and sometimes pulseaudio does not start and there's no sound. But with "--no-sandbox" it seems to start pulseaudio every time and sound is ok.
Last edited by Petri Kaukasoina; 11-19-2019 at 05:30 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.