You are not logged in.

#1 2020-08-13 11:45:09

crimsoncandy
Member
Registered: 2020-03-26
Posts: 12

[SOLVED] Pulseaudio stops working after reboot with sway wm.

After reboot pulseaudio stop working and needs to be killed and restarted for sound to work using

pulseaudio -k
pulseaudio --start

Removing files in home directory is useless.

Here is output of

pacmd list-sinks
1 sink(s) available.
  * index: 0
	name: <alsa_output.pci-0000_03_00.6.analog-stereo>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9039
	volume: front-left: 39296 /  60% / -13.33 dB,   front-right: 39296 /  60% / -13.33 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 44100Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	fixed latency: 100.14 ms
	card: 1 <alsa_card.pci-0000_03_00.6>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "Generic Analog"
		alsa.id = "Generic Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "1"
		alsa.card_name = "HD-Audio Generic"
		alsa.long_card_name = "HD-Audio Generic at 0xe0680000 irq 55"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:03:00.6"
		sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1022"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
		device.product.id = "15e3"
		device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
		device.string = "front:1"
		device.buffering.buffer_size = "17664"
		device.buffering.fragment_size = "2944"
		device.access_mode = "mmap"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo"
		alsa.mixer_name = "Realtek Generic"
		alsa.components = "HDA:10ec0230,17aa3822,00100002"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
			properties:
				device.icon_name = "audio-speakers"
		analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
			properties:
				device.icon_name = "audio-headphones"
	active port: <analog-output-headphones>

It says device is SUSPENDED cause IDLE, I don't know why this is happening, I've tried disabling

load-module module-suspend-on-idle

in /etc/pulse/default.pa but result is same - audio does not work except the output of

pacmd list-sinks

changes to

...
	state: IDLE
	suspend cause: (none)
...

Also programs using alsa works fine i.e. audio works if I specify default sound card in /etc/asound.conf

Strangely this issue only happens when pulseaudio is started first time on reboot, on first reboot the pulseaudio cannot play anything and device state remains IDLE or SUSPENDED

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 Thu 2020-08-13 18:04:12 IST; 27s ago
TriggeredBy: ● pulseaudio.socket
    Process: 611 ExecStart=/usr/bin/pulseaudio --daemonize=no (code=exited, status=1/FAILURE)
   Main PID: 611 (code=exited, status=1/FAILURE)

Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Aug 13 18:04:12 archers systemd[508]: Stopped Sound Service.
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Start request repeated too quickly.
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:12 archers systemd[508]: Failed to start Sound Service.

journalctl --user -xe

░░
░░ A start job for unit UNIT has finished with a failure.
░░
░░ The job identifier is 204 and the job result is failed.
Aug 13 18:05:02 archers systemd[508]: 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.
Aug 13 18:05:02 archers systemd[508]: 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 219 and the job result is done.
Aug 13 18:05:02 archers systemd[508]: pulseaudio.service: Start request repeated too quickly.
Aug 13 18:05:02 archers systemd[508]: 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'.
Aug 13 18:05:02 archers systemd[508]: 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 219 and the job result is failed.
Aug 13 18:05:02 archers systemd[508]: 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'.

journalctl --user --no-pager -b -u pulseaudio.service

