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 02-09-2016, 03:29 PM   #1
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
upgraded to 14.2 beta including pulseaudio: sound always muted


Hi,

apologies if this is a known topic, but I have searched the forum as well as other places without finding an asmwer. I used to have a perfectly working -current installation, using XFCE. After the latest upgrade (14.2 beta, which also washed pulseaudio onto my shore) my sound is gone. ALSA sound is always muted. If I unmute it, someone (maybe the "pulseaudio server"?) mutes it back.

some probably irrelevant tidbits:

Code:
ps -Al | grep pulse
1 S  1000  1785     1  0  61   0 - 229661 SyS_pp ?       00:01:35 pulseaudio
# pamixer --get-volume
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
100
# pamixer -u
No protocol specified
xcb_connection_has_error() returned true
What can i do?
 
Old 02-09-2016, 04:03 PM   #2
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
Do you have an .asoundrc or /etc/asound.conf with alsa configs? Try to remove those.
 
Old 02-09-2016, 04:15 PM   #3
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
I seem to have only the default /etc/alsa.conf from alsa-lib-1.1.0-x86_64-2. no .asoundrc...
 
Old 02-09-2016, 05:17 PM   #4
af7567
Member
 
Registered: Nov 2012
Posts: 293

Rep: Reputation: 106Reputation: 106
Are your /etc/rc.d/rc.pulseaudio or /etc/rc.d/rc.alsa files executable? They probably don't want to be.

Your /etc/asound.conf should set the default pcm and ctl to be pulse so that alsa programs still work (this is the Slackware default now).
Code:
$ cat /etc/asound.conf
# ALSA system-wide config file
# By default, redirect to PulseAudio:
pcm.!default {
    type pulse
    # If defaults.namehint.showall is set to off in alsa.conf, then this is
    # necessary to make this pcm show up in the list returned by
    # snd_device_name_hint or aplay -L
    hint.description "Default Audio Device"
}
ctl.!default {
    type pulse
}
I was having problems with mixer settings after the switch to pulse and I found out it was my own fault because I had /etc/rc.d/rc.pulseaudio executable and it was being run every startup. Pulse seems to work better if you let it autospawn using your user account instead of at system start.
 
Old 02-09-2016, 06:16 PM   #5
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
yeah, the /etc/asound.conf is the same. rc.pulseaudio is chmod 644, rc.alsa is chmod 755. I'll change it to 644.

There is something else i found in the syslog:

Code:
Feb 10 00:52:28 xxx pulseaudio[10316]: [pulseaudio] client-conf-x11.c: xcb_connection_has_error() returned true
Feb 10 00:52:28 xxx pulseaudio[10319]: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Feb 10 00:52:28 xxx pulseaudio[10319]: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Feb 10 00:52:28 xxx pulseaudio[10319]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files
 
Old 02-10-2016, 09:51 AM   #6
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
Try disabling pulseaudio altogether, I bet alsa alone will still work...
 
1 members found this post helpful.
Old 02-10-2016, 02:19 PM   #7
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by orbea View Post
Try disabling pulseaudio altogether, I bet alsa alone will still work...
Thank you heaps.That advice gave me my sound back. ^^

For reference, this is what i did:

Code:
removepkg pulseaudio
removepkg pulseaudio-compat32
removepkg xfce4-pulseaudio-plugin
When using slackpkg, add those packages to the blacklist. Finally, set your /etc/asound.conf or .asoundrc back to sanity:

Code:
pcm.!default {
	type hw
	card 0
}

ctl.!default {
	type hw           
	card 0
}
or any other advanced ALSA configuration you find in the ALSA tutorials. Sound will promptly return. You won't even have to reboot, re-logon or sacrifice a small mammal, as is the custom with other popular desktop operating systems.

I won't set this thread to "SOLVED" yet as this is not a solution of the problem but an evasion...
 
1 members found this post helpful.
Old 02-11-2016, 12:48 PM   #8
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
You can just have an empty asoundrc so that it doesn't get overwritten next time alsalib is updated, alsa will pick likely working defaults on its own.
 
Old 02-11-2016, 01:04 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,514

Rep: Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481Reputation: 8481
Also, removing the pulseaudio package is going to break a dozen or so other packages that depend on the pulse libraries.

You'll notice this once you finally reboot. If you take a look with this:
Code:
lsof | grep pulse
... you'll see that the removed libraries are still in use, for now.

Any deactivation of PulseAudio should be achieved through configuration changes. Leave the package installed.
 
2 members found this post helpful.
Old 02-11-2016, 05:54 PM   #10
ryanpcmcquen
Member
 
Registered: Apr 2013
Distribution: DistroWanderer
Posts: 381

