Skip to content

Instantly share code, notes, and snippets.

@varqox
Last active March 20, 2019 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save varqox/02299d3e2780c5de22611eef96d21af3 to your computer and use it in GitHub Desktop.
Save varqox/02299d3e2780c5de22611eef96d21af3 to your computer and use it in GitHub Desktop.
Eliminates cracking sound on resume
[Unit]
Description=Eliminate cracking headphone sound
# Enable with: sudo systemctl enable --now crack_sound_fix.service
[Service]
Type=oneshot
ExecStart=/usr/sbin/hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0
StandardOutput=syslog
StandardError=syslog
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment