Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HOW TO patch Volti for Pulseaudio

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
kereberos
Posts: 67
Joined: 2011-05-23 09:12

HOW TO patch Volti for Pulseaudio

#1 Post by kereberos »

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.

Post Reply