yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] cocchiararo:
swype devs said that "kanging" it from a rom for your own phone, and using it in the same phone, is ok.

you would have to modify it to make it work tho.
[Galaxy S I9000 Android Development] andrewin:
Dear zacharias,

Thank you very much for your efforts in improving the kernel.

I have a problem with light sensor and proximity sensor on your latest kernel (conservative, no zram), I tried reboot and wipe dalvik cache several times with no result.

However the problem does not appear on bilboa's last kernel.

Could it be the reason that I initially flashed CM7 over JVK (thus with JVK bootloader), got non-working external SD, reflashed bootloader from JPB (got ext SD back)?

Which bootloader are you using (if you remember)?

Do you think full wipe would help?
[Galaxy S I9000 Android Development] sugar 7:
I DO a wipe davilk cache because my autorotation screen doesn t work...now it s ok

;)
[Galaxy S I9000 Android Development] zacharias.maladroit:
you can either wipe the dalvik cache like sugar 7 wrote,

or press the power button for 10+ seconds while it's on and it should reboot and afterwards the autorotation & sensors should (hopefully) work again

take your pick

the Gingerbread bootloaders cause several problems so it could be because of that - I haven't used it though
[Galaxy S I9000 Android Development] andrewin:
Thanks!

Finally I did both and it works now.

I think last one helped.
[Galaxy S I9000 Android Development] sugar 7:
HI !

