A simple interactive Bash tool to fix SPDIF sound delay & standby issues on Linux.
Supports PulseAudio, PipeWire, and ALSA.
-
Keeps SPDIF output active → no more sound delay
-
Prevents SPDIF from going into standby
-
Works with:
- PulseAudio (removes
module-suspend-on-idle) - PipeWire (disables suspend in
pipewire.conf) - ALSA (creates
.asoundrcfor SPDIF keepalive)
- PulseAudio (removes
-
Interactive menu with progress indicators
-
Automatically restarts PulseAudio / PipeWire
-
Backup & restore of original configuration
-
if spdif-fix didnt work for you, you can add the file "soundfixforautostart" to an folder make it executeable " chmod +x and at it to autostart. you need to install sox for your system for example " sudo apt install sox " or " sudo pacman -S sox " What it does: It generates and plays a sine wave tone (default ~440 Hz) in stereo, but with the gain reduced so much that it’s effectively silent.
git clone https://github.com/dennishilk/SPDIF-Fix-Tool.git
cd spdif-fix
chmod +x spdif-fix.sh
./spdif-fix.sh
1 - fix
2 - undo
3 - close
No Warranty Disclaimer
The software in this repository is provided "as is", without warranty of any kind.
I make no guarantees regarding the functionality, correctness, or suitability of this code for any purpose.
Use it at your own risk. I am not responsible for any damages, data loss, or issues that may arise from using this software.

