From c3ee4f371a420d922bb4724720624d5691bb8228 Mon Sep 17 00:00:00 2001 From: jaydee Date: Sat, 25 Oct 2025 22:04:48 +0200 Subject: [PATCH] build --- mqtt_srv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)