Harbour API Request: Keep screen on/prevent screen blanking
As far as I can tell from the Harbour RPM validator source it is currently not possible to use the QML screen screen blanking control API in Harbour apps.
Minimal example of the API in question:
import Sailfish.Media 1.0
ScreenBlank {}
This effectively means that any apps that need to keep screen on for longer/indefinite periods, such as navigation systems, clocks, video players, speedometers, various status displays, etc. can't do that if they want to be accepted to Harbour. This reduces their usability quite a bit.
Example:
Using a navigation system on the Jolla while riding a bike - the user will have to manually turn on the display every 10 minutes (maximum keep-screen-on time in settings) as the navigation system can't prevent screen blanking.
On the other hand a package that is not Harbour compliant and uses the Sailfish.Media QML API can keep the screen on just fine.
tl;dr:
The Sailfish.Media import should be allowed for Harbour apps so that they can keep the screen on.
you can use a dbus command to prevent sleepmode.
nightmare ( 2015-05-19 07:58:38 +0200 )editFrom QML? Any examples?
rgrnetalk ( 2015-05-20 01:52:09 +0200 )editSo Jolla has been tracking this for close the 3 years so far - maybe it would be good to switch from the tracking to the implementation phase ? ;-)
MartinK ( 2018-03-20 02:14:17 +0200 )edit