I configure missing call for the led with CMparts but doesn t work :(

what can I do ?

Thank s a lot...

Edit : sorry it s ok Thank s

Good job !
[Galaxy S I9000 Android Development] strickyy:
Which one should i use on MIUI?
[Galaxy S I9000 Android Development] zacharias.maladroit:
You wanted it - you got it:

THE genuine 100 Hz kernel - battery savings & optimizations galore:

kernel:

Changelog:

Steps for optimally bringing up your phone (I'm assuming you're using stock ADW Launcher):
[Galaxy S I9000 Android Development] strickyy:
Can i use this 100Hz kernel on MIUI ?
[Galaxy S I9000 Android Development] zacharias.maladroit:
yes,

you didn't even take a look at the MIUI thread, did you ? :rolleyes:
[Galaxy S I9000 Android Development] strickyy:
Thanks

I didn't, was refreshing this hehehe :)
[Galaxy S I9000 Android Development] Bonta768:
You said previously:

and now changed to:

so just clarifying, kernel timer is down to 100Hz and user timer is up to 200Hz?

Kewl!
[Galaxy S I9000 Android Development] zacharias.maladroit:
obviously ? :p

the kernel (or high res timer ?) is the global timer - the user Hz timer for programs (or specifically GUI-related programs)

this should give nice trade-off of battery runtime and and still an interactive GUI with all the other tweaks :cool:

so in essence there only seem to be 2 timers if I understood it correctly - due to fixes to the kernel & scripts it nevertheless should be very smooth (not counting the GUI after the boot - since that is jerky for several seconds with each kernel - the phone isn't there for rebooting continously - after all)

thanks !
[Galaxy S I9000 Android Development] vukandric:
I am on your latest kernel. It is too early to say something about battery life, but I always have problem with connecting my phone with computer. It connects ok, but after I disable usb connection, phone just hangs for a few seconds and then reboot. Had that with all your previous kernel (I am on MIUI now of course, not CM7)
[Galaxy S I9000 Android Development] evensteven:
Sad thing that this kernel makes JuiceDefender almost unusable. When the phone establishes the internet connection it lags like hell. That's ever since I tried this kernel which may be the last 3 or 4 versions. It's not related to the scripts as I use them with bilboa's kernel and everything is totally fine.
[Galaxy S I9000 Android Development] jetpackjeff:
Latest 100hz kenel is so slow its not usable for me
[Galaxy S I9000 Android Development] Bonta768:
I note that hardcore has the following values in his froyo kernel; (He issues both 250Hz and 500Hz kernels): CONFIG_NO_HZ=y and CONFIG_HZ=250.

Please release the .config for your kernel :)

I want to try CONFIG_NO_HZ=y and CONFIG_HZ=300 myself.
[Galaxy S I9000 Android Development] cocchiararo:
latest kernel as it comes sucks big time on my i9000 with MIUI

Phone is unusable while using waze + playing music over bluetooth. Very laggy, notifications appear, then sounds are played, car home is ultra jerky, waze is way jerkier, when i skip a track, it takes a few seconds to do it, etc.

When just using the phone, it stil is jerky, notifications appear on the notification bar, then the sound is played, 1 or 2 seconds later.

I changed the default governor in your script to ondemand, and the normal phone usage got better, havent gone to car mode again.

Also, slideIT Demo keyboard (haven't decided if i will dich swype or not yet) forcecloses on me now.
[Galaxy S I9000 Android Development] g00ndu:
I guess the latest kernel by zac the man is meant more for testing. Since we have been pushing too hard to obtain maximum performance, it is indeed nice to see how low we can get and yet doesn't affect the overall user experience.
[Galaxy S I9000 Android Development] cocchiararo:
ya

but at least for me, it sucks big time, celphone is almost unusable.

Another thing i noticed, is that the screen state script must be failing, the phone remains on the screen off governor (acording to OSmonitor, and it must be right, because if i change to ondemand using osmonitor, performance kinda comes back).

Also, when i lock/switch off creen, and then wake the phone, i get presented with the last screen i saw, and a few secs later, the lockscreen
[Galaxy S I9000 Android Development] zacharias.maladroit:
for me it has always been the case with my kernel - but only the 1st time after flash / usage

generally after the first connect and where this issue occured (that it doesn't connect and hangs or connects but then hangs somehow) it would cause high cpu usage (you can see via adb shell - top) and then reboot

after that it would (and should) be fine

thanks for reporting !

internet means via 3G data or WIFI ?

for me I only noticed real lags with invert colors & the stock browser

don't know what might cause that lags with internet right now :o

thanks for the report !

any specifics ?

thanks !

it would (potentially) raise battery usage - but OK; I'll give it a try

also:CONFIG_HZ is USELESS since it gets overwritten by the Kconfig value ;)

the kernel config is in the source repo and also can be obtained via zcat /proc/config.gz

like demanded by users in the past

thanks !

edit:

my bad - I just found out that the USER_HZ value is at 100 Hz - so I forgot to bump that up *scratches head*

that's probably the reason why it's so slow: 100 & 100 :P

all the symptoms you mentioned most likely are caused by the slower timer of the kernel (100 Hz)

seems like that isn't usable for a broader audience (yet ?)

thanks for your report !

well, yes - there are some significant changes and this might be the reason why it's still a little bit rough around the edges

but it seems to works fine for me - even though the battery usage appears to be somewhat high (18% for 6.5 hours - that's 2.4% or 4.8% - roughly 5% per hour with stock battery) - this could be because the battery is still pretty new and the stats not accurate yet

thanks !

no it doesn't - it works for me :p

I'll observe within the next days & see if it really doesn't switch - but it did for me prior to releasing this new (test) kernel

the reasons seems to be that the timer doesn't generate enough ticks and therefore stuff simply doesn't gets finished ;)

thanks !
[Galaxy S I9000 Android Development] andrewin:
That's true.

It is not really slow, but sometimes not smooth enough.

Good example - if you try to do something when background sync is in progress... Whole interface becomes very slow.

On normal HZ as well, but not so much.

Also games become quite laggy (like Asphalt 6).

By the way, do you recommend turning off "notification power widget" to save battery?
[Galaxy S I9000 Android Development] alerems:
Latest kernel isn't so slow. Battery usage is good. But one big problem - rotation isn't working. I tried wipe dalvik and 10sec-reboot several times but no effect. Reverted back to 03.04 - all is good, but battery.. :(
[Galaxy S I9000 Android Development] Bonta768:
fyi, I talked about a Hz value of 300 because you can divide it by 60, 50, 25 and 15. This helps playback of media files from the lands of PAL and NTSC. I read that in another kernel source file somwhere.
[Galaxy S I9000 Android Development] kroat999:
Why my compas doesent work how candido i fix this?
[Galaxy S I9000 Android Development] Mercury0660:
It's a known bug and hasn't been fixed yet.
[Galaxy S I9000 Android Development] evensteven:
Internet means 3G in this case. Can't tell about WiFi as I manage that manually.

I observed similar behavior on Samsung ROMs. CM7 is the first ROM I tried on this phone which handles the 3G activation totally fine. On every Samsung ROM the lag was always there more or less. What I observed while trying all the custom kernels is that higher hz values made it worse. That means hardcores 250hz kernel was the best for JuiceDefender and with FuguMod I didn't even need to try as the phone almost freezed after unlocking the screen. Seems like the effect also may work in the other direction. But I'm not sure if it's the only thing that causes this.
[Galaxy S I9000 Android Development] cocchiararo:
Zach, the sceen state script works for me too, just not in the new kernel.

I reverted to your last kernel, and it works again.
[Galaxy S I9000 Android Development] alihaydarf:
could you please share .tar package of your kernel to flash using odin. I have a problem with cwm recovery, when i install kernel i get stuck at samsung logo and i want to flash your kernel to use with miui, i am running cm7 initial kernel with miui rc3c now.

thanks in advance
[Galaxy S I9000 Android Development] zacharias.maladroit:
if your battery runtime isn't good and you can do without it - for sure !

thanks !

that's most probably also due to the low timer

good battery usage - bad features XD

so we can't have both right now :(

hopefully codeworkx, coolya or anyone else can figure out on how to improve battery runtime in the near future

makes sense - I've also read about that in the past

you convinced me :p

what's your opinion on the following:

User_HZ 100 Hz (stock ?) or anything else ?

[might improve interactivity but also cause more ticks & thus wake-ups of the CPU for bad coded apps]

I think I'll try out a 250 Hz for the next kernel since I haven't used that yet :D and it seems to work well, too (see hardcore's speedmod kernel)

thanks !

yes, afaik the compass is even disabled right now

well, maybe I'll try out a 250 Hz kernel in the near future then

thanks !

ok,

thanks for your feedback !

couldn't you first post a howto to do it ? :p

now I need to search on how to do it ;)

wait until my next kernel is released - this one may have great battery runtime but I'm also facing some issues with it

thanks !
[Galaxy S I9000 Android Development] derrzredeem:
you could try using SGS kernel flasher by neldar - available in market.

but, not so sure it will work/compatible with GB/CM7.

or,

if you are familiar with adb, you could flash it anyway - untill zach provided a kernel flashable with odin :)
[Galaxy S I9000 Android Development] Bonta768:
I think to make a Odin flashable kernel tar file, you take only the zImage and put it in a tar file. 7-zip is your friend if you don't know how.

Sent from another galaxy using XDA App
[Galaxy S I9000 Android Development] zacharias.maladroit:
from what I read 7zip & windows created tar files don't work

(specific format-related issue)
[Galaxy S I9000 Android Development] Skimi:
Does this kernel work with JVK Rom?
[Galaxy S I9000 Android Development] Bonta768:
Weird. I'd really like to know why...

And I just had my first unattended reboot while being recharged. It got stuck in the boot up animation with really washed out colors and needed a long press power button.

Sent from another galaxy using XDA App
[Galaxy S I9000 Android Development] zacharias.maladroit:
no - be careful what you flash !

CM7 == CyanogenMod 7

so it's not compatible with stock ROMs (either modded or not)

weird - indeed

it normally should take care of that itself & not stay at that hang :confused:
[Galaxy S I9000 Android Development] Bonta768:
It seems that 7zip creates tar files that are not recognized as POSIX format, which seems to be ustar format.
[Galaxy S I9000 Android Development] zacharias.maladroit:
Kernel release name: Rocketeer (same-day release like for the Captivate)

Changelog:
[Galaxy S I9000 Android Development] vukandric:
Just flashed new kernel. Speed is ok now, no lag for now. We will see about battery. Anyway, great work once again. ;)

Sent from my GT-I9000
[Galaxy S I9000 Android Development] g00ndu:
7zip will work under the following conditions:

If you have an existing tar file, all you need is to replace the zImage inside the tar file. (There was plenty of flame war going on in another thread regarding about this, but that's another story :D).

If you create tar file under 7zip, it won't work, as what zach has said, different format.

To create tar file under Windows, ragin (user) said that he always use PeaZip and there's no problem with the format. Either use google to search or I will use lmgtfy.com on those who ask. :p

And neldar kernel flasher doesn't support cm7 and miui the last time i tried to use. This is due to the app not recognising the FS of cm7 and miui. I'm not sure if that has been upgraded or not for now.
[Galaxy S I9000 Android Development] zacharias.maladroit:
thanks !

hopefully this will work more smoothly & better

since I now need to focus on study & it works pretty well for me right now

gotta go to sleep now

as a reference:

the syntax of the actual command I used was:

tar --format=ustar -cf kernel.tar zImage

@alihaydarf:

attached you'll find the zImage of the latest platypus kernel (release name: Rocketeer)

I hope it works with Odin XD

don't forget to install the full package with modules (update.zip via CWM Recovery) when it's running

otherwise WIFI and other stuff won't work

thanks !
[Galaxy S I9000 Android Development] felix_tung:
Just flashed new kernel and noticed auto rotation does not work anymore.
[Galaxy S I9000 Android Development] zacharias.maladroit:
known problem - read through thread:

* press power button for 10+ seconds -> reboot - afterwards it should work

* clear Dalvik Cache

do both

worked for me

enjoy !
[Galaxy S I9000 Android Development] felix_tung:
Hey Zach thanks for the quick reply. I tried both ways but i think it's because i'm using Miui. It's not working either way.

edit. Sorry it works now! Thanks!
[Galaxy S I9000 Android Development] cocchiararo:
newest kernel seems to rock.

will update tomorow.
[Galaxy S I9000 Android Development] dennishylau:
Hi Zach

Thank you for the latest 8 Apr kernel, very smooth and responsive.

However the time required to boot cm7 is relatively long comparing to 2.2.1 roms with speedmod kernels which only take a matter of seconds to fully boot up. Is this due to unoptimized system of cm7 or other reasons?

cheers
[Galaxy S I9000 Android Development] cocchiararo:
Ok, has one spontaneous soft reboot.

It went from usable -» miui boot screen
[Galaxy S I9000 Android Development] Bonta768:
Thxyou zach. Specifically which version of the Thumb instruction set...? Must be Thumb-2. edit: Oh actually might be ThumbEE? http://en.wikipedia.org/wiki/ARM_architecture#Thumb-2

The latest kernel is also a lot larger than the last one...?
[Galaxy S I9000 Android Development] g00ndu:
Were you listening to music when you got that soft reboot?
[Galaxy S I9000 Android Development] cocchiararo:
I had just connected the car charger (which makes tasker enable bt) and switched on the car stereo, which it connects to my phone, launches another tasker profile which dies many things (disables screen timeout, changes brightness, launched car home app, uses the text to speech engine to play a message, and maybe more)

I an sure the reboot came before the text to speech part.

I'm not sure if it came before or after the bt connection

-----

Zach

Is this last kernel compiled with/in thumb mode? (I missed that in the changelog).

I remember hardcore experimented with that on his kernels for Samsung froyo, and finally went back to ARM mode, don't remember why
[Galaxy S I9000 Android Development] alihaydarf:
thank you, could you please attach .zip file with modules also, i am at work right now and multiupload is banned :(

thank you again....:)
[Galaxy S I9000 Android Development] g00ndu:
I did encounter that when listening to music, but the miui boot animation colors were totally washed out; it was very dark compare with the normal boot animation.

Not that I am saying it is kernel related, but it might be more to do with ram management, at least for my case.

Likely will switch to bilboa1's kernel and do some more testing.
[Galaxy S I9000 Android Development] alihaydarf:
i found it in your first post :) and it worked first i flashed zip in cwm and rebooted when it got stuck i booted into download mode and flashed your kernel with odin restart and voila miui :D

thank you very much :) without your helps i would be lost and without miui :D
[Galaxy S I9000 Android Development] zacharias.maladroit:
my bad - seems like auto-rotation is broken again

