Skip to content
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

How to add volumecontrol to alsamixer #175

Open
karagir opened this issue Jul 8, 2024 · 1 comment
Open

How to add volumecontrol to alsamixer #175

karagir opened this issue Jul 8, 2024 · 1 comment

Comments

@karagir
Copy link

karagir commented Jul 8, 2024

With wifi disabled, the on-board bluetooth is working just fine on zero 2w.
I have:
dtparam=i2s=on
#dtparam=audio=on
dtoverlay=hifiberry-dac

At present alsamixer shows:
This sound device does not have any controls

How can we enable the volume control in the gui?
I need to control volume using:
amixer -c 0 set PCM 1.5dB+
amixer -c 0 set PCM 1.5dB-
amixer -c 0 set PCM unmute
amixer -c 0 set PCM toggle
amixer -c 0 set PCM mute

or similar commands.

I need this to map commands to ir key codes.
Kindly look into this
Thanks in advance!!

@karagir
Copy link
Author

karagir commented Jul 9, 2024

Is there any way that I can install pipewire-alsa and make it work?
After pipewire-alsa is installed, the alsamixer shows volume control and the following commands work, but there is no audio output.

amixer -D pipewire sset Master 5%+
amixer -D pipewire sset Master 5%-
amixer -D pipewire sset Master toggle

Kindly look into how we can make this application work with some volume up/dn and mute commands to work with headless RPi and i2s sound card.
Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant