[pulseaudio-discuss] [PATCH 1/2] system.pa: load module-device-restore before module-udev-detect

Tanu Kaskinen tanuk at iki.fi
Thu Oct 27 14:59:28 UTC 2016


module-device-restore doesn't restore the state of devices that already
exist during the module loading, so the module has to be loaded early.
---
 src/daemon/system.pa.in | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/daemon/system.pa.in b/src/daemon/system.pa.in
index 06e3f1e..fc5019c 100755
--- a/src/daemon/system.pa.in
+++ b/src/daemon/system.pa.in
@@ -19,6 +19,10 @@
 # mode.
 changequote(`[', `]')dnl Set up m4 quoting
 
+### Automatically restore the volume of streams and devices
+load-module module-device-restore
+load-module module-stream-restore
+
 ### Automatically load driver modules depending on the hardware available
 ifelse(@HAVE_UDEV@, 1, [dnl
 .ifexists module-udev-detect at PA_SOEXT@
@@ -45,10 +49,6 @@ load-module module-esound-protocol-unix
 .endif
 load-module module-native-protocol-unix
 
-### Automatically restore the volume of streams and devices
-load-module module-stream-restore
-load-module module-device-restore
-
 ### Automatically restore the default sink/source when changed by the user
 ### during runtime
 ### NOTE: This should be loaded as early as possible so that subsequent modules
-- 
2.9.3



More information about the pulseaudio-discuss mailing list