[i9300][2014/JUN/10][AOSP] Yank555.lu kernel v1.7a-beta3

Which toolchain do you prefer ?

Poll ended at 16 May 2013, 20:05

Toolchain A - Google 4.4.3
26
21%
Toolchain B - Google 4.7
63
52%
Toolchain C - Linaro 4.7 2013.04
33
27%
 
Total votes : 122

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby Hopesfall » 12 May 2014, 11:41

TylonHH wrote:As far as I know you will always have a delay on non sammy roms. Because Samsung didn't published the mali driver.
You didn't had that delay on CM before?

---------------
gesendet vom Barhocker


I was on stock before, sammy roms had even bigger problems with the delay. although i must admit i was hoping CM would resolve it.

yank555 wrote:
Hopesfall wrote:i tried that already, cranked it up to 600 Mhz. still getting delays :/

i flashed CM11 just because of this delay, i was hoping the delay would be completely gone.


Well a few things to consider :

1) stock screen off max is 1400

2) the wakeup lag is inherent to the Exynos platform (don't have it on Qualcomm)

3) governors behave differently, some rev up faster than others

Unfortunately there is no perfect medicine for wakeup lag, once the device is in deep sleep, it will not wake up instantly, and some battery saving additions may contribute to make it worse.

You need to find a balance that is acceptable for you, it will not likely get perfect on the i9300 ...

I've added a "wakeup kick" in my Note 3 kernel, which boosts scaling min for a certain time on wakeup, could help ... I'll try to port it to i9300 when I have spare time, but I don't think it will help, as I'm afraid it will be too late when it'll be activated (cf. point 2 above).

JP.


Thanks for your reply :) I'll try those definitely.

Tell me, is there a way to passively disable deep sleep altogether? like not letting the processor go into deep sleep but instead keeping it at designated freq when the screen is off? I'm assuming that the first option does exactly that or?

I mean SGS3 is an awesome device even today and it's really sad to see that it has problems with this delay.
Hopesfall
 
Posts: 4
Joined: 11 May 2014, 21:25
Has thanked: 3 times
Been thanked: 0 time

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby yank555 » 12 May 2014, 12:16

Hopesfall wrote:
TylonHH wrote:As far as I know you will always have a delay on non sammy roms. Because Samsung didn't published the mali driver.
You didn't had that delay on CM before?

---------------
gesendet vom Barhocker


I was on stock before, sammy roms had even bigger problems with the delay. although i must admit i was hoping CM would resolve it.

yank555 wrote:
Hopesfall wrote:i tried that already, cranked it up to 600 Mhz. still getting delays :/

i flashed CM11 just because of this delay, i was hoping the delay would be completely gone.


Well a few things to consider :

1) stock screen off max is 1400

2) the wakeup lag is inherent to the Exynos platform (don't have it on Qualcomm)

3) governors behave differently, some rev up faster than others

Unfortunately there is no perfect medicine for wakeup lag, once the device is in deep sleep, it will not wake up instantly, and some battery saving additions may contribute to make it worse.

You need to find a balance that is acceptable for you, it will not likely get perfect on the i9300 ...

I've added a "wakeup kick" in my Note 3 kernel, which boosts scaling min for a certain time on wakeup, could help ... I'll try to port it to i9300 when I have spare time, but I don't think it will help, as I'm afraid it will be too late when it'll be activated (cf. point 2 above).

JP.


Thanks for your reply :) I'll try those definitely.

Tell me, is there a way to passively disable deep sleep altogether? like not letting the processor go into deep sleep but instead keeping it at designated freq when the screen is off? I'm assuming that the first option does exactly that or?

I mean SGS3 is an awesome device even today and it's really sad to see that it has problems with this delay.


I believe there are apps that do that, but a wakelock will eat up a steady ~60mA/h ...

The delay is a hardware design issue, so except by impeeding deep sleep, I don't expect any good solution.

JP.

Send from my 'proudly eFused' Note 3 (n9005) running Temasek v75 on Yank555.lu htle v1.0a-beta1 (3.4.89) kernel.
Nexus 5 (aka. Hammerhead) 32Gb
Note 3 SM-N9005 32Gb Proudly eFused
SGS3 GT-I9300 32Gb
HTC Sensation XE
HTC HD2
TF300TG 32Gb

Image
Credits FAdrums !
User avatar
yank555
-----------
 
Posts: 3520
Joined: 11 Mar 2013, 20:51
Has thanked: 924 times
Been thanked: 4608 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby Hopesfall » 12 May 2014, 12:23

yank555 wrote:I believe there are apps that do that, but a wakelock will eat up a steady ~60mA/h ...

