Skip to contentSkip to conversation

amixer: needs sget/cget support in stdin mode

DISCUSSION GitHub issues - opened 1 participant 1 message Jan 7, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

alsa-project/alsa-utils issue #135 was opened from nick87720z:

I used alsactl and amixer to implement highly effective volume control applet executor. At least it's able to keep pace at touchpad, which sends 1000 scroll events in only 18 to 12 seconds.

amixer --stdin handles control events, while alsactl monitor is even source for applet display part (it's tint2 executor). But in order to get values to display - this display part has to run alsactl sget per request. Can't these commands be supported in stdin mode? From first look - expected lines number doesn't look unpredictable: for sget it depends on number of channels, and for cget - probably fixed.

Even controls command also could be supported, since it lists channel from biggest ID to 1, so moment of numid=1 could be understood as end of list.

Issue URL : https://github.com/alsa-project/alsa-utils/issues/135
Repository URL: https://github.com/alsa-project/alsa-utils