[Nexus 4 Original Android Development] PeQuEsan:
Thanks [MENTION=4149660]Jeremy[/MENTION]. My Tasker task is a little bit different, because is not exactly the same to lock device than simulate a power button press. My N4, while at home (connected to home wifi), doesn't lock itself, it just shutdown the screen (another task takes care of this)... :) Also if you have configured any timeout to activate security pin/pattern/whatever, lock device doesn't respect that timeout.

<TaskerData sr="" dvi="1" tv="4.1u3m">
<Task sr="task13">
<cdate>1380189898452</cdate>
<edate>1380190681552</edate>
<id>13</id>
<nme>Power Button</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Power Button Press (Root)</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.BOOLEAN_VALUE>true</com.intangibleobject.securesettings.plugin.extra.BOOLEAN_VALUE>
<com.intangibleobject.securesettings.plugin.extra.BOOLEAN_VALUE-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.BOOLEAN_VALUE-type>
<com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_OUTPUT>false</com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_OUTPUT>
<com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_OUTPUT-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_OUTPUT-type>
<com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_TOAST>false</com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_TOAST>
<com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_TOAST-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.CMD_DISPLAY_TOAST-type>
<com.intangibleobject.securesettings.plugin.extra.CMD_NAME>Power Button Press</com.intangibleobject.securesettings.plugin.extra.CMD_NAME>
<com.intangibleobject.securesettings.plugin.extra.CMD_NAME-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.CMD_NAME-type>
<com.intangibleobject.securesettings.plugin.extra.CMD_REPLACE_VARS>false</com.intangibleobject.securesettings.plugin.extra.CMD_REPLACE_VARS>
<com.intangibleobject.securesettings.plugin.extra.CMD_REPLACE_VARS-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.CMD_REPLACE_VARS-type>
<com.intangibleobject.securesettings.plugin.extra.CMD_TO_RUN>input keyevent 26</com.intangibleobject.securesettings.plugin.extra.CMD_TO_RUN>
<com.intangibleobject.securesettings.plugin.extra.CMD_TO_RUN-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.CMD_TO_RUN-type>
<com.intangibleobject.securesettings.plugin.extra.CMD_USES_ROOT>true</com.intangibleobject.securesettings.plugin.extra.CMD_USES_ROOT>
<com.intangibleobject.securesettings.plugin.extra.CMD_USES_ROOT-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.CMD_USES_ROOT-type>
<com.intangibleobject.securesettings.plugin.extra.KEEP_DEVICE_AWAKE>false</com.intangibleobject.securesettings.plugin.extra.KEEP_DEVICE_AWAKE>
<com.intangibleobject.securesettings.plugin.extra.KEEP_DEVICE_AWAKE-type>java.lang.Boolean</com.intangibleobject.securesettings.plugin.extra.KEEP_DEVICE_AWAKE-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>run_cmd</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Power Button Press (Root)</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
</Action>
<Img sr="icn" ve="2">
<nme>cust_icon_donut</nme>
</Img>
</Task>
</TaskerData>

---------- Post added at 05:38 PM ---------- Previous post was at 05:34 PM ----------

Ok. So you confirm that you have "fine tuned" interactive governor inside last 2 nightlies. I'll test it, then... :)