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

Status
Not open for further replies.
Search This thread

mialwe

Senior Member
Apr 28, 2011
757
1,565
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://forum.xda-developers.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://forum.xda-developers.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://forum.xda-developers.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, [email protected] again
- kernel: fixed internal divider bug, thanks to [URL="http://forum.xda-developers.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://forum.xda-developers.com/member.php?u=4143554"]ezekeel[/URL] (dev) and [URL="http://forum.xda-developers.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
 

Attachments

  • MNICS-202CM9.zip
    4.8 MB · Views: 5,016
  • MNICS-202LR.zip
    4.8 MB · Views: 2,857
  • MNICS-202.zip
    4.8 MB · Views: 1,869
  • MNICS-20120516-1-LR.tar
    3.6 MB · Views: 890
  • MNICS-20120516-1-CM9.tar
    3.6 MB · Views: 1,383
  • MNICS-20120523-2-LR.tar
    3.6 MB · Views: 3,512
  • MNICS-20120523-2-CM9.tar
    3.6 MB · Views: 3,840
Last edited:

dark_knight35

Senior Member
Jan 15, 2012
1,936
989
Thx for the great kernel, mialwe!

First Impressions:

1. fast (listening to music+playing speedx 3d+tapatalking+opening browser without any lag)
2. color settings are confusing (midnight control or galaxy s settings? dunno which one to use)
3. nice bootsplash (minimalistic&nice)
4. no didle and liveOC (you already thougt about adding this?)

To resume, this kernel is just great and I'm looking forward to seeing more features. I haven't tested bln yet, dunno if it works.

Keep up the good work!
 

GreenSGS

Senior Member
Feb 11, 2011
427
139
Amsterdam
Flashing over Semaphore 0.9.5b(removed all init.d stuff before as 0.7.4 does not have init.d support) on SLIM ICS 2.8 is fine no issues there, just in case anybody curios like me to try... :)

---------- Post added at 10:33 PM ---------- Previous post was at 10:11 PM ----------

Really nice kernel for an alpha [email protected] Good job and Thank you.

Clean, fast and smooth yet without OC and LiveOC.

Couple of early minor issue notices:

Toggle night mode: Turning on, screen goes green like night vision camera but totally blur,screen guessing needed to toggle it back.

RGB color setting: Need some explanation, I pressed reset to default and then colors were faded, after rebooting I got the ROM color back.

So far so good.
 

mialwe

Senior Member
Apr 28, 2011
757
1,565
Thank you all. Edit: In MidnightControl->menu->help there is more information on all app options including colors.
(removed all init.d stuff before as 0.7.4 does not have init.d support)
[...]
Toggle night mode: Turning on, screen goes green like night vision camera but totally blur,screen guessing needed to toggle it back.

RGB color setting: Need some explanation, I pressed reset to default and then colors were faded, after rebooting I got the ROM color back.
- Midnight *does* support init.d script execution.
- Night mode: All this toggle does is lowering a min.brightness tunable to "1". Sounds like colors/gamma tuned too aggressive -> typical green tint on low brightness.
- What does "faded" mean? This options sets some values to the according tunables ("0") to R/G/B/gamma, no fading involved but you see the difference if you adjusted some of those before. Rebooting without the set-at-boot-toggle checked will give you ROM colors as MidnightControl will not override ROM colors in this case.

2. color settings are confusing (midnight control or galaxy s settings? dunno which one to use)

Yes, you are absolutely right here. Sadly all ICS ROMs seem to include kernel settings in their ROM option menus. I'm thinking of removing the MidnightControl color menu (but leave the night mode where it is) for the next version.
For now you can use both, Midnight color settings will override ROM color settings and stick at boot if you tick the load-at-boot option.
 
Last edited:
  • Like
Reactions: GreenSGS
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://forum.xda-developers.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://forum.xda-developers.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://forum.xda-developers.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, [email protected] again
    - kernel: fixed internal divider bug, thanks to [URL="http://forum.xda-developers.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://forum.xda-developers.com/member.php?u=4143554"]ezekeel[/URL] (dev) and [URL="http://forum.xda-developers.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* :)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone