On Sun, 2012-11-25 at 18:35 +0100, Henrik /KaarPoSoft wrote: > I made the above changes, and now get the "Received opcode..." from the > daemon in the log. Thanks. > > But I cannot figure out how to get log output from gnome-shell either. > > If I put this in my /etc/profile: > -------------------------------------------------- > export PULSE_LOG=4 > export PULSE_LOG_LEVEL=4 > export PULSE_LOG_SYSLOG=1 > -------------------------------------------------- > clients in general show the expected traces in syslog. > So I can run firefox or pacat, and see the "Received opcode..." from > both client and daemon in syslog, and match them as you suggested. > However, with this /etc/profile, gnome-shell starts allright, but plays > no sound whatsoever, and logs nothing to syslog. > No clue why.
So gnome-shell doesn't want to log to syslog? I've attached a pulseaudio patch that makes gnome-shell log to files under /tmp. Btw, I now noticed that running "gnome-shell --replace" restarts gnome-shell and makes the log from the new instance go to the current terminal. > Anyway, here is a log from 2.99.2: > https://sourceforge.net/p/kaarpux/tickets/_discuss/thread/a1e6c549/cfd3/attachment/log_2_99_2.txt It looks like there are always two PLAY_SAMPLE requests. The first one is "bell-window-system", and the second is something that fails to play, it probably doesn't exist in pulseaudio's sample cache (there are no details logged for the failing sample - you may want to add some logging to command_play_sample() in src/pulsecore/protocol-native.c). The hang seems to happen when trying to play the second sample. -- Tanu
>From 67d2513751b59ae62168fe95f1ceaa372e1fb4f2 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen <ta...@iki.fi> Date: Sun, 25 Nov 2012 21:41:39 +0200 Subject: [PATCH] Special logging configuration for gnome-shell --- src/pulsecore/log.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/pulsecore/log.c b/src/pulsecore/log.c index 8eaef54..b7dcdf6 100644 --- a/src/pulsecore/log.c +++ b/src/pulsecore/log.c @@ -29,6 +29,7 @@ #include <unistd.h> #include <string.h> #include <errno.h> +#include <fcntl.h> #ifdef HAVE_EXECINFO_H #include <execinfo.h> @@ -262,6 +263,30 @@ static void init_defaults(void) { if (getenv(ENV_LOG_NO_RATELIMIT)) no_rate_limit = TRUE; + if (pa_streq(getenv("_"), "/usr/bin/gnome-shell")) { + unsigned n; + int fd; + + for (n = 0; n < 20; n++) { + char *fn; + + fn = pa_sprintf_malloc("/tmp/gnome-shell-%u.txt", n); + fd = pa_open_cloexec(fn, O_WRONLY | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); + pa_xfree(fn); + + if (fd >= 0 || errno != EEXIST) + break; + } + + if (fd >= 0) { + pa_log_set_fd(fd); + target_override = PA_LOG_FD; + target_override_set = true; + } + + maximum_level_override = PA_LOG_LEVEL_MAX-1; + flags_override = PA_LOG_PRINT_TIME | PA_LOG_PRINT_FILE | PA_LOG_PRINT_META | PA_LOG_PRINT_LEVEL; + } } PA_ONCE_END; } -- 1.7.10.4
_______________________________________________ pulseaudio-discuss mailing list pulseaudio-discuss@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss