diff --git a/mqtt_srv.py b/mqtt_srv.py index 4d34c70..13165a3 100755 --- a/mqtt_srv.py +++ b/mqtt_srv.py @@ -683,7 +683,8 @@ def on_message(client, userdata, msg): else: myCmd =f'amixer set Master unmute' try: - output = subprocess.run(["amixer", "sset", "Master", "mute"], check=True) + percent = 20 + output = subprocess.run(["pactl", "set-sink-volume", "@DEFAULT_SINK@", f"{percent}%"], check=True) writeLog(output) except subprocess.CalledProcessError as e: writeLog(e)