<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="Osso Notes">
<title></title></head>
<body>
<p>Thank you for this information. It is close to what I've been looking for.
<br>
<br>However, is this really what happens for example if there is an incoming call - that the phone app sends a request to the phone to unlock? Rather than use an API to show information "above" the lockout screen... if so this could be a security problem.
<br>
<br>I did not find any API call which allows me to turn off the backlight but still keep the application responsive however. Hmm.
<br>----- Ursprungsmeddelande -----
<br>> Hello.
<br>>
<br>> To unlock the device :
<br>> <a href="http://wiki.maemo.org/User:Jebba/DBUS#dbus-send-unlock">http://wiki.maemo.org/User:Jebba/DBUS#dbus-send-unlock</a>
<br>>
<br>> To keep the display on and device unlocked :
<br>> <a href="http://maemo.org/api_refs/4.0/libosso/group__Devstate.html#g93fe32aeb992e128c94b890d6f801bfd">http://maemo.org/api_refs/4.0/libosso/group__Devstate.html#g93fe32aeb992e128c94b890d6f801bfd</a>
<br>>
<br>> David.
<br>>
<br>> Per von Zweigbergk wrote:
<br>> > I'm writing a "talking clock" application. The purpose of this application is
<br>> > to answer the ever-so-frequent question "mghhnm, what time is it" in the
<br>> > morning, just before you've been able to open your eyes properly much less put
<br>> > on your glasses.
<br>> >
<br>> > I've already written the application itself, it was a fairly simple project
<br>> > that took a couple of hours. In testing, however, I discovered a slight
<br>> > drawback to my planned approach of "start the program before falling asleep,
<br>> > mash the screen in the morning and it'll tell me the time".
<br>> >
<br>> > 1. The screen itself will stop accepting taps when the device is turned off.
<br>> > It seems this particular feature can be inhibited by leaving the phone slided
<br>> > open (with the qwerty keyboard exposed) or by setting the gconf setting
<br>> > /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled to false. This
<br>> > requires you to slide the lock button on the side of the phone to unlock the
<br>> > screen. Annoying, but still doable even in a half-awake stupor. And besides,
<br>> > you can always leave the phone activated in its "opened" mode.
<br>> >
<br>> > 2. The device will automatically lock itself after 5 minutes, for security
<br>> > purposes. Now, remembering and correctly entering the device lock code in a
<br>> > half-awake stupor is considerably more difficult. This can be disabled by
<br>> > setting the gconf setting /system/osso/dsm/locks/devicelock_autolock_enabled.
<br>> >
<br>> > However - I don't really like this approach of changing gconf user settings to
<br>> > inhibit device locks. The last thing I want is for the phone or my application
<br>> > to crash (or more likely, to run out of battery) while the program is running
<br>> > and leaving the device unlocked, requiring the user to set the automatic lock
<br>> > option on again (if he even notices it's been disabled).
<br>> >
<br>> > Whoever coded the built-in media player agrees with this. He's found some way
<br>> > to tell the system not to automatically lock itself without changing the gconf
<br>> > settings. I have not yet figured out how.
<br>> >
<br>> > One other option worth considering is the fact that some applications, such as
<br>> > the phone (for an incoming call) and the alarm application (to silence the
<br>> > infernal bleeping of an alarm) will allow you to throw up a screen to the user
<br>> > that'll be accessible even if the lock code has not been entered. This would
<br>> > also solve the potential security issue of somebody stealing your phone while
<br>> > you're sleeping to get to it while it's unlocked. :-)
<br>> >
<br>> > So, does anybody have any ideas as to how I might acheive this in some way?
<br>> > _______________________________________________
<br>> > maemo-developers mailing list
<br>> > <a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a>
<br>> > <a href="https://lists.maemo.org/mailman/listinfo/maemo-developers">https://lists.maemo.org/mailman/listinfo/maemo-developers</a>
<br>> >
<br><br></p>
</body>
</html>