![]() |
Can the N900 be set to only lock at startup?
Hi,
I know that the N900 can be set to lock after 5, 10, 30, or 60 minutes, or not lock at all, but I can't figure out how to make it only lock at startup. If I disable autolock, it never asks for the lock code. Is this even possible? I know it was on the N800. Thanks, Ian |
Re: Can the N900 be set to only lock at startup?
Hi,
Quote:
MCE/SystemUI along with most of Maemo are closed, so you can't modify them to introduce such an option. You can, however, tell them to lock the tablet externally. Hack #1: Of course with autolock disabled, make a file called /etc/event.d/lock with its contents thus: Code:
description "Locks da phone" Hack #2: Of course with autolock disabled, make a file called /etc/X11/Xsession.d/52lock with its contents thus: Code:
#!/bin/sh If your curiosity prevails, at least uncomment the SLIDE_STATE lines so that you have a way of escaping the script. You could probably modify one of my DBus-GLib examples to make something more robust. Oh Closed Maemo, your possibilities for customisation are endless... |
Re: Can the N900 be set to only lock at startup?
Is there a way to manually set the lock time to say 24 hours or more by using xterm?
|
Re: Can the N900 be set to only lock at startup?
Quote:
Try this: gconftool -s -t bool /system/osso/dsm/locks/devicelock_autolock_enabled true gconftool -s -t int /system/osso/dsm/locks/devicelock_autolock_timeout 1440 I haven't tried this myself, but the values set to the key /system/osso/dsm/locks/devicelock_autolock_timeout by the applet suggest it takes a value of minutes. Oh, one thing to note: When the autolock is disabled, the timeout does get set to 1000 minutes. |
Re: Can the N900 be set to only lock at startup?
Trying to combine upstart and gconf:
Why not use upstart to enable autolock early during boot, and disable it after mce already locks the device on startup. This should give the requested behaviour, assumig mce does not unlock the device when autolock is disabled. |
Re: Can the N900 be set to only lock at startup?
Thanks for all of the quick and informitive responces. Qwerty12's solution worked great.
|
Re: Can the N900 be set to only lock at startup?
Indeed Matan, this one works for me:
Code:
start on startup |
Re: Can the N900 be set to only lock at startup?
This is great stuff!
Is is possible to have the device lock with SMS? Like in Symbian, you could preset a secret text and upon sending it to the phone it would lock. Also the qwerty12 suggestion in Hack#1 that worked: could someone please explain in plain language what to do in steps? Thanks in advance! |
Re: Can the N900 be set to only lock at startup?
Quote:
http://talk.maemo.org/showthread.php?t=60729 |
All times are GMT. The time now is 21:48. |
vBulletin® Version 3.8.8