The delay is a hardware design issue, so except by impeeding deep sleep, I don't expect any good solution.

JP.

Send from my 'proudly eFused' Note 3 (n9005) running Temasek v75 on Yank555.lu htle v1.0a-beta1 (3.4.89) kernel.


I know there are apps to do it, but they are really unreliable(OS kills them), that's why i asked is there a way to disable it so it remains persistent?
I want to try it out for few days without deep sleep, if the battery can hold for one day i'll gladly disable it because i always charge my phone at night and in most cases the battery is well over 50% when i plug it in after a day's usage.
Hopesfall
 
Posts: 4
Joined: 11 May 2014, 21:25
Has thanked: 3 times
Been thanked: 0 time

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby yank555 » 12 May 2014, 12:37

Hopesfall wrote:
yank555 wrote:I believe there are apps that do that, but a wakelock will eat up a steady ~60mA/h ...

The delay is a hardware design issue, so except by impeeding deep sleep, I don't expect any good solution.

JP.

Send from my 'proudly eFused' Note 3 (n9005) running Temasek v75 on Yank555.lu htle v1.0a-beta1 (3.4.89) kernel.


I know there are apps to do it, but they are really unreliable(OS kills them), that's why i asked is there a way to disable it so it remains persistent?
I want to try it out for few days without deep sleep, if the battery can hold for one day i'll gladly disable it because i always charge my phone at night and in most cases the battery is well over 50% when i plug it in after a day's usage.


If you set touchwake to infinite, you'll have just that, but you mustn't turn the phone off with the power key, it needs to either time out or you need to use some app.

JP.

Send from my 'proudly eFused' Note 3 (n9005) running Temasek v75 on Yank555.lu htle v1.0a-beta1 (3.4.89) kernel.
Nexus 5 (aka. Hammerhead) 32Gb
Note 3 SM-N9005 32Gb Proudly eFused
SGS3 GT-I9300 32Gb
HTC Sensation XE
HTC HD2
TF300TG 32Gb

Image
Credits FAdrums !
User avatar
yank555
-----------
 
Posts: 3520
Joined: 11 Mar 2013, 20:51
Has thanked: 924 times
Been thanked: 4608 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby cornelha » 13 May 2014, 08:29

Hey Yank,

Can you please tell me which files need to be included in a repacked zip. I want to keep my configuration after every Omni nightly update. I know how to repack a kernel, just need to make sure about the configuration files needed for your kernel.
cornelha
 
Posts: 26
Joined: 19 Aug 2013, 09:00
Has thanked: 7 times
Been thanked: 14 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby yank555 » 13 May 2014, 09:02

cornelha wrote:Hey Yank,

Can you please tell me which files need to be included in a repacked zip. I want to keep my configuration after every Omni nightly update. I know how to repack a kernel, just need to make sure about the configuration files needed for your kernel.


The generated config file is : /system/etc/init.kernel.sh

And of course the boot image and kernel modules need to be in there ;)

JP.
Nexus 5 (aka. Hammerhead) 32Gb
Note 3 SM-N9005 32Gb Proudly eFused
SGS3 GT-I9300 32Gb
HTC Sensation XE
HTC HD2
TF300TG 32Gb

Image
Credits FAdrums !
User avatar
yank555
-----------
 
Posts: 3520
Joined: 11 Mar 2013, 20:51
Has thanked: 924 times
Been thanked: 4608 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby cornelha » 13 May 2014, 10:01

yank555 wrote:
cornelha wrote:Hey Yank,

Can you please tell me which files need to be included in a repacked zip. I want to keep my configuration after every Omni nightly update. I know how to repack a kernel, just need to make sure about the configuration files needed for your kernel.


The generated config file is : /system/etc/init.kernel.sh

And of course the boot image and kernel modules need to be in there ;)

JP.


Great stuff, thanks a lot man.
cornelha
 
Posts: 26
Joined: 19 Aug 2013, 09:00
Has thanked: 7 times
Been thanked: 14 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby cornelha » 13 May 2014, 10:49

I borked it somewhere, could you please have a look at my scipt?

Code: Select all
ui_print(" ");
ui_print("*Yank555 Kernel*");
ui_print(" ");
show_progress(0.100000, 0);
show_progress(0.100000, 20);

ui_print("* Flashing kernel *");

assert(package_extract_file("boot.img", "/tmp/boot.img"),
show_progress(0.100000, 40);
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
show_progress(0.100000, 60);
delete("/tmp/boot.img"));

ui_print("Extracting modules and config..");
show_progress(0.100000, 80);
run_program("/sbin/busybox", "mount", "/system");
assert(package_extract_dir("system", "/system"));
ui_print("Fixing Permissions..");
set_perm_recursive(0,0,0755,0644,"/system");
ui_print("Unmounting File System..");
run_program("/sbin/busybox", "umount", "/system");

