Skip to content

About

Linux internal-speaker fix for Realtek ALC256 subsystem 1d05:e005 on TongFang/MECHREVO laptops

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ALC256 1d05:e005 Linux speaker fix

Fixes thin, telephone-like internal-speaker sound on MECHREVO/Tongfang laptops whose Realtek ALC256 codec reports subsystem ID 0x1d05e005.

On affected machines Linux initializes the normal speaker pin (0x14) but leaves the second internal-speaker path (0x1b) muted. Headphones sound normal. Enabling pin 0x1b restores the missing speaker path and substantially improves bass and fullness.

Confirm that your machine matches

grep -H -E 'Codec: Realtek ALC256|Subsystem Id: 0x1d05e005' /proc/asound/card*/codec#0

Only install this workaround when both identifiers are present.

Install

The only runtime dependency is hda-verb, supplied by the alsa-tools package on Ubuntu/Debian.

sudo apt install alsa-tools
sudo ./install.sh

The installer adds a small systemd oneshot service for boot and a system-sleep hook for resume. It dynamically finds the correct ALSA card number rather than assuming card0 or card1.

It also disables snd_hda_intel runtime power saving. Without the upstream kernel quirk, the generic driver can restore pin 0x1b to its firmware-default input mode after the codec has been idle, making the fix appear to stop working later. This slightly increases idle power use. Reboot once after installation so both power-management parameters take effect.

Uninstall

sudo ./uninstall.sh

Reboot after uninstalling to restore the codec defaults.

Upstream kernel fix

kernel/0001-ALSA-hda-realtek-enable-secondary-speakers-on-TongFang.patch is a proposed quirk for sound/hda/codecs/realtek/alc269.c. It reuses the existing ALC233_FIXUP_WUJIE_SPEAKERS pin fixup, which marks node 0x1b as an internal speaker so the generic HDA parser initializes it normally.

The userspace workaround is intentionally kept available for current distribution kernels. Once an upstream quirk reaches your kernel, uninstall this package.

Tested hardware

  • System: MECHREVO XINGYAO Series
  • Mainboard: XINGYAO Series-P916F-HPT-R
  • Codec: Realtek ALC256 (0x10ec0256)
  • Codec subsystem: Tongfang 0x1d05e005
  • Controller: AMD Family 17h/19h HD Audio
  • Symptom: internal speakers sound thin; headphones are unaffected

No Realtek, Nahimic, or Windows binary files are included.

中文说明

适用于声卡子系统 ID 为 1d05:e005 的机械革命/同方笔记本。故障表现为 Linux 下内置扬声器像电话听筒、缺少低频,而耳机正常。原因是 ALC256 的第二组内置扬声器通路 0x1b 未被 Linux 通用配置识别并处于静音状态。

运行 sudo ./install.sh 后,系统会在开机以及睡眠唤醒时自动启用该通路,并关闭会将 0x1b 恢复为输入模式的 HDA 运行时省电。安装后请重启一次。该设置会略微增加待机功耗。项目不包含任何 Windows、Realtek 或 Nahimic 专有文件。

License

Userspace files are released under the MIT License. The proposed Linux kernel patch follows the kernel's GPL-2.0-only license.

About

Linux internal-speaker fix for Realtek ALC256 subsystem 1d05:e005 on TongFang/MECHREVO laptops

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages