maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   N9 Volume Command (https://talk.maemo.org/showthread.php?t=83487)

wolke 2012-04-07 04:41

N9 Volume Command
 
i want to adjust the main volume using a terminal command.

by the main volume, i mean the volume slider that appears in the status area. i want to run a command, and have this slider move. {this is the media volume, and its used for all x-maemo streams, and is inherited by other apps, yadda yadda.}

i have investigated pa_cvolume, phonon, qmediaplayer, pactl/alsamixer/amixer, and looked around for dbus calls. this...shouldnt be this hard. please, somebody read this and answer my prayers.

note: i do not want to adjust the volume with the volume keys {e.g. by setting resource policy in a qt app}.
i do not want to lower or raise the maximum volume {e.g. with alsamixer}.
i want to do the precise equivalent of grabbing that central volume slider and dragging it.

wolke 2012-04-07 20:21

Re: N9 Volume Command
 
ok! so theres a dbus for it, but it requires having either music-suite or qmafw-gui open.

qdbus com.nokia.mafw.renderer.MafwGstRendererPlugin.mafw _gst_renderer /com/nokia/mafw/renderer/mafw_gst_renderer set_extension_property volume 85

qdbus com.nokia.mafw.renderer.MafwGstRendererPlugin.mafw _gst_renderer /com/nokia/mafw/renderer/mafw_gst_renderer get_extension_property volume


next step is to figure out how the hell mafw gets started

HtheB 2012-04-08 07:12

Re: N9 Volume Command
 
Changing topic title (like inserting "Help needed for..." can be usefull :)

Hope you will get that volume button to work! :D


All times are GMT. The time now is 08:01.

vBulletin® Version 3.8.8