LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2020, 11:38 AM   #16
Geist
Member
 
Registered: Jul 2013
Distribution: Slackware 14 / current
Posts: 442

Rep: Reputation: 196Reputation: 196

After working with quite a bit of third party software (as in, not in the Slackware repository), I have found that just keeping PA on the system less of a hassle.
I run JACK with ALSA and use apulse to divert the few applications out there that have a conniption when it's not there. I don't like it, but keeping up with the pure alsa flavor and everything having -DUSE_PULSEAUDIO seemingly as the default now, I chose the path of less struggle.

Being more militant is better to banish the scourge, but, for the time being, I don't care enough. This might change, it's still awful in my eyes (or ears) after all.
 
Old 01-14-2020, 12:39 PM   #17
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Didier. Do you consider noise or power consumption as "someone just don't like"? Having PulseAudio somehow fucks up everything so that I cannot just use ALSA. I have chosen default card instead of piping to Pulse by default and I can see it in alsamixer. But sometimg other than moc cannot play sounds. These problems do not appear if you simply do not have Pulse.

I marked the thread 'solved' too early. I haven't figured out how to go pure alsa still.

Last edited by unInstance; 01-14-2020 at 12:40 PM.
 
1 members found this post helpful.
Old 01-14-2020, 12:45 PM   #18
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
We don't need to get into a battle on the benefits or downsides of pulseaudio. The fact is, Pat provides the pure-alsa-system, so some users are bound to use it, and we don't need to get into philosophical debates on pulseaudio every time it comes up.

Quote:
Originally Posted by unInstance View Post
What do you mean it does not work? What is the problem you're running into? We've had a few forum members use this to get their system pulse free, so if something recent has changed and made those instructions ineffective, we should try and address it.
 
1 members found this post helpful.
Old 01-14-2020, 01:46 PM   #19
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
We don't need to get into a battle on the benefits or downsides of pulseaudio. The fact is, Pat provides the pure-alsa-system, so some users are bound to use it, and we don't need to get into philosophical debates on pulseaudio every time it comes up.



What do you mean it does not work? What is the problem you're running into? We've had a few forum members use this to get their system pulse free, so if something recent has changed and made those instructions ineffective, we should try and address it.
I follower all the linked guide;
mocp tells
Code:
Running the server...
Trying ALSA...
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!
I fixed it by selecting PCH as a default card instead of HDMI
Code:
# /etc/asound.conf
pcm.!default {
    type hw
    card 1
}

ctl.!default {
    type hw
    card 1
}
mpv tells
Code:
mpv: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
I do not know how to fix this.
Firefox doesn't play sounds too.

EDIT: I rebuilt mpv and it works, but what to do with firefox?

Last edited by unInstance; 01-14-2020 at 01:52 PM.
 
Old 01-14-2020, 02:01 PM   #20
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by unInstance View Post
I follower all the linked guide;
mocp tells
Code:
Running the server...
Trying ALSA...
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!
I fixed it by selecting PCH as a default card instead of HDMI
Code:
# /etc/asound.conf
pcm.!default {
    type hw
    card 1
}

ctl.!default {
    type hw
    card 1
}
This is pretty standard with any alsa setup and is one of the things that pulse makes easier... selecting which audio device you want it to output. Alsa users have had to make those modifications for years if the system defaulted to a different audio device than what you use. This has nothing to do with pulse.

Quote:
Originally Posted by unInstance View Post
mpv tells
Code:
mpv: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
I do not know how to fix this.

EDIT: I rebuilt mpv and it works
As you found, any 3rd-party applications you have that were built on a system with pulse will need to be recompiled. Pat should have all the system packages rebuilt in that folder, so you'd only need to worry about 3rd-party stuff.

Quote:
Originally Posted by unInstance View Post
Firefox doesn't play sounds too.

but what to do with firefox? Just reinstall with slackpkg?
If you're using the system firefox (the one provided by Slackware), it should have alsa support out of the box, but if you download the prebuilt binary from Mozilla, they do not have alsa support and rely on pulseaudio.

If you are using the system firefox, many times you need to install additional software to get firefox to work properly with certain types of media, but it's been long enough, I don't know what that is. Can you see if open formats are able to play in Firefox? This may point to whether your problem is related to missing codecs or a system issue. This page has both closed (mp4) and open (ogg and webm) formats available. Try seeing if any of those work.

http://camendesign.com/code/video_fo...body/test.html
 
