This is what helped me:
`void MakeScreenOn(int value)
{
int ret = DevicePowerRequestLock(value, 0); // type : CPU:0, DisplayNormal:1, DisplayDim:2
}
void MakeScreenOff()
{
int ret = DevicePowerReleaseLock(1);
}
[DllImport("libcapi-system-device.so.0", EntryPoint = "device_power_request_lock", CallingConvention = CallingConvention.Cdecl)]
internal static extern int DevicePowerRequestLock(int type, int timeout_ms);
[DllImport("libcapi-system-device.so.0", EntryPoint = "device_power_release_lock", CallingConvention = CallingConvention.Cdecl)]
internal static extern int DevicePowerReleaseLock(int type);`