You are not logged in.
Hello fellas,
As you can tell from the title. I'm running KDE DE and pulseaudio is refusing to start and "No output or input device found" is what appears when I click on audio volume. Also trying to access pavucontrol gives me errors until I use sudo pulseaudio --start then sudo pavucontrol. Generally I have to add sudo before any pulseaudio command so that it works.
Audio itself is working and I can listen to anything. I can also adjust the volume from alsamixer command. but stuff like firefox or games that needs working pulseaudio are the reasons why I have to get pulseaudio working.
I also got told that I have to have a client.conf file inside /etc/pulse but it didn't exist so I manually created one with ; autospawn = yes line. Which didn't really help.
sudo pulseaudio -v
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 10.0
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 4bd140812581478a82fdeb427ae847fe.
I: [pulseaudio] main.c: Using runtime directory /root/.config/pulse/4bd140812581478a82fdeb427ae847fe-runtime.
I: [pulseaudio] main.c: Using state directory /root/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-10.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.Any help is appreciated!
Last edited by Erotaku (2017-07-10 15:14:45)
Offline
Don't start PA as root, it is not intended to work that way. It runs under current user privileges.
uname == latest pf-kernel
Offline
I don't think you fully read what I said. I can not get pulseaudio or anything related to work without root permission. I have no idea where the problem is stemming from. I hope someone can help though ![]()
Last edited by Erotaku (2017-07-08 21:42:40)
Offline
Erotaku
Are you in the audio group?
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
A user being in the audio group should not be necessary provided the login is local and the systemd session is valid.
@Erotaku please use code tags not quote tags for commands plus output.
I also got told that I have to have a client.conf file inside /etc/pulse but it didn't exist so I manually created one with ; autospawn = yes line. Which didn't really help.
The absence of /etc/pulse/client.conf is unusual.
What is the output of
$ cat /etc/pulse/client.conf
$ pacman -Qkk libpulse
$ systemctl status --user pulseaudio.serviceOffline
A user being in the audio group should not be necessary provided the login is local and the systemd session is valid.
@Erotaku please use code tags not quote tags for commands plus output.Erotaku wrote:I also got told that I have to have a client.conf file inside /etc/pulse but it didn't exist so I manually created one with ; autospawn = yes line. Which didn't really help.
The absence of /etc/pulse/client.conf is unusual.
What is the output of$ cat /etc/pulse/client.conf $ pacman -Qkk libpulse $ systemctl status --user pulseaudio.service
My apologies! I'm still very new to linux and this forum. I will correct it right away!
[erotaku@Otakami ~]$ cat /etc/pulse/client.conf
; autospawn = yes
[erotaku@Otakami ~]$ pacman -Qkk libpulse
backup file: libpulse: /etc/pulse/client.conf (Modification time mismatch)
backup file: libpulse: /etc/pulse/client.conf (Size mismatch)
libpulse: 87 total files, 0 altered files
[erotaku@Otakami ~]$ systemctl status --user pulseaudio.service
● pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; enabled; vendor preset: enabl
Active: failed (Result: exit-code) since Sun 2017-07-09 00:17:35 UTC; 1min 23s ago
Process: 760 ExecStart=/usr/bin/pulseaudio --daemonize=no (code=exited, status=1/FAILURE
Main PID: 760 (code=exited, status=1/FAILURE)
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Main process exited, code=exited
Jul 09 00:17:35 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Service hold-off time over, sche
Jul 09 00:17:35 Otakami systemd[634]: Stopped Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Start request repeated too quick
Jul 09 00:17:35 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'. Last edited by Erotaku (2017-07-08 22:28:16)
Offline
The output of the following please
$ journalctl --user --no-pager -b -u pulseaudio.serviceOffline
The output of the following please
$ journalctl --user --no-pager -b -u pulseaudio.service
Yes sir!
-- Logs begin at Thu 2017-07-06 02:52:49 UTC, end at Sun 2017-07-09 00:50:06 UTC. --
Jul 09 00:17:33 Otakami systemd[634]: Starting Sound Service...
Jul 09 00:17:33 Otakami systemd[634]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 00:17:33 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:33 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:33 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 00:17:33 Otakami systemd[634]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 00:17:33 Otakami systemd[634]: Stopped Sound Service.
Jul 09 00:17:33 Otakami systemd[634]: Starting Sound Service...
Jul 09 00:17:34 Otakami pulseaudio[665]: E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 00:17:34 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 00:17:34 Otakami systemd[634]: Stopped Sound Service.
Jul 09 00:17:34 Otakami systemd[634]: Starting Sound Service...
Jul 09 00:17:34 Otakami pulseaudio[693]: E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 00:17:34 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 00:17:34 Otakami systemd[634]: Stopped Sound Service.
Jul 09 00:17:34 Otakami systemd[634]: Starting Sound Service...
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 00:17:34 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:34 Otakami systemd[634]: pulseaudio.service: Failed with result 'protocol'.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 00:17:35 Otakami systemd[634]: Stopped Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: Starting Sound Service...
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Jul 09 00:17:35 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Service hold-off time over, scheduling restart.
Jul 09 00:17:35 Otakami systemd[634]: Stopped Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Start request repeated too quickly.
Jul 09 00:17:35 Otakami systemd[634]: Failed to start Sound Service.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Unit entered failed state.
Jul 09 00:17:35 Otakami systemd[634]: pulseaudio.service: Failed with result 'exit-code'. Offline
Erotaku
Have you mounted home?
Please check your fstab and permissions locally
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
Erotaku
Have you mounted home?
Please check your fstab and permissions locally
All my drives are mounted. Also I recently added a new UUID in fstab because I didn't have write permission on my ntfs SSD. Just added a new line and it fixed things for me wonderfully. Is that really related to pulseaudio?
Also my pulseaudio was the exactly the same before and after the fstab edit.
Offline
The output of the following may help confirm a permissions issue with the users home directory
$ pulseaudio -vvvv
$ ls -land ~Offline
The output of the following may help confirm a permissions issue with the users home directory
$ pulseaudio -vvvv $ ls -land ~
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: RealtimeKit worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 10.0
D: [pulseaudio] main.c: Compilation host: x86_64-unknown-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.11.7-1-ARCH #1 SMP PREEMPT Sat Jun 24 09:07:09 CEST 2017
D: [pulseaudio] main.c: Found 8 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 4bd140812581478a82fdeb427ae847fe.
I: [pulseaudio] main.c: Session ID is c2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied
[erotaku@Otakami ~]$ ls -land ~
drwxrwxrwx 1 0 0 4096 Jul 9 00:53 /home/erotaku Added a sudo for the first command in case you wanted it to go through:
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
D: [pulseaudio] core-util.c: setpriority() worked.
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 10.0
D: [pulseaudio] main.c: Compilation host: x86_64-unknown-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.11.7-1-ARCH #1 SMP PREEMPT Sat Jun 24 09:07:09 CEST 2017
D: [pulseaudio] main.c: Found 8 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 4bd140812581478a82fdeb427ae847fe.
I: [pulseaudio] main.c: Using runtime directory /root/.config/pulse/4bd140812581478a82fdeb427ae847fe-runtime.
I: [pulseaudio] main.c: Using state directory /root/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-10.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed. Last edited by Erotaku (2017-07-08 23:06:20)
Offline
E: [pulseaudio] core-util.c: Home directory not accessible: Permission denied[...]
Added a sudo for the first command in case you wanted it to go through
[...]
Your misuse of sudo is probably why you're in this situation in the first place. Fix the permissions on your home directory. Everything in it should be owned by you, not root.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
$ ls -land ~
drwxrwxrwx 1 0 0 4096 Jul 9 00:53 /home/erotaku The directory /home/erotaku is owned by the user root and the group root with full permissions to user, group and other.
Edit:
beaten by WorMzy
This should return no results when the home directory is fixed
$ find \( ! -uid `id -u` \) -o \( ! -gid `id -g` \)Last edited by loqs (2017-07-08 23:17:16)
Offline
Your misuse of sudo is probably why you're in this situation in the first place. Fix the permissions on your home directory. Everything in it should be owned by you, not root.
I don't really go out of my way to explore around my system. I have been researching for the last 3 days without any hope. I'm still extremely new to to this. Can you please direct to me to which section exactly and I will try to to figure it out as hard as I can? I would really appreciate that!
$ ls -land ~ drwxrwxrwx 1 0 0 4096 Jul 9 00:53 /home/erotakuThe directory /home/erotaku is owned by the user root and the group root with full permissions to user, group and other.
Edit:
beaten by WorMzy
This should return no results when the home directory is fixed$ find \( ! -uid `id -u` \) -o \( ! -gid `id -g` \)
It sadly does return pages of stuff. I guess permissions are messed up yeah
Last edited by Erotaku (2017-07-08 23:21:07)
Offline
File_permissions_and_attributes#Changing_ownership
First check if it is some strange fstab options you have used for /home because if that is the case those would need to be fixed first.
Please post your system's fstab plus the output of `mount` if you are unsure.
Offline
"pages of stuff" is rather unclear. How did you install Arch Linux?
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
File_permissions_and_attributes#Changing_ownership
First check if it is some strange fstab options you have used for /home because if that is the case those would need to be fixed first.
Please post your system's fstab plus the output of `mount` if you are unsure.
The last line is the only one I added. The rest I haven't touched.
UUID=C8B66BA9B66B972A /home ntfs defaults,relatime 0 0
UUID=0475-F7ED /boot/efi vfat defaults,noatime 0 0
UUID=322094b7-ec16-4d82-8ee2-5d68c92c4821 / ext4 defaults,noatime,discard 0 1
UUID=03d5ba82-7e83-4714-a44c-38889cbd52bf swap swap defaults 0 0
UUID=D86277906277725C /mnt/erotaku ntfs-3g auto,users,permissions 0 0 Mount:
[erotaku@Otakami ~]$ mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8182304k,nr_inodes=2045576,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/sdb5 on / type ext4 (rw,noatime,discard,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sdb2 on /boot/efi type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sdb4 on /mnt/erotaku type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
/dev/sda2 on /home type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1637460k,mode=700,uid=1000,gid=100) I will start reading up on the link you just provided. Thank you!
"pages of stuff" is rather unclear. How did you install Arch Linux?
My apologies for the weak use of language. I'm a quite exhausted at the moment.
Last edited by Erotaku (2017-07-08 23:31:08)
Offline
UUID=C8B66BA9B66B972A /home ntfs defaults,relatime 0 0
....
/dev/sda2 on /home type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)ntfs does not support posix file permissions I would suggest changing the filesystem type the system uses for /home.
Offline
UUID=C8B66BA9B66B972A /home ntfs defaults,relatime 0 0 .... /dev/sda2 on /home type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096)ntfs does not support posix file permissions I would suggest changing the filesystem type the system uses for /home.
It's a dual boot with windows on the same SSD. Can I still do this?
There are still applications that doesn't work on linux that I have to reboot and use on windows for that.
Offline
Yes dual booting is fine just do no not mount an ntfs filesystem to /home. Once the ntfs filesystem is not mounted to /home you can either create a new filesystem for /home or use the existing directory which should be empty.
Just remember to create a new home directory for each of the system's normal users or delete the user and create the user again with the appropriate option to have a new user home directory created.
Offline
Yes dual booting is fine just do no not mount an ntfs filesystem to /home. Once the ntfs filesystem is not mounted to /home you can either create a new filesystem for /home or use the existing directory which should be empty.
Just remember to create a new home directory for each of the system's normal users or delete the user and create the user again with the appropriate option to have a new user home directory created.
Thank you very much. I will start researching about how this can be done. I will mark this as solved once everything is fixed.
Last edited by Erotaku (2017-07-08 23:48:52)
Offline
You can dual boot fine, but i wouldn't share essential directories. The other OS partitions is accessible anyway (if you enable/install support for them)
Not a solution to your specific problem though.
I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.
Offline
You can dual boot fine, but i wouldn't share essential directories. The other OS partitions is accessible anyway (if you enable/install support for them)
Not a solution to your specific problem though.
Well, it looks like pulseaudio's problem would be solved if I fix my permissions. I hope it does and I will start working on it tomorrow because It's 1:55am here. Thanks though!
Offline