maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   changing profile over ssh? (https://talk.maemo.org/showthread.php?t=35063)

AapoRantalainen 2009-11-25 10:51

changing profile over ssh?
 
I have ssh server all the time running on N900. I often leave my phone silence without vibration and then do not remember where I put it. How I change profile over ssh? There are alsamixer but it can't unmute device if muted with profile.

AapoRantalainen 2010-01-25 19:10

Re: changing profile over ssh?
 
Finally I found answer to this, and here it comes...

Code:

#change profile
run-standalone.sh dbus-send --session --dest=com.nokia.profiled --type=method_call /com/nokia/profiled com.nokia.profiled.set_profile string:"general"

#start playing given file in a loop
run-standalone.sh dbus-send --print-reply --dest=com.nokia.mediaplayer /com/nokia/mediaplayer com.nokia.mediaplayer.mime_open string:"file:////usr/share/sounds/Beep.aac"

If you have muted volume (or very low) you can't hear mediaplayer.

So next question is: how to increase volume over ssh? (alsamixer doesn't do anything)


All times are GMT. The time now is 06:15.

vBulletin® Version 3.8.8