You are not logged in.

#1 2020-05-13 15:29:44

jbell
Member
Registered: 2020-05-13
Posts: 11

[SOLVED] Slow shutdown: Waiting for process: pulseaudio

Hey,

since some weeks my system takes forever to shutdown.
After the log "Reached target Power-Off" it constantly waits for pulseaudio and after some time it shuts down.
For some reason the "systemd-shutdown[1]: Waiting for process: pulseaudio" message does not appear in the logs so i attached a picture of it

Error Message Picture: https://postimg.cc/XpwyTh10

sudo journalctl -b -1:

Mai 13 16:29:42 tomarch systemd[1]: Reached target Power-Off.
Mai 13 16:29:42 tomarch systemd[1]: Shutting down.
Mai 13 16:29:42 tomarch audit: AUDIT1334 prog-id=20 op=UNLOAD
Mai 13 16:29:42 tomarch audit: AUDIT1334 prog-id=19 op=UNLOAD
Mai 13 16:29:42 tomarch audit: AUDIT1334 prog-id=22 op=UNLOAD
Mai 13 16:29:42 tomarch audit: AUDIT1334 prog-id=21 op=UNLOAD
Mai 13 16:29:42 tomarch systemd-shutdown[1]: Syncing filesystems and block devices.
Mai 13 16:29:42 tomarch systemd-shutdown[1]: Sending SIGTERM to remaining processes...
Mai 13 16:29:42 tomarch systemd-journald[300]: Journal stopped

sudo journalctl -b -1 -g pulseaudio

Mai 13 16:21:29 tomarch dbus-daemon[490]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.43' (uid=120 pid=865 comm="/usr/bin/pulseaudio --daemonize=no ")
Mai 13 16:23:21 tomarch systemd[576]: pulseaudio.service: State 'stop-sigterm' timed out. Killing.
Mai 13 16:23:21 tomarch systemd[576]: pulseaudio.service: Killing process 865 (pulseaudio) with signal SIGKILL.
Mai 13 16:23:51 tomarch systemd[1]: user@120.service: Killing process 865 (pulseaudio) with signal SIGKILL.
Mai 13 16:23:51 tomarch systemd[1]: user@120.service: Killing process 865 (pulseaudio) with signal SIGKILL.

Why does it take so long to kill pulseaudio ?

Last edited by jbell (2020-05-13 21:38:03)

Offline

#2 2020-05-13 15:34:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,380

Re: [SOLVED] Slow shutdown: Waiting for process: pulseaudio

Untruncated journal (or at least the entire shutdown sequence)? I suppose some actual sound card component is borked and pulse can't properly detach from it. The pulseaudio daemon that's hanging is the one opened by GDM, do you use some "volatile" sound card, like bluetooth headset or so?

Also please use [ code ] [ /code ] tags instead of [ quote ]  for output.

Last edited by V1del (2020-05-13 15:35:23)

Offline

#3 2020-05-13 15:40:08

jbell
Member
Registered: 2020-05-13
Posts: 11

Re: [SOLVED] Slow shutdown: Waiting for process: pulseaudio

Yes, i have two usb soundcards and a bluetooth dongle.

Here is the complete journal of sudo journalctl -b -1
https://pastebin.com/BrPby2W5

I just rebooted and got the same problem.
Here is the seconds log: https://pastebin.com/FPT9fz1y

It could be that my onboard soundcard is broken. Thats why i am using the usb dongles.

Last edited by jbell (2020-05-13 15:45:41)

Offline

#4 2020-05-13 16:55:25

jbell
Member
Registered: 2020-05-13
Posts: 11

Re: [SOLVED] Slow shutdown: Waiting for process: pulseaudio

Ok, i kind of solved it. There was an error message:

kernel: iommu ivhd0: AMD-Vi: Event logged [INVALID_DEVICE_REQUEST device=00:00.1 pasid=0x00000 address=0xfdf8010020 flags=0x0a00]

I added the kernel option iommu=soft in /boot/loader/entries/[yourconf].conf as described here: https://bbs.archlinux.org/viewtopic.php?id=167838
Now the error message is gone but my onboard soundcard is not working anymore. But since i use the usb cards anyway this is ok for now.
I have no idea what iommu does, maybe one can activate the soundcard again by using an other value than "soft".

@V1del, thanks for your help smile.

Edit:

As i am using an amd system i changed the kernel option to amd_iommu=off as described here: https://bbs.archlinux.org/viewtopic.php?id=168555.
This reduced the cpu load. Before i had one CPU thread at 100% now all threads are nearly idle. The soundcard is still not working.

Last edited by jbell (2020-05-13 17:58:01)

Offline

#5 2020-05-13 19:44:38

jbell
Member
Registered: 2020-05-13
Posts: 11

Re: [SOLVED] Slow shutdown: Waiting for process: pulseaudio

SOLVED

I updated the bios of my MSI-A78M-E45 to the latest version 25.6 and now everything works without additional kernel options and also with reduced cpu load.

Offline

#6 2020-05-13 20:22:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,380

Re: [SOLVED] Slow shutdown: Waiting for process: pulseaudio

Cool, please mark the thread as [SOLVED] by editing the title in your first post: https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

Board footer

Powered by FluxBB