I just tested it yesterday and it worked

might have something to do with the optimizations

I think I know what might fix it ...
[Galaxy S I9000 Android Development] evensteven:
Short feedback on latest kernel regarding JuiceDefender: It has improved, but still lags a bit as soon as the 3G connection is established. I stick with bilboa's kernel + your scripts for now. If there is anything I can do to help by testing or something else, just tell me.
[Galaxy S I9000 Android Development] alerems:
Zach,

There was one problem - auto-rotation and proximity sensors. I tried clearing the dalvik cache and 10 seconds reload - has not helped.

I tried a simple reboot through the menu - First, the device is not loaded, had to use to boot from tightening power key. From the second reboot it was loaded for 2 minutes and it worked! Everything is working now.

So, try. :)

The kernel is great. Battery with hard using (games, music, browsing) - 18 hours = 21%. Bravo Zach! Waiting for the next version. :)
[Galaxy S I9000 Android Development] bilboa1:
I went to 30H so far (not this kernel but i think it similar) - as in at 30H it went dead (so it sounds similar to your result)

I've installed JVK shortly as i need the camera with proper quality, and.. well to my surprise the battery life on JVK is just the same as I had on CM7.

So just saying, CM7 battery isn't so much of an issue. For me it was juts the power percent indication and sometimes the power widget causing battery troubles on CM7.
[Galaxy S I9000 Android Development] madmack:
can you share with us what you've done to get these awesome 30H out of CM ?

