HOW TO patch Volti for Pulseaudio

Share your own howto's etc. Not for support questions!

HOW TO patch Volti for Pulseaudio

Postby kereberos » 2017-09-10 19:34

I've made this patch for Volti as a workaround for a bug with the mute/unmute function. Pulseaudio (a well known shitware) mutes itself when Volti mutes ALSA and then keeps itself muted when ALSA gets unmuted.

To apply this patch save it in /tmp as volti.patch
Then execute as root:
Code: Select all
cd /
patch -p0 -i /tmp/volti.patch


The patch:
Code: Select all
--- /USR/LIB/VOLTI/VOLTI/ALSACTRL.PY
+++ /usr/lib/volti/volti/alsactrl.py
@@ -131,6 +131,9 @@
     def set_mute(self, mute=0):
         """ Set mixer mute status """
         global OLD_VOLUME, MUTED
+        import os
+        if mute == 0:
+            os.system('pactl set-sink-mute @DEFAULT_SINK@ 0')
         try:
             for mixer in self.mixerlist:
                 mixer.setmute(mute, self.channel)

Now Volti will not only unmute ALSA but also the pulsetrashware.

Tested against Volti 0.2.3 on debian jessie, stretch and buster.
kereberos
 
Posts: 62
Joined: 2011-05-23 09:12

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable