Bug 278807 - Unable to set volume via d-bus or shortkey template
Summary: Unable to set volume via d-bus or shortkey template
Status: CLOSED FIXED
Alias: None
Product: kmix
Classification: Applications
Component: general (show other bugs)
Version: 1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Esken
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 18:48 UTC by schmirrwurst
Modified: 2012-10-08 22:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
add Dbus action (59.34 KB, image/png)
2011-07-29 18:48 UTC, schmirrwurst
Details
Add action from template (54.77 KB, image/png)
2011-07-29 18:48 UTC, schmirrwurst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schmirrwurst 2011-07-29 18:48:25 UTC
Created attachment 62316 [details]
add Dbus action

Version:           0.9 (using KDE 4.7.0) 
OS:                Linux

I'm unable to set the volume via the shortcut template from kremote, nor via d-bus....
In D-bus, there is no action to set the volume, and using the templates, it is not working.... see screenshots

Reproducible: Always

Steps to Reproduce:
Add automatically action for kmix in kremote (volumeup, volumedown...)
OR
Try to add a D-bus action

Actual Results:  
nothing

Expected Results:  
changing sound , or mute

OS: Linux (i686) release 2.6.38-11-generic-pae
Compiler: gcc
Comment 1 schmirrwurst 2011-07-29 18:48:49 UTC
Created attachment 62317 [details]
Add action from template
Comment 2 schmirrwurst 2011-07-29 18:56:15 UTC
Is it because of pulse ??
My master is set to Simultaneous....
Comment 3 Christian Esken 2011-08-16 19:32:45 UTC
Thanks for your report. I am not aware what kremote is, so I'll concentrate on DBUS. I never used the new KMix DBUS interface myself, and I needed some research to find out how it works. Here are examples:

Set:
# qdbus org.kde.kmix /Mixers/0/Master_0 org.freedesktop.DBus.Properties.Set org.kde.KMix.Control volume 60

Get:
# qdbus org.kde.kmix /Mixers/0/Master_0 org.freedesktop.DBus.Properties.Get org.kde.KMix.Control volume
0

There are two issues:
1) Usage is neither obvious, nor documented
2) It looks like the Get is broken. I'll look into it

Hope to heave helped a bit.
Comment 4 Christian Esken 2011-08-16 20:27:58 UTC
SVN commit 1247736 by esken:

CCBUGS: 278807
Add docbook chapter about Remote controlling KMix via DBUS.

 M  +25 -0     index.docbook  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1247736
Comment 5 Christian Esken 2011-08-16 20:31:19 UTC
1) Documentation done. Goes into KDE4.8
2) Get was already working in trunk. I ported the patch back to KDE4.7, so Get works there again. Goes into KDE4.7.1 and next major release KDE4.8.

I think the issue is fixed with this.

I am not aware what kremote is, though. If there is an issue with that, please report it to the author or kremote.