[kernel][ICS][23/05/2012] mnics (LR/CM9)

Status
Not open for further replies.
Search This thread

curl66

Senior Member
Sep 20, 2010
157
19
Thanks for this great Kernel! Really the best!
I flashed the newest tar over CM9 + TWICS.
Works great, but may be i am too stupid :)
I dont get USB fast charge mode to enabled. I set it in midnight controll app, but after reboot it says current "DISABLED"
NSTolls says the same. I wiped NSTools seting from CWM. tried again, doesnt work for me.
What do I wrong?
Fast charging wil be great since i have the charger from the Tab 2000mA :)

Thanks!
 

test123456789012

Senior Member
Feb 6, 2011
193
77
Mainz/Germany
Hi Mialwe,

long time no see. :) Sorry for cross-posting, but I found a great article saying that conservative actually drained more battery because of tweakings which should make conservative more responsive. (for those interested: klick.) Maybe considering switching to a tweaked ondemand would make sense for your kernel, too.

Regards! Latest version is as stable as ever BTW!
 
Last edited:

Fenvarien

Senior Member
Dec 22, 2010
963
598
I think it depends how the conservative governor is actually tweaked. With Mialwe's implementation I get the best battery life and it's still snappy.

... tapatalked
 

mialwe

Senior Member
Apr 28, 2011
757
1,565
Sorry, for cross-posting, but I found a great article saying that conservative actually drained more battery because of tweakings which should make conservative more responsive. (for those interested: klick.) Maybe considering switching to a tweaked ondemand would make sense for your kernel, too.
Regards! Latest version is as stable as ever BTW!
Thanks - and thanks for the link, quite interesting stuff, noted to be read tonight as soon as everyone here is at sleep :)

About conservative: There might be some misunderstanding here - my conservative changes are *not* made to save battery - if battery drains not too fast for us that's ok but not really intended.

The MNICS/Midnight conservative governor is modified get a smooth UI experience - something I missed \w e.g. ondemand somehow but I can't really describe it.

From your link:
When the screen is ON, i.e. the phone is in active use. Generally Conservative does not save power. This is because most developers have included a tweaked version of conservative that keeps the frequency at its highest state for longer to improve the responsiveness.

MNICS/Midnight conservative (which finally has been made an governor itself called "smoove" in my personal CM7 version) uses two predefined lookup tables (one for normal scaling, one for scaling on higher CPU load to get faster upscaling on demand) and a lower than stock sampling_rate value.
Additionally the UP/DOWN_THRESHOLDs have been adjusted in various tests to achive e.g. low frequencies @ screen off + playing MP3 while scaling up just fast enough at higher CPU load @ screen_on *AND* scale down again if the CPU load drops.

I personally just like the feeling of smoove - never compared battery. But on the other hand - not too many users complained about poor battery life :D
 
Last edited:

mialwe

Senior Member
Apr 28, 2011
757
1,565
<sorry for OT but I'm running out of time>
If I have to delete this post - moderators, please let me know.
I have to setup my wife's SGSII :)rolleyes:) tonight and I'm desperately looking for a firmware (DBT, XEU,...) that's stable enough.

She's using 2.3.3 and running in lot's of issues lately. I'm thinking of
- CM7 (using myself @SGS right now and loving it, too bad MIUI GB developement has stopped),
- stock 2.3.6 XWKL1 (read it's quite stable, cannot find a working download link) or
- CM9/stock ICS for SGSII - but I don't know anything about thosw two.

If anyone has deeper knowledge about 2.3.6/ICS @ SGSII please PM me. Thank you very much.
</OT>
 
Last edited:

Kocai

Senior Member
Oct 24, 2011
1,476
690
@mialwe: I thought SGS II already has official ICS from Samsung? If so, you could install it on your wife's phone.

@moderator: sorry for the OT.

Sent from my GT-I9000 using XDA
 

test123456789012

Senior Member
Feb 6, 2011
193
77
Mainz/Germany
Thanks - and thanks for the link, quite interesting stuff, noted to be read tonight as soon as everyone here is at sleep :)

About conservative: There might be some misunderstanding here - my conservative changes are *not* made to save battery - if battery drains not too fast for us that's ok but not really intended.

The MNICS/Midnight conservative governor is modified get a smooth UI experience - something I missed \w e.g. ondemand somehow but I can't really describe it.

From your link:


MNICS/Midnight conservative (which finally has been made an governor itself called "smoove" in my personal CM7 version) uses two predefined lookup tables (one for normal scaling, one for scaling on higher CPU load to get faster upscaling on demand) and a lower than stock sampling_rate value.
Additionally the UP/DOWN_THRESHOLDs have been adjusted in various tests to achive e.g. low frequencies @ screen off + playing MP3 while scaling up just fast enough at higher CPU load @ screen_on *AND* scale down again if the CPU load drops.

I personally just like the feeling of smoove - never compared battery. But on the other hand - not too many users complained about poor battery life :D

Ah, thanks for clearing things up! :) Well maybe the posted links can help improving your approach even more! :) Regards!
 
Last edited:

habylab

Senior Member
Dec 3, 2010
6,228
1,200
Thanks - and thanks for the link, quite interesting stuff, noted to be read tonight as soon as everyone here is at sleep :)

About conservative: There might be some misunderstanding here - my conservative changes are *not* made to save battery - if battery drains not too fast for us that's ok but not really intended.

The MNICS/Midnight conservative governor is modified get a smooth UI experience - something I missed \w e.g. ondemand somehow but I can't really describe it.

From your link:


MNICS/Midnight conservative (which finally has been made an governor itself called "smoove" in my personal CM7 version) uses two predefined lookup tables (one for normal scaling, one for scaling on higher CPU load to get faster upscaling on demand) and a lower than stock sampling_rate value.
Additionally the UP/DOWN_THRESHOLDs have been adjusted in various tests to achive e.g. low frequencies @ screen off + playing MP3 while scaling up just fast enough at higher CPU load @ screen_on *AND* scale down again if the CPU load drops.

I personally just like the feeling of smoove - never compared battery. But on the other hand - not too many users complained about poor battery life :D

Can't believe you haven't read that before! Very interesting, great response.

Sent from my Galaxy S running Slim ICS 3.8 and Semaphore kernel from my XDA Premium app.
 

Pac-Man

Senior Member
Dec 19, 2010
515
84
I'll try this kernel tomorrow when CM9 Team release a new update, because these update contains some very interesting changes.

Anyway I tried your kernel in some updates and it works perfectly, doesn't run off battery and was smothly :)
 

Gaegin

Member
Nov 1, 2010
31
5
SICILY, ITALY
I've got a problem.. i can't find midnight control app in app drawer. I flashed twice latest Midnight kernel in CM9 nightly, before i had Semaphore 1.2.0. How can i restore that app?

SOLVED: it was deactivated in the bottom of the app list.
 
Last edited:
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 181
    The MNICS (Midnight-ICS) kernel is a personal project started JUL/2011 with the GB version because a kernel with the features I needed did not exist.
    Main focus: stability and smooth experience using a modified Conservative CPU governor. Secondary: useful additions + easy to use app.
    Big thanks to XDA, the community, testers, bug reporters and hardcore, chainfire, lukiqq, stratosk, zach, exitz, supercurio, koush, neldar, madrooster, pikachu01, pawtip & teamhacksung, ezekeel, renaudallard, toadlife, Tk-Glitch, krarvind, derTeufel1980, F4k and all the other devs. Everything I have learned about SGS I have learned reading XDA posts, sources or from conversation with XDA members - maybe I can give something back with this kernel.

    Unique:
    - modified Conservative governor for smooth experience
    - kernel app for all features, no scripting needed
    - nightmode toggle via kernel app (no overlay, real dark screen)

    Description:
    - based on CM9 kernel source
    - stock frequencies up to 1Ghz, optionally switch to 1.128Ghz via CWM
    - ram: 340Mb (stock), 372Mb (CM9 version) or 388Mb (LR version) for prepared ROMs or \w standalone patch
    - BLN (basic func. + missed calls via kernel app, BLN Control for advanced features)
    - voodoo sound (use supercurios VoodooControl)
    - touchwake, adjustable vibration intensity, slightly enhanced touch sensitivity
    - init.d (/system/etc) and userinit.d (/data/local) support, script filename has to start with "S"
    - APP: min. brightness, nightmode, RGB, gamma, undervolting, LED timeout, vibration intensity, missed calls/basic BLN, bootlog, help...

    Other:
    - new initramfs system, kernel installable \w Heimdall, Odin and CWM (info)
    - various code updates and changes for better performance, battery and less debug stuff
    - remount script for ADB users (use "adb shell remount" to remount /system rw/ro)
    - some kernel/initramfs tweaks evolved since Midnight-GB
    -- optimized read_ahead values for /system, /datadata, /cache, sdcard
    -- optimized kernel parameters, IO parameters, mount options
    - CWM: options to delete NStools-settings/init.d contents
    - CWM: options to toggle init.d, Logcat, overclocking to 1.128Ghz

    Defaults:
    - 1Ghz, Midnight Conservative governor, stock voltages
    - SIO IO scheduler, 256Kb sdcard readahead
    - Logcat + init.d disabled (MNICS does not install any init.d scripts)

    Installation:
    - boot to download mode
    - Install kernel zip via Odin or Heimdall (CWM for older versions)

    Sources: Github/mialwe, worklog always updated live

    FAQ/already answered: nightmode, no 1.2Ghz? / DIDLE, LiveOC, displayed values in kernel app differ / minfreq 200Mhz? / settings not saved/"]]" error in log? + solution / compass / root, adb remount, TUN? / touchwake? / high AndroidOS % with ICS 4.0.3? / fast_charge?

    Known issues:
    - Phone-off/charging animation, screen stays off @ button press. Phone charges fine to 100%, thenn screen will switch on.

    Changelog:
    Code:
    [B]next[/B]
    - not sure
    [B]20120523-1[/B]
    - bugfix: module installer failed without /system/lib/modules directory
    - bugfix: sdcard wipe while switching GB->ICS
    [B]20120516-1[/B]
    - readded fast_charge
    [B]20120509-7[/B]
    - changed naming (date-version-[stock]/LR/CM9)
    - changed to [URL="http://xdaforums.com/showpost.php?p=25875892&postcount=900"]new initramfs system[/URL] (download mode flashable)
    - changed to Odin tar package (Heimdall: extract + flash zImage)
    - removed fast_charge patch
    - freed 2 Mb more RAM, testing
    - CM9/i9000 kernel source sync
    - reworked logfile /data/user.log
    [B]202 - 2012/04/30[/B]
    - app: fixed wrongly displayed default undervolting preset
    - app: fixed colors not beeing applied at boot (v190 bug)
    - app: fixed 800Mhz CPU limit not beeing applied at boot (v190 bug)
    - zip: added missing MidnightControl.apk to CM9 version
    [B]190 - 2012/04/29[/B]
    - kernel: sync with CM9 sources (incl. sdcard mountpoints)
    - kernel: USB [URL="http://xdaforums.com/showthread.php?t=1586844"]fast_charge[/URL] by chad0989 (toggle widget [URL="https://play.google.com/store/apps/details?id=com.incredicontrol.fastchargewidget"]available[/URL]) [default: deactivated]
    - kernel: enabled deadline/cfq IO schedulers [default: still SIO]
    - kernel: 2 bugfixes (cpufreq), thanks to [URL="http://xdaforums.com/showthread.php?t=1445214"]derTeufel1980[/URL] for the hints
    - kernel: touchwake sync with Ezekeels [URL="https://github.com/Ezekeel/GLaDOS-nexus-prime/commit/bb4ebd593be8022c21a94c7f49b36b608ec005af"]source[/URL]
    - app: added fast_charge toggle
    - initramfs: 256Kb sdcard read_ahead default
    - initramfs: added /data/local/userinit.d execution
    - initramfs: executes init.d/userinit.d scripts starting with "S" only
    [B]143 - 2012/04/08[/B]
    - app: updated to version 1.4
    - adjusted default min_brightness from 25 to 20 (stock?)
    - app: fixed bug with old nightmode sysfs setting at startup
    [B]142 - 2012/04/08[/B]
    - kernel: fix green screen on some occasions
    [B]141 - 2012/04/08[/B]
    - app: added missed call service toggle (reboot required)
    - app: updated help file
    - initramfs: fixed issues with some busyboxes/$PATH (SlimICS, grep not found)
    [B]133 - 2012/04/07[/B]
    - changed name: MNICS-<buildnr>[LR (large RAM for 386Mb)]
    - kernel: 5 frequencies, switchable maxfreq 1/1.128Ghz
    - kernel: adjusted smooth conserv. triggers, mp3@100Mhz again
    - kernel: fixed internal divider bug, thanks to [URL="http://xdaforums.com/showthread.php?t=1445214"]theDevil1980[/URL] for the hint
    - kernel: removed old recovery backup (-700Kb)
    - CWM: added manual zipalign option
    - CWM: moved init.d/overclocking/Logcat toggles to CWM
    - app: service for missed calls BLN
    - app: cleanup
    [B]0.9.0-2 - 2012/03/30[/B]
    - 340Mb RAM
    - 386Mb for HUGERAM version \w patched ROMs
    - fixed /datadata MidnightControl settings bug (for. e.g. ICSSGS, Bluelightning)
    - BLN switch both MidnightControl and ROM->settings->display->notification LED toggles at the same time (one-click BLN enable)
    [B]0.7.9 - 2012/03/28[/B]
    - initramfs: fixed 0.7.7 bug
    - initramfs: adjusted vm tweaks
    - initramfs: cleaned up boot script and log output
    - kernel: BLN off as default setting
    - kernel: adjusted build flags
    - app: updated help file
    [B]0.7.7 - 2012/03/25 - [COLOR="Red"]removed 03/26[/COLOR] (apps-don't-open-bug)[/B]
    - kernel: fixed freeze on 800Mhz max. freq.
    - kernel: adjusted int.volt 1100->1125mV for 1.2Ghz (stability)
    - kernel: added touchwake, thanks to [URL="http://xdaforums.com/member.php?u=4143554"]ezekeel[/URL] (dev) and [URL="http://xdaforums.com/showthread.php?t=1445214"]devil[/URL] (porting support via pm)
    - kernel: added vibration intensity sysfs interface 
    - MidnightControl: rearranged menus
    - MidnightControl: removed unused option
    - MidnightControl: added touchwake toggle 
    - MidnightControl: added vibration intensity slider
    - CWM: added delete init.d contents option
    - CWM: added delete NStools settings option
    [B]0.7.4 - 2012/03/17[/B]
    - first public upload
    22
    v190, 190LR, 190CM9

    190 - 2012/04/29
    - kernel: sync with CM9 sources (incl. sdcard mountpoints)
    - kernel: USB fast_charge by chad0989 (toggle widget available) [default: deactivated]
    - kernel: enabled deadline/cfq IO schedulers [default: still SIO]
    - kernel: 2 bugfixes (cpufreq), thanks to derTeufel1980 for the hints
    - kernel: touchwake sync with Ezekeels source
    - app: added fast_charge toggle
    - initramfs: 256Kb sdcard read_ahead default
    - initramfs: added /data/local/userinit.d execution
    - initramfs: executes init.d/userinit.d scripts starting with "S" only

    Download in OP, v190=340Mb RAM, v190LR=386Mb RAM for ROMs with large RAM patch, v190CM9=~170Mb RAM for CM9.
    22
    0.9.0-2 + 0.9.0-2-hugeram

    :)

    0.9.0-2
    - 340Mb RAM
    - fixed /datadata MidnightControl settings bug (for. e.g. ICSSGS, Bluelightning)
    - BLN switch toggles both MidnightControl and ROM->settings->display->notification LED at the same time (one-click BLN enable)

    0.9.0-2-HUGERAM for patched ROMs only
    - 386Mb RAM

    Big thanks to test123456789012 for testing on Slim-ICS, krarvind for notifying us and KalimochoAz for working on this. Works fine on patched CM9, too.
    20
    ** changelog moved to OP **
    20
    20120509-6-CM9
    - changed naming (date-version-[stock]/LR/CM9)
    - changed to new initramfs system (download mode flashable)
    - changed to Odin tar package (Heimdall: extract + flash zImage)
    - removed fast_charge patch
    - freed 2 Mb more RAM, testing
    - CM9/i9000 kernel source sync
    - reworked logfile /data/user.log

    Download in first post.
    For now CM9 version only, stock-RAM and LR will follow.

    As a lot of users experienced bootloops with all ICS/i9000 kernels Stratosk opened a thread to investigate this and after a few posts and pm we decided to work on an initramfs which can be used to build Odin/Heimdall flashable kernel images.

    This initramfs has several advantages:
    - faster boot
    - no need to extract separate sub-images (that's how ICS kernels with default initramfs work)
    - kernel flashable via Heimdall/Odin/CWM-zip
    - included kernel modules

    After the first posts about the Semaphore test version including the new initramfs in Stratosks' bootloop thread the new kernels will
    - not cure existing bootloop issues but
    - maybe prevent new bootloops while using this kernels

    While testing different versions of the new initramfs including flashing lots of ROMs and modems and wiping cache and dalvik-cache I was not able to get a single bootloop again.

    Suggestion:
    - flash your desired ROM (if needed)
    - reboot to make sure it does not bootloop with original kernel
    - enter download mode
    - flash Semaphore/MNICS new-initramfs kernels (tested MNICS/Heimdall only)

    Please report if bootloops occur while using the test kernels (NOT after e.g. flashing another ROM which will install it's default kernel), if possible please provide /data/last_user.log for MNICS which will contain the init stage log messages (new) and the known initramfs/script/init.d log messages for your LAST boot.

    Big thanks to Stratosk, I enjoyed working on this with him *a lot* :)