Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: mrbrklyn on 24 July 2018, 01:56:43

Title: [SOLVED] getting rid of pulse audio
Post by: mrbrklyn on 24 July 2018, 01:56:43
How can I get rid of pulse audio and still keep firefox?
Title: Re: getting rid of pulse audio
Post by: Chris Cromer on 24 July 2018, 05:23:33
How can I get rid of pulse audio and still keep firefox?
Downgrade to firefox version 51 or older... They removed alsa support in version 52. Other than that there is nothing you can do.
Title: Re: getting rid of pulse audio
Post by: SGOrava on 24 July 2018, 09:38:31
You can start using another browser.

You can try program 'apulse', which somehow worked when i tried it long time ago.

You can try some firefox fork or clone.
Title: Re: getting rid of pulse audio
Post by: toxygen on 24 July 2018, 13:47:46
download firefox PKGBUILD

add

  --enable-alsa
  --enable-jack

you can probably also

--disable-pulseaudio  

build PKGBUILD, take a break for a few hours

hopefully all goes well and you have a new firefox package with no pulseaudio, but considering mozilla's current trend, it may not build
Title: Re: getting rid of pulse audio
Post by: SGOrava on 24 July 2018, 16:02:44
add

  --enable-alsa
  --enable-jack
I read they completely removed ALSA support from code in newer versions, you might be able to do things like this with Firefox 52 but i doubt it would work with current release

Well, i have no idea about JACK support, so good luck
Title: Re: getting rid of pulse audio
Post by: Dudemanguy on 24 July 2018, 18:59:36
As another possible alternative, you could opt to pipe all sound and video to mpv. There's different ways you can do this (with just a keybind that opens up a url in clipboard, with the "open with" addon, etc.) It should work 99% of the time at least.
Title: Re: getting rid of pulse audio
Post by: konimex on 24 July 2018, 19:02:27
ALSA-only support has been removed completely from Firefox. There is sndio support, but you need to patch it manually to enable it in Linux.
Also, shouldn't this thread be moved here (https://forum.artixlinux.org/index.php/board,9.0.html)?
Title: Re: getting rid of pulse audio
Post by: tilt on 24 July 2018, 19:48:16
To avoid pulseaudio I use (only for streaming) waterfox instead of firefox.
As for youtube and similar, I open these links with vlc ;)

If someone interested, here's the wontfix bug in firefox bug tracker:
https://bugzilla.mozilla.org/show_bug.cgi?id=1345661

Bye!
Title: Re: getting rid of pulse audio
Post by: physkets on 25 July 2018, 08:36:12
You could try using the Windows FF executable through Wine.
Title: Re: getting rid of pulse audio
Post by: fungalnet on 25 July 2018, 11:58:21
To avoid pulseaudio I use (only for streaming) waterfox instead of firefox.
As for youtube and similar, I open these links with vlc ;)

If someone interested, here's the wontfix bug in firefox bug tracker:
https://bugzilla.mozilla.org/show_bug.cgi?id=1345661

Bye!

I switched to waterfox when palemoon went to 52+ and also issued a warning that NoScript is breaking some webpages and the browser.  Although I never experienced such breakage as claimed it was an indication of how palemoon thinks.
Waterfox has been the fastest fully functional browser I have ever used.  FF-esr has moved up to be obsolete too.
One drawback with wf  was trying to build it from source, something wasn't right, it took for ever and kept downloading till it filled the partition (restricted /tmp but not for so many GB it used).  Waterfox-bin from Aur works fine or go directly to the site.

Title: Re: getting rid of pulse audio
Post by: ####### on 25 July 2018, 16:46:40
I read that Void Linux built their Firefox package with Alsa support since it was removed from the official Mozilla binaries, AFAIK they still do this. Pale Moon does not need pulse audio and works with Alsa, this includes the latest 28 series unstable releases and the binaries direct from the Pale Moon site.
Title: Re: getting rid of pulse audio
Post by: handy on 26 July 2018, 08:21:34
I wrote a wiki page at Manjaro about this, there is a simple fix:

https://wiki.manjaro.org/index.php?title=How_to_use_ALSA_sound_with_applications_that_depend_on_Pulseaudio

