omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

MSI X370 GAMING PLUS (ALC892): 3.5 mm jack hotplug only works after PipeWire restart

Open dandresrp opened this issue 7 months ago • 2 comments

System details

MSI X370 GAMING PLUS (MS-7A33), AMD Family 17h HD Audio Controller [1022:1457], Realtek ALC892 (Subsystem Id 0x1462fa33), Omarchy 3.5.1, Linux 6.19.10-arch1-1

What's wrong?

On this exact board, plugging or unplugging 3.5 mm headphones does not trigger reliable hotplug detection. The headphones only become available after restarting PipeWire or WirePlumber manually.

I validated this as a kernel/HDA powersave interaction on this hardware:

  • evtest /dev/input/event25 showed no reliable SW_HEADPHONE_INSERT events with the default snd_hda_intel settings
  • hda-verb /dev/snd/hwC1D0 0x1b GET_PIN_SENSE 0 oscillated with power_save=10 and power_save_controller=Y
  • after setting snd_hda_intel power_save=0 power_save_controller=N, jack detection became stable immediately
  • PipeWire then started emitting change/remove/new events for the card and sink on each unplug/replug, and the active port switched to analog-output-headphones without restarting audio services

I have a PR ready that adds an exact-hardware workaround for:

  • board vendor: MSI
  • board name: X370 GAMING PLUS (MS-7A33)
  • codec: Realtek ALC892
  • subsystem id: 0x1462fa33

The workaround installs:

options snd_hda_intel power_save=0 power_save_controller=N

into /etc/modprobe.d/90-snd-hda-intel-jackfix.conf, applies it during install, and also ships a migration for existing users.

I can provide additional debug output if needed, including the exact codec#0 dump and omarchy-debug.

dandresrp avatar Apr 17 '26 04:04 dandresrp

Does not reproduce on this ALC892 laptop (different board than the OP).

MSI GS70 2QE (MS-1773), Realtek ALC892 (0x10ec0892, subsystem 0x1462115d), Omarchy 4.0.1-1, kernel 7.1.9-arch1-2, PipeWire 1.6.8.

Plugging 3.5 mm headphones: WirePlumber set analog-output-headphones to available, speakers to not available, Active Port analog-output-headphones. No PipeWire/WirePlumber restart.

Stereo on that jack is real: left-only 440 Hz, right-only 880 Hz, then speaker-test -D pulse -c 2 -t wav Front Left / Front Right. An earlier “mono” result was pw-play upmixing the stock mono Front_Left.wav / Front_Right.wav onto both cups.

Not the X370 powersave case. Just another ALC892 data point.

  • atavacron, Grok 4.6 (high)

atavacron avatar Aug 28 '26 14:08 atavacron

Thanks for the detailed diagnosis. I looked into this, but nobody has opened a fix yet, and I can't reproduce it without the board.

What I checked:

  • Nothing in Omarchy on quattro sets snd_hda_intel options or HDA runtime power management, so Omarchy itself isn't causing this.
  • Your condition is still the default. On a fresh Omarchy 4 worker running linux-omarchy 7.2.5-3, the kernel is built with CONFIG_SND_HDA_POWER_SAVE_DEFAULT=10, and the module loads with power_save=10 and power_save_controller=Y.
  • The upstream kernel already disables HDA powersave for a list of boards with this kind of problem (power_save_denylist in sound/hda/controllers/intel.c). The Asus Prime X370-Pro, which uses the same AMD 17h controller, is on it. No MSI X370 board is. That list matches the HDA controller's PCI subsystem ID, not the codec's 0x1462fa33, and the two can differ.
  • @atavacron's ALC892 laptop (a different board) doesn't show the problem, which neither confirms nor rules out this board.

Your mechanism is plausible and fits that upstream pattern. But it is only explained, not confirmed, and it was seen on 3.5.1 with kernel 6.19. Before a fix can be gated on this board, it needs:

  1. Whether it still happens on Omarchy 4 with linux-omarchy, with your modprobe override removed: omarchy-version, uname -r, and cat /sys/module/snd_hda_intel/parameters/power_save /sys/module/snd_hda_intel/parameters/power_save_controller.
  2. lspci -nnvv -d 1022:1457, in particular its Subsystem: line.
  3. cat /sys/class/dmi/id/{board_vendor,board_name,product_name,product_family}. Omarchy's hardware gate matches product name or family, and on MSI desktops that is often not the board name.
  4. If you can, which of the two options is actually needed: the hotplug test with only power_save=0 and then with only power_save_controller=N.

If it still reproduces, the narrowest fix is an upstream kernel quirk keyed to the controller's subsystem ID. A board-gated modprobe.d file in Omarchy, like install/hardware/lenovo/fix-yoga-pro7-bass-speakers.sh, could cover it in the meantime. Which of those to take is the maintainer's call.

Codex Medium reviewed this independently and agreed: the mechanism is plausible, it can't be confirmed without the hardware, and nothing in Omarchy causes it. It also pointed out that the hardware gate can't match on board name, which is why item 3 is there. This now waits on you for the answers above.

omarchybot avatar Oct 08 '26 00:10 omarchybot