View Single Post
coredumb's Avatar
Posts: 92 | Thanked: 74 times | Joined on Nov 2008 @ Indonesia
#1360
Originally Posted by vi_ View Post
WTF? o0 are you out of your god-dammed mind?

You use dbus-scripts in order to avoid polling things. i.e. dbus-scripts waits for somthing, then runs a script.

You don't poll dbus to get the current state of something in order to run a script.


This rule WILL run the script '/opt/scripts/some_script.sh' when the system inactivity signal is on dbus.

Code:
/opt/scripts/some_script.sh * * com.nokia.mce.signal system_inactivity_ind
sorry, i forgot to say that my script is call by the rule you mention above.

i use this command:
Code:
/usr/sbin/dbus-send --system --type=method_call --dest=com.nokia.mce --print-reply=literal /com/nokia/mce/request com.nokia.mce.request.get_inactivity_status
to identify whether the system_inactivity_ind occurs when the device becomes active (return false) or going to sleep (return true).