View Single Post
Posts: 169 | Thanked: 56 times | Joined on Jan 2010 @ Italia
#4
Hi direx,

following the overclocking wiki page I added the file /etc/dbus-scripts.d/locked with content:

/usr/local/bin/underclock * * com.nokia.mce.signal tklock_mode_ind locked

and the file /usr/local/bin/underclock with content

#!/bin/sh
echo 0 > /sys/devices/platform/gpio-switch/cam_focus/disable


so that it automatically sets to zero the flag when the device gets locked. It seems to work fine. Couldn't be this solution a simple alternative to your script?
 

The Following User Says Thank You to cipper For This Useful Post: