You are not logged in.

#1 2021-07-18 19:38:36

worbgge
Member
Registered: 2021-07-18
Posts: 48

Issue with pulseaudio/alsa

I've been having this issue with pulseaudio every since i moved the config files, the error for pulseaudio says

pulseaudio

E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=hw:0,2"): initialization failed.
E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="2" name="usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00" card_name="alsa_card.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_07_00.1" card_name="alsa_card.pci-0000_07_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
E: [pulseaudio] module-alsa-card.c: Failed to find a working profile.
E: [pulseaudio] module.c: Failed to load module "module-alsa-card" (argument: "device_id="1" name="pci-0000_09_00.3" card_name="alsa_card.pci-0000_09_00.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
W: [pulseaudio] authkey.c: Failed to open cookie file '/home/alu/.config/pulse/cookie': No such file or directory
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/alu/.config/pulse/cookie': No such file or directory
E: [pulseaudio] main.c: You need to specify a sink either by its name or its index.
E: [pulseaudio] main.c: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /etc/pulse/default.pa

https://www.reddit.com/r/ManjaroLinux/c … _to_start/ i read here about giving the systemctl --user status pulseaudio and journalctl --user -xe so these are those outputs:

journalctl --user -xe

Jul 18 19:20:39 alu pulseaudio[37923]: Failed to load module "module-alsa-source" (argument: "device=hw:0,2"): initialization failed.
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to find a working profile.
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to load module "module-alsa-card" (argument: "device_id="2" name="usb-Kingston_HyperX_Virtual_Surround_Sound_00>
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to find a working profile.
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to load module "module-alsa-card" (argument: "device_id="0" name="pci-0000_07_00.1" card_name="alsa_card.pci-00>
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to find a working profile.
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to load module "module-alsa-card" (argument: "device_id="1" name="pci-0000_09_00.3" card_name="alsa_card.pci-00>
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to open cookie file '/home/alu/.config/pulse/cookie': No such file or directory
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to load authentication key '/home/alu/.config/pulse/cookie': No such file or directory
Jul 18 19:20:39 alu pulseaudio[37923]: You need to specify a sink either by its name or its index.
Jul 18 19:20:39 alu pulseaudio[37923]: Failed to initialize daemon due to errors while executing startup commands. Source of commands: /etc/pulse/default.pa
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit UNIT has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit UNIT has entered the 'failed' state with result 'exit-code'.
Jul 18 19:20:39 alu systemd[1349]: Failed to start Sound Service.
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished with a failure.
░░
░░ The job identifier is 329 and the job result is failed.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit UNIT has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Jul 18 19:20:39 alu systemd[1349]: Stopped Sound Service.
░░ Subject: A stop job for unit UNIT has finished
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A stop job for unit UNIT has finished.
░░
░░ The job identifier is 345 and the job result is done.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Start request repeated too quickly.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit UNIT has entered the 'failed' state with result 'exit-code'.
Jul 18 19:20:39 alu systemd[1349]: Failed to start Sound Service.
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit UNIT has finished with a failure.
░░
░░ The job identifier is 345 and the job result is failed.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.socket: Failed with result 'service-start-limit-hit'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit UNIT has entered the 'failed' state with result 'service-start-limit-hit'.

systemctl --user status pulseaudio

× pulseaudio.service - Sound Service
     Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2021-07-18 19:20:39 BST; 4min 29s ago
TriggeredBy: × pulseaudio.socket
    Process: 37923 ExecStart=/usr/bin/pulseaudio --daemonize=no --log-target=journal (code=exited, status=1/FAILURE)
   Main PID: 37923 (code=exited, status=1/FAILURE)
        CPU: 164ms

Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Failed with result 'exit-code'.
Jul 18 19:20:39 alu systemd[1349]: Failed to start Sound Service.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Jul 18 19:20:39 alu systemd[1349]: Stopped Sound Service.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Start request repeated too quickly.
Jul 18 19:20:39 alu systemd[1349]: pulseaudio.service: Failed with result 'exit-code'.
Jul 18 19:20:39 alu systemd[1349]: Failed to start Sound Service.

this is my /etc/pulse/default.pa https://clbin.com/jxNps

Offline

#2 2021-07-19 11:14:00

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Issue with pulseaudio/alsa

I've been having this issue with pulseaudio every since i moved the config files,

Which config files did you move, where to and why?

Offline

#3 2021-07-19 13:04:47

worbgge
Member
Registered: 2021-07-18
Posts: 48

Re: Issue with pulseaudio/alsa

>Which config files
pulse audio (was ~/.pulse now ~/.config/pulse & ~/.asoundrc now ~/.config/asoundrc

>why
i was trying to reduce the clutter in my home directory,  i was using this https://wiki.archlinux.org/title/XDG_Base_Directory to move them

Offline

#4 2021-07-19 13:18:07

worbgge
Member
Registered: 2021-07-18
Posts: 48

Re: Issue with pulseaudio/alsa

quick update, since turning off my pc (and restoring the original /etc/pulse/default.pa) pulseaudio now gives the output:

E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=hw:0,0"): initialization failed.
E: [pulseaudio] authkey.c: Failed to truncate cookie file: Invalid argument
W: [pulseaudio] authkey.c: Failed to load authentication key '/home/alu/.config/pulse/cookie': Invalid argument

cmus now plays music but i still can't hear usual system audio

Last edited by worbgge (2021-07-19 15:47:32)

Offline

#5 2021-07-19 17:46:43

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Issue with pulseaudio/alsa

pulse audio (was ~/.pulse now ~/.config/pulse

Why? ~/.pulse is your user session. Now pulse can't find it.

i was trying to reduce the clutter in my home directory,

But ~/.pulse and ~/.config/pulse are two entirely different directories that pulse needs.

~/.asoundrc now ~/.config/asoundrc

Don't fix when not broken.

Offline

#6 2021-07-19 17:57:57

worbgge
Member
Registered: 2021-07-18
Posts: 48

Re: Issue with pulseaudio/alsa

I thought that i could move all the folders there it says here https://wiki.archlinux.org/title/XDG_Ba … ry#Partial under PulseAudio that you can move them. if i was wrong what folders do i need to move back to my ~ for it to work again

Offline

#7 2021-07-19 18:46:09

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,687

Re: Issue with pulseaudio/alsa

I thought that i could move all the folders there it says here https://wiki.archlinux.org/title/XDG_Ba … ry#Partial under PulseAudio that you can move them.

That link doesn't mention anything about moving folders. Besides I think it's best to leave XDG alone and let it do its job. As I said why fix if not broken?
It's probably best to return everything back to its original state.

Offline

Board footer

Powered by FluxBB