Active Topics

 


Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#31
Yes it work on Jolla To restore change word silent to general.
 

The Following User Says Thank You to Schturman For This Useful Post:
solbrit's Avatar
Posts: 126 | Thanked: 59 times | Joined on Jan 2011
#32
I hadn't even tried running the command as is, I just took for granted it wouldn't be that simple...
 

The Following User Says Thank You to solbrit For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#33
Originally Posted by solbrit View Post
Hi!

On the n900/n9 this would set the silent profile:
Code:
dbus-send --type=method_call --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.set_profile string:"silent"
What would be the Sailfish equivalent?

Thanks
And how to check status id silent or general ?
 
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#34
If you set the profile with "set_profile", you get the profile with...?

Code:
dbus-send --type=method_call --print-reply --dest=com.nokia.profiled /com/nokia/profiled com.nokia.profiled.get_profile
Code:
method return sender=:1.3 -> dest=:1.260 reply_serial=2
   string "silent"
Have fun!
 

The Following User Says Thank You to EmaNymton For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#35
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#36
mmh, I had a nice idea of triggering email update by a dbus command, but it seems this a bit too advanced magic for me

I ran dbus-monitor on a console while manually triggering the update to log what's the correct message, but turns out it spits a whole lot of stuff out, and I really cannot get at what's the actual message to do it

Could somebody more knowledgeable distill the correct dbus-send command for me, please?
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#37
does anyone know how to trigger a shell script to run on particular dbus events?
 
Posts: 277 | Thanked: 319 times | Joined on Jan 2010
#38
Originally Posted by droll View Post
does anyone know how to trigger a shell script to run on particular dbus events?
Don't know if there is python-gobject available for jolla, but you could try something similar to my dbus-listener that does stuff when an alarm goes off on the N9.
 
EmaNymton's Avatar
Posts: 141 | Thanked: 267 times | Joined on May 2010 @ Germany
#39
Originally Posted by slarti View Post
Don't know if there is python-gobject available for jolla, but you could try something similar to my dbus-listener that does stuff when an alarm goes off on the N9.
Yes, this works, you can use something like this:
http://wiki.maemo.org/PyMaemo/Phone_...d_SMS_examples
 
Posts: 958 | Thanked: 483 times | Joined on May 2010
#40
yes that works but i want a shell script only. no python. in n900 you can achieve this by putting a file in /etc/dbus-events.d

sorry i wasn't more specific just now.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:52.