#include "e.h"
#include "Eeze.h"
#include <tizen-extension-server-protocol.h>
-#include <device/booting-internal.h>
+#include <device/board-internal.h>
#include <tbm_drm_helper.h>
#include <gbm.h>
Eina_Bool scale_updated = EINA_FALSE;
Eina_Bool connection_check = EINA_FALSE;
tdm_error err = TDM_ERROR_NONE;
+ char bootmode[32];
+ int ret;
/* init e_output */
if (!e_output_init())
e_main_ts_end("\tE_Output Mode Apply Done");
e_main_ts_begin("\tE_Output Set DPMS ON");
- if (device_get_reboot_mode() != SILENT_BOOT)
+ ret = device_board_get_boot_mode(bootmode, sizeof(bootmode));
+ if (!ret && !e_util_strcmp(bootmode, "silent"))
+ {
+ INF("silent reboot. do not set dpms");
+ }
+ else
{
if (!e_output_dpms_set(output, E_OUTPUT_DPMS_ON))
{
goto fail;
}
}
- else
- INF("silent reboot. do not set dpms");
+
e_main_ts_end("\tE_Output Set DPMS ON Done");
e_main_ts_begin("\tE_Output Hwc Setup");
#include "e.h"
-#include <device/booting-internal.h>
+#include <device/board-internal.h>
#define EOERR(f, output, x...) \
do \
_e_output_primary_update(E_Output *output)
{
Eina_Bool ret;
+ char bootmode[32];
+ int retval;
e_output_update(output);
output->fake_config = EINA_FALSE;
- if (device_get_reboot_mode() != SILENT_BOOT)
+ retval = device_board_get_boot_mode(bootmode, sizeof(bootmode));
+ if (!retval && !e_util_strcmp(bootmode, "silent"))
+ {
+ output->dpms = E_OUTPUT_DPMS_OFF;
+ EOINF("silent boot. do not set dpms", output);
+ }
+ else
{
ret = e_output_dpms_set(output, E_OUTPUT_DPMS_ON);
if (ret == EINA_FALSE)
return;
}
}
- else
- {
- output->dpms = E_OUTPUT_DPMS_OFF;
- EOINF("silent boot. do not set dpms", output);
- }
e_output_size_get(output, &w, &h);
if (output->e_comp_screen->rotation == 90 || output->e_comp_screen->rotation == 270)
#include "e.h"
-#include <device/booting-internal.h>
+#include <device/board-internal.h>
# include <tdm.h>
# include <tdm_helper.h>
tbm_surface_h tsurface = NULL;
tbm_surface_queue_h tqueue = NULL;
E_Output *output = plane->output;
+ char bootmode[32];
+ int ret;
renderer = plane->renderer;
EINA_SAFETY_ON_NULL_RETURN_VAL(renderer, NULL);
}
/* dpms on at the first */
- if (device_get_reboot_mode() != SILENT_BOOT)
+ ret = device_board_get_boot_mode(bootmode, sizeof(bootmode));
+ if (!ret && !e_util_strcmp(bootmode, "silent"))
+ {
+ INF("silent boot. do not set dpms.");
+ }
+ else
{
if (!e_output_dpms_set(output, E_OUTPUT_DPMS_ON))
WRN("fail to set the dpms on.");
}
- else
- INF("silent boot. do not set dpms.");
}
/* aquire */