Maato / volumeicon

Volume Icon aims to be a lightweight volume control that sits in your systray.
http://nullwise.com/volumeicon.html
GNU General Public License v3.0
183 stars 45 forks source link

Ignores control limits #14

Closed svanheulen closed 12 years ago

svanheulen commented 12 years ago

My device has a lower limit to the volume control and it seems volume icon ignores that. Here's my amixer output for the device:

Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined penum
  Playback channels: Front Left - Front Right
  Limits: Playback 135 - 255
  Mono:
  Front Left: Playback 168 [28%] [-43.50dB] [on]
  Front Right: Playback 168 [28%] [-43.50dB] [on]

So volumeicon is showing 65% = (168 / 255) when it should be showing 28% = (168 - 135) / (255 - 135)

Maato commented 12 years ago

Should be fixed with commit: 25c56f1567aa5fac3fbc061a79308a506a52e60a