-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RPI4 - Bullseye 64bit Issue or Container Issue (ver: Master) #75
Comments
@systemcrash, @LewdNeko: What do you think? |
Also getting this error, but on Raspbian |
@Neustradamus I only have a Windows machine right now & am not experiencing issues. I won't be much help here 😅 |
I also have this issue |
I've worked out the issue. It's caused by the device name in amixer. The below modification worked for me. diff --git a/ap2/utils.py b/ap2/utils.py
index 7bfcf12..bf4dee5 100644
--- a/ap2/utils.py
+++ b/ap2/utils.py
@@ -221,7 +221,7 @@ def get_volume():
pct = 0
vol = interpolate(pct, 0, 100, -30, 0)
elif subsys == "Linux":
- line_pct = subprocess.check_output(["amixer", "get", "PCM"]).splitlines()[-1]
+ line_pct = subprocess.check_output(["amixer", "get", "Headphone"]).splitlines()[-1]
m = re.search(b"\[([0-9]+)%\]", line_pct)
if m:
pct = int(m.group(1))
@@ -255,7 +255,7 @@ def set_volume(vol):
elif subsys == "Linux":
pct = int(interpolate(vol, -30, 0, 45, 100))
- subprocess.run(["amixer", "set", "PCM", f"{pct}%%"])
+ subprocess.run(["amixer", "set", "Headphone", f"{pct}%%"])
elif subsys == "Windows":
volume_session = get_pycaw_volume_session()
if volume_session: |
is "headphone" a local modification for you, or one that applies globally for everyone on Linux? |
I don't believe so. It's probably not globally for Linux.
I was running on Rasbian, on a Pi 4.
I am away from the device at the moment but I believe it was my only output
option.
…On Wed, 7 Sept 2022 at 23:19, Paul Dee ***@***.***> wrote:
is "headphone" a local modification for you, or one that applies globally
for everyone on Linux?
—
Reply to this email directly, view it on GitHub
<#75 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADXWRP4XXP5C62OAED3MB3V5CI7HANCNFSM55A52SQA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
The problem
So having done a fresh clone/build with buildah using the Dockerfile on bullseye 64-bit (light) - I get the below error. After a bit of googling, there seems to be some major breakage in raspian between buster and bullseye releases which might be the issue? At any rate, I wanted to raise the issue in case someone else stumbles across it - if I get some time I might dig deeper.
What commit exhibits the issue?
master
Was there a last known working commit?
nope
What type of installation are you running?
Docker
With which python3 version do you run Receiver?
Docker version
OS the receiver runs on
bullseye
OS the sender runs
OSX
Which sender client was used
Photos
Command invocation
same as README.md
Please include --debug output which helps to illustrate the problem
Additional information
No response
The text was updated successfully, but these errors were encountered: