LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-18-2016, 09:14 AM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
mplayer does not play without pulseaudio


I get rid off pulseaudio. Xine, auadacious,xmms, ogg123 and others players are satisfied with alsa only, but mplayer does not even try to read command line options (terrible), it simply complains about missing libpulseaudio and exits. Do I have to recompile it or simply use VLC instead ?
 
Old 08-18-2016, 09:30 AM   #2
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

You can disable pulseaudio via the configure option --disable-pulse.

--
SeB
 
Old 08-18-2016, 09:45 AM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,222

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by igadoter View Post
Do I have to recompile it or simply use VLC instead ?
Uhm, yes?

Recompiling it is the more foolproof option (you know it's just a matter of downloading its directory from source/xap/MPlayer and running the SlackBuild there, right?). If you test VLC and find out that it also works, then you can you that instead.

Don't know what else you wanted to hear.

Last edited by dugan; 08-18-2016 at 09:47 AM.
 
Old 08-18-2016, 12:52 PM   #4
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
If you already uninstalled pulseaudio, the applications that linked to it will no longer run. Since you already uninstalled pulseaudio, just download the slackbuilds from the source directory of Slackware and just recompile the applications, since they cannot link to pulseaudio during compilation now. If you want to be a bit more future proof, add switches like --disable-pulse to the configure command. It was easy removing pulseaudio on my end, and there aren't too many apps that needed a recompile.
 
Old 08-18-2016, 02:37 PM   #5
Mitt Green
Member
 
Registered: May 2014
Location: Europe
Posts: 199

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by igadoter View Post
Do I have to recompile it
Why not? I think everyone enjoys compiling things (only if it compiles and does it for not so long).
 
Old 08-18-2016, 03:47 PM   #6
STDOUBT
Member
 
Registered: May 2010
Location: Stumptown
Distribution: Slackware64
Posts: 583

Rep: Reputation: 242Reputation: 242Reputation: 242
Patrick made a statement not long ago that pulseaudio should be left installed.
It is possible to disable it through config changes.
http://www.linuxquestions.org/questi...6/#post5498703

For myself, all I did to get back on ALSA was the following:
1. remove /etc/asound.conf
2.adding following two lines to /etc/pulse/client.conf:
autospawn = no
daemon-binary = /bin/true

As for igadoter, have you simply tried making sure mplayer is using ALSA by
checking in /etc/mplayer/mplayer.conf for:
Code:
##################
# audio settings #
##################

# Specify default audio driver (see -ao help for a list).
#ao=oss
ao=alsa
?
 
2 members found this post helpful.
Old 08-18-2016, 04:17 PM   #7
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally Posted by STDOUBT View Post
Patrick made a statement not long ago that pulseaudio should be left installed.
Pulseaudio does not need to be installed if you recompile the affected applications.

Quote:
Originally Posted by STDOUBT
It is possible to disable it through config changes.
Yes, but did you actually try that in practice? It seems that pulseaudio aware applications (some have runtime detection), can trigger the daemon to start. The only real option seems to be running a cron job to kill it every few minutes. Not only that, but pulseaudio manipulated my volume controls* without my asking. It had to be purged to stop this insanity.

*Yes, someone might mention there is an option for that too, but still, it did manipulate my volume levels in strange ways based on system events. I don't consider this user friendly program to take control of the mixer programmatically, since the programmer thinks he knows what you want, then have hunt for some chance for a gazillion new unfriendly switches to turn off these things, when I never needed them in the first place. It never was this arcane to use sound before.
 
2 members found this post helpful.
Old 08-18-2016, 04:34 PM   #8
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 the3dfxdude View Post
Pulseaudio does not need to be installed if you recompile the affected applications.
This is true, but that can be a lot of work, and depending on the person's skill level, may seem quite difficult.

Quote:
Originally Posted by the3dfxdude View Post
Not only that, but pulseaudio manipulated my volume controls* without my asking. It had to be purged to stop this insanity.

*Yes, someone might mention there is an option for that too, but still, it did manipulate my volume levels in strange ways based on system events. I don't consider this user friendly program to take control of the mixer programmatically, since the programmer thinks he knows what you want, then have hunt for some chance for a gazillion new unfriendly switches to turn off these things, when I never needed them in the first place. It never was this arcane to use sound before.
pulseaudio just works™ for me. I've never had any issues from it. In the past, I've had issues with alsa that required some work to fix (wrong device as default, mixing up my channels (center channel was coming out the rear left speaker), audio card not supporting alsa's mute toggling -- so I had to instead make the volume zero in my script). I was able to fix them, but, so far, I've been problem free with pulseaudio (knock on wood). Sorry you've had trouble with it.
 
1 members found this post helpful.
Old 08-18-2016, 04:48 PM   #9
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by bassmadrigal View Post
pulseaudio just works™ for me. I've never had any issues from it. In the past, I've had issues with alsa that required some work to fix (wrong device as default, mixing up my channels (center channel was coming out the rear left speaker), audio card not supporting alsa's mute toggling -- so I had to instead make the volume zero in my script). I was able to fix them, but, so far, I've been problem free with pulseaudio (knock on wood). Sorry you've had trouble with it.
He's not the only one. I've had nothing but trouble with audio since this PoS made its way into Slackware. Trouble with audio in Firefox, trouble with audio not obeying the KDE volume control.
 
Old 08-18-2016, 04:56 PM   #10
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
My experience has been the same as bassmadrigal's, i.e., pulseaudio just works. Prior to it being added to Slackware I had to run a config file in /etc/modprobe.d/ to tell ALSA which audio card was to be use as the default. I also had low volume problems. With pulseaudio the config file is not needed and low volume is no longer an issue.
 
Old 08-18-2016, 05:05 PM   #11
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally Posted by bassmadrigal View Post
This is true, but that can be a lot of work, and depending on the person's skill level, may seem quite difficult.



pulseaudio just works™ for me. I've never had any issues from it. In the past, I've had issues with alsa that required some work to fix (wrong device as default, mixing up my channels (center channel was coming out the rear left speaker), audio card not supporting alsa's mute toggling -- so I had to instead make the volume zero in my script). I was able to fix them, but, so far, I've been problem free with pulseaudio (knock on wood). Sorry you've had trouble with it.
My post was not to discuss whether or not pulseaudio works for me. My point was that if you are removing pulseaudio, as what was asked, then editing /etc/pulse/client.conf and /etc/asound.conf does not fully disable it. Only removepkg and recompiling the packages you wish to keep is the only real solution to disable pulseaudio. This other discussion just muddies the topic (works for me / doesn't work for me). I don't care about whether alsa works for you.
 
Old 08-18-2016, 05:10 PM   #12
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 the3dfxdude View Post
My post was not to discuss whether or not pulseaudio works for me.
But that was half your post.

Quote:
Originally Posted by the3dfxdude View Post
Not only that, but pulseaudio manipulated my volume controls* without my asking. It had to be purged to stop this insanity.

*Yes, someone might mention there is an option for that too, but still, it did manipulate my volume levels in strange ways based on system events. I don't consider this user friendly program to take control of the mixer programmatically, since the programmer thinks he knows what you want, then have hunt for some chance for a gazillion new unfriendly switches to turn off these things, when I never needed them in the first place. It never was this arcane to use sound before.
Either way, the question has already been answered. mplayer will need to be recompiled to remove the pulseaudio dependencies. Any discussion beyond that (including what I posted) is off-topic.
 
1 members found this post helpful.
Old 08-18-2016, 05:33 PM   #13
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Quote:
Originally Posted by bassmadrigal View Post
But that was half your post.



Either way, the question has already been answered. mplayer will need to be recompiled to remove the pulseaudio dependencies. Any discussion beyond that (including what I posted) is off-topic.
Again, you misunderstood my second half of the post. I mentioned something I thought would be questioned (use another pulseaudio config setting to resolve volume issues), so I explained it further. But this wasn't an issue with running a system with pulseaudio on. The second half was a continuation of the first part explaining further that even when "disabled" pulseaudio still caused unwanted effects. The goal is to eliminate the effects entirely. I have not seen an actual solution without removing and recompiling.
 
Old 08-18-2016, 05:49 PM   #14
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
It is generally known why people remove pulseaudio, going into detail is unneeded and did nothing to further the discussion.

What would be nice is for the people who are having trouble with pulseaudio to create some posts for some diagnosing, so maybe those problems can get resolved rather than burying heads in the sand (by removing a major component that requires programs to be recompiled to work properly).

But, I digress, and I take leave of this topic to prevent me misunderstanding other posts and further veer this topic away from the subject.
 
1 members found this post helpful.
Old 08-18-2016, 06:02 PM   #15
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by bassmadrigal View Post
What would be nice is for the people who are having trouble with pulseaudio to create some posts for some diagnosing, so maybe those problems can get resolved rather than burying heads in the sand (by removing a major component that requires programs to be recompiled to work properly).
I have more pressing issues to resolve. As far as I'm concerned it's the developer of pulseaudio who should be spending valuable time debugging the PoS he imposed on us, not I.
 
  


Reply

Tags
mplayer, pulseaudio



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
Slack64 14.1 pulseaudio steam: most games dont play sound kik.lozev Slackware 8 03-02-2016 06:53 AM
Slackware Pulseaudio Html5 player freeze and fast play Drakeo Slackware 2 09-02-2015 04:25 AM
Don't play audio from two or more sources. Debian wheezy - pulseaudio gigam Linux - Desktop 1 08-13-2012 05:13 AM
Dvd's do not play in VLC, xine, mplayer, or movie play (Karmic) Nizzok Linux - Software 2 01-02-2010 06:12 AM
Configuring pulseaudio to play sound on both a linux and windows box bezz86 Linux - Software 1 08-05-2008 02:07 AM

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

All times are GMT -5. The time now is 04:08 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