summaryrefslogtreecommitdiffstats
path: root/extra/alsa-plugins/40-alsa.rules
diff options
context:
space:
mode:
Diffstat (limited to 'extra/alsa-plugins/40-alsa.rules')
-rw-r--r--extra/alsa-plugins/40-alsa.rules4
1 files changed, 4 insertions, 0 deletions
diff --git a/extra/alsa-plugins/40-alsa.rules b/extra/alsa-plugins/40-alsa.rules
new file mode 100644
index 000000000..12e570dd8
--- /dev/null
+++ b/extra/alsa-plugins/40-alsa.rules
@@ -0,0 +1,4 @@
+# /etc/udev/rules.d/40-alsa.rules
+
+# When a sound device is detected, restore the volume settings
+KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore %n"