[LG Optimus 2x] pengus77:
Pengus Kernel

Development of this kernel has been discontinued and resumed as Kowalski Kernel in this thread !​

Change Log

2013/01/13
- Fixed wifi issues when tethering
- Reverted a patch related to sdcard access
- Set default i/o readahead to 256 kbytes
- Added a temp wake / unwake lock to suspend/resume for bcm4329
- Revert to 32M of carveout reduction
- Force wifi pm_fast mode when screen on
- Revert to 07/01 values for kernel flags

2013/01/11
- Disabled auto hotplug during screen-on operations
* Both CPUs will be always active
- Enabled auto hotplug only during suspend
* On screen off the 2nd core will go to sleep
- Small changes in the kernel cflags

2013-01-10
- Fixed auto_hotplug code that was causing freezes
- Fixed the auto_hotplug parameters for good
- Configuration optimizations (lots of them)
- Fixed a couple bugs in the wifi pm system
- Set default i/o readahead to 1024 kbytes
- Implemented Proportional Rate Reduction for TCP
- Applied a few patches to speedup access to the sd
- Modified cflags to speedup the fpu a bit

2013-01-07
- Fixed notification lights... again.
* They work perfectly when selecting "always on" mode.
* Blinking requires some more love in the kernel. Works perfectly when on charger.
- Fixed wifi power consumption when in active use.

2013-01-06
- Carveout reduced to 120M. 32M more ram for free.
- Fixed notification lights. They blink correctly now.
- Fixed wifi:
* Will keep the connection in background and allow the phone to enter deep sleep.
* Preconfigured to use PM_FAST in suspend and PM_OFF during normal operation.
* Added sysfs interface for wifi power management (/sys/modules/wireless/parameters/max_pm).
* "echo 1 > /sys/modules/wireless/parameters/max_pm" will enable PM_MAX suspend mode.
- Fixed bluetooth:
* Allows the phone to enter deep sleep without disconnecting the clients.
* Headset commands will not work when the phone is in deep sleep.
* Just turn on the screen and they will work fine until there is rf traffic (music, voice, etc).
* Added 60 seconds grace time before deep sleep kicks in.
- Backported ROW I/O scheduler from Qualcomm (from kernel 3.2). Set as default.
- Backported Dynamic Interactive governor (from kernel 3.2). Set as default.
- Backported Auto Hotplug (from kernel 3.4) and removed Tegra Hotplug.
* Kernel will disable the second core when not needed.
* Second core is always off when in sleep mode.
- Backported multiple SMP patches (from kernel 3.4).
- Updated Interactive governor with patches from the Aurora Project.
- Enabled support for BoostPulse on the Interactive governor.
- Added support for NTFS and HFS+ filesystems.
- Added support for NFS 3/4.
- Added support for multiple tcp congestion algorithms.
- Changed the default tcp congestion algorithm to Westwood.
- Removed all debug options. Kernel is compiled in release mode now.

2012-12-30
- Fixed bluetooth disconnecting when screen off. Note: When bt is on, the phone won't go into deep sleep.
- Fixed wireless hotspot. When hotspot is active, wifi will not go to sleep so tethering will work fine.
- Merged marsgod audio/media fixes from his github.
- Merged a ton of fixes from nvidia and broadcom.
- Reduced carveout to 128M so, well, you get 24M of additional ram for free.
- Some more fixes to the wifi module, so it drains even less battery in deep sleep.
- Removed the conservative governor when in sleep, possible cause of BSODs.
- Set deadline as default i/o scheduler and tweaked a bit the parameters.

Before installing these kernels, just two things

1)

This is only for the new bootloader. Don't install it on the old one or your phone won't boot.

2)

Wipe dalvik and cache in cwm before flashing a kernel. No data wipe is necessary.

For kernels >= 2013-01-06

- Make sure that in Settings -> Performance -> Processor it's set as default the DynInteractive governor, and that in Settings -> Performance -> I/O Scheduler the default is ROW. For both tick the "set on boot" option and reboot. The DynInteractive seems to behave perfectly in terms of frequency ramping so far and keeps the system running mostly on low clock speeds, unless really needed (games, heavy browsing, etc).

- To enable the wifi conservative mode, via adb/terminal, type "su" and then "echo 1 > /sys/module/wireless/parameters/max_pm". This setting will not stick across reboots, but will take effect as soon as you turn off your screen.

- They will work only on roms with a date >= 2012-12-28

---> 2013-01-13 ---> pengus-kernel-20130113 + Wifi-Conservative-20130113 (only for this kernel)

---> 2013-01-11 ---> pengus-kernel-20130111 + Wifi-Conservative-20130111 (only for this kernel)

---> 2013-01-10 ---> pengus-kernel-20130110 + Wifi-Conservative-20130110 (only for this kernel)

---> 2013-01-07 ---> pengus-kernel-20130107 + Wifi-Conservative-20130107 (only for this kernel)

---> 2013-01-06 ---> pengus-kernel-20130106-v2 + WifiModule-Fix-20130107 (only for this kernel)

---> 2012-12-20 ---> cm10-kernel-20121230

Warning, dragons ahead !

1) Enable Swap on the unused SWP partition (/dev/block/mmcblk0p4) - Thanks to wfd for the idea

This will grant you 370mb of swap space.

On heavy duty this will maybe slow down marginally your phone, but trying is for free and that partition is 100% wasted otherwise :)

Download the SwapEnabler.zip attached to this post and flash it in cwm. Done ;)

2) Fix Nitz time on V30A and SU660 basebands

So your timezone is totally crazy ? Just add "telephony.test.ignore.nitz=true" to /system/build.prop and reboot. This will fix it.

Don't know how to mount/remount edit files on android system ? Learn from above or... flash NitzDisabler.zip attached to this post from cwm ;)

3) Swap External/Internal sdcards - Thanks to Imperticus

Check out this post and download the file attached to it. Just flash it in cwm and your sdcards will be swapped ;)

4) DPI Changer - Thanks to Tonyp

Check out this post and read it carefully ;)

5) Working GTalk Audio/Video !!! - Thanks to wfd

Say thanks to wfd on this post :)

6) Interesting post on how to get a perfect GPS fix - Thanks to tetsuo55

You can find the post here and don't forget to thank him !

7) Working FaceLock for CM10 roms ! - Thanks to flopower1996

Here's the post where you can thank him and download the apk: http://xdaforums.com/showpost.php?p=37795310&postcount=3044

.