Rep: Reputation: Disabled
In XFCE, you should start the xfce4-pulseaudio-plugin (you can script that part out if you wish, example: https://github.com/ryanpcmcquen/linu.../.xfceSetup.sh).

On top of that, you're using a devilish ALSA syntax, it will work in most cases, but often ends up subtlety breaking sound. I spent two years happily trodding along with this `/etc/asound.conf` before running into trouble:

Code:
pcm.!default {
  type hw
  card 1
}

ctl.!default {
  type hw           
  card 1
}
This actually stopped XCOM: Enemy Unknown from launching, apparently an ALSA configuration can do that. Yep, that's really a thing.

So I did a ton of research on ALSA configuration, turns out using '!' actually overwrites the stuff in `/usr/share/alsa/alsa.conf`, which can lead to strange happenings. The current Slackware `/etc/asound.conf` breaks the microphones on two of my laptops. I would suggest we switch over to this syntax:

Code:
pcm.default pulse
ctl.default pulse
Or for those who are too stubborn to use PulseAudio, you really should use this script to generate an `/etc/asound.conf` that uses a better syntax:

https://github.com/ryanpcmcquen/linu...nalogOutput.sh
 
Old 02-11-2016, 09:04 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,359

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
did you unmute using the keyboard button? I was having something similar and turned out to be the mute button on the keyboard.
 
Old 02-12-2016, 02:55 AM   #12
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by volkerdi View Post
Also, removing the pulseaudio package is going to break a dozen or so other packages that depend on the pulse libraries.

You'll notice this once you finally reboot. If you take a look with this:
Code:
lsof | grep pulse
... you'll see that the removed libraries are still in use, for now.

Any deactivation of PulseAudio should be achieved through configuration changes. Leave the package installed.
Yeah, I've noticed that by now:

Code:
$ gwenview
gwenview: error while loading shared libraries: libpulse.so.0: cannot open shared object file: No such file or directory
So I'll reinstall the packages and continue to tinker until I get sound back. Alternatively I've looked at the pulseaudio lib using nm, but it has too many entry points to create a quick fake.

Quote:
Originally Posted by ryanpcmcquen View Post
In XFCE, you should start the xfce4-pulseaudio-plugin (you can script that part out if you wish, example: https://github.com/ryanpcmcquen/linu.../.xfceSetup.sh).
Thanks, I'll look into that. But why doesn't it work out of the box? Why does it work for other people?

Quote:
Originally Posted by ryanpcmcquen View Post
Or for those who are too stubborn to use PulseAudio,
That is not me. I don't care as long as I have a desktop system with sound out of the box, preferrably easy-to-use. Hope that's not asking too much.

Quote:
Originally Posted by colorpurple21859 View Post
did you unmute using the keyboard button? I was having something similar and turned out to be the mute button on the keyboard.
Thanks, I haven't hit any keyboard buttons, but I might try.
 
Old 02-12-2016, 03:05 AM   #13
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
ok quick update: I've reinstalled the libraries, unmuted pulse in the mixer and suddenly it worked. I noticed, that while the XFCE mixer window is open, the device is muted after 30 to 60 seconds. This is different from before, and does not happen when the mixer window is closed.

So in all likelihood the problem is solved through the re-install. I'll observe it for a little while before marking the thread as solved.

Last edited by Martinus2u; 02-12-2016 at 03:25 AM.
 
Old 02-12-2016, 07:15 AM   #14
jostber
Member
 
Registered: Jul 2001
Location: Skien, Norway
Distribution: Slackware Current 64-bit
Posts: 543

Rep: Reputation: 178Reputation: 178
Unmute your sound and run 'sudo alsactl store'. Does that help?
 
Old 02-20-2016, 08:07 AM   #15
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Original Poster
Rep: Reputation: 119Reputation: 119
Sigh. Pulseaudio worked for a while, but after the last suspend/resume cycle it is gone again.

I tried variations of starting/stopping the daemon (both rc.pulseaudio as root and pulseaudio as desktop user), but the pulseaudio device is not even shown in alsamixer. It's all weird.


Any ideas?

Last edited by Martinus2u; 02-20-2016 at 08:19 AM.
 
  


Reply



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
PulseAudio added to Slackware 14.2 beta 1 jeremy Linux - News 1 01-13-2016 12:45 PM
Gnome and Pulseaudio - Some applications start with volume muted anon112 Linux - Software 0 05-12-2013 07:45 PM
Winecfg crashes on sound tab with Pulseaudio and no 'sounddrivers' without pulseaudio William (Dthdealer) Linux - Software 5 06-13-2010 07:30 AM
Muted Sound tronayne Slackware 8 05-28-2007 02:51 PM
KMix muted, sound still happens? scm86 Linux - Newbie 1 09-15-2005 01:01 AM

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

All times are GMT -5. The time now is 08:05 PM.

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