First time posting forgive me if I'm doing it wrong.
Linux Debian GNU Linux 12 (bookwork)
Python 3.11.2 (Mar13,2023)
THE ERROR MESSAGEI am getting this apparently common error but can't find a work around.
The code for test.py
The return is:Now, when I use the command:at the command line all works fine.
Also, when I use the command:at the command line, I get the expected list:but when i execute subprocess.run('amixer scontrols', shell=True) in test.py or through sudo python, no list is generated.
Please help... I've been working on this for three days straight and I think I'm losing my mind.
![Neutral :|]()
Linux Debian GNU Linux 12 (bookwork)
Python 3.11.2 (Mar13,2023)
THE ERROR MESSAGE
Code:
amixer: Unable to find simple control 'Master',0The code for test.py
Code:
import subprocesssubprocess.run('pwd') #this works finesubprocess.run('amixer sset Master 75%', shell=True) #this is the error generator Code:
/home/raspberry/my_pythonamixer: Unable to find simple control 'Master',0Code:
~ $ amixer sset Master 75%Also, when I use the command:
Code:
~ $ amixer scontrolsCode:
Simple mixer control 'Master',0Simple mixer control 'Capture',0Please help... I've been working on this for three days straight and I think I'm losing my mind.
Statistics: Posted by doktor_g — Wed Jul 10, 2024 7:49 pm — Replies 0 — Views 30