summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-patches
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2015-11-10 12:01:46 +0000
committerintrigeri <intrigeri@boum.org>2015-11-10 12:05:14 +0000
commitd0b558f22dd7b78a0aa2d4f6574d1332ceabc222 (patch)
tree36714d58043dfee5acbe88023531c37b879bb8a2 /config/chroot_local-patches
parentfa5e9988d3ea1a99fa1671567b49fb71abe9704c (diff)
Unmute and sanitize ALSA mixer levels at boot time.
This essentially reverts ALSA state handling to pre-Jessie. For Stretch we might need something better, but it's simple enough that we could easily turn the relevant bits of the legacy initscript into a systemd unit file if needed. Closes: #7591
Diffstat (limited to 'config/chroot_local-patches')
-rw-r--r--config/chroot_local-patches/do_not_save_mixer_levels_on_shutdown.diff7
-rw-r--r--config/chroot_local-patches/unmute_alsa_channels.patch13
2 files changed, 20 insertions, 0 deletions
diff --git a/config/chroot_local-patches/do_not_save_mixer_levels_on_shutdown.diff b/config/chroot_local-patches/do_not_save_mixer_levels_on_shutdown.diff
new file mode 100644
index 0000000..ee279a3
--- /dev/null
+++ b/config/chroot_local-patches/do_not_save_mixer_levels_on_shutdown.diff
@@ -0,0 +1,7 @@
+Tails specific: we are amnesic, no need to save mixer levels on shutdown.
+
+--- chroot.orig/etc/init.d/alsa-utils 2012-09-24 10:05:12.749039812 +0200
++++ chroot/etc/init.d/alsa-utils 2012-09-24 10:47:23.717869294 +0200
+@@ -10,1 +10,1 @@
+-# Default-Stop: 0 1 6
++# Default-Stop:
diff --git a/config/chroot_local-patches/unmute_alsa_channels.patch b/config/chroot_local-patches/unmute_alsa_channels.patch
new file mode 100644
index 0000000..9af1cf7
--- /dev/null
+++ b/config/chroot_local-patches/unmute_alsa_channels.patch
@@ -0,0 +1,13 @@
+--- chroot.orig/etc/init.d/alsa-utils 2010-10-04 18:14:10.000000000 +0000
++++ chroot/etc/init.d/alsa-utils 2012-03-12 13:49:11.815997232 +0000
+@@ -206,5 +206,10 @@
+ # On MacBookPro5,3 and later models (See Bug#597791)
+ unmute_and_set_level "Front Speaker" "80%"
++ # On MacBook5,2 models (See Bug#602973)
++ unmute_and_set_level "LFE" "80%"
+
++ # On Intel 82801H (See Bug#603550)
++ unmute_and_set_level "Speaker" "80%"
++
+ return 0
+ }