[Redmi Note 2 Original Android Development] Namaless:
I found a bug with notifications led.

If I setup for application the option selected working, but for the default not.

Now try to check the log cat for view what are the problem, because in the preview working fine.

---

I found this:

D/lights ( 684): set_led_state colorRGB=FF000000, onMS=0, offMS=0
D/lights ( 684): blink_violet, level=0, onMS=0, offMS=0
D/lights ( 684): write_int open fd=256
D/lights ( 684): fd_leak:write_int open fd before close path=/sys/class/leds/violet/brightness,fd=256
D/lights ( 684): set_led_state colorRGB=FFFFFFFF, onMS=1000, offMS=4000
D/lights ( 684): blink_white, level=255, onMS=1000, offMS=4000
D/lights ( 684): WHITE_DELAY_OFF_FILE doesn't exist or cannot write!!
D/lights ( 684): write_int open fd=256
D/lights ( 684): fd_leak:write_int open fd before close path=/sys/class/leds/white/delay_off,fd=256
D/lights ( 684): write_int open fd=256
D/lights ( 684): fd_leak:write_int open fd before close path=/sys/class/leds/white/delay_on,fd=256

and i think the problem come here:

D/lights ( 684): WHITE_DELAY_OFF_FILE doesn't exist or cannot write!!

---------- Post added at 07:14 PM ---------- Previous post was at 07:08 PM ----------

What issue? USB?

---------- Post added at 07:23 PM ---------- Previous post was at 07:14 PM ----------

For the fix of cpu default values i think to found where you need to change:

into the ramdisk "init.hermes.power.rc" you can change the default values based on the cyanogenmod profiles. I cannot tested but the values are the same I see the first time :)

# Boot much faster
on property:init.svc.bootanim=running
# Switch to NOOP and performance mode while booting
setprop sys.perf.profile 2
write /sys/block/mmcblk0/queue/scheduler noop

on property:sys.boot_completed=1
# Switch back to cfq and balanced mode after boot
setprop sys.perf.profile 1
write /sys/block/mmcblk0/queue/scheduler cfq

# CyanogenMod Performance Profiles

# Powersave
on property:sys.perf.profile=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq "1183000"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq "1183000"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq "1183000"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq "1183000"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu4/online "0"
write /sys/devices/system/cpu/cpu5/online "0"
write /sys/devices/system/cpu/cpu6/online "0"
write /sys/devices/system/cpu/cpu7/online "0"

# Balanced
on property:sys.perf.profile=1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq "403000"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor "interactive"
write /sys/devices/system/cpu/cpu4/online "1"
write /sys/devices/system/cpu/cpu5/online "1"
write /sys/devices/system/cpu/cpu6/online "1"
write /sys/devices/system/cpu/cpu7/online "1"

# Performance
on property:sys.perf.profile=2
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu5/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_max_freq "1950000"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu5/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_min_freq "606000"
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor "performance"
write /sys/devices/system/cpu/cpu4/online "1"
write /sys/devices/system/cpu/cpu5/online "1"
write /sys/devices/system/cpu/cpu6/online "1"
write /sys/devices/system/cpu/cpu7/online "1"

With my modification it's much faster in the boot because for boot use performance profile and comeback to balanced when completed. I fixed the frequency for powersave and balanced.

I uploaded the new boot image and anyone want to test can flash with this command with the device run the bootloader (power + vol down):

fastboot flash boot fixed-boot.img

then reboot

fastboot reboot

Download: https://www.androidfilehost.com/?fid=24352994023709542

----

I not found the performance menu into the settings where i can change the powerprofile, you know in aicp where i can found?

---------- Post added at 08:16 PM ---------- Previous post was at 07:23 PM ----------

During eating i see the leds working