]> code.delx.au - pulseaudio/commitdiff
enable exit-on-idle by default
authorLennart Poettering <lennart@poettering.net>
Tue, 22 Jul 2008 17:45:18 +0000 (19:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Jul 2008 17:45:18 +0000 (19:45 +0200)
src/daemon/daemon-conf.c
src/daemon/daemon.conf.in
src/daemon/default.pa.in
src/pulse/client-conf.c
src/pulse/client.conf.in

index 9ac4090143b7401d14e228e11452096d5aeb9615..50b812dc1256919d2b5dd643983a10bc519b9db0 100644 (file)
@@ -62,7 +62,7 @@ static const pa_daemon_conf default_conf = {
     .realtime_scheduling = FALSE,
     .realtime_priority = 5,  /* Half of JACK's default rtprio */
     .disallow_module_loading = FALSE,
-    .exit_idle_time = -1,
+    .exit_idle_time = 20,
     .module_idle_time = 20,
     .scache_idle_time = 20,
     .auto_log_target = 1,
index dfabcfb2f7c54bb777c9afdb7bb35701e497a65c..41c26e2ad66076af6921572b1b0db40d6869432e 100644 (file)
@@ -32,7 +32,7 @@
 ; realtime-scheduling = no
 ; realtime-priority = 5
 
-; exit-idle-time = -1
+; exit-idle-time = 20
 ; module-idle-time = 20
 ; scache-idle-time = 20
 
index aad9f5d6ba1cb1a45ffd8e7ca6c0dc67e3c0a8ea..498499e751d2bd7fca86b6dd0f362b0d66b0f932 100755 (executable)
@@ -80,14 +80,6 @@ load-module module-always-sink
 ### Automatically suspend sinks/sources that become idle for too long
 load-module module-suspend-on-idle
 
-### Load X11 bell module
-#load-module module-x11-bell sample=bell-windowing-system
-
-### Register ourselves in the X11 session manager
-# Deactivated by default, to avoid deadlock when PA is started as esd from gnome-session
-# Instead we load this via /etc/xdg/autostart/ and "pactl load-module" now
-#load-module module-x11-xsmp
-
 ### If autoexit on idle is enabled we want to make sure we only quit
 ### when no local session needs us anymore.
 load-module module-console-kit
@@ -104,12 +96,21 @@ load-module module-gconf
 .fail
 .endif
 
+# X11 modules should not be started from default.pa so that one daemon
+# can be shared by multiple sessions.
+
+### Load X11 bell module
+#load-module module-x11-bell sample=bell-windowing-system
+
+### Register ourselves in the X11 session manager
+#load-module module-x11-xsmp
+
 ### Publish connection data in the X11 root window
-.ifexists module-x11-publish@PA_SOEXT@
-.nofail
-load-module module-x11-publish
-.fail
-.endif
+#.ifexists module-x11-publish@PA_SOEXT@
+#.nofail
+#load-module module-x11-publish
+#.fail
+#.endif
 
 ### Make some devices default
 #set-default-sink output
index 2ead871f4a5d3fe01b33e6edf740ad058f769801..915d0ccb990eec9033e73e1ac2df65f191d2be6a 100644 (file)
@@ -66,7 +66,7 @@ pa_client_conf *pa_client_conf_new(void) {
     pa_client_conf *c = pa_xmemdup(&default_conf, sizeof(default_conf));
 
     c->daemon_binary = pa_xstrdup(PA_BINARY);
-    c->extra_arguments = pa_xstrdup("--log-target=syslog --exit-idle-time=5");
+    c->extra_arguments = pa_xstrdup("--log-target=syslog");
     c->cookie_file = pa_xstrdup(PA_NATIVE_COOKIE_FILE);
 
     return c;
index 749e9688c90dd0f65e331d58c78aff76b0f5a7cd..8339d6514aeb294e3992c126150ce5d448485391 100644 (file)
@@ -25,7 +25,7 @@
 
 ; autospawn = yes
 ; daemon-binary = @PA_BINARY@
-; extra-arguments = --log-target=syslog --exit-idle-time=5
+; extra-arguments = --log-target=syslog
 
 ; cookie-file =