View Single Post
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#505
Ah, okay.
Now I got it.

Please check this code:
PHP Code:
#!/bin/sh

#configure timeout, may be any integer value from 1 to 999?
#iTimeout=1
echo "input timeout in minutes (integer)"
read iTimeout

##read
#system
echo old system settings
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_enabled 
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_timeout
#applet
echo old applet settings
gconftool 
-/apps/osso/applet/osso-applet-devicelock/device_lock
gconftool 
-/apps/osso/applet/osso-applet-devicelock/autolock_period

##set
#system 
gconftool -/system/osso/dsm/locks/devicelock_autolock_enabled -t bool true 
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_timeout -t int $iTimeout
#applet, will only accept and show 5, 10, 30, 60 
gconftool -/apps/osso/applet/osso-applet-devicelock/device_lock -t bool true
gconftool 
-/apps/osso/applet/osso-applet-devicelock/autolock_period -t int $iTimeout

#new values
echo new system settings
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_enabled 
gconftool 
-/system/osso/dsm/locks/devicelock_autolock_timeout
echo "new (maybe not displayable) applet settings"
gconftool -/apps/osso/applet/osso-applet-devicelock/device_lock
gconftool 
-/apps/osso/applet/osso-applet-devicelock/autolock_period 
Please be aware, that you have to specify timeout in full minutes ( so 90 second is not possible ).

For noobies: download att, put it in N900, open x-term and type
"sh MyDocs/DeviceLock.txt"
Attached Files
File Type: txt DeviceLock.txt (1.2 KB, 109 views)

Last edited by peterleinchen; 2012-05-28 at 19:05.
 

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