and what modem are you using ?
[Galaxy S I9000 Android Development] ock:
Thanks for another update, will test this over the weekend :)

Don't know if it's a coincidence, just got a reboot on bilboa's kernel on CM7. As you described, the boot animation appeared dim for a short while before it became normal. USB was plugged in, not listening to any music. Not likely it's specific to this kernel.
[Galaxy S I9000 Android Development] zacharias.maladroit:
Whoa !

that's annoying:

http://xdaforums.com/archive/index.php/t-712439.html

so something's really screwing up the acceleration sensor

and it also happens with Samsung's stock ROM so - a Gingerbread (2.3*) issue

wasn't me :p
[Galaxy S I9000 Android Development] zacharias.maladroit:
ok, thanks for your report :)

so it's an issue with JuiceDefender & it needs a cpufreq governor which scales up fast & uses up battery ?

go bother them to improve their app :p

thanks for your report !

could you please tell more in detail what you did to get the auto-rotation and proximity sensors to work

what button exactly for how long ?

it worked for me yesterday but now it doesn't (it seems to be a Gingerbread related problem which tends to get worse the more apps you have installed)

thanks !

yes, more likely related to the system or modified Dalvik settings

thanks !
[Galaxy S I9000 Android Development] alerems:
My steps:

- Recovery (wipe cache and dalvik-cache)

