<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Thanks,<div><br></div><div>Playing with ScreenSaver seems to work on emulator, but not on device. Also no errors on journalctl, so I guess the device handles the ScreenSaver at some level, but there is another mechanism for turning screen off.</div><div><br></div><div>-Samuli</div><div><br><div><div>On 23 Dec 2013, at 03:42, Gabriel Böhme <<a href="mailto:m.gabrielboehme@googlemail.com">m.gabrielboehme@googlemail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div id="fenix-user-content"><div style="margin: 0px; text-indent: 0px;"><span style="font-family:'NokiaPureTextLight'">Hi,</span></div><div style="margin: 0px; text-indent: 0px; font-family: NokiaPureTextLight;"><br></div><div style="margin: 0px; text-indent: 0px;"><span style="font-family:'NokiaPureTextLight'">the ScreenSaver function from QML SystemInformation should allow to keep the screen alive, BUT: this is not allowed for import in harbour applications at the moment. Due to the fact it's possibly not API stable. It was included in QtMobility in Qt4.x, but is now split up and got maybe some changes in Qt5. It worked in Harmattan and is also in SDK, if you don't want to release at harbour give it a try.</span></div><div style="margin: 0px; text-indent: 0px; font-family: NokiaPureTextLight;"><br></div><div style="margin: 0px; text-indent: 0px;"><span style="font-family:'NokiaPureTextLight'">For charger - no idea, how to get this info at all, maybe also with SystemInformation, you could check the old Qt4 Docs.</span></div><div style="margin: 0px; text-indent: 0px; font-family: NokiaPureTextLight;"><br></div><div style="margin: 0px; text-indent: 0px;"><span style="font-family:'NokiaPureTextLight'">Cheers, Gabriel.</span></div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'NokiaPureTextLight'"> </span></p><div style="margin: 0px; text-indent: 0px;"><span style="font-family:'NokiaPureTextLight'">--</span></div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'NokiaPureTextLight'"> </span></p><div style="margin: 0px; text-indent: 0px;"><span style="font-family:'NokiaPureTextLight'">Von meinem Nokia N9 gesendet</span></div><p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-family:'NokiaPureTextLight'"> </span></p></div><br><div id="fenix-reply-header"><p>Samuli Järvinen schrieb am 23.12.13 00:33:<br>
</p></div><div id="fenix-quoted-body">Hi,<br>
<br>
I know this is something that more often than not should not happen. However I could not be more annoyed when the screen goes blank and I’m watching for example my position on screen and waiting for a gps fix. So short question. Is there a way to prevent application from going background and to prevent the screen from blanking via qml?<br>
<br>
Another question, is it possible to detect if a charger is plugged in from QML or does it need .js or cpp code?<br>
<br>
Thanks in advance,<br>
<br>
-Samuli<br>
_______________________________________________<br>
<a href="http://SailfishOS.org">SailfishOS.org</a> Devel mailing list<br>
</div><br></div>
</blockquote></div><br></div></body></html>