ss_lowbat_monitor(NULL);
ss_action_entry_call_internal(PREDEF_USBCON, 0);
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_USB_ONLINE, &val) == 0) {
- _D("jack - usb changed %d",val);
+ _I("jack - usb changed %d",val);
check_lowbat_charge_device(val);
if (val==1) {
snprintf(params, sizeof(params), "%d", CB_NOTI_BATT_CHARGE);
ss_lowbat_monitor(NULL);
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_TA_ONLINE, &val) == 0) {
- _D("jack - ta changed %d",val);
+ _I("jack - ta changed %d",val);
check_lowbat_charge_device(val);
vconf_set_int(VCONFKEY_SYSMAN_CHARGER_STATUS, val);
if (val == 0) {
static void earjack_chgdet_cb(struct ss_main_data *ad)
{
- _D("jack - earjack changed");
+ _I("jack - earjack changed");
ss_action_entry_call_internal(PREDEF_EARJACKCON, 0);
}
static void earkey_chgdet_cb(struct ss_main_data *ad)
{
int val;
- _D("jack - earkey changed");
+ _I("jack - earkey changed");
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_EARKEY_ONLINE, &val) == 0)
vconf_set_int(VCONFKEY_SYSMAN_EARJACKKEY, val);
}
static void tvout_chgdet_cb(struct ss_main_data *ad)
{
- _D("jack - tvout changed");
+ _I("jack - tvout changed");
pm_change_internal(getpid(), LCD_NORMAL);
}
pm_change_internal(getpid(), LCD_NORMAL);
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_HDMI_SUPPORT, &val) == 0) {
if (val!=1) {
- _E("target is not support HDMI");
+ _I("target is not support HDMI");
vconf_set_int(VCONFKEY_SYSMAN_HDMI, HDMI_NOT_SUPPORTED);
return;
}
}
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_HDMI_ONLINE, &val) == 0) {
- _D("jack - hdmi changed %d", val);
+ _I("jack - hdmi changed %d", val);
vconf_set_int(VCONFKEY_SYSMAN_HDMI,val);
if(val == 1)
pm_lock_internal(getpid(), LCD_NORMAL, GOTO_STATE_NOW, 0);
int val = -1;
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_KEYBOARD_ONLINE, &val) == 0) {
- _D("jack - keyboard changed %d", val);
+ _I("jack - keyboard changed %d", val);
if(val != 1)
val = 0;
vconf_set_int(VCONFKEY_SYSMAN_SLIDING_KEYBOARD, val);
}
if (data == NULL) {
- _D("mmc removed");
+ _I("mmc removed");
ss_mmc_removed();
} else {
- _D("mmc added");
+ _I("mmc added");
if (inserted)
return;
inserted = true;
device_get_property(DEVICE_TYPE_POWER, PROP_POWER_CAPACITY, &capacity) != 0)
_E("fail to get battery node value");
if (charge_now == 0 && capacity == 0) {
- _E("target will be shut down");
+ _I("target will be shut down");
battery_power_off_act(NULL);
return;
}
_E("fail to get battery present value");
if (val == 0 && present_status == 1) {
present_status = 0;
- _E("battery cf is opened");
+ _I("battery cf is opened");
if (charge_now)
ss_action_entry_call_internal(PREDEF_BATTERY_CF_OPENED, 0);
}
if (val == 1 && present_status == 0) {
present_status = 1;
- _E("battery cf is closed again");
+ _I("battery cf is closed again");
}
if (device_get_property(DEVICE_TYPE_POWER, PROP_POWER_HEALTH, &val) == 0) {
if (val==BATTERY_OVERHEAT || val==BATTERY_COLD) {
- _E("Battery health status is not good (%d)", val);
+ _I("Battery health status is not good (%d)", val);
if (__check_abnormal_popup_launch() != 0)
return;
static void usb_host_chgdet_cb(keynode_t *in_key, struct ss_main_data *ad)
{
- _D("ENTER: usb_host_chgdet_cb()");
int status;
int ret = vconf_get_int(VCONFKEY_SYSMAN_USB_HOST_STATUS, &status);
if (ret != 0) {
if(VCONFKEY_SYSMAN_USB_HOST_CONNECTED == status) {
int pid = ss_launch_if_noexist(USBCON_EXEC_PATH, NULL);
if (pid < 0) {
- _D("usb-server launching failed");
+ _E("usb-server launching failed");
return;
}
}
- _D("EXIT: usb_host_chgdet_cb()");
}
static void usb_host_add_cb()
{
- _D("ENTER: usb_host_add_cb()");
int status;
int ret = vconf_get_int(VCONFKEY_SYSMAN_USB_HOST_STATUS, &status);
if (ret != 0) {
- _D("vconf get failed ()");
+ _E("vconf get failed ()");
return;
}
_D("Return value of usb-devices: %d\n", ret);
}
}
- _D("EXIT: usb_host_add_cb()");
}
static int uevent_control_stop(int ufd)
return -EINVAL;
}
- _D("success to set receive buffer size");
if (udev_monitor_filter_add_match_subsystem_devtype(mon, "platform", NULL) < 0 ||
udev_monitor_filter_add_match_subsystem_devtype(mon, "input", NULL) < 0) {
_E("error apply subsystem filter");
return -1;
}
- _D("UEVENT DETECTED (%s)", env_value);
+ _I("UEVENT DETECTED (%s)", env_value);
ss_action_entry_call_internal(PREDEF_DEVICE_CHANGED,1,env_value);
udev_device_unref(dev);