brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.26k stars 620 forks source link

[Enhancement]: `mixer` function gives different values to `amixer` #972

Open refaelsh opened 4 years ago

refaelsh commented 4 years ago

It seems to be that Conky's mixer function gives logarithmic values. I am comparing it with amixer.

  1. When amixer is at 100, Conky is also at 100.
  2. When amixer is at 0, Conky is also at 0.
  3. For every value in between it seems to be that Conky's output is logarithmic.

Distro: NixOS. Window Manager: i3.

Relevant Conky line: { "full_text": "${mixer Vol} " , "color": "\#ffffff" }

Thanks.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

bi4k8 commented 1 year ago

The ${mixer} command uses the OSS /dev/mixer device. Comparing it to the ALSA amixer tool may be exposing an ALSA/OSS difference, or an artifact of the emulation/compatibility layers of one of these systems for the other rather than a Conky bug. I wasn't able to find any documentation on whether OSS uses linear volumes in its programming guide, so I assume OSS programs are not expected to rescale volume before displaying it to users, but I could be missing something.

Probably in the long term Conky should use ALSA or PipeWire rather than the OSS interface.

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment, or this issue will be closed in 30 days.

Caellian commented 6 months ago

Marking this as enhancement: should use PipeWire