General audio issues - pulseaudio permissions

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :)

Moderator: Moderators

krznv
Young Hen
Posts: 25
Joined: Tue Sep 22, 2020 20:42

Re: General audio issues

Post by krznv » Fri Sep 25, 2020 16:10

Stupot wrote:
Fri Sep 25, 2020 15:57
I think maybe we should try and follow this guide:

https://wiki.gentoo.org/wiki/PulseAudio#Troubleshooting

starting by lauching alsamixer and seeing what it shows.

If you run into something that seems like a problem and the guide isn't clear on what to do, describe the problem here.
For starters there is no ~/.pulse* file or folder

Running
sudo start-pulseaudio-x11
returns

Code: Select all

Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Running
sudo pulseaudio -k
returns

Code: Select all

E: [pulseaudio] main.c: Failed to kill daemon: No such process

Stupot
Sagely Hen
Posts: 1815
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: General audio issues

Post by Stupot » Fri Sep 25, 2020 16:44

Code: Select all

equo search media-sound/pulseaudio

Code: Select all

cat /etc/pulse/client.conf

krznv
Young Hen
Posts: 25
Joined: Tue Sep 22, 2020 20:42

Re: General audio issues

Post by krznv » Fri Sep 25, 2020 17:18

Stupot wrote:
Fri Sep 25, 2020 16:44

Code: Select all

cat /etc/pulse/client.conf

Code: Select all

; default-sink =
; default-source =
; default-server =
; default-dbus-server =

; autospawn = yes
; daemon-binary = /usr/bin/pulseaudio
; extra-arguments = --log-target=syslog

; cookie-file =

; enable-shm = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB

; auto-connect-localhost = no
; auto-connect-display = no

Stupot
Sagely Hen
Posts: 1815
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: General audio issues

Post by Stupot » Fri Sep 25, 2020 17:42

What does alsamixer show?

Code: Select all

alsamixer

krznv
Young Hen
Posts: 25
Joined: Tue Sep 22, 2020 20:42

Re: General audio issues

Post by krznv » Fri Sep 25, 2020 20:05

Stupot wrote:
Fri Sep 25, 2020 17:42
What does alsamixer show?

Code: Select all

alsamixer
Seems okay

https://postimg.cc/cvNGyWX5

Stupot
Sagely Hen
Posts: 1815
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: General audio issues

Post by Stupot » Fri Sep 25, 2020 22:02

Interesting. Mine looks very different. https://postimg.cc/62HM9knZ

I can hit F6 and get ao screen that looks like yours, but my default has pulse audio and nothing else.

If I try to run pulse audio I get:

Code: Select all

[email protected] ~ $ pulseaudio 
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
Something about pulse audio isn't working correctly. If alsa is working, that's at least a good starting point. Maybe someone with better pulse knowledge can help out with all the information you've provided thus far.

krznv
Young Hen
Posts: 25
Joined: Tue Sep 22, 2020 20:42

Re: General audio issues

Post by krznv » Sun Sep 27, 2020 18:37

Stupot wrote:
Fri Sep 25, 2020 22:02
If I try to run pulse audio I get:

Code: Select all

[email protected] ~ $ pulseaudio 
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.
I get
E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied

Stupot
Sagely Hen
Posts: 1815
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: General audio issues

Post by Stupot » Mon Sep 28, 2020 21:52

Aha, that seems to be something others have run into on other distros.

The first thing I would try is:

Code: Select all

ls ~/.config/pulse/
If there are files there do this to delete those files:

Code: Select all

rm -rf ~/.config/pulse/
then restart and see if pulse can recreate things.

If that doesn't fix it (or there weren't file to delete) this seems to be another common fix:

Code: Select all

sudo chown -R $USER:$USER $HOME/
Not sure why it's needed, but I found that from https://askubuntu.com/questions/338382/ ... ion-denied and https://ubuntuforums.org/showthread.php?t=2356215 and https://stackoverflow.com/questions/504 ... nied-issue

krznv
Young Hen
Posts: 25
Joined: Tue Sep 22, 2020 20:42

Re: General audio issues

Post by krznv » Tue Sep 29, 2020 5:16

The files were deleted and recreated okay.

Then I ran the chown and restarted and running pulseaudio still reports the same error.

Stupot
Sagely Hen
Posts: 1815
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: General audio issues

Post by Stupot » Tue Sep 29, 2020 16:08

Ok, let's double check that you're in the audio group.

As your normal user (not as root):

Code: Select all

groups | grep audio
If for some reason you aren't in the audio group,

Code: Select all

 sudo usermod -a -G audio $USER
then double check it worked with another

Code: Select all

groups | grep audio

Post Reply