[KERNEL] - [Backslash-1.3 KG1] - with [CF-Root v4.1] Initramfs

Search This thread

saturn_de

Senior Member
Jan 29, 2010
156
162
This is a self compiled Kernel from these sources. It's a fork of the kernel source git plus some performance tweaks and minus a bad patch, which turned out to drain the battery.

The initramfs (source) is a modified CF-Root v4.1 of the KG1.
I added some /proc and /sys tweaks in init.rc (github of the initramfs):
Code:
+    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
+    write /sys/block/mmcblk0/queue/scheduler noop 
+    write /sys/block/mmcblk0/queue/read_ahead_kb 512
+    write /proc/sys/vm/highmem_is_dirtyable 1
+    write /proc/sys/vm/dirty_writeback_centisecs 1500
+    write /proc/sys/vm/laptop_mode 5

This probably works best with Villain ROM 2.0 [2.3.4] and the XXKG1 radio image.


History:

Version 1.1:

Version 1.2 :
  • now based on CF-Root 4.1 (was 4.0)
  • cherry-pick'ed some fixes from cfs-exp branch of ninphetamine github
  • removed "setprop dalvik.vm.execution-mode int:fast", which prevents JIT
  • changed touchscreen MOVHYSTI to 5 from 0 (15 original)

Version 1.3 :
  • removed bogus /sys, /proc settings
  • use /init from KG1/CF-ROOT
  • set readahead to 512kb
  • enabled fuse, so you can use "ntfs-3g" to mount a NTFS drive

    There is also a variant with MOVHYSTI set to "0" (Backslash-1.3-HYST0). Let me know, if you have those touchscreen problems with either "0" (HYST0) or the "5" in the normal kernel.

So how does it look like? See the attached image (FastDormancy was not turned off, because it got better in 2.3.4)

Benchmark CF-Bench Pro v1.1
Interpretation left to the reader... :p
Code:
Stock CF-Root KG1:	      |	Backslash-1.3:
Native:	11256	11478	11172 |	11566	11360	11414
Java:	3155	3235    3071  |	3411	3240	3327
Overall:6395	6532	6311  |	6673	6488	6561

read: 	553	535	540   |	564	571	570
write: 	138	180	176   |	181	181	173
 

Attachments

  • Backslash-1.1-CF-Root-XXKG1.zip
    7.4 MB · Views: 801
  • Backslash-1.2-CF-Root-XXKG1.zip
    7.5 MB · Views: 532
  • Backslash-1.3-CF-Root-XXKG1.zip
    7.6 MB · Views: 2,044
  • Backslash-1.3-HYST0-CF-Root-XXKG1.zip
    7.6 MB · Views: 4,183
Last edited:

Pume

Senior Member
Feb 14, 2008
343
78
43
Varkaus
This is a self compiled Kernel from this sources. It's a fork of the kernel source git plus some performance tweaks and minus a bad patch, which turned out to drain the battery.

The initramfs is a modified CF-Root v4.0 of the XXKG1.
I added some /proc and /sys tweaks in init.rc.

This probably works best with Villain ROM 2.0 [2.3.4] and the KG1 radio image.

So how does it look like?

So does this also fix the push exchange email battery drain or just some other drain (non-existent to me)?
 

szav

Member
Oct 1, 2010
47
0

cescof

Senior Member
Oct 4, 2005
623
20
Cesena
Hy guys is it possibile have this kernel in a zip flashable version..
I haven' t my pc here but i need to try cause i want my phone for 24 hrs...a day...
Regards
 

ante0

Senior Member
Dec 28, 2009
3,214
1,581
Stockholm
Hy guys is it possibile have this kernel in a zip flashable version..
I haven' t my pc here but i need to try cause i want my phone for 24 hrs...a day...
Regards

Just flash in CWM. Open CWM and select Flash Kernel, then select this kernel. It will flash then reboot.

Testing it now. Lets hope it works ;)
Btw, have you noticing it not obeying SetCPU?
In both CF-Root and a testkernel I tried then clock would go above the max I set. I had it set at 800 but it still went to 1ghz, 1.2ghz and 1.6ghz...
 
  • Like
Reactions: blakeboro

saturn_de

Senior Member
Jan 29, 2010
156
162
Just flash in CWM. Open CWM and select Flash Kernel, then select this kernel. It will flash then reboot.

Testing it now. Lets hope it works ;)
Btw, have you noticing it not obeying SetCPU?
In both CF-Root and a testkernel I tried then clock would go above the max I set. I had it set at 800 but it still went to 1ghz, 1.2ghz and 1.6ghz...
Just don't use SetCPU... it's useless. "Race to idle" is the key. Don't be smarter than the kernel and add more load with an app.
 

dr3minem

Senior Member
Nov 11, 2008
189
27
34
Frankfurt
Just flash in CWM. Open CWM and select Flash Kernel, then select this kernel. It will flash then reboot.

Testing it now. Lets hope it works ;)
Btw, have you noticing it not obeying SetCPU?
In both CF-Root and a testkernel I tried then clock would go above the max I set. I had it set at 800 but it still went to 1ghz, 1.2ghz and 1.6ghz...

Really? Where did you check your real clock speed? In the Battery statistics in setCPU it tells me 0% for 1200 Mhz if i set it to 500-1000Mhz, using CF-Root for now.

@saturn_de: Isn't CF-Root 4.1 out? I have no idea whats changed but im one of those "the newer the better guys" even though i know thats not always true :confused: haha

EDIT: Ill stop using setCPU for today and see how it goes
 

umair9001

Senior Member
Mar 21, 2010
276
87
Doha
www.facebook.com
Just flash in CWM. Open CWM and select Flash Kernel, then select this kernel. It will flash then reboot.

