conky icon indicating copy to clipboard operation
conky copied to clipboard

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

Open refaelsh opened this issue 4 years ago • 4 comments

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.

refaelsh avatar May 31 '20 17:05 refaelsh

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.

github-actions[bot] avatar Mar 15 '23 01:03 github-actions[bot]

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.

bi4k8 avatar Mar 24 '23 15:03 bi4k8

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.

github-actions[bot] avatar Mar 26 '24 01:03 github-actions[bot]

Marking this as enhancement: should use PipeWire

Caellian avatar Apr 12 '24 20:04 Caellian