1

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.

4

1 回答 1

2

在 EFL 应用程序中,您必须在项目构建中包含 capi-system-power 和 deviced。

在您的代码中,

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

最后

display_lock_state(LCD_NORMAL, GOTO_STATE_NOW, 0);

得到了我想要的。

于 2014-07-18T15:56:56.687 回答