Testing it now. Lets hope it works ;)
Btw, have you noticing it not obeying SetCPU?
In both CF-Root and a testkernel I tried then clock would go above the max I set. I had it set at 800 but it still went to 1ghz, 1.2ghz and 1.6ghz...
it is not an overclocked kernel..and it obeys setcpu profiles..i am using them.. :)

Removing setcpu as per saturn.. :) lets see..
 

H377

Senior Member
Apr 18, 2010
356
68
I cannot see any change yet. Just flashed KG1 and the kernel and the Android OS is still 20%.

We will see in a long-term.

Fingers crossed.
 

Pume

Senior Member
Feb 14, 2008
343
78
43
Varkaus
I cannot see any change yet. Just flashed KG1 and the kernel and the Android OS is still 20%.

We will see in a long-term.

Fingers crossed.

Email is still draining... Don't know about anything else as I haven't had any other processes / apps draining my power source aka battery.
 

H377

Senior Member
Apr 18, 2010
356
68
Email is still draining... Don't know about anything else as I haven't had any other processes / apps draining my power source aka battery.

I have Gmail and Exchange all set up to PUSH but I don't have a problem with them. Only the Android OS's battery usage is high.
 

Pume

Senior Member
Feb 14, 2008
343
78
43
Varkaus
I have Gmail and Exchange all set up to PUSH but I don't have a problem with them. Only the Android OS's battery usage is high.

If your awake bar is not blue when the screen is off then you don't have anything to worry about. Android OS percentage does not mean a thing if the phone stays asleep when it should.
 
  • Like
Reactions: H377

H377

Senior Member
Apr 18, 2010
356
68
If your awake bar is not blue when the screen is off then you don't have anything to worry about. Android OS percentage does not mean a thing if the phone stays asleep when it should.

Thanks!

In fact after 12 or 14 hours I got 50% of the battery with normal usage. I don't know if it's normal or not but my HD2 and Desire also last almost the same.

I always had to charge them at night every day if I didn't want them to run of fuel during next business day.
 

scanie

Senior Member
Jul 18, 2008
119
8
Flashed via CWM without problems. Will be using this kernel and post results tomorrow night.

I'm on Exynos 2.0.
 

H377

Senior Member
Apr 18, 2010
356
68
After 1h2m almost always in idle with screen off (GMail&Exchange Push, 3G on) 1% has gone. The phone was charged to 100% and the battery stats were also wiped.


EDIT: GPS was/is also on
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    This is a self compiled Kernel from these sources. It's a fork of the kernel source git plus some performance tweaks and minus a bad patch, which turned out to drain the battery.

    The initramfs (source) is a modified CF-Root v4.1 of the KG1.
    I added some /proc and /sys tweaks in init.rc (github of the initramfs):
    Code:
    +    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
    +    write /sys/block/mmcblk0/queue/scheduler noop 
    +    write /sys/block/mmcblk0/queue/read_ahead_kb 512
    +    write /proc/sys/vm/highmem_is_dirtyable 1
    +    write /proc/sys/vm/dirty_writeback_centisecs 1500
    +    write /proc/sys/vm/laptop_mode 5

    This probably works best with Villain ROM 2.0 [2.3.4] and the XXKG1 radio image.


    History:

    Version 1.1:

    Version 1.2 :
    • now based on CF-Root 4.1 (was 4.0)
    • cherry-pick'ed some fixes from cfs-exp branch of ninphetamine github
    • removed "setprop dalvik.vm.execution-mode int:fast", which prevents JIT
    • changed touchscreen MOVHYSTI to 5 from 0 (15 original)

    Version 1.3 :
    • removed bogus /sys, /proc settings
    • use /init from KG1/CF-ROOT
    • set readahead to 512kb
    • enabled fuse, so you can use "ntfs-3g" to mount a NTFS drive

      There is also a variant with MOVHYSTI set to "0" (Backslash-1.3-HYST0). Let me know, if you have those touchscreen problems with either "0" (HYST0) or the "5" in the normal kernel.

    So how does it look like? See the attached image (FastDormancy was not turned off, because it got better in 2.3.4)

    Benchmark CF-Bench Pro v1.1
    Interpretation left to the reader... :p
    Code:
    Stock CF-Root KG1:	      |	Backslash-1.3:
    Native:	11256	11478	11172 |	11566	11360	11414
    Java:	3155	3235    3071  |	3411	3240	3327
    Overall:6395	6532	6311  |	6673	6488	6561
    
    read: 	553	535	540   |	564	571	570
    write: 	138	180	176   |	181	181	173
    1
    Hy guys is it possibile have this kernel in a zip flashable version..
    I haven' t my pc here but i need to try cause i want my phone for 24 hrs...a day...
    Regards

    Just flash in CWM. Open CWM and select Flash Kernel, then select this kernel. It will flash then reboot.

    Testing it now. Lets hope it works ;)
    Btw, have you noticing it not obeying SetCPU?
    In both CF-Root and a testkernel I tried then clock would go above the max I set. I had it set at 800 but it still went to 1ghz, 1.2ghz and 1.6ghz...
    1
    @saturn_de: Isn't CF-Root 4.1 out? I have no idea whats changed but im one of those "the newer the better guys" even though i know thats not always true :confused: haha

    I will have a look what changed in CF-Root 4.1 ...
    1
    I have Gmail and Exchange all set up to PUSH but I don't have a problem with them. Only the Android OS's battery usage is high.

    If your awake bar is not blue when the screen is off then you don't have anything to worry about. Android OS percentage does not mean a thing if the phone stays asleep when it should.
    1
    Hi,
    can you tell us what tweaks you applied ?

    thx

    Updated the first post with details for the initramfs.