Conky: $pa_sink_volume and ${pa_sink_volumebar} not updating values

Created on 6 Sep 2017  路  6Comments  路  Source: brndnmtthws/conky

I added the pulse audio settings to my conky.
They show the state of my default sink at start of conky as aspected, but do not change their values, when changing pulseaudio volume.

bug

Most helpful comment

Thanks for re-opening. Please note that in order to work around this - in order to reliably read the volume - I am having to run awk every Conky tick, which is somewhat expensive.

All 6 comments

Hi. Is this still a problem for you? How did you change pulseaudio volumes? Is it possible that you were changing alsa volume or changed volume on different sink instead of default sink? Did you compare with pulseaudio tools too (eg pactl list sinks) to see if anything matches up to your new value?

EDIT: Everything seems okay for me. Not sure what to make out of this. Please test this again. :-)

@su8 pa_sink_volumebar looks broken to me. I expect something like ###___ instead of \n

conky.config = {out_to_x=true,out_to_console=true}
conky.text = [[
pa_sink_volume // ${pa_sink_volume} //
pa_sink_volumebar // ${pa_sink_volumebar} //
pa_sink_description // ${pa_sink_description} //
pa_sink_active_port_name // ${pa_sink_active_port_name} //
pa_sink_active_port_description // ${pa_sink_active_port_description} //
pa_card_name // ${pa_card_name} //
pa_card_active_profile // ${pa_card_active_profile} //
---------------
]]
pa_sink_volume // 40 //                                                                      
pa_sink_volumebar // 
 //
pa_sink_description // Built-in Audio Analog Stereo //
pa_sink_active_port_name // analog-output-lineout //
pa_sink_active_port_description // Line Out //
pa_card_name // alsa_card.pci-0000_00_1b.0 //
pa_card_active_profile // Analog Stereo Duplex //
---------------

Never mind about the bar. It's the {out_to_x=true,out_to_console=true} issue. Changing out_to_x to false made the bar works okay with out_to_console.

Like I mentioned last week, everything seems okay for me here so I'm not sure what to make of this... I'll close this until you come back with more information, your config, etc. Thank you.

Here's my screenshot with pa_* variables mentioned above.

2018-08-13-224829_695x483_scrot

I think this bug should be reopened. For, I have this problem, or at least a similar one. Here's my code.

${if_pa_sink_muted}\
${color8}x\
${else}\
${if_match ${pa_sink_volume} >0}\
${color1}\
${else}\
${color8}\
${endif}\
${pa_sink_volume}%\
${endif}\

The problem

Sometimes the volume figure gets stuck, such that I can raise or lower the volume, and Conky shows the change only after I restart Conky.

My system

Conky 1.11.6_pre (later versions, last time I tried, had spacing problems).
How installed: built from git
PC: X1 Carbon Generation 6 ThinkPad
OS: Mint 20 x64 Cinnamon.
Kernel: 5.9.16

Thanks for re-opening. Please note that in order to work around this - in order to reliably read the volume - I am having to run awk every Conky tick, which is somewhat expensive.

Cf. perhaps #319.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akorop picture akorop  路  3Comments

zero77 picture zero77  路  3Comments

Microcrap picture Microcrap  路  4Comments

leahneukirchen picture leahneukirchen  路  3Comments

BytEvil picture BytEvil  路  4Comments