1 members found this post helpful.
Old 01-14-2020, 02:10 PM   #21
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
If you are using the system firefox, many times you need to install additional software to get firefox to work properly with certain types of media, but it's been long enough, I don't know what that is. Can you see if open formats are able to play in Firefox? This may point to whether your problem is related to missing codecs or a system issue. This page has both closed (mp4) and open (ogg and webm) formats available. Try seeing if any of those work.

http://camendesign.com/code/video_fo...body/test.html
Sound does not play in either of these formats. I use out of the box firefox.

Last edited by unInstance; 01-14-2020 at 02:14 PM.
 
Old 01-14-2020, 02:30 PM   #22
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
If you are using the system firefox, many times you need to install additional software to get firefox to work properly with certain types of media, but it's been long enough, I don't know what that is. Can you see if open formats are able to play in Firefox? This may point to whether your problem is related to missing codecs or a system issue. This page has both closed (mp4) and open (ogg and webm) formats available. Try seeing if any of those work.

http://camendesign.com/code/video_fo...body/test.html
One more question is how do I make slackpkg install _alsa versions of software because now "slackpkg upgrade-all" wants to non alsa versions of ffmeg, mplayer and so on...
 
1 members found this post helpful.
Old 01-14-2020, 03:15 PM   #23
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by unInstance View Post
Sound does not play in either of these formats. I use out of the box firefox.
Do you get any errors if you run firefox through the commandline?

Quote:
Originally Posted by unInstance View Post
One more question is how do I make slackpkg install _alsa versions of software because now "slackpkg upgrade-all" wants to non alsa versions of ffmeg, mplayer and so on...
You'll want edit your /etc/slackpkg/slackpkg.conf file to set the priority. Move "extra" so it's before %PKGMAIN instead of after.
 
1 members found this post helpful.
Old 01-14-2020, 03:24 PM   #24
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Do you get any errors if you run firefox through the commandline?
Code:
[Child 27074, MediaPlayback #3] WARNING: 7f6317ff02c0 OpenCubeb() failed to init cubeb: file /tmp/firefox-68.4.1/dom/media/AudioStream.cpp, line 382
[Child 27074, MediaPlayback #3] WARNING: Decoder=7f632355f400 [OnMediaSinkAudioError]: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3639
[Child 27074, MediaPlayback #3] WARNING: Decoder=7f632355f400 Decode error: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b) - OnMediaSinkAudioError: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3307
[Child 27074, MediaPlayback #1] WARNING: Decoder=7f632355f400 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3307
[Child 27074, MediaPlayback #2] WARNING: 7f631b0313d0 OpenCubeb() failed to init cubeb: file /tmp/firefox-68.4.1/dom/media/AudioStream.cpp, line 382
[Child 27074, MediaPlayback #2] WARNING: Decoder=7f63227c3c00 [OnMediaSinkAudioError]: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3639
[Child 27074, MediaPlayback #2] WARNING: Decoder=7f63227c3c00 Decode error: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b) - OnMediaSinkAudioError: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3307
[Child 27074, MediaPlayback #1] WARNING: 7f631b0b93d0 OpenCubeb() failed to init cubeb: file /tmp/firefox-68.4.1/dom/media/AudioStream.cpp, line 382
[Child 27074, MediaPlayback #1] WARNING: Decoder=7f6322961a00 [OnMediaSinkAudioError]: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3639
[Child 27074, MediaPlayback #1] WARNING: Decoder=7f6322961a00 Decode error: NS_ERROR_DOM_MEDIA_MEDIASINK_ERR (0x806e000b) - OnMediaSinkAudioError: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3307
[Child 27074, MediaPlayback #1] WARNING: Decoder=7f6322961a00 Decode error: NS_ERROR_DOM_MEDIA_FATAL_ERR (0x806e0005) - RefPtr<mozilla::MozPromise<RefPtr<mozilla::MediaTrackDemuxer::SamplesHolder>, mozilla::MediaResult, true> > mozilla::MediaSourceTrackDemuxer::DoGetSamples(int32_t): manager is detached.: file /tmp/firefox-68.4.1/dom/media/MediaDecoderStateMachine.cpp, line 3307
 
Old 01-14-2020, 03:55 PM   #25
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Reading through some bug reports online, it looks like it might be a limitation of Firefox's sandboxing not working well with alsa (alsa support in firefox is not maintained anymore), and if you disable the sandbox, it might fix the audio.

Try running:

Code:
MOZ_DISABLE_CONTENT_SANDBOX=1 firefox
 
Old 01-14-2020, 04:03 PM   #26
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Reading through some bug reports online, it looks like it might be a limitation of Firefox's sandboxing not working well with alsa (alsa support in firefox is not maintained anymore), and if you disable the sandbox, it might fix the audio.

Try running:

Code:
MOZ_DISABLE_CONTENT_SANDBOX=1 firefox
Doesn't work. Same errors.
 
Old 01-14-2020, 04:38 PM   #27
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Unfortunately, this is beyond my knowledge. I don't use Firefox, I'm not on -current, and I don't run a pure-alsa system. Hopefully someone with a bit more knowledge/experience can pop in and provide some guidance.
 
1 members found this post helpful.
Old 01-14-2020, 04:48 PM   #28
unInstance
Member
 
Registered: Jan 2020
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bassmadrigal View Post
Unfortunately, this is beyond my knowledge. I don't use Firefox, I'm not on -current, and I don't run a pure-alsa system. Hopefully someone with a bit more knowledge/experience can pop in and provide some guidance.
Thanks a lot. I don't need sound in web browser. I am for static web.
Instead of YouTube web player for instance I use mpv + youtube-dl; it gives me good caching, reduces battery/resources consumption, fine keyboard control and I can get rid of horrible codecs such as VP9.
 
Old 01-14-2020, 08:11 PM   #29
enorbet
Senior Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 4,776

Rep: Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425Reputation: 4425
Quote:
Originally Posted by bassmadrigal View Post
We don't need to get into a battle on the benefits or downsides of pulseaudio. The fact is, Pat provides the pure-alsa-system, so some users are bound to use it, and we don't need to get into philosophical debates on pulseaudio every time it comes up.
I think we do when someone assumes anyone who doesn't choose to just cave in is just being silly, lazy, or both. Didier points out the latency issue can be mitigated, but ignores that mitigation is nowhere near to "equal to" the low latency of Pure Alsa. That's perfectly understandable for those to whom such things don't matter, but it is still myopic to imagine everyone should be happy with what they think is "good enough" when better alternatives are available.

Quote:
Originally Posted by bassmadrigal View Post
What do you mean it does not work? What is the problem you're running into? We've had a few forum members use this to get their system pulse free, so if something recent has changed and made those instructions ineffective, we should try and address it.
Patrick's script works a treat on -Current. It does not on 14.2 and I suspect there may be some later issues in the future because Pulse, as I mentioned, makes no room for "optional", for the competition. Who knows how long we can get compatible versions of several important and fundamental services and libraries that work with just ALSA. Now I haven't used OSS in many years but iirc, especially since the kernel still has OSS code in it, switching between ALSA and OSS, at least back then, was not a major overhaul. Pulse does not play nice with others. It demands compliance. Period. Removing Pulse from 14.2 was a royal PITA and I have to accept a few things in KDE don't work because those versions conflict with what's in 14.2, so the whole process was primarily trial and error.

In fact that seems to be part of it's appeal to those like Mozilla devs who are grateful they don't have to even consider audio anymore, even if currently that only means having one or two checkboxes checked, at no penalty to anything else. There is the Firefox-fuckPA project for a downloadable blob or if you have a complete Rust install and a few other libraries apparently you can compile Firefox with those two checkboxes checked... OR for a little while longer anyway ESR versions work.

Anyway when 15, or whatever the next Official Release will be called, comes out I will start out as Pure ALSA but I do suspect at some point I will have to resort to having Pulse and using something like apulse, which although that's an extra step, I will gladly do rather than deal with the penalties of Pulse. It is, after all, a whole other additional software layer to what needs to be as simple and direct as possible.
 
2 members found this post helpful.
Old 01-14-2020, 09:29 PM   #30
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
To each their own, but I found using ALSA to deal with sound sinks that come and go to be such a horrendous pain in the ass that I stopped trying to deal with it. After all, there's a reason that ESD and aRts came into being.
 
  


Reply

Tags
alsa, moc stable, pulse audio


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Get Sound from Pulseaudio -- PulseAudio Will Not Start JasonC10203 Linux - Software 4 11-28-2016 11:18 PM
Bypass pulseaudio problems and crashes when you don't have pulseaudio. Rinndalir Linux - Software 1 08-31-2016 01:00 PM
[SOLVED] How can I remove pulseaudio and use alsa MooseMagnet Linux - Software 5 05-12-2014 10:12 AM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration