Originariamente inviato da
aquilacd70
novità della tua kk da ieri sera??? :o
non ancora
per le 2 fotocamere mi sono accorto che avevo sbagliato un valore nel file di configurazione, l'ho corretto però per verificare se funziona devo ricompilare la rom intera
invece per i sensori non ho ancora capito dov'è il problema...ma è solo questione di tempo
Originariamente inviato da
Voldemaar
Paolo, do you fix backlight?
yes
change the function mt65xx_led_set_cust in mediatek/kernel/drivers/leds/leds_drv.c with this one:
codice:
static int mt65xx_led_set_cust(struct cust_mt65xx_led *cust, int level)
{
static bool first_set_pwm = false;
if(strcmp(cust->name,"lcd-backlight") == 0)
{
if(!first_set_pwm) { //
mt_set_gpio_mode(GPIO129, GPIO_MODE_01);
first_set_pwm = true;
}
bl_brightness = level;
}
#ifdef CONTROL_BL_TEMPERATURE
mutex_lock(&bl_level_limit_mutex);
current_level = level;
//LEDS_DRV_DEBUG("brightness_set_cust:current_level=%d\n", current_level);
if(0 == limit_flag){
last_level = level;
//LEDS_DRV_DEBUG("brightness_set_cust:last_level=%d\n", last_level);
}else {
if(limit < current_level){
level = limit;
//LEDS_DRV_DEBUG("backlight_set_cust: control level=%d\n", level);
}
}
mutex_unlock(&bl_level_limit_mutex);
#endif
#ifdef LED_INCREASE_LED_LEVEL_MTKPATCH
if(MT65XX_LED_MODE_CUST_BLS_PWM == cust->mode) {
mt_mt65xx_led_set_cust(cust, ((((1 << LED_INTERNAL_LEVEL_BIT_CNT) - 1)*level + 127)/255));
}else {
mt_mt65xx_led_set_cust(cust, level);
}
#else
mt_mt65xx_led_set_cust(cust, level);
#endif
return -1;
}
(is't not a my fix so thanks to the author, source: Ñáîðêà ÿäðà Android 4.4 (KitKat/CM!) äëÿ óñòðîéñòâ íà ïëàòôîðìå MTK - 4PDA)
this patch works after the first time that the display turns off so after boot wait for display turn off or press power button to turn it off