You are not logged in.

#1 2020-04-04 18:26:05

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Audio sometimes stops working and then system freezes

I have  Dell G3, the only way I have got my speakers and mic to work is by using the new sof driver. Following this I got my speakers working but not mic, that's why I am using the sof driver. My problem is that my audio seems to just stop working after a while, and sometimes, my system freezes. It most frequently happens after closing a video call(like hangouts) or Minecraft. This is with speakers connected via the audio jack. Restarting pulseaudio doesn't fix it, and after closing Minecraft, restarting pulseaudio freezes my computer instantly, which forces me to reboot by holding power button. Sometimes, after the reboot, my audio still doesn't work and I have to reboot again. alsactl restore only restores audio to my computer speakers, but not external speakers.

Offline

#2 2020-04-04 20:38:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,813

Re: Audio sometimes stops working and then system freezes

https://bugs.archlinux.org/task/64720 ?
(Though that'll likely break your mic again…)

Try to dump dmesg/journal when this happens (and before halting the system w/ a pulseaudio re-start)

Online

#3 2020-04-06 07:31:39

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Re: Audio sometimes stops working and then system freezes

This is probably a stupid question, but how do I get the dmesg/journalctl output to you. They are extremely long and I have the output stored in two text files. Should I use the commands with grep for something?

Offline

#4 2020-04-06 07:48:09

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

Re: Audio sometimes stops working and then system freezes

Upload the textfiles somewhere, or paste them directly into the post wrapped in [ code ] [ /code ] tags without the spaces. Please post the complete and unfiltered logs.

See https://wiki.archlinux.org/index.php/Li … in_clients as well.

Offline

#5 2020-04-06 19:23:47

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Re: Audio sometimes stops working and then system freezes

Here is the dmesg and here is the journal. I am not sure, but recently, its been happening a lot less frequently. My system doesn't seem to freeze and the audio keeps working, but on the next reboot, my system freezes and the audio isn't working.

Offline

#6 2020-04-06 23:06:09

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Re: Audio sometimes stops working and then system freezes

Actually, I have a much bigger problem. After the latest update to the kernel, my audio is completely broken. Should I start a  new issue?
My kernel version is 5.6.2.arch1-2
Pulseaudio can't start:

W: [pulseaudio] pid.c: Stale PID file, overwriting.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI3, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI2, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI1, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headset, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headphones2, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Mic, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Speaker, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headphones1, assuming stereo duplex.
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument

EDIT: Downgrading kernel did not fix it
EDIT 2: Somehow, the audio is still playing through my laptop speakers(not my separate speakers attached by audio jack), even though I can't adjust volume through alsamixer or GUI. So is this a problem with only pulseaudio?

Last edited by ZaheenJ (2020-04-07 03:16:40)

Offline

#7 2020-04-08 07:35:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,813

Re: Audio sometimes stops working and then system freezes

There's an impressive amount of sof-audio-pci errors in that journal (pumping it up to a likewise impressive 70MB)
But: https://github.com/thesofproject/linux/issues/1917

About the PA issue, is there more output or some coredumps? (Those warnings do not explain a failed start)

Online

#8 2020-04-08 16:50:30

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Re: Audio sometimes stops working and then system freezes

This is the output of pulseaudio -v, not sure if this helps:

I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 13.0
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 22fef6d933254ebd9e23cb07c5d1d02a.
I: [pulseaudio] main.c: Session ID is 2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/zaheen/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-13.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
W: [pulseaudio] pid.c: Stale PID file, overwriting.
I: [pulseaudio] main.c: System supports high resolution timers
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
I: [pulseaudio] module-device-restore.c: Successfully opened database file '/home/zaheen/.config/pulse/22fef6d933254ebd9e23cb07c5d1d02a-device-volumes'.
I: [pulseaudio] module.c: Loaded "module-device-restore" (index: #0; argument: "").
I: [pulseaudio] module-stream-restore.c: Successfully opened database file '/home/zaheen/.config/pulse/22fef6d933254ebd9e23cb07c5d1d02a-stream-volumes'.
I: [pulseaudio] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
I: [pulseaudio] module-card-restore.c: Successfully opened database file '/home/zaheen/.config/pulse/22fef6d933254ebd9e23cb07c5d1d02a-card-database'.
I: [pulseaudio] module.c: Loaded "module-card-restore" (index: #2; argument: "").
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #3; argument: "").
I: [pulseaudio] module.c: Loaded "module-switch-on-port-available" (index: #4; argument: "").
I: [pulseaudio] alsa-ucm.c: UCM available for card sof-hda-dsp
I: [pulseaudio] alsa-ucm.c: Set UCM verb to HiFi
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI3, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI2, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device HDMI1, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headset, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headphones2, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Mic, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Speaker, assuming stereo duplex.
W: [pulseaudio] alsa-ucm.c: UCM file does not specify 'PlaybackChannels' or 'CaptureChannels'for device Headphones1, assuming stereo duplex.
I: [pulseaudio] module-alsa-card.c: Found UCM profiles
I: [pulseaudio] alsa-ucm.c: Set ucm verb to HiFi
I: [pulseaudio] alsa-util.c: Device hw:sofhdadsp,5 doesn't support 44100 Hz, changed to 48000 Hz.
I: [pulseaudio] alsa-util.c: Device hw:sofhdadsp,4 doesn't support 44100 Hz, changed to 48000 Hz.
I: [pulseaudio] alsa-util.c: Device hw:sofhdadsp,3 doesn't support 44100 Hz, changed to 48000 Hz.
I: [pulseaudio] alsa-util.c: Device hw:sofhdadsp doesn't support 44100 Hz, changed to 48000 Hz.
I: [pulseaudio] alsa-util.c: Device hw:sofhdadsp doesn't support 44100 Hz, changed to 48000 Hz.
I: [pulseaudio] alsa-util.c: Device hw:sofhdadsp,6 doesn't support 44100 Hz, changed to 48000 Hz.
I: [pulseaudio] (alsa-lib)conf.c: Unknown parameter 1
I: [pulseaudio] (alsa-lib)conf.c: Parse arguments error: No such file or directory
I: [pulseaudio] (alsa-lib)control.c: Invalid CTL hw:sofhdadsp,5
I: [pulseaudio] alsa-util.c: Unable to attach to mixer hw:sofhdadsp,5: No such file or directory
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument
I: [pulseaudio] (alsa-lib)conf.c: Unknown parameter 1
I: [pulseaudio] (alsa-lib)conf.c: Parse arguments error: No such file or directory
I: [pulseaudio] (alsa-lib)control.c: Invalid CTL hw:sofhdadsp,4
I: [pulseaudio] alsa-util.c: Unable to attach to mixer hw:sofhdadsp,4: No such file or directory
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument
I: [pulseaudio] (alsa-lib)conf.c: Unknown parameter 1
I: [pulseaudio] (alsa-lib)conf.c: Parse arguments error: No such file or directory
I: [pulseaudio] (alsa-lib)control.c: Invalid CTL hw:sofhdadsp,3
I: [pulseaudio] alsa-util.c: Unable to attach to mixer hw:sofhdadsp,3: No such file or directory
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument
W: [pulseaudio] alsa-util.c: Unable to load mixer: Invalid argument

Offline

#9 2020-04-08 21:53:32

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Re: Audio sometimes stops working and then system freezes

After a kernel update(5.6.3-arch1-1), I can use my audio again, but the problem from before is persistent. Audio still crashes my system sometimes.

Last edited by ZaheenJ (2020-04-19 17:03:07)

Offline

#10 2020-05-12 02:42:10

ZaheenJ
Member
Registered: 2020-04-04
Posts: 18

Re: Audio sometimes stops working and then system freezes

I am still having issues with my system freezing after closing apps. I was able to consistently play music throughout the night(calm music that helps me sleep) without any issues. I still seem to mostly have issues when closing Minecraft of calls. Also, having multiple audio sources(e.g. minecraft and skype call) at the same time seems to increase the probability of a freeze. Sometimes my audio stops working without freezing, but nothing interesting appears in journal or dmesg output, and in that situation, the only thing that freezes my system in restarting pulseaudio.

Offline

Board footer

Powered by FluxBB