} else if (type == POWER_LOCK_CPU) {
/* in case of headless, request for cpu lock is handled
* in power module of deviced, not in display module */
+
+ /* In current policy, headless doesn't support cpulock. Disable it.
ret = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_POWER, DEVICED_INTERFACE_POWER,
"LockCpu", g_variant_new("(i)", timeout_ms), NULL);
return errno_to_device_error(ret);
+ */
+ return DEVICE_ERROR_NOT_SUPPORTED;
}
}
} else if (type == POWER_LOCK_CPU) {
/* in case of headless, request for cpu unlock is handled
* in power module of deviced, not in display module */
+
+ /* In current policy, headless doesn't support cpulock. Disable it.
ret_val = gdbus_call_sync_with_reply_int(DEVICED_BUS_NAME,
DEVICED_PATH_POWER, DEVICED_INTERFACE_POWER,
"UnlockCpu", NULL, NULL);
return errno_to_device_error(ret_val);
+ */
+ return DEVICE_ERROR_NOT_SUPPORTED;
}
}