-- Logs begin at Wed 2020-08-12 05:52:09 IST, end at Thu 2020-08-13 18:05:02 IST. --
Aug 13 18:04:09 archers systemd[508]: Starting Sound Service...
Aug 13 18:04:10 archers pulseaudio[568]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:04:10 archers pulseaudio[568]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:04:10 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:04:10 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:10 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:04:10 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Aug 13 18:04:10 archers systemd[508]: Stopped Sound Service.
Aug 13 18:04:10 archers systemd[508]: Starting Sound Service...
Aug 13 18:04:10 archers pulseaudio[574]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:04:10 archers pulseaudio[574]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:04:10 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:04:10 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:10 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:04:10 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
Aug 13 18:04:10 archers systemd[508]: Stopped Sound Service.
Aug 13 18:04:10 archers systemd[508]: Starting Sound Service...
Aug 13 18:04:11 archers pulseaudio[586]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:04:11 archers pulseaudio[586]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:04:11 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:04:11 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:11 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:04:11 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
Aug 13 18:04:11 archers systemd[508]: Stopped Sound Service.
Aug 13 18:04:11 archers systemd[508]: Starting Sound Service...
Aug 13 18:04:11 archers pulseaudio[607]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:04:11 archers pulseaudio[607]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:04:11 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:04:11 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:11 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:04:11 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 4.
Aug 13 18:04:11 archers systemd[508]: Stopped Sound Service.
Aug 13 18:04:11 archers systemd[508]: Starting Sound Service...
Aug 13 18:04:12 archers pulseaudio[611]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:04:12 archers pulseaudio[611]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:12 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Aug 13 18:04:12 archers systemd[508]: Stopped Sound Service.
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Start request repeated too quickly.
Aug 13 18:04:12 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:12 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:04:59 archers systemd[508]: Starting Sound Service...
Aug 13 18:04:59 archers pulseaudio[779]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:04:59 archers pulseaudio[779]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:04:59 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:04:59 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:04:59 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:05:00 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
Aug 13 18:05:00 archers systemd[508]: Stopped Sound Service.
Aug 13 18:05:00 archers systemd[508]: Starting Sound Service...
Aug 13 18:05:00 archers pulseaudio[780]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:05:00 archers pulseaudio[780]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:05:00 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:05:00 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:05:00 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:05:00 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
Aug 13 18:05:00 archers systemd[508]: Stopped Sound Service.
Aug 13 18:05:00 archers systemd[508]: Starting Sound Service...
Aug 13 18:05:01 archers pulseaudio[781]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:05:01 archers pulseaudio[781]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:05:01 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:05:01 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:05:01 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:05:01 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
Aug 13 18:05:01 archers systemd[508]: Stopped Sound Service.
Aug 13 18:05:01 archers systemd[508]: Starting Sound Service...
Aug 13 18:05:01 archers pulseaudio[782]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:05:01 archers pulseaudio[782]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:05:01 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:05:01 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:05:01 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:05:01 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 4.
Aug 13 18:05:01 archers systemd[508]: Stopped Sound Service.
Aug 13 18:05:01 archers systemd[508]: Starting Sound Service...
Aug 13 18:05:02 archers pulseaudio[783]: E: [pulseaudio] pid.c: Daemon already running.
Aug 13 18:05:02 archers pulseaudio[783]: E: [pulseaudio] main.c: pa_pid_file_create() failed.
Aug 13 18:05:02 archers systemd[508]: pulseaudio.service: Main process exited, code=exited, status=1/FAILURE
Aug 13 18:05:02 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:05:02 archers systemd[508]: Failed to start Sound Service.
Aug 13 18:05:02 archers systemd[508]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
Aug 13 18:05:02 archers systemd[508]: Stopped Sound Service.
Aug 13 18:05:02 archers systemd[508]: pulseaudio.service: Start request repeated too quickly.
Aug 13 18:05:02 archers systemd[508]: pulseaudio.service: Failed with result 'exit-code'.
Aug 13 18:05:02 archers systemd[508]: Failed to start Sound Service.

Masking pulseaudio.service seems to fix the issue, but I don't think it is the right solution

systemctl --user mask pulseaudio.service

Last edited by crimsoncandy (2020-08-15 17:13:31)

Offline

#2 2020-08-15 17:15:14

crimsoncandy
Member
Registered: 2020-03-26
Posts: 12

Re: [SOLVED] Pulseaudio stops working after reboot with sway wm.

I found that the issue only exists when starting sway directly from tty, using sddm as login manager have fixed the issue for me.

Offline

#3 2023-05-14 19:30:41

zrya
Member
Registered: 2023-05-14
Posts: 1

Re: [SOLVED] Pulseaudio stops working after reboot with sway wm.

Ohh yeah! been into same scenario, sddm helped me to fix the issue

But do you know reason of this weird behavior?  Honestly i don't want sddm or any dm

Offline

Board footer

Powered by FluxBB