help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple pulseaudio process after re-loging


From: Chris Marusich
Subject: Re: Multiple pulseaudio process after re-loging
Date: Sat, 02 Jun 2018 18:07:33 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Pierre Neidhardt <address@hidden> writes:

> OK, I've nailed it!
>
> I was mistaken about the "3 pulseaudio processes" I mentioned before,
> those actually were
>
>              ├─pulseaudio(500,499,ambrevar)─┬─{alsa-sink-ALC25}(509,499)
>              │                              └─{alsa-source-ALC}(510,499)
>
> But htop did not display them that explicitly.  So nothing odd there.
>
> Following Chris suggestion, I used `pstree -ugh` which revealed that the
> additional processes were started by my `conky` config.  I have no clue
> why this only happens on the first relogging.
>
> Here is the conky config excerpt that I use to query the state/volume:
>
> ${if_match "${exec pactl list sinks | awk '/^\tMute:/ {print $2;exit}'}" == 
> "no"}\
> ^fg(grey)♪^fg(DeepSkyBlue)\
> ${exec pactl list sinks | awk '/^\tVolume:/ {print $5;exit}'}\
> ${endif}\
>
>
> The `pactl` calls triggers pulseaudio.  There is obviously a race
> condition when I relog too fast.  Probably a Pulseaudio bug, don't know.
>
> I tried to to add a check whether pulseaudio is running or not:
>
> ${if_match "${exec if pgrep pulseaudio; then pactl list sinks | awk 
> '/^\tMute:/ {print $2;exit}'; fi}" == "no"}\
> ^fg(grey)♪^fg(DeepSkyBlue)\
> ${exec if pgrep pulseaudio; then pactl list sinks | awk '/^\tVolume:/ {print 
> $5;exit}'; fi}\
> ${endif}\
>
> It does not seem to work.
>
> Anyways, it's brittle to parse pactl and using conky makes it even
> worse.
>
> Would you know any alternative to pactl and/or conky?
> i3status does not seem to cut it either.

I'm afraid I don't know anything else that might help at this time.  If
you suspect this is a Guix bug, it may be worth recording your findings
in a proper bug report sent to address@hidden

Thank you for looking into it!

-- 
Chris

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]