It worked when I was using Firefox. I haven't tested recently though.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 31 July 2018, 03:57:13
It has spread now to mplayer..
Title: Re: getting rid of pulse audio
Post by: Dudemanguy on 31 July 2018, 15:56:14
mplayer (as well as mpv for that matter) certainly supports ALSA (http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html#AUDIO%20OUTPUT%20DRIVERS%20(MPLAYER%20ONLY)). Maybe the defaults changed or something.
Title: Re: getting rid of pulse audio
Post by: Sero on 01 August 2018, 18:14:04
This has been an issue for Gentoo users who (used to) have a choice regarding compile flags, and whether to use oss/alsa/pulse/jack or whatever they wanted, but the truth is, this has  to be handled by Mozilla, it's not a distro thing, maybe we should all start seriously bugging the Mozilla Foundation about it... There are enough people who don't want pulse, for both philosophical and practical reasons (resampling, for one). There are people saying v57 could be compiled against ALSA again, but it's probably not high up on their priorities list.

A lot of times, for youtube and other *tube sites, I use youtube-dl, on firefox you can install the 'open with' extension and point it to mpv or smplayer, it will automagically invoke youtube-dl in the background and start playing it outside the browser. It's dirty but it works.

On a side note, I was looking at an alternative to Android (sailfish) ... and it looked interesting, but it's using systemd+pulse. What the actual F#(&^$(#&$....
Title: Re: getting rid of pulse audio
Post by: mandog on 01 August 2018, 23:43:47
for both philosophical and practical reasons (resampling, for one).
Resampling is a red herring pulse is fine you can set it to what you want mine is 24x96.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 02 August 2018, 01:29:32
mplayer (as well as mpv for that matter) certainly supports ALSA (http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html#AUDIO%20OUTPUT%20DRIVERS%20(MPLAYER%20ONLY)). Maybe the defaults changed or something.


that is no mplayer available now which doesn't depend on libpulse.  Whether you can compile it by hand is not a certainty at this point.  Not the ones in the AUR or on the mplayer website.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 02 August 2018, 01:33:48
Quote

   Anthony Jones (:kentuckyfriedtakahe, :k17e)
   
Comment 11 • a year ago

(In reply to Forest from comment #0)
> I upgraded Firefox to version 52 on an ALSA-only linux system.

What is preventing you from installing Pulse Audio?


These guys are such bastards.  I'm sick of them.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 02 August 2018, 01:45:17
download firefox PKGBUILD

add

  --enable-alsa
  --enable-jack

you can probably also

--disable-pulseaudio  

build PKGBUILD, take a break for a few hours

hopefully all goes well and you have a new firefox package with no pulseaudio, but considering mozilla's current trend, it may not build

Where do you put those entires?  In the PKGBUILD file obviously.  I haven't built firefox by course in a decade.  A question now is how do I list all the applicatioms that depend on pulseuadio or libpulse with pacman?
Title: Re: getting rid of pulse audio
Post by: ####### on 02 August 2018, 04:54:32
These guys are such bastards.  I'm sick of them.
Then why do development work on Firefox to add ALSA support? So it used to be a good, popular browser. The 32 bit version became a sick joke that wouldn't even run on 32 bit hardware. Stuff changes, sometimes you've got to change with it. So you want to encourage more people to use FF? Why, when there are plenty of other friendly ALSA supporting projects more worthy of assistance? If there are shortcomings with them then try to fix those issues instead. Sometimes the best revenge is to NOT correct others mistakes, but leave them to rot in their ignorance. Help your friends and not your enemies, I reckon.
(But that is only my comment on this  :D )
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 02 August 2018, 06:56:44
So you want to encourage more people to use FF?

Honestly, I am not certain what you are speking here of, but I couldn't care less how many people use FF or read the FF.  I just want it to not use pulseaudio, and I don't want applications that cater to that development...

If you need to learn why, then you would be best to  google it.  It is a big topic that comes down to, it is a big fat unecessary piece of software that gets between alsa and firefox with zero benifit.   There is no alsa or pulse.  There is no such choice.  ALSA is Linux kernel sound system and it doesn't need pulse.
Title: Re: getting rid of pulse audio
Post by: SGOrava on 02 August 2018, 10:57:40
ALSA support was removed from FF because noone maintained the code and adding new features was harder than using PA.

Why are you so fixated on FF ?
New FF is not olf FF, most of the useful addons are not working or are crippled, so why ?

To PA:
- yes it is from creator of systemd
- yes it is using more CPU to do the job
- even alsa is resampling audio
- based on what i read on internet it is much easier to add support for PA compared to ALSA

PS: I left FireFox because it is not FireFox which i know and love anymore.
Title: Re: getting rid of pulse audio
Post by: Dudemanguy on 02 August 2018, 15:41:26

that is no mplayer available now which doesn't depend on libpulse.  Whether you can compile it by hand is not a certainty at this point.  Not the ones in the AUR or on the mplayer website.


Oh if you don't even want libpulse, you're going to have a bad time with that. ffmpeg (both in Artix and Arch) has a libpulse dependency. You'd have to build ffmpeg yourself (as well as anything that depends on it) if you really want to get rid of anything vaguely pulseaudio related.
Title: Re: getting rid of pulse audio
Post by: Sero on 02 August 2018, 22:08:51
PS: I left FireFox because it is not FireFox which i know and love anymore.

I'd love to hear what you've tried and like/dislike regarding addons, community, scripts on other browsers, I'm still on firefox because I consider is more secure, better supported and with a much larger community than most other browsers.
Title: Re: getting rid of pulse audio
Post by: fungalnet on 03 August 2018, 00:30:10
like @mrbrklyn said earlier, a large community means nothing, look at the windows and android communities and the general apathy that trickles down to the majority of linux users.  Look at what happened with speck and linux recently.  After all the research I have done, artix, antix, and void are about the only distributions I was able to find that built 4.17 with speck disabled.  For the rest it is not an issue.

Security has become a large joke in recent years and the more you learn about it the more you understand there is no such thing.  But trusting anything from mozilla .inc anymore is asking for trouble.

I can't testify that waterfox is good or best, but for a fully functional browser that respects users and no-script is still functional, I think it is pretty damn good.
Title: Re: getting rid of pulse audio
Post by: Sero on 03 August 2018, 01:59:27
Well, I agree that security-wise, the community size doesn't matter, but it's the (lack of) willingness of others to develop addons for the (maybe obscure) browser that might get you in the end. I'm using some user prefs.js from ghacks and a few addons that I haven't seen replicated on lesser-known browsers.

So it's not my love for firefox that keeps me on it, it's the product of the good will of the community, and the size of the userbase has a lot to do with it, it being the motivation for the addon devs.

I thought it was gonna die when they fully changed the addons api and a lot of stuff had to be rewritten, but it just goes to show how important firefox still is, and probably will be for a long time.

I run it with firejail and sometimes virtual machines. Because I trust it.

Re: pulseaudio - I kind of like pavucontrol, and generally I don't fully mind pulseaudio, but it is on the list of things that bother me, I doubt removing it is very high on the majority's priority list.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 03 August 2018, 04:51:48
Oh if you don't even want libpulse, you're going to have a bad time with that. ffmpeg (both in Artix and Arch) has a libpulse dependency. You'd have to build ffmpeg yourself (as well as anything that depends on it) if you really want to get rid of anything vaguely pulseaudio related.


Because the interdependencies on useless crap software to solve obsure edge cases and f**k up perfectly working systems is now being force fed up and down the food chain.  Yes, I want to rip the whole damn pottering peice of garbage out of the system.  I am sick of insecure, unpredictable, OS wrapper garbage that makes huge security holes.   I really fail to understadn what the point is of ripping out systemd if you are going to leave all these other security holes like pulse and policykit in place.  The whole design is fundementally broken and is a mirror of a windows like mindset.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 03 August 2018, 05:02:11
ALSA support was removed from FF because noone maintained the code and adding new features was harder than using PA.

There is no sound on Linux without ALSA.

Quote
- based on what i read on internet it is much easier to add support for PA compared to ALSA

That is WRONG. I've written aps with ALSA and it is straight forward and SIMPLE.  All sound on Linux goes through ALSA.  Everything else is a wrapper for ALSA.

You don't remember the days before ALSA.  You had to purchase OSS from a private vendor to get creativelabs cards to work.

It is only easier for lazy coders who are uninformed of the facts and want to make a product for windows that also works on GNU systems.  That doesn't help with BSD though, or MACs.

This is not a war based on facts, it is a war based on propaganda, and it is for the heart and soul of the GNU/Linux OS and who will control it.  I don't want to run a system based on potterings designs.  They suck.  Artix might well be one of my last attempts to continue with Linux.  But they remove the tumor but the cancer has metastasized all over the patient.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 03 August 2018, 05:08:16
Oh if you don't even want libpulse, you're going to have a bad time with that. ffmpeg (both in Artix and Arch) has a libpulse dependency. You'd have to build ffmpeg yourself (as well as anything that depends on it) if you really want to get rid of anything vaguely pulseaudio related.


:(

I know, but I'm glad you articulated it clearly.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 03 August 2018, 05:10:43
https://www.linuxjournal.com/article/6735

FWIW

https://soundprogramming.net/programming/alsa-tutorial-1-initialization/
Title: Re: getting rid of pulse audio
Post by: paolomi on 03 August 2018, 16:02:01
A question now is how do I list all the applicatioms that depend on pulseuadio or libpulse with pacman?

Code: [Select]
whoneeds pulseaudio
(you need pkgtools and pacman-contrib)

However, if pulseaudio is installed because of some deps, don't worry! It's easier to type:
Code: [Select]
# chmod 644 /usr/bin/pulseaudio
and reboot the system. Then "apulse firefox"  works fine.  ;)

We must create the club:

"no pot stuff on my system"

LOL
Title: Re: getting rid of pulse audio
Post by: Dudemanguy on 03 August 2018, 16:45:57

Because the interdependencies on useless crap software to solve obsure edge cases and f**k up perfectly working systems is now being force fed up and down the food chain.  Yes, I want to rip the whole damn pottering peice of garbage out of the system.  I am sick of insecure, unpredictable, OS wrapper garbage that makes huge security holes.   I really fail to understadn what the point is of ripping out systemd if you are going to leave all these other security holes like pulse and policykit in place.  The whole design is fundementally broken and is a mirror of a windows like mindset.

Hmm, well looking at it further, I think the only pulseaudio dependency you'll pull in via mplayer is ffmpeg pulling in libpulse. It seems like all --enable-libpulse does for ffmpeg is enable pulseaudio (https://www.ffmpeg.org/ffmpeg-devices.html#pulse) support. So I suppose you could always just attempt your own workaround by just force removing libpulse after you install ffmpeg. I don't think you'll run into any issues unless you try to use pulseaudio (which obviously you don't want to). You'll probably run into some pacman nagging about missing dependencies though so perhaps making your own pkgbuilds would be preferred. At any rate, it seems like a lot less work than I originally thought.
Title: Re: getting rid of pulse audio
Post by: SGOrava on 03 August 2018, 19:42:34
I'd love to hear what you've tried and like/dislike regarding addons, community, scripts on other browsers, I'm still on firefox because I consider is more secure, better supported and with a much larger community than most other browsers.
I like old FF design and functions so i was using Classic Theme Restorer.
Afetr updating to FF57 i lost this option and almost every change i wanted to make had to be done with CSS files
which is very inconvenient and very time consuming, and i was also unable to adjust some things.
I realized i don't need that many addons, because half of addons i used in FF were to adjust its behaviour or to add removed functions.
I want to have statusbar always displayed, because it is easier to see links url in it compared to the floating version.
I was also able to use statusbar as place for addons.
Generaly statusbar has smaller height than main toolab so addon icons are smaller.
It also allowed me to designate place for group of addons with similar functions (left corner, right corner, main toolbar)
I also miss session manager, it is nice tool for guy like me who is using tabs as form of bookmark in combination with TreeStyleTab.

Alos while using FF i had to tweak it (change some preference, install some addon...) almost at each new version.

Now i switched to Falkon because it has my favourite statusbar!
Title: Re: getting rid of pulse audio
Post by: SGOrava on 03 August 2018, 19:58:24
A question now is how do I list all the applicatioms that depend on pulseuadio or libpulse with pacman?
Code: [Select]
whoneeds pulseaudio
(you need pkgtools and pacman-contrib)
I would go with pactree, which is in "pacman-contrib"
Code: [Select]
pactree -r libpulse
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 03 August 2018, 21:08:05
Code: [Select]
[ruben@flatbush ~]$ pactree -r libpulse
libpulse
├─chromium
├─ffmpeg
│ ├─chromium
│ ├─firefox
│ ├─mplayer
│ ├─mpv
│ │ └─smplayer
│ └─vlc
├─firefox
├─phonon-qt5
│ ├─knotifications
│ │ └─kwallet
│ │   ├─kio
│ │   │ ├─kdeclarative
│ │   │ │ └─kcmutils
│ │   │ │   └─kaccounts-integration
│ │   │ │     └─purpose
│ │   │ │       └─okular
│ │   │ └─kparts
│ │   │   └─okular
│ │   └─signon-kwallet-extension
│ │     └─kaccounts-integration
│ └─phonon-qt5-gstreamer
│   └─phonon-qt5
└─qt5-multimedia
  └─qt5-speech
    ├─knotifications
    └─ktextwidgets
      └─kxmlgui
        └─kbookmarks
          └─kio


Like okular needs a sound library ...
Title: Re: getting rid of pulse audio
Post by: SGOrava on 03 August 2018, 21:13:10
Code: [Select]
[ruben@flatbush ~]$ pactree -r libpulse
libpulse
├─chromium
├─ffmpeg
│ ├─chromium
│ ├─firefox
│ ├─mplayer
│ ├─mpv
│ │ └─smplayer
│ └─vlc
├─firefox
├─phonon-qt5
│ ├─knotifications
│ │ └─kwallet
│ │   ├─kio
│ │   │ ├─kdeclarative
│ │   │ │ └─kcmutils
│ │   │ │   └─kaccounts-integration
│ │   │ │     └─purpose
│ │   │ │       └─okular
│ │   │ └─kparts
│ │   │   └─okular
│ │   └─signon-kwallet-extension
│ │     └─kaccounts-integration
│ └─phonon-qt5-gstreamer
│   └─phonon-qt5
└─qt5-multimedia
  └─qt5-speech
    ├─knotifications
    └─ktextwidgets
      └─kxmlgui
        └─kbookmarks
          └─kio


Like okular needs a sound library ...

indirectly, yes.
in long run it depends on "phonon-qt5" which require libpulse

You can set the depth with "-d 1" and it should show only packages which directly depend on it.
Code: [Select]
pactree -r -d 1 libpulse
Title: Re: getting rid of pulse audio
Post by: Sero on 04 August 2018, 06:05:02
Not to be a smartass, but if you REALLY, REALLY, REALLY want to purge pulse systemwide, then Gentoo is the distro for you... you simply disable it globally and emerge the new useflag packages, and presto, no pulse, no systemd ...

all available useflags:

https://www.gentoo.org/support/use-flags/
(notice pulseaudio and systemd, and a whole bunch of others)

emerge world with update, deep and newuse options

It does automagically (re)build each package that depends on pulse without it - IF the package supports it. Third party repositories might add extra specific patches.
Also see:
https://bugs.gentoo.org/show_bug.cgi?id=654156
Title: Re: getting rid of pulse audio
Post by: Sero on 04 August 2018, 06:07:26
Not to be a smartass, but if you REALLY, REALLY, REALLY want to purge pulse systemwide, then Gentoo is the distro for you... you simply disable it globally and emerge the new useflag packages, and presto, no pulse, no systemd ...

all available useflags:

https://www.gentoo.org/support/use-flags/
(notice pulseaudio and systemd, and a whole bunch of others)

emerge world with update, deep and newuse options

It does automagically (re)build each package that depends on pulse without it - IF the package supports it. Third party repositories might add extra specific patches.
Also see:
https://bugs.gentoo.org/show_bug.cgi?id=654156

But it's not beginner friendly and you'd better have a recent i5/i7/xeon, lots of ram and an ssd to make compiling less of a timesink.

Edit: sorry for replying to my own post, I was trying to edit...
Title: Re: getting rid of pulse audio
Post by: nous on 04 August 2018, 23:08:25
Well, myself was a Gentoo user up until 2004. Then, it fried my laptop emerging the world...
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 05 August 2018, 03:43:34
Well, myself was a Gentoo user up until 2004. Then, it fried my laptop emerging the world...


I was a slackware users until 2000.  Then I was impressed with SuSE's vast number of packages (especially gamess).  I first ran into GENTOO when the NYLXS secretary, Paul Robert Marino, fell in love with it and we used it a number of times at tech night meetings, testing it out and the new LDAP and PAM and SASL services. 
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 05 August 2018, 03:49:44
If the software packages continue to creep systemd and the freedesktop crap into their projects, (X, mplayer, firefox, etc) gentoo will not be a way out either.  They will force us into FreeBSD, which is likely my next move if I can't live with systemd in Linux.

There is no point of making a ton of wrappers for systemd hooks when the design itself is broken.  It is an immitation of the MS design and I left that behind decades ago.

Title: Re: getting rid of pulse audio
Post by: paolomi on 05 August 2018, 10:04:15
They will force us into FreeBSD, which is likely my next move if I can't live with systemd in Linux.
FreeBSD? NetBSD? OpenBSD? DragonFly BSD!!!
Title: Re: getting rid of pulse audio
Post by: phoenix_king_rus on 05 August 2018, 10:32:46
FreeBSD? NetBSD? OpenBSD? DragonFly BSD!!!

Plan 9
Title: Re: getting rid of pulse audio
Post by: Sero on 05 August 2018, 11:00:39
BeOS!

ReactOS!

Or just ... leave pulseaudio be.

My main OS is currently the default Arch. It works.
Title: Re: getting rid of pulse audio
Post by: fungalnet on 05 August 2018, 14:38:48
On those systems you mention would FF work without pulseaudio?
What is the problem we are addressing?
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 05 August 2018, 22:38:24
BeOS!

ReactOS!

Or just ... leave pulseaudio be.

My main OS is currently the default Arch. It works.

No - that will never be a rational response to bloatware
Title: Re: getting rid of pulse audio
Post by: handy on 06 August 2018, 01:40:01
The only way  that you'll ever be satisfied with a distro is if you make it yourself mrbrklyn.

You should head over here: http://www.linuxfromscratch.org & make a distro to suit yourself.
Title: Re: getting rid of pulse audio
Post by: Sero on 06 August 2018, 06:20:27
In Mother Russia, pulseaudio gets rid of you!

                                      - yours truly,
                                       Len Potterinsky
Title: Re: getting rid of pulse audio
Post by: fungalnet on 06 August 2018, 20:05:49
Except for kolibri and a gentoo clone, alt rosa and calculate that seem as the most popular russian distros are using systemd.

From the land of mathematicians one would expect something better.
But what do you mean pulseaudio gets rid of you?
Title: Re: getting rid of pulse audio
Post by: phoenix_king_rus on 06 August 2018, 20:50:14
Except for kolibri and a gentoo clone, alt rosa and calculate that seem as the most popular russian distros are using systemd.

From the land of mathematicians one would expect something better.
But what do you mean pulseaudio gets rid of you?
Russian distro doesn't mean that it is popular in Russia (except for alt probably. Though there are BolgenOS and Astra which are not very popular but are sort of memes). It seems most of desktop users run either ubuntu or mint and most of servers use debian or centos. And there are fanatics of systemd, pulseaudio and even snap
Title: Re: getting rid of pulse audio
Post by: Sero on 07 August 2018, 08:52:24
But what do you mean pulseaudio gets rid of you?

https://en.wikipedia.org/wiki/Russian_reversal

In America, you get rid of pulseaudio...
Title: Re: getting rid of pulse audio
Post by: paolomi on 07 August 2018, 17:29:45
On those systems you mention would FF work without pulseaudio?
What is the problem we are addressing?
Intelligent question! I don't know the answer, but I've just found this interesting repo:
https://gitlab.com/Monsterovich/firefox-fuckpa

The name of this fork is amazing!  ;D
Title: Re: getting rid of pulse audio
Post by: ####### on 08 August 2018, 22:06:19
You might want to link that build to this library:
https://github.com/Daniel-Abrecht/fuck_systemd (https://github.com/Daniel-Abrecht/fuck_systemd)
(Caution to the unwary:  the do evil option will drop a fork bomb and lock out the user if systemd is found on the system)
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 22 September 2018, 20:51:11
As another possible alternative, you could opt to pipe all sound and video to mpv. There's different ways you can do this (with just a keybind that opens up a url in clipboard, with the "open with" addon, etc.) It should work 99% of the time at least.


Do you have a resource on how to do with.  he keep changing the mimetype and pluggin api's and I finally gave up on keeping track.

One thing though, is it is increasingly harder to just find a stream link and plug it into a video player.  They are doing their damnedest to track you and tie you down.
Title: Re: getting rid of pulse audio
Post by: gripped on 23 September 2018, 15:39:25
Does firefox now support alsa again ?
Seems to for me as its been playing sound fine with no pulseaudio package installed.

As an experiment I just temporarily force removed libpulse and firefox still played sound.

My main reason for getting rid of pulse was it creates problems having sound on a second X display, if you don't first login through the text console of the VT you put the second X display on you get no sound.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 23 September 2018, 21:01:15
Does firefox now support alsa again ?
Seems to for me as its been playing sound fine with no pulseaudio package installed.

As an experiment I just temporarily force removed libpulse and firefox still played sound.

My main reason for getting rid of pulse was it creates problems having sound on a second X display, if you don't first login through the text console of the VT you put the second X display on you get no sound.


That is a rather exotic use case.
Title: Re: getting rid of pulse audio
Post by: gripped on 23 September 2018, 21:20:30

Exotic: strikingly, excitingly, or mysteriously different or unusual

I'm not sure it quite qualifies as any of the above.
I have triple monitors which I prefer to be treated as separate screens for desktop usage.
For games which support it, eg GTAV, I need a unified display to have a resolution of 5760 x 1080.

Rather than have to keep changing the settings every time I play I start a 2nd X on display :1, with a unified xinerama screen which just runs the game. Once I end the game I am returned to the original X.

systemd, the elogind part of it as well, makes this difficult (which is how I came across Artix in the 1st place) and pulseaudio also makes you jump through hoops to get working sound on the 2nd X.

Without elogind and pulse audio it's fairly simple.
Title: Re: getting rid of pulse audio
Post by: MilkCow on 24 September 2018, 02:24:58
Although systemd crept into xorg server, gentoo users can simply disable systemd globally in every package.

Gentoo developers also forked udev as eudev. On gentoo linux, if you build firefox, firefox supports ALSA.

Don't worry too much. My gentoo system is free from systemd and pulseaudio and elogind although I couldn't break free from dbus. Even BSD desktops can't break free from dbus, either.

If you want non-trivial customizations or want to avoid RedHat desktop softwares as much as possible, Gentoo is the only linux distribution for you.
Title: Re: getting rid of pulse audio
Post by: Sero on 24 September 2018, 06:04:12
Confirming, I just built a Gentoo desktop with no systemd, no pulseaudio, with working xorg/firefox.

No, most people would not want to do that (myself included).
Title: Re: getting rid of pulse audio
Post by: ####### on 24 September 2018, 16:07:48
I tried Calculate Linux, but even simple actions with emerge like checking the package database and installing / uninstalling binary packages used 100% of one cpu core throughout. I was glad I didn't build Gentoo from source to find that out.
Title: Re: getting rid of pulse audio
Post by: nous on 24 September 2018, 18:47:44
Confirming, I just built a Gentoo desktop with no systemd, no pulseaudio, with working xorg/firefox.
No, most people would not want to do that (myself included).

A fried my laptop back in 2004 emerging the world... that's why I moved to Arch. Back in the days of i686, optimizations made a big difference (https://ubuntuforums.org/showthread.php?t=26706&p=1202195#post1202195); not so sure about now.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 24 September 2018, 20:00:26
Although systemd crept into xorg server, gentoo users can simply disable systemd globally in every package.

Gentoo developers also forked udev as eudev. On gentoo linux, if you build firefox, firefox supports ALSA.

Don't worry too much. My gentoo system is free from systemd and pulseaudio and elogind although I couldn't break free from dbus. Even BSD desktops can't break free from dbus, either.

If you want non-trivial customizations or want to avoid RedHat desktop softwares as much as possible, Gentoo is the only linux distribution for you.


I've killed dbus.  I use wmaker and don't need that junk. I can use mount and can read dmesg.  The biggest problem is what I need for CUPS.
Title: Re: getting rid of pulse audio
Post by: Dudemanguy on 24 September 2018, 21:06:02

One thing though, is it is increasingly harder to just find a stream link and plug it into a video player.  They are doing their damnedest to track you and tie you down.

Yeah that's the biggest problem. Video in browsers is one of the crappier things about the modern web. I'm not sure what your normal habits are, but I only ever watch video on youtube (on occasion) which thankfully can be easily grabbed with youtube-dl and sent to mpv. Youtube-dl works on some other sites as well, but in general I just don't listen to any audio or watch any video in browser.
Title: Re: getting rid of pulse audio
Post by: gripped on 24 September 2018, 22:53:14
This has been an issue for Gentoo users who (used to) have a choice regarding compile flags, and whether to use oss/alsa/pulse/jack or whatever they wanted, but the truth is, this has  to be handled by Mozilla, it's not a distro thing, maybe we should all start seriously bugging the Mozilla Foundation about it... There are enough people who don't want pulse, for both philosophical and practical reasons (resampling, for one). There are people saying v57 could be compiled against ALSA again, but it's probably not high up on their priorities list.

A lot of times, for youtube and other *tube sites, I use youtube-dl, on firefox you can install the 'open with' extension and point it to mpv or smplayer, it will automagically invoke youtube-dl in the background and start playing it outside the browser. It's dirty but it works.

On a side note, I was looking at an alternative to Android (sailfish) ... and it looked interesting, but it's using systemd+pulse. What the actual F#(&^$(#&$....


I have no pulseaudio package installed. I do have libpulse. The sound in Firefox works (62.0.2). The sound in Waterfox works (56.2.3).

The arch Firefox package is built with an --enable-alsa flag.

It is worrying that this alsa support may be removed in the future but at present it works fine. Pulseaudio is an optional dependency
I must be missing something ?
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 25 September 2018, 03:00:22

I have no pulseaudio package installed. I do have libpulse.

As was already discussed, that is also unwanted.
Title: Re: getting rid of pulse audio
Post by: gripped on 25 September 2018, 11:49:46
As was already discussed, that is also unwanted.
The reason I posted is there seems to be an acceptance that Firefox does not have sound without pulseaudio but it does , by default , on Arch and therefore Artix.

From what I can gather the only change made at the time it was widely reported that Alsa support had been removed from Firefox was that Alsa support was no longer compiled in by default. Leaving it up to the distros to enable Alsa support which Arch did.
Whether or not Alsa support will actually be removed in the future time will tell. I hope not.

The main Firefox binary doesn't actually link libpulse and as such Firefox will run, and produce sound with alsa, with libpulse removed,

I just checked and Firefox will fail to compile with no libpulse installed but you can disable pulse in the configure options and then it compiles fine.

However many other programs do link to libpulse and therefore fail to start once it is removed.
The list of binaries linked to libpulse on my system is
Spoiler (click to show/hide)

So for me, as I like the KDE / Plasma Desktop, it would be a lot of work to attempt to rebuild all of this to remove the libpulse requirement when in effect it is doing nothing. No Pulseaudio server, no Pulseaudio.

I do accept that you may have your own, entirely valid, reasons for wanting to purge your system of all traces of pulse and I would imagine it's entirely possible.

As others have suggested Gentoo would allow this. Personally when I tried Gentoo a long time ago it got very old , very quickly, constantly re-compiling everything.

Or you could just make your own custom PKGBUILD's to remove Pulseaudio where possible. And if it proves problematic with some programs then resort to alternatives.
Thankfully you won't have an issue with Firefox at present
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 26 September 2018, 01:43:25
The reason I posted is there seems to be an acceptance that Firefox does not have sound without pulseaudio but it does , by default , on Arch and therefore Artix.

From what I can gather the only change made at the time it was widely reported that Alsa support had been removed from Firefox was that Alsa support was no longer compiled in by default. Leaving it up to the distros to enable Alsa support which Arch did.
Whether or not Alsa support will actually be removed in the future time will tell. I hope not.

The main Firefox binary doesn't actually link libpulse and as such Firefox will run, and produce sound with alsa, with libpulse removed,


It doesn't which is why this was posted a few months back.  I switched to palemoon at the time.  The sound stopped working.  If it works now, I can't really tell you.
Title: Re: getting rid of pulse audio
Post by: gripped on 26 September 2018, 07:23:09
It doesn't which is why this was posted a few months back.  I switched to palemoon at the time.  The sound stopped working.  If it works now, I can't really tell you.

Mate i'm not asking you to tell me. I was offering some feedback. To you and anyone else who reads this thread that sound is working on Firefox, through Alsa, on Arch or Artix. That is all :)
Title: Re: getting rid of pulse audio
Post by: recluce on 26 September 2018, 19:41:05
If you build from source, the following configuration options regarding audio are available (from FreeBSD ports "make config"):
Code: [Select]
 │ │ [ ] ALSA              ALSA audio architecture support                    │ │  
│ │ [ ] JACK              JACK audio server support                          │ │ 
│ │ [ ] PULSEAUDIO        PulseAudio sound server support                    │ │ 
│ │ [ ] SNDIO             Sndio audio support 

As I don't know how, could somebody perhaps build Firefox with ALSA support and put it on AUR, to support the pulseaudio-less people here?

BTW, sndio works great in Firefox.

[EDIT by an admin: code tags]
Title: Re: getting rid of pulse audio
Post by: gripped on 26 September 2018, 19:59:20
If you build from source, the following configuration options regarding audio are available (from FreeBSD ports "make config"):

                               │ │ [ ] ALSA              ALSA audio architecture support                    │ │ 
                               │ │ [ ] JACK              JACK audio server support                          │ │ 
                               │ │ [ ] PULSEAUDIO        PulseAudio sound server support                    │ │ 
                               │ │ [ ] SNDIO             Sndio audio support 

As I don't know how, could somebody perhaps build Firefox with ALSA support and put it on AUR, to support the pulseaudio-less people here?

BTW, sndio works great in Firefox.


It works by default.

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/firefox

Line 80
Code: [Select]
ac_add_options --enable-alsa
Title: Re: getting rid of pulse audio
Post by: Sero on 27 September 2018, 06:05:04
Biggest problem with the internet in 2018: https://en.wikipedia.org/wiki/Reading_comprehension
Title: Re: getting rid of pulse audio
Post by: recluce on 28 September 2018, 23:19:49
Biggest problem with the internet in 2018: https://en.wikipedia.org/wiki/Reading_comprehension

No, that would be useless troll posts like yours.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 01 October 2018, 09:08:58
Biggest problem with the internet in 2018: https://en.wikipedia.org/wiki/Reading_comprehension

nothing is more destructive to communication than snide or hostile comments.
Title: Re: getting rid of pulse audio
Post by: mrbrklyn on 01 October 2018, 09:15:17
firefox still comes up asking for pulse audio in a bar accross the top.  Palemoon's sound works. 
Title: Re: getting rid of pulse audio
Post by: gripped on 05 October 2018, 00:27:49
firefox still comes up asking for pulse audio in a bar accross the top.  Palemoon's sound works. 
Weird. It simply works for me.  I don't use it much except for playing Golf Clash on facebook :)
For some reason Chrome and derivatives have trouble registering mouse clicks in that game.
Title: Re: getting rid of pulse audio
Post by: fungalnet on 07 October 2018, 22:28:38
I think I mentioned it before, I installed apulse, created .asoundrc in my ~/ and I have not had any sound problems since.
apulse is not pulseaudio, it is alsa.
Title: Re: getting rid of pulse audio
Post by: Artemis3 on 12 November 2018, 11:13:46
I like old FF design and functions so i was using Classic Theme Restorer.
I'm using Waterfox to this very day with that very addon. I have never used pulseaudio with Artix, but i have apulse just in case.
Title: Re: getting rid of pulse audio
Post by: strajder on 09 August 2020, 09:46:33
Sorry for necro, trying to remove pulseaudio but
Code: [Select]
$ pacman -R pulseaudio
complains that gnome-settings-daemon, paprefs, pulseaudio-alsa and pulseaudio-bluetooth depend on it. In return, gnome-bluetooth depends on pulseaudio-bluetooth. Is there a way to remove pulseaudio without having to recompile the entire GNOME from source?
Title: Re: getting rid of pulse audio
Post by: SGOrava on 09 August 2020, 17:00:24
one way is to force pacman to remove package without caring for deps.
If you do so you can get broken system (GNOME and such)

If you are brave enough, you can try:
Spoiler (click to show/hide)
Title: Re: getting rid of pulse audio
Post by: tintin on 10 August 2020, 08:50:24
How can I get rid of pulse audio and still keep firefox?
I am using Firefox without pulseaudio:
sudo pacman -Rsu pulseaudio
sudo pacman -S qastools

Code: [Select]
jp-artix:[jp]:~$ neofetch
                   '                      jp@jp-artix
                  'o'                     -----------
                 'ooo'                    OS: Artix Linux x86_64
                'ooxoo'                   Host: Aspire ES1-732 V1.18
               'ooxxxoo'                  Kernel: 5.7.12-artix1-1
              'oookkxxoo'                 Uptime: 3 hours, 24 mins
             'oiioxkkxxoo'                Packages: 1027 (pacman)
            ':;:iiiioxxxoo'               Shell: bash 5.0.17
               `'.;::ioxxoo'              Resolution: 1600x900
          '-.      `':;jiooo'             DE: Xfce
         'oooio-..     `'i:io'            WM: Xfwm4
        'ooooxxxxoio:,.   `'-;'           WM Theme: Daloa
       'ooooxxxxxkkxoooIi:-.  `'          Theme: Adwaita [GTK2], Artix-dark [GT
      'ooooxxxxxkkkkxoiiiiiji'            Icons: oxygen [GTK2], breeze [GTK3]
     'ooooxxxxxkxxoiiii:'`     .i'        Terminal: xfce4-terminal
    'ooooxxxxxoi:::'`       .;ioxo'       Terminal Font: Monospace 12
   'ooooxooi::'`         .:iiixkxxo'      CPU: Intel Pentium N4200 (4) @ 2.500G
  'ooooi:'`                `'';ioxxo'     GPU: Intel Celeron N3350/Pentium N420
 'i:'`                          '':io'    Memory: 2025MiB / 3758MiB
Title: Re: getting rid of pulse audio
Post by: charliebrownau on 11 August 2020, 07:48:35
How can I get rid of pulse audio and still keep firefox?

Gday
I am one week into using artix

My solution after removing Pulse audio
was to use LibreWolf instead of Default Firefox or Waterfox Classic

LibreWolf works in ALSA only mode
It also supports disable third party cookies
It also works with ublock origin + noscript

I got it from AUR (pamac)
https://librewolf-community.gitlab.io/
Title: Re: getting rid of pulse audio
Post by: alium on 11 August 2020, 08:39:59
Ohh, thanks for advice the librewolf, it's similar as ungoogled-chromium project. I will test it and probably i add this to our Artix's universe repo . 👍👍👍
Title: Re: getting rid of pulse audio
Post by: charliebrownau on 11 August 2020, 11:01:26
Ohh, thanks for advice the librewolf, it's similar as ungoogled-chromium project. I will test it and probably i add this to our Artix's universe repo . 👍👍👍


Awesome , cheers

Since Waterfox sold its soul to another corporate company I was looking for a new browser
I actually first got told about it on IRC
then came across this video on censortube - https://www.youtube.com/watch?v=6lnG-YD_qNQ
Gave it a go and very impressed

It has some copy paste issues with gab.com, but besides that, everything else works
and it doesnt need PULSE AUDIO
Title: Re: getting rid of pulse audio
Post by: charliebrownau on 11 August 2020, 11:06:04
At this point I would just recommend  Four browsers

*  LibreWolf  - https://librewolf-community.gitlab.io/
*  Iridium - https://iridiumbrowser.de/
* ungoogled chromium - https://github.com/Eloston/ungoogled-chromium
* Librefox over the top Tor Browser - https://github.com/intika/Librefox
https://www.ghacks.net/2018/12/24/librefox-firefox-with-privacy-enhancements/

I would get rid of
default tor
default chrome
default Firefox
default brave


Can we trust ANY corporation globally anymore ?
Title: Re: getting rid of pulse audio
Post by: jrballesteros05 on 11 August 2020, 11:12:35
Ohh, thanks for advice the librewolf, it's similar as ungoogled-chromium project. I will test it and probably i add this to our Artix's universe repo . 👍👍👍

If you add Librewolf to Universe I will be the first to install it. I will be appreciate. I don't want to install more packages from AUR.
Title: Re: getting rid of pulse audio
Post by: alium on 11 August 2020, 12:22:12
If you add Librewolf to Universe I will be the first to install it. I will be appreciate. I don't want to install more packages from AUR.
LibreWolf delivered to the universe, pulseaudio is optional
Title: Re: getting rid of pulse audio
Post by: strajder on 14 September 2020, 20:36:03
I am using Firefox without pulseaudio:
sudo pacman -Rsu pulseaudio
sudo pacman -S qastools

I just used
Code: [Select]
pacman -Rc pulseaudio
That got rid of gnome-control-center and gnome-tweaks, but since I already switched to dwm and suckless tools in the meantime, I don't mind as much anymore. For videos/Youtube I either use Vivaldi or
Code: [Select]
youtube-dl <url> -o - | mpv -
:)
Title: Re: getting rid of pulse audio
Post by: phoenix_king_rus on 14 September 2020, 21:02:41
For videos/Youtube I either use Vivaldi or
Code: [Select]
youtube-dl <url> -o - | mpv -
:)
mpv supports youtube-dl itself, no need for external call
Title: Re: getting rid of pulse audio
Post by: SGOrava on 14 September 2020, 21:04:46
mpv supports youtube-dl itself, no need for external call
That is a good point, but for the sake of Archive it is best to download and save the video before playing it.
Title: Re: getting rid of pulse audio
Post by: RIA77 on 16 May 2021, 23:41:49
This one works for me

Find your desired card with:

   cat /proc/asound/cards
and then create /etc/asound.conf with following:

   defaults.pcm.card 1
   defaults.ctl.card 1

https://www.alsa-project.org/main/index.php/Setting_the_default_device