From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by befuddled.reisers.ca (Postfix, from userid 65534) id C26F21C43AD; Thu, 4 Apr 2019 17:55:40 -0400 (EDT) Received: from server2.shellworld.net (server2.shellworld.net [66.172.12.120]) by befuddled.reisers.ca (Postfix) with ESMTPS id 3A7501C4381 for ; Thu, 4 Apr 2019 17:55:40 -0400 (EDT) Received: by server2.shellworld.net (Postfix, from userid 1028) id 3B4358C03E7; Thu, 4 Apr 2019 21:55:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by server2.shellworld.net (Postfix) with ESMTP id 3500B8C0162; Thu, 4 Apr 2019 14:55:08 -0700 (PDT) Date: Thu, 4 Apr 2019 14:55:08 -0700 From: Chime Hart To: Glenn At Home , "Speakup is a screen review system for Linux." Subject: Re: amixer help In-Reply-To: <4BC633E83054451AB9F3E35A1D0A67AA@NUCPPYH> Message-ID: References: <4BC633E83054451AB9F3E35A1D0A67AA@NUCPPYH> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 X-BeenThere: speakup@linux-speakup.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Apr 2019 21:55:40 -0000 Well Glen, hopefully this will at least handle an unmute. And this begins with where this script is run from on my Debian machine. type /usr/local/bin/volume.py import subprocess import alsaaudio from subprocess import call cards = len(alsaaudio.cards()) for card in range(cards): mixer = alsaaudio.mixers(cardindex=card,device='default') for mix in mixer: result = alsaaudio.Mixer(control=mix, id=0, cardindex=card, device='default') if len(result.switchcap()) > 0: try: result.setmute(0) except alsaaudio.ALSAAudioError as error: pass Back again live, I am not a programmer-and-I didn't write this, but I hope it will help you Chime