Hello fellow i9300 users.
As we know all, the most nasty bug after call battery drain which affected our device and most of smdk4x12 varients..
.
Details About bug :
On every AOSP build from android v4.0 / cm9, after making a call normally ie. without using headset or Bluetooth, we were getting heavy battery drain sleep, around ~1.5% / hr (depends upon your settings, for me it was 1% /hr ).
But without normal call we were getting fair drain like around 0.4% / hr (depends upon your settings, for me it was 0.2% /hr ).
Most of devs tried to fix this bug, but because of exynoss, many talented devs left maintaining this devices..
So, we were lost, I myself, A big fan AOSP roms, turned back to Stock TW rom because of only this bug.
In meantime I was leaning self-compiling AOSP rom with help of @UtkarshGupta (Maintainer of Galaxy note 2 for Omnirom,).
After on he committed some audio hal updates to omni for n7100 and i9300..
in one of his commit I saw comment of @tdcfpp : javier Ferrer, He linked us to his own changes about audio hal..
So, I asked him test lib and he provided it.
In test we realized that this bug is fixed in his changes..
.
.
this bug is now fixed by Javier Ferrer, A silent developer who was working behind scene for our device.
his xda name is @tdcfpp.
so thank him as much as you can..
here is his change commit : https://github.com/javifo/android_d...mmit/65920ed03a8f87529f3d9f206ddfbcdb350753e7
.
explanation of cause :
check this : http://review.cyanogenmod.org/#/c/61...dio/audio_hw.c
At line no. 526, in if clause, there is ril_set_call_clock_sync(&adev->ril, SOUND_CLOCK_START);
When starting IN_CALL, RIL clock settings were set, but weren't reset when leaving IN_CALL.
Source : Javier Ferrer : @tdcfpp
.
So All AOSP devs, make this change as soon as possible....
download and flash through recovery.
Update v5 :
1. Speaker volume lowered bit, now perfect matching values to stock Samsung rom
2. Other i/o also calibrated to stock samsung rom's values like earpiece, front mic, back mic, headset output etc..
Update V4 :
1. Fix headset lower mic gain/ muffed sound to other party while in call maintaining changes from https://gerrit.omnirom.org/#/c/6110/ this commit.
2. Other minor volume adjustments.
.
Update V3 :
1. https://gerrit.omnirom.org/#/c/6110/ patchset 6.
Update V2 :
1. compiled with https://gerrit.omnirom.org/#/c/6110/ commit.
2. Backup scrip added. no more re-flashing after every rom update
Results :
1. Before applying this patch, after call battery drain=1%/1hr.
2. After applying this patch, after call battery drain is 0.1%/1hr
As we know all, the most nasty bug after call battery drain which affected our device and most of smdk4x12 varients..
.
Details About bug :
On every AOSP build from android v4.0 / cm9, after making a call normally ie. without using headset or Bluetooth, we were getting heavy battery drain sleep, around ~1.5% / hr (depends upon your settings, for me it was 1% /hr ).
But without normal call we were getting fair drain like around 0.4% / hr (depends upon your settings, for me it was 0.2% /hr ).
Most of devs tried to fix this bug, but because of exynoss, many talented devs left maintaining this devices..
So, we were lost, I myself, A big fan AOSP roms, turned back to Stock TW rom because of only this bug.
In meantime I was leaning self-compiling AOSP rom with help of @UtkarshGupta (Maintainer of Galaxy note 2 for Omnirom,).
After on he committed some audio hal updates to omni for n7100 and i9300..
in one of his commit I saw comment of @tdcfpp : javier Ferrer, He linked us to his own changes about audio hal..
So, I asked him test lib and he provided it.
In test we realized that this bug is fixed in his changes..
.
.
this bug is now fixed by Javier Ferrer, A silent developer who was working behind scene for our device.
his xda name is @tdcfpp.
so thank him as much as you can..
here is his change commit : https://github.com/javifo/android_d...mmit/65920ed03a8f87529f3d9f206ddfbcdb350753e7
.
explanation of cause :
check this : http://review.cyanogenmod.org/#/c/61...dio/audio_hw.c
At line no. 526, in if clause, there is ril_set_call_clock_sync(&adev->ril, SOUND_CLOCK_START);
When starting IN_CALL, RIL clock settings were set, but weren't reset when leaving IN_CALL.
Source : Javier Ferrer : @tdcfpp
.
So All AOSP devs, make this change as soon as possible....
download and flash through recovery.
Update v5 :
1. Speaker volume lowered bit, now perfect matching values to stock Samsung rom
2. Other i/o also calibrated to stock samsung rom's values like earpiece, front mic, back mic, headset output etc..
Update V4 :
1. Fix headset lower mic gain/ muffed sound to other party while in call maintaining changes from https://gerrit.omnirom.org/#/c/6110/ this commit.
2. Other minor volume adjustments.
.
Update V3 :
1. https://gerrit.omnirom.org/#/c/6110/ patchset 6.
Update V2 :
1. compiled with https://gerrit.omnirom.org/#/c/6110/ commit.
2. Backup scrip added. no more re-flashing after every rom update
Results :
1. Before applying this patch, after call battery drain=1%/1hr.
2. After applying this patch, after call battery drain is 0.1%/1hr
Attachments
-
After_Call_Battery_Drain_Fix_For_i9300.zip156.4 KB · Views: 911
-
After_Call_Battery_Drain_Fix_For_i9300_V2.zip157.5 KB · Views: 515
-
After_Call_Battery_Drain_Fix_For_i9300_V3.zip157.5 KB · Views: 814
-
After_Call_Battery_Drain_Fix_For_i9300_V4.zip157.6 KB · Views: 368
-
After_Call_Battery_Drain_Fix_For_i9300_V5.zip157.5 KB · Views: 3,386
Last edited: