← Projects

Systems

ASUS G512 Linux Speaker Fix

A systemd-based fix for speaker initialization and headphone switching on the ASUS G512 with a Realtek ALC294 codec.

Year
2026
Role
Linux systems tooling
Built with
Shell · systemd · ALSA · PipeWire · udev

This project packages a persistent Linux audio fix for the ASUS G512 with a Realtek ALC294 codec. On this hardware, the internal speakers can remain silent when the amplifier is not initialized, and headphone/speaker routing may not switch correctly.

The scripts apply HDA verb initialization at boot, after resume, and when udev observes the audio device. A user service watches headphone-jack state and switches the active audio sink.

Included

  • systemd services and a timer for hardware-state repair.
  • udev rules for audio-device reinitialization.
  • PipeWire/PulseAudio sink switching for headphone behavior.
  • Installation handling for supported systemd-based distributions.