How to keep Tizen device screen on during execution

606 Views Asked by At

I'm preparing an app in EFL and also have access to the dbus interface.

I wanted to know what would I have to do to keep the screen from dimming or going off during execution?

This would be similar to obtaining wakelock in Android for keeping the screen awake.

1

There are 1 best solutions below

0
Prathamesh Shetye On BEST ANSWER

In the EFL apps, you have to include the capi-system-power and deviced in your project build.

In your code,

#include <power.h>
#include <dd-display.h>

and finally

display_lock_state(LCD_NORMAL, GOTO_STATE_NOW, 0);

got me what I wanted.