Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th September 2023
hulten hulten is online now
Port Guard
Join Date: Dec 2014
Posts: 42
Question audio stopped working

I have an ThinkPad P14s with azalia(4) audio (see dmesg attached).

Last week audio playback and recording still worked. As of sometime this week not anymore.

I found issues on misc@ with AMD audio and MSI, but it is not the exact same device as I have. Apparently audio can stop working. There is a workaround for this in OpenBSD disabling MSI, but there is no complete solution, mostly due to lacking documentation from AMD, I understood. For this, this thread is relevant.

However, even as I had this issue (at random times audio not working anymore), now the issue is that audio output does not work at all (i.e., just no sound, still bytes go through). Rebooting the system does not help.

Any ideas how to go about this?
Attached Files
File Type: txt dmesg.txt (27.7 KB, 14 views)

Last edited by hulten; 6th September 2023 at 12:59 PM. Reason: corrected the problem description
Reply With Quote
  #2   (View Single Post)  
Old 6th September 2023
hulten hulten is online now
Port Guard
Join Date: Dec 2014
Posts: 42
Default mixerctl

Controls show all positive values and nothing is muted:
$ mixerctl
Reply With Quote
  #3   (View Single Post)  
Old 6th September 2023
hulten hulten is online now
Port Guard
Join Date: Dec 2014
Posts: 42

I think I did not understand my problem properly. Through a headset, I also do not have sound. It is not a problem specific to the azalia audio device.
Reply With Quote
  #4   (View Single Post)  
Old 6th September 2023
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
Join Date: May 2008
Location: USA
Posts: 7,999

The azalia(4) driver is a generic HD audio driver that manages any hardware which meets the HD Audio 1.0 standard. You're running on the September 3 amd64 snapshot kernel. I just updated to it, and my HD audio hardware -- which is different than yours -- still works.

To figure out what happened with your hardware, I recommend you build kernels, bisecting between a known good kernel and a known bad kernel, to isolate which commit caused the regression. I'd start with HEAD -- just in case there's something uncommitted in the snapshot that caused this, or, if the regression was already found and fixed since the snapshot was built. If there is still an audio failure from your new built kernel, I'd then drop back to a known good kernel and bisect back and forth through commit history to find the culprit.

If you've never built kernels from source before, the release(8) man page has complete instructions. If you clone OpenBSD's github mirror of the src repository into your local /usr/src working directory, git-bisect(1) automates the bisecting process. You just tell it known good and known bad commits, let it select a point-in-time, build, test, and report if its good or bad, lather, rinse, repeat. I can usually find a problem kernel commit in about 7 build/boot/test cycles.
Reply With Quote
  #5   (View Single Post)  
Old 4th October 2023
hulten hulten is online now
Port Guard
Join Date: Dec 2014
Posts: 42
Thumbs up

This afternoon I decided to go back to my audio issue. I built and booted a new kernel, but only then I found out that the problem was not in the OpenBSD kernel but a bad environment setting (I had set AUDIOPLAYDEVICE=snd/play, testing different sndiod_flags). Audio works again after removing those.

Thanks for the help. Also, now I know how to build and boot new kernels!
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
azalia Intel SCH HD Audio strange audio issues tehsean OpenBSD General 3 26th August 2012 12:21 AM
soud suddenly stopped working Brainfsck NetBSD General 0 25th August 2011 07:00 PM
Power Supply Fan Suddenly Stopped IdOp General Hardware 16 26th June 2010 08:36 PM
Apache with php stopped working after upgrade map7 FreeBSD Ports and Packages 7 7th December 2008 10:39 PM
System stopped sending e-mail messages. bigb89 FreeBSD General 4 30th June 2008 05:20 PM

All times are GMT. The time now is 03:28 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick