Skip to content

Instantly share code, notes, and snippets.

@ivanrad
Last active July 26, 2021 20:19
Show Gist options
  • Save ivanrad/e3e0ea32c64127233ecab573d9946198 to your computer and use it in GitHub Desktop.
Save ivanrad/e3e0ea32c64127233ecab573d9946198 to your computer and use it in GitHub Desktop.
fixhda
#!/bin/sh
for i in /sys/bus/pci/devices/*; do
if [ -s "$i/label" ] && grep -q 'Sound' "$i/label"; then
echo 1 >> "$i/remove"
fi
done
echo 1 >> /sys/bus/pci/rescan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment