yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] PoldyA4:
You are on JVR or JVS?
[Galaxy S I9000 Android Development] Pfiffle:
JVR, because? Is this no Kernel Problem?
[Galaxy S I9000 Android Development] mialwe:
Pfiffle got his BT/Wireless problem solved by doing a fresh ROM install.

0.6.0 uploaded -> midnight-0.6.0.tar

0.6.0 / 2011-09-17

- Upgraded proprietary modules to JVR

- minor speed tweaks

- added VR IO scheduler

- adjusted some tweaks (sources here)

- toggle CPU 1.0/1.2Ghz via sysfs + reloading cpufreq_stats module (thanks to stratosk for his great idea to switch the frequency via 2 functions in cpu-freq.c)

- lots of new CWM options:

-- shutdown from CWM

-- choose CPU max.freq 400/800/1000 or 1200Mhz (=4 steps)

-- choose CPU governor (conservative, ondemand)

-- choose CPU undervolting preset (10 presets for now)

-- choose lowmemorykiller preset (7 presets for now, 4th value=process killer)

-- choose IO scheduler (noop, vr, deadline, cfq)

-- choose read_ahead (sdcards) 512/1024/2048/3064/4096kB

-- choose touchscreen sensitivity presets (stock + 3 presets for now)

-- moved filesystem conversion to seperate menu

-- option to delete local.prop, S_volt_scheduler and Midnight config files

Sources updated @Github, too. The commits are a bit messy as I did the most changes during vacation without internet access... hope you like 0.6.0.
[Galaxy S I9000 Android Development] petulikt:
nice to see this new update. how is it with battery life? cause i wanna try this kernel. good feature is more cwm settings, like it
[Galaxy S I9000 Android Development] djdeeles:
upgraded to JVR or JVS ?
[Galaxy S I9000 Android Development] m3talmike:
- Upgraded proprietary modules to JVR
[Galaxy S I9000 Android Development] mialwe:
JVR for now, need more time to check the WIFI issue with JVS initramfs... did not try it yet.

@all: OP updated to show the most important changes, "streamlined" the post a little bit. Maybe I should cut the changelog, too. Getting too long now...
[Galaxy S I9000 Android Development] rom08:
Just a thought maybe you should also add default settings and maybe recommanded ones too into first post. For sdcard readahead we can see default settings in cwm but for I/O scheduler there is no default config. Maybe you can had to first post or to cwm default choices and recommanded ones by you. I'm particularly interested in your recommanded choice for touchscreen sensitivity and for oc/uv settings. Anyway welcome back. Hope you enjoyed your holidays because as far as I can see you seems to have work a lot on the kernel.
[Galaxy S I9000 Android Development] mancukya:
Thank you for this great kernel
[Galaxy S I9000 Android Development] mialwe:
THanks for the hint, updated OP with default settings.

My personal settings: 1Ghz, UV preset 8, conservative, noop, read_ahead 2048kB, sensitivity++

Sensitivity:++ but not sure I feel the difference...

LMK: testing the profiles, currently using preset 5.
[Galaxy S I9000 Android Development] hippo_potamus:
Good Kernel

Using 0.6.0 with the following settings:

conservative

noop

read_ahead 2048kB

sensitivity++

LMK: 0

It's very stable and battery life is ... good. Going to try UV later on.
[Galaxy S I9000 Android Development] djdeeles:
Highest Uv setting doesnt work otherwise perfect version

Can u provide more OC 1400mhz or 1440mhz?
[Galaxy S I9000 Android Development] mialwe:
Thanks. What does "doesnt work" mean? The setting itself does not work (gets not applied correctly in CWM) or is it just unstable with your SGS?

I thought about implementing 1.3Ghz - but I think I'd have to raise the internal voltage for this, too, which isn't necessary for 1.2Ghz - so I have not made a decision about this.
[Galaxy S I9000 Android Development] djdeeles:
When I set hightst uV setting CWM writes nothing to config file when i check voltages nothing applied but other settings working. For now i disable uV in CWM and use voltage control in 1200mhz -25 -100 -125 -150 -175
[Galaxy S I9000 Android Development] mialwe:
Yes, found the "bug" - menu respects only 11 instead of 12 options, will be fixed in next version.

If anyone has other UV/OC presets which should be included in CWM pleas notify me, there's space enough for a few presets more... I'll see if I can implement step-by-step individual UV settings for next version, too.
[Galaxy S I9000 Android Development] djdeeles:
Thanx :) great kernel I'm waiting jvs version too i u jvr for jvs system no problem except usb tether
[Galaxy S I9000 Android Development] hippo_potamus:
ext4

Is ext4 still necessary for this kernel?

Anyone ...
[Galaxy S I9000 Android Development] mialwe:
EXT4 never was *neccessary* for MIDNIGHT - but conversion RFS/EXT4 is an option (available in CWM), see first post.
[Galaxy S I9000 Android Development] simone201:
Glad to see u back mialwe!!

I hope u can do a great work! :)

PS: always watching ur repo! ;)
[Galaxy S I9000 Android Development] mialwe:
0.6.1 / 2011-09-17

- [Edit: removed bugfix]

- CWM: bugfix, enabled option 11 in UV menu

- CWM: added [default] marker, added IDs to UV settings

Edit: Removed download link for now

After more sources reading (original samsung source) the mentioned bug may be actually an improvement implemented by stratosk (calculating Mhz)...
[Galaxy S I9000 Android Development] Krieg Noobie:
Invalid link, pls fix.
[Galaxy S I9000 Android Development] mialwe:
New 0.6.1 without the "bugfix" which actually removed an enhancement I think:

Download

Contains the CWM menu/text enhancements and the "option-11-activated" fix only. Sorry, seems I was too fast this time...
[Galaxy S I9000 Android Development] djdeeles:
in 0.6.1 :) uV doesnt match values which i select(11)
[Galaxy S I9000 Android Development] mialwe:
Found it.

It's the way the initramfs script handles the uv options, the script thinks it found CPU_UV_1 because "CPU_UV_11" starts with the same chars. Will be fixed in next version, thanks for reporting.
[Galaxy S I9000 Android Development] djdeeles:
Thanx for information :-)

Sent from my GT-I9000
[Galaxy S I9000 Android Development] brk:
Hi, I've tried your kernel with JVS and my wifi went nuts. It was turning on and off and didn't connect to any wireless network.
[Galaxy S I9000 Android Development] mialwe:
That may be the reason. JVS seems to require another change about Wifi.

Edited first post to make more clear Midnight 0.6.2 adapted the JVR initramfs.

Edit: Kernel seems to work with at JVR and JVQ.
[Galaxy S I9000 Android Development] fylim:
Is it possible to set custom lmk?
[Galaxy S I9000 Android Development] mialwe:
If you mean choosing from some presets - yes. From first post:
[Galaxy S I9000 Android Development] djdeeles:
For JVS wifi issiu you need to add "/data/misc/wifi"

in wifi.conf

IFACE_DIR=/data/misc/wifi
[Galaxy S I9000 Android Development] fylim:
Not really, I mean setting custom values not in the presets. I got a Sony ericsson liveview watch and I need a very low SS setting to preserve the app in memory. Do you think you can include a preset or advice how to set custom LMK?
[Galaxy S I9000 Android Development] mialwe:
Hmmm...

Implemented a manual undervolting settings menu for next version, that should not be too hard to port to LMK settings - but I need a good "step size" for adjustments as the space in CWM menu is limited... I'll think about it, thanks.
[Galaxy S I9000 Android Development] fylim:
Thanks for your consideration.
[Galaxy S I9000 Android Development] O-T:
Flashing bootloader JVP is another solution.

Thanks to Perka & Dagr8.
[Galaxy S I9000 Android Development] -freedroid-:
First thanks for this great Kernel. :-) it runs just perfect on my two Sgs.

For further improvement of the kernel did you have a look in this thread ? http://xdaforums.com/showthread.php?t=1266051

Maybe it will have another positive effect.

Sent from my GT-I9000
[Galaxy S I9000 Android Development] djdeeles:
I think bootloader is risky way :) changing a line is better way
[Galaxy S I9000 Android Development] mialwe:
Yes, read the post yesterday - sounds great, I'm sure I'llt try this (on my own device first for now). Starting to think about switching to ondemand as governor...

For now I'll focus on getting 0.6.2 done (or 0.6.3) and next version JVS based initramfs - still don't know if we can make the initramfs compatible to JVS *and* JVR/JVQ...
[Galaxy S I9000 Android Development] Lukiqq:
Mialwe, wifi problem is not kernel related! Wifi modules in initramfs are OK in both versions. The problem is that Samsung has forgot to add one line in his JVS ROM, nothing more, nothing less. So the problem is ROM, in JVP/JVR there is such line, in JVS this line is gone.
[Galaxy S I9000 Android Development] mialwe:
Hi lukiqq, thanks for your information.

If it's only ROM related - why does it work with stock JVS kernel (don't use JVS myself, assume wifi is working with stock kernel)?

The main initramfs differences apart from binary files are those:

diff -rupN initramfs-jvr/init.rc initramfs-jvs/init.rc
--- initramfs-jvr/init.rc	2011-09-15 20:39:03.669810024 +0200
+++ initramfs-jvs/init.rc	2011-09-20 21:25:41.403433483 +0200
@@ -253,7 +253,7 @@ on post-fs
# give system access to wpa_supplicant.conf for backup and restore
mkdir /data/wifi 0777 wifi wifi
# mkdir /data/misc/wifi 0771 wifi system
- mkdir /data/misc/wifi 0771 wifi wifi
+ mkdir /data/misc/wifi 0770 wifi system
chmod 0777 /data/misc/wifi/
chmod 0777 /data/wifi/
mkdir /data/misc/dhcp 0777 dhcp dhcp
@@ -635,6 +635,12 @@ service pvrsrvinit /system/bin/pvrsrvini
group root
oneshot

+service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/wifi/bcm_supp.conf
+ class main
+ socket wpa_eth0 dgram 0660 wifi wifi
+ disabled
+ oneshot
+
#for WiFi MFG(TestMode)
service mfgloader /system/bin/mfgloader
disabled
@@ -709,10 +715,6 @@ service samsungani /system/bin/samsungan
disabled
oneshot

-service wpa_supplicant /system/bin/wpa_supplicant -Dwext -ieth0 -c/data/wifi/bcm_supp.conf
- disabled
- oneshot

If I remember right Stratosk built a initramfs with working wifi - never read about users have to modify their config files for Semaphore?
[Galaxy S I9000 Android Development] -freedroid-:
Do you mean this line IFACE_DIR=/data/misc/wifi? I added it in my wifi.conf but it doesn´t fix the wifi issue on my device. My phone still disconnect for just a few seconds.

So I went back to JVR and everything is fine.
[Galaxy S I9000 Android Development] andip71:
Ondemand governor would be superb !!! But tweaked.

Hi Mialwe,

I think switching to ondemand governor would be a great idea.

I am always switching between Midnight and Semaphore kernel, and what I really like with Semaphore is the ondemand governor. It is really making the phone snappy.

I think Stratosk has tweaked it slightly as well, because battery-wise it is as great as conservative for me.

So if you think of switching to ondemand, please include his tweaks as well and it would be perfect.

That is the only thing that keeps me back from using Midnight with switched to ondemand, as I believe it drains more battery than the optimized version.

I could be wrong, but.... :-)

Thanks

Andi
[Galaxy S I9000 Android Development] Lukiqq:
So my initramfs was modified long time before JVS came out :) Sorry then!
[Galaxy S I9000 Android Development] rabievdm:
TUN support

Hi mialwe,

Do you have any plans for adding TUN (VPN) support or do you support it

currently and I just cant find it in the changelog?

Regards
[Galaxy S I9000 Android Development] mialwe:
Haven't looked into TUN support yet, maybe I'll include it when the basic Midnight features run well and isues are fixed...somehow "on my kernel completing todo list after base kernel is finished"..., sorry.
[Galaxy S I9000 Android Development] mialwe:
0.6.2

- bugfix: undervolting presets 10/11 working

- bugfix: voodoo sound FM settings should work now

- CWM: added manual undervolting mV setting (5mV steps)

- CWM: added manual lowmemorykiller setting (1Mb step)

- CWM: Toggle init.d support (default: disabled, enable it if needed)

- CWM: restructured, added IDs to larger tables (presets, uv, lmk, read_ahead)

- slightly reduced ondemand uo_threshold (90->85)

- color temperature set to 6900k

- play repeating samsung bootanimation if dalvik-cache cleared (testing)

- some minor tweak adjustments

- implemented kangsterizers touckey backlight timeout procedures, lowered timeout to 0.5 sec.

Updated post #1, please read before installing 0.6.2.

Updated post #2 with some little explanations and links.
[Galaxy S I9000 Android Development] Astug:
Thank you! Will definitely try this version.
[Galaxy S I9000 Android Development] mialwe:
Confirmed bug: Bootloop using LMK0 setting - 1 line mistake in initramfs, 0.6.3 coming within the next hour.
[Galaxy S I9000 Android Development] -freedroid-:
Thanks for your great work.

I found an issue with Control freak. CF always get force closed right after starting. In 0.6.1 everything was fine here.
[Galaxy S I9000 Android Development] mialwe:
CF was programmed for Talon if I remember right, wasn't it? LMK settings app?

Midnight 0.6.2 does implement manual LMK settings via CWM. Those settings will be set at boot time using the initramfs. To make this possible I had to use "setprop" on read-only properties (ADJ) which make those values unwritable after boot as far as I understood. Maybe that's the reason why CF FCs but I'm not sure. Does CF write a log file?

Edit: 0.6.3 bugfixed (LMK0 preset -> bootloop) uploading now...

Edit 2: Done. TAR 0.6.3
[Galaxy S I9000 Android Development] -freedroid-:
I mean control freak for OC/UV

http://xdaforums.com/showpost.php?p=13652563&postcount=1

As I can set my OC/UV values in CWM it´s not a big problem.

But CF was really comfortable when you want to make a quick change for testing.
[Galaxy S I9000 Android Development] rom08:
Hello mialwe . I encounter the bug also with lmk preset 4. To not have bootloop I choose the don't override preset for each slot. And just a question what is the best preset to have good multitasking and still some performance. I thought some multitask like default talon behavior .
[Galaxy S I9000 Android Development] mialwe:
- CF: Uups, sorry. Another user reported that VoltageControl would not show the correct UV values set in CWM - maybe there's another bug i havent found yet, dont know... I'll look into this. SetCPU reports all values right (if it isnt set to apply it's own settings at boot :) ).

- Did CF work with 0.6.1?

- LMK: The bug looks for the config file for LMK slot 1 manual settings before the appropriate filename is set -> cannot find the file -> sets value to "0" -> at boot slot 1 Mb = 0 -> no system can boot with that. Setting anything for manual slot 1 configuration is a workaround. Should be fixed with 0.6.3 online now.

- Balanced settings - I'm not too experienced with those values but I'd think that settings around 20/30/40 for slot 4/5/6 maybe would be a good starting point. But other users certainly have more knowledge about this...
[Galaxy S I9000 Android Development] -freedroid-:
Yes, it was fine on 0.6.0 and 0.6.1.
[Galaxy S I9000 Android Development] mialwe:
Update: with 0.6.3 there's another bug: uv settings are not set (0 0 0 0 0), CPUSpy and VoltageControl stopped working, setCPU works.

Working on bugfixed 0.6. now... sorry guys, not a good day for me...
[Galaxy S I9000 Android Development] -freedroid-:
Keep smiling. :) You´re doing a great job for the SGS community.
[Galaxy S I9000 Android Development] mialwe:
0.6.4 / 2011-09-22

-bugfix: fixed uv values not beeing applied

-bugfix: cpufreq-stats not beeing loaded, UV/OC-Apps should work again

TAR 0.6.4

Note-to-self: Never ever again implement a few file-exists-checks shortly before uploading the new version...
[Galaxy S I9000 Android Development] -freedroid-:
Thanks! Now CF is fully working again. :)
[Galaxy S I9000 Android Development] rabievdm:
I would like to thank you, I have been a SpeedMod user ever since I routed my SGS and ran RomKitchen Froyo releases, a couple of weeks ago I took the plunge and upgraded to Gingerbread only to find that SpeedMod had not implemented all the features that he had on Froyo and was not regularly updating his kernel as he now had an SGS II. I am however very glad to have found your kernel as not only have you implemented the features that I am looking for I could swear the phone is just a smidge more responsive, like it used to be on Froyo. So thank you very much.
[Galaxy S I9000 Android Development] mialwe:
0.6.5 /2011-09-23

- bugfix: set read_ahead value to 512 as default again

- added debug output in /data/user.log

TAR 0.6.5

This bugfix is optional (bug makes 128Kb default, simply set 512Kb via CWM) and part of the never-add-simple-file-exists-checks-before-releasing series...

A lot of options changeable via CWM can now be checked in /data/user.log
[Galaxy S I9000 Android Development] samyong76:
any change of a JVS version?
[Galaxy S I9000 Android Development] mialwe:
Wifi issues with JVS seem not to be fixable with the JFS initramfs (like in stock kernel) and/or added missing part in wifi.conf as stated here @xda - so I did not spend time in JVS initramfs for now end try to get 0.6.x bugfixed as soon as possible (that's why there were 4 updates yesterday/this night).

Maybe I'll be able to put together the Midnight-JVS version this weekend, but don't expect wifi to work without issues, sorry.
[Galaxy S I9000 Android Development] rabievdm:
Brightness level transitions

Hi Mialwe,

I noticed since changing to the Midnight kernel that brightness level transitions are now (for lack of a better description) snap changes where as before it (again for lack of a better description) faded between levels.

Is this by design, a feature that can be enabled or something that the other developers hacked in?

Regards

Rabie
[Galaxy S I9000 Android Development] rabievdm:
BNL on 0.6.5 broken?

Hi,

On 0.6.3 BLN worked, it seems to have stopped working on 0.6.5.

Regards

Rabie
[Galaxy S I9000 Android Development] rom08:
For me bln work fine with 6.5
[Galaxy S I9000 Android Development] -freedroid-:
No problems with Bln here too.

Sent from my GT-I9000
[Galaxy S I9000 Android Development] manudevil:
Excuse me, I have some questions:

- With this kernel, root is not automatic. How do we root our phones?

- Does it work with JVS?

Thanks. :)
[Galaxy S I9000 Android Development] HM.Carbide:
- In CWM (3 Button combo with vol up) there is a option to install root

- It uses jvr initramfs, so wifi won't work. But anyway wifi don't work properly in leaked jvs. Better will be to wait until there will be a official 2.3.5 rom.
[Galaxy S I9000 Android Development] mialwe:
If you install a new kernel please be sure to have read the kernels first posts for information like this - the last answer is correct, thanks for that.

Edited my signature to contain Midnight first post (features, downloads) and second post (tweaks and CWM overview) to help new Midnight users to find those informations quicker.
[Galaxy S I9000 Android Development] spambayes:
Hi mialwe,

First, thanks for this kernel.

Does it support custom bootanimation.zip? I am on stock odexed JVR if that matters.

Thanks again.
[Galaxy S I9000 Android Development] rabievdm:
Mmm it seems to be related to my Rom, my whole screen lights up displaying the notification (Perka Mod) and then switches off, then BNL does not work then. If I do the the BNL test it still doesn't work. But if I clear all notifications and then run the BLN test it works. So sorry false alarm.
[Galaxy S I9000 Android Development] rom08:
Hi mialwe ,

Just an opinion on one point :

I find very disturbing the bootanim playing again and again after davlik wipe I think it is too similar as a bootloop. I think it can be disturbing for new users .
[Galaxy S I9000 Android Development] mialwe:
But that's stock behaviour, isn't it?

A black screen (stopped custom bootanimation) for a few minutes is much more disturbing (is my phone dead? Is there happening something? Blackscreen?) than seeing a moving animation (= device is not dead). A bootloop would be playing the animation -> switch off -> black screen -> playing animation and so on I think.