show_progress(0.100000, 100);
ui_print(" ");
ui_print(" ");
ui_print("  * Installation Finished Succesful *");


File Structrure is as follows
system/lib/modules/*
system/etc/init.kernel.sh
boot.img

It just doesn't boot. I'm pretty sure it's something very stupid somewhere that I missed.
cornelha
 
Posts: 26
Joined: 19 Aug 2013, 09:00
Has thanked: 7 times
Been thanked: 14 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby yank555 » 13 May 2014, 11:09

cornelha wrote:I borked it somewhere, could you please have a look at my scipt?

Code: Select all
ui_print(" ");
ui_print("*Yank555 Kernel*");
ui_print(" ");
show_progress(0.100000, 0);
show_progress(0.100000, 20);

ui_print("* Flashing kernel *");

assert(package_extract_file("boot.img", "/tmp/boot.img"),
show_progress(0.100000, 40);
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
show_progress(0.100000, 60);
delete("/tmp/boot.img"));

ui_print("Extracting modules and config..");
show_progress(0.100000, 80);
run_program("/sbin/busybox", "mount", "/system");
assert(package_extract_dir("system", "/system"));
ui_print("Fixing Permissions..");
set_perm_recursive(0,0,0755,0644,"/system");
ui_print("Unmounting File System..");
run_program("/sbin/busybox", "umount", "/system");

show_progress(0.100000, 100);
ui_print(" ");
ui_print(" ");
ui_print("  * Installation Finished Succesful *");


File Structrure is as follows
system/lib/modules/*
system/etc/init.kernel.sh
boot.img

It just doesn't boot. I'm pretty sure it's something very stupid somewhere that I missed.


I will just assume mmcblk0p5 is the right partition, can't really check right now.

This :

set_perm_recursive(0,0,0755,0644,"/system");

is a bit excessive, you'll remove all execution access of every file (644 = rw-r--r--) in whole /system, so it just can't boot, nothing can be executed ;)

Set permissions only where you changed stuff, or better, only on the files you change ;)

JP.
Nexus 5 (aka. Hammerhead) 32Gb
Note 3 SM-N9005 32Gb Proudly eFused
SGS3 GT-I9300 32Gb
HTC Sensation XE
HTC HD2
TF300TG 32Gb

Image
Credits FAdrums !
User avatar
yank555
-----------
 
Posts: 3520
Joined: 11 Mar 2013, 20:51
Has thanked: 924 times
Been thanked: 4608 times

Re: [i9300][2014/MAR/22][AOSP/CM ROMs] Yank555.lu kernel v1.

Postby cornelha » 13 May 2014, 12:44

yank555 wrote:
cornelha wrote:I borked it somewhere, could you please have a look at my scipt?

Code: Select all
ui_print(" ");
ui_print("*Yank555 Kernel*");
ui_print(" ");
show_progress(0.100000, 0);
show_progress(0.100000, 20);

ui_print("* Flashing kernel *");

assert(package_extract_file("boot.img", "/tmp/boot.img"),
show_progress(0.100000, 40);
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p5"),
show_progress(0.100000, 60);
delete("/tmp/boot.img"));

ui_print("Extracting modules and config..");
show_progress(0.100000, 80);
run_program("/sbin/busybox", "mount", "/system");
assert(package_extract_dir("system", "/system"));
ui_print("Fixing Permissions..");
set_perm_recursive(0,0,0755,0644,"/system");
ui_print("Unmounting File System..");
run_program("/sbin/busybox", "umount", "/system");

show_progress(0.100000, 100);
ui_print(" ");
ui_print(" ");
ui_print("  * Installation Finished Succesful *");


File Structrure is as follows
system/lib/modules/*
system/etc/init.kernel.sh
boot.img

It just doesn't boot. I'm pretty sure it's something very stupid somewhere that I missed.


I will just assume mmcblk0p5 is the right partition, can't really check right now.

This :

set_perm_recursive(0,0,0755,0644,"/system");

is a bit excessive, you'll remove all execution access of every file (644 = rw-r--r--) in whole /system, so it just can't boot, nothing can be executed ;)

Set permissions only where you changed stuff, or better, only on the files you change ;)

JP.

Ah hah! Makes sense, thanks. Works a charm.
cornelha
 
Posts: 26
Joined: 19 Aug 2013, 09:00
Has thanked: 7 times
Been thanked: 14 times

PreviousNext

Return to Kernels

Who is online

Users browsing this forum: No registered users and 10 guests

cron