[kmix] [Bug 462117] Add DBus function to adjust volume directly

2023-08-11 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=462117

--- Comment #2 from em2ceyhqff...@protonmail.com ---
(In reply to Jonathan Marten from comment #1)
> There is already a DBus interface to set the absolute volume of any channel.
> It is not obvious how to set a read/write value via qdbusviewer (use "Set
> value" in the context menu) but it can be accessed via the command line, for
> example:
> 
> # read the current absolute volume
> $ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolume
> 27
> # ses the current absolute volume
> $ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolume 16
> # read the max/min values if required to calculate from/to a percentage
> $ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolumeMax
> 31
> $ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolumeMin
> 0
> 
> You can also read the current master card and control if you don't have them
> already (replace all colons in the control name with underscores to derive
> the DBus path used above):
> 
> $ qdbus org.kde.kmix /Mixers currentMasterMixer
> ALSA::HDA_ATI_SB:1
> $ qdbus org.kde.kmix /Mixers currentMasterControl
> Master:0

Thank you very much Mr.,

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmix] [Bug 462117] Add DBus function to adjust volume directly

2023-06-10 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=462117

Jonathan Marten  changed:

   What|Removed |Added

 Status|REPORTED|RESOLVED
   Severity|normal  |wishlist
 Resolution|--- |WORKSFORME

--- Comment #1 from Jonathan Marten  ---
There is already a DBus interface to set the absolute volume of any channel. 
It is not obvious how to set a read/write value via qdbusviewer (use "Set
value" in the context menu) but it can be accessed via the command line, for
example:

# read the current absolute volume
$ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolume
27
# ses the current absolute volume
$ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolume 16
# read the max/min values if required to calculate from/to a percentage
$ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolumeMax
31
$ qdbus org.kde.kmix /Mixers/ALSA__HDA_ATI_SB_1/Master_0 absoluteVolumeMin
0

You can also read the current master card and control if you don't have them
already (replace all colons in the control name with underscores to derive the
DBus path used above):

$ qdbus org.kde.kmix /Mixers currentMasterMixer
ALSA::HDA_ATI_SB:1
$ qdbus org.kde.kmix /Mixers currentMasterControl
Master:0

-- 
You are receiving this mail because:
You are watching all bug changes.

[kmix] [Bug 462117] Add DBus function to adjust volume directly

2023-06-10 Thread Jonathan Marten
https://bugs.kde.org/show_bug.cgi?id=462117

Jonathan Marten  changed:

   What|Removed |Added

 CC||j...@keelhaul.me.uk

-- 
You are receiving this mail because:
You are watching all bug changes.