@spambayes: Please take a look at first post for features.
[Galaxy S I9000 Android Development] spambayes:
Yes. I read that but was concerned by the following which I came across while going through the thread:

Just wanted to make sure.

Thanks.
[Galaxy S I9000 Android Development] mialwe:
0.6.6JVS-test

Hello @all, this is a basically 0.6.5 with adapted JVS initramfs for testing. I'd appreciate if you could test this on JVS (wifi?) and JVR (anything wrong?), testing with JVQ myself now.
[Galaxy S I9000 Android Development] mancukya:
JVS wifi work for me very good. (BLN and Gps perfect)

0.6.6 nice kernel
[Galaxy S I9000 Android Development] mialwe:
Thanks for reporting, nice to hear. But I'm sure wifi issues will show up for some users with JVS...

@spambayes: Yes, I wrote that a few weeks ago. Meanwhile I found a working bootanimation bin here at XDA. As I put it into the initramfs (/sbin) the ROM does not have to support the bootanimation, the initramfs does. Using a custom animation myself for testing with stock JVQ...

Edit: Forgot to mention that there was a problem with looping bootanimations which was fixed a few versions ago.
[Galaxy S I9000 Android Development] hippo_potamus:
Testing for you, thanks for the effort.
[Galaxy S I9000 Android Development] mialwe:
Thanks for testing :)

Not much bad news about 0.6.6-JVS-test until now (two users reported one reboot, unsure if they were really kernel related), maybe I'll upload an "official" 0.6.7 later today with

- adapted initramfs from JVS

- should work ok for JVQ/JVR/JVS (but maybe wifi issues occur for JVS) I hope

- added autobackup if using one of the cleanup options

- added restore option for the cleanup options

Just a small update this time...
[Galaxy S I9000 Android Development] hippo_potamus:
Getting random reboots.

Getting some drop calls.

Using Stock JVR with Midnight 0.6.5-test. It did not happen with 0.6.5
[Galaxy S I9000 Android Development] mialwe:
Wow, just before uploading 0.6.7 to first post :)

- Ok, I'm not sure about drop calls beeing related to kernel as nothing changed in kernel source itself from 0.6.5. Modem is not touched by Midnight. The only changes introduced with 0.6.6-JVS-test are some proprietary modules and script lines concerning wifi/compass/usb_composite, nothing else. So those issues must have another reson I think.

- Random reboots: Sounds that you have more than one or two reboots, I know about two other users (I'm participating in 3 Midnight threads in different forums) who had one reboot each, one was caused by uv and pre-rooting with another kernel (rooting again with Midnight fixed the issue), the other issue was caused by not removing kernel config files when switching from 0.6.1 to >=0.6.2 once (config files contents changed after 0.6.1).

-- could you upload /data/user.log with booted 0.6.6-JVS-test here (if you are still using it)?

-- are you using UV/OC and if yes, did you change the values from 0.6.5 to 0.6.6-JVS-test?

-- did you try disabeling init.d via CWM (if init.d scripts used or changed)?

-- if you use Midnight-CWM settings, did you try removing all Midnight settings and try this "default-values" setup?

-- did you change *anything" else besides switching 0.6.5->0.6.6-JVS-test (Modem, other kernel, rooting, apps, tweak scripts,...)

That's a lot of questions but I'd like to find the cause of your problems...
[Galaxy S I9000 Android Development] mialwe:
0.6.7 / 2011-09-25

- initramfs: JVS adapted initramfs, should work with JVQ/R/S

- initramfs: extended /data/user.log file for issue tracking

- CWM: added autobackup option to cleanup options

- CWM: added restore option to cleanup options

- CWM: added display of partitions/free space to cleanup & root menu

Download: [TAR 0.6.7]

@hippo_potamus: the logfile is ok (if you attach the file as tar/zip/... or put it into code tags it'll use less space in your post), must be something else. Apps (new ones, updated ones), modem did not change? 0.6.7 contains an extended user.log but I doubt it would help here... just in case - did you try clearing cache/dalvik-cache?
[Galaxy S I9000 Android Development] mancukya:
Thanks for your works and great kernel man.