- Boot phone

- Reboot from menu. If ur phone didn't boot, tick power button for 10 seconds and boot phone.

- When phone is booted, reboot from menu and wait. (~2 minutes)

It helped me. I have ~50 progs installed and everything is working for me.
[Galaxy S I9000 Android Development] zacharias.maladroit:
thanks alerems !

unfortunately it still does not work for me :(

ok I did following steps - please correct if I did anything wrong:

1) shut down phone, press 3-button combo for Recovery (wipe cache & dalvik-cache)

2) reboot system now (select in Recovery) & let it boot

3) it asks for SIM number - do NOT enter, press power button and choose reboot

4) do step 3 again

is that correct ? :confused:

thanks !
[Galaxy S I9000 Android Development] alerems:
Yes, all right, but I have repeated cleaning the cache and 10sec reboot in a different order of about 10 minutes.

But after using the previous operations (described above) - it worked. Try! Everything works:) PS - I have 57 applications.
[Galaxy S I9000 Android Development] Mercury0660:
Autorotation works for mr after wiping dalvik, starting device with autorot on, then switch off and on again.
[Galaxy S I9000 Android Development] zacharias.maladroit:
thanks guys !

but: still not luck

seems like I'll be basing the kernel on bilboa1's kernel sources for some time from now on and meanwhile try to find out what breaks it by gradually introducing my patches

I'm currently running bilboa1's kernel since I'd like to play a little with its (gravity) sensors (labyrinth game - quite calming from time to time :))
[Galaxy S I9000 Android Development] Guiper:
If you want on Sunday I can try to help to find out what's happening wrong with the sensor. I wrote part of the driver.

You have some useful info on logcat if nobody disabled it. I'll try to reproduce the problem and let you know my findings.

Ps. Try to disable OC has a first guess. Accelerometer has some reading rate maybe OC mess with it
[Galaxy S I9000 Android Development] zacharias.maladroit:
yes, please :)

thanks a lot Guiper !

sorry, I've already given all 5 "thanks" for today

some info on it:

- I could observe in dmesg or logcat (?) that smb380 gets turned off while the screen is locked and on while it's unlocked (probably PM-related) & should be normal behavior

- I experimentally disabled (commented out) the part with the PM (power management) so that it would stay on since I had suspected that that might be the problem but it wasn't - it still didn't work

- I disabled UV, wiped /cache and Dalvik Cache: still no go
[Galaxy S I9000 Android Development] alibotan:
very nice romm thnkss
[Galaxy S I9000 Android Development] well.heeled.man:
The new kernel is great! Makes MIUI very smooth...

I'm so glad there is a kernel that takes elements from Super Optimized (and a lot more...). Was my kernel of choice when on stock ROM's.

With the screen-off set as powersave, is there any real gain using conservative vs ondemand with the limited amount of time the screen is on? I would suggest that the difference is only a few percent on a full charge? Will test anyway, but if someone has already given it a go... Any thoughts?

Edit: Whatever about battery life, conservative is good, but ondemand is like butter with MIUI Launcher.