• XDA Forums have been migrated to XenForo. We are aware of several issues including missing threads, logins not working, and more. To discuss, use this thread.
  • If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.

[KERNEL] [JellyBean] GalaXsih v2.0 beta 7

This vote is about to re-implement Brightness and Sharpness tweak from hardcore


  • Total voters
    0
  • Poll closed .

harunjo

New member
Aug 5, 2009
1,043
1,155
0
Jakarta

thanks to http://yasserrizky.com/ for your banner


objective : good battery life

Not for AOSP / AOKP ROM


Download Here

(thanks to geistteufel for your ftp server, space and bandwith!)

Do not forget to donate to this forum XDA :
http://forum.xda-developers.com/donations.php




Stable Version change-log:

Incremental update from last version

GalaxSih Kernel Jelly Bean v1.3

Big thanks to beta tester:
  1. ksr007
  2. tupac19861013
  3. hieupham
  4. Sad56
  5. BR377
  6. poppy9009
  7. walda
  8. jothi2lingam
  9. saintsinner25
  10. hshah
  11. wl3gan
  12. Milchbeck
  13. eric-filth
  14. "D"
  15. drdoulittle
  16. erto90
  17. pidz
  18. 6pudu5
  19. brunodu91
  20. RuralGalaxy
  21. androb0t
  22. demmo81
  23. agam1308
  24. Tenacius D
  25. [email protected]
change log:

  • Upgrade from 3.0.36 to linux kernel 3.0.37
  • Fixed ROM power savings feature, This is now fixed and powersavings mode will throttle to 1000MHz. - credit to andreilux
  • Revert "wakelock: use single threaded workqueueus"
  • Mdnie: custom settings: Includes hardcore sharpnes fixes, and black gamma curve adjustment for black crush (andreilux)
  • Remove Miscellaneous tweaks from RAMDISK
  • Sync with XXDLJ4 boot.img (thanks andip for boot.img file)
  • Back to arm-eabi-4.4.3 compiler from Linaro compiler
  • LZO as kernel compression
  • Compile Logger as module
  • Printk.c: disable linux printk logging thanks to AndiP
  • Disable Sound Debug
  • Revert "pegasusq: add tweak from galaxsih ICS v3.9 pegasusq tweak ( now its setting totally like stock kernel)
  • Revert "reduce busfreq volt to -25mV"
  • Revert "cpufreq: pegasusq: instead of jumping around the frequencies leaving some unused we now jump from one to another by 100Mhz increments
  • Revert "kernel optimizations - by VOKU"
  • Revert "wakelock: use single threaded workqueueus"




GalaxSih Kernel Jelly Bean v1.2

Thanks to Beta contributor:
  1. SETdown
  2. spencer1208
  3. Sad56
  4. samaxen
  5. netchow
  6. delgamarco
  7. hshah
  8. kwankl
  9. tupac19861013
  10. brunodu91
  11. ksr007
  12. mariosraptor
  13. AndiP
  14. Milchbeck
  15. Chillz88
  16. borjaag
  17. RuralGalaxy
  18. androb0t
  19. poppy9009
  20. Razertje
  21. jothi2lingam
  22. ph3nom
  23. Jmldsilva
  24. slimldj
  25. benc88
  26. currydude
  27. wtfshouldidonow
  28. fastcx
  • Update linux kernel from 3.0.31 to 3.0.36
  • Kernel optimizations - by VOKU
  • Resync to XXDLJ2 ramfs thx to andip for your stock boot.img
  • Revert : power: reduce regulator initializations to regulator minimal (this commit is not for i9300 - thanks to andreilux for your notice)
  • Revert: sensorhub: Fix firmware mislabeling and version checking (this commit is not for i9300 - thanks to andreilux for your notice)
  • Wakelock: use single threaded workqueueus
  • Switch do_fsync() to fget_light()
  • Staging: android: lowmemorykiller.c - Fix compiler warning about the type of the module parameter.
  • pegasusq (based on ondemand): cpuidle detection by Andrea Arcangeli
  • Android Logger as a module - thanks to andip for your idea.
  • Possibly car dock error have been fix..need your report to prove it., thanks to gokhanmoral
  • MTP fix for OSX user




Big Thanks to 1.1 Beta contributor:
  • AbuYahya
  • JYJY
  • [email protected]
  • ph3nom
  • ongchonghian
  • Sad56
  • x10i DauL
  • fastcx
  • jothi2lingam
  • raaghav2
  • tupac19861013
  • androb0t
  • samaxen
  • RuralGalaxy
  • fastcx
  • SETdown
  • poppy9009

GalaxSih Kernel Jelly Bean v1.1

Change log:
  • power: reduce regulator initializations to regulator minimal -AndreiLux
  • sensorhub: Fix firmware mislabeling and version checking
    Payloaded firmware version doesn't correspond labeling. This causes the kernel
    to reflash the firmware on every single boot thinking it has a newer firmware
    than listed on the device. - AndreiLux
  • max77686+max77693 revert: disable debugging - this will fix USB charge error.
  • android: lowmemorykiller: Change default debug_level to 1
  • cpufreq: pegasusq: instead of jumping around the frequencies leaving some unused we now jump from one to another by 100Mhz increments - franciscofranco
  • net: wireless: bcmdhd: sync with newer sources - gokhanmoral
  • merges with GT-I9300_SEA_JB_OpenSource.zip -gokhanmoral
  • re-enable touchbooster
  • mdnie: black crush fix. (Thanks to AndreiLux)
  • cpuidle: Change state properties - AndreiLux
  • fix front camera crash - (revert front camera block-space to default stock)
  • change cfq to deadline io scheduller as default io scheduller
    thanks to Sad56 for your idea.
    about Deadline:
    The scheduler helps organise reads and writes in the I/O queue to maximise performance. The default scheduler in the Linux kernel is CFQ (Completely Fair Queuing), which is designed with the rotational latencies of spinning platter drives in mind. So while it works well for standard hard drives, it doesn't work so well when it comes to SSDs.Fortunately, the kernel comes with some other schedulers to play with, and here the deadline and NOOP schedulers are ideal
  • Wifi: Reenable IPv6, disable multicast in suspend (entropy512)
    Why do they keep on reenabling that stupid "let dirty networks tank the battery" feature?I have yet to see an example of something that disablingmulticast in suspend breaks. Signed-off-by: entropy512
  • reapply bcmdhd: change packet filter settings to block multicast
  • bcmdhd: update wireless driver to 1.28.11.9 from Korean S3 (gokhanmoral)
  • mmc: Increase timeout - this tweak for some crappy cards (andreilux)
  • Revert:"disable GENTLE_FAIR_SLEEPERS"
  • reduce busfreq volt to -25mV
  • set sched_mc_power_savings to 1



Big thanks to : V1.0 beta tester:
Milchbeck
skivnit
JYJY
ph3nom
poppy9009
6pudu5
jothi2lingam
kandem
ksr007
brunodu91
Sad56
samaxen
RuralGalaxy

JB-V1.0

Jelly Bean v1.0 Change Log:
  • Compile with linaro 4.7 2012.9
  • Triangle Away support.
  • ADB active while in recovery mode
  • Bigger RAM limit
  • USB faster charge (only effect with usb 3 port)
  • CFQ as default I/O Scheduler
  • Pegasusq as default I/O Scheduler
  • mms-ts: Disable touch booster
  • mali: reduce utilization sampling timeout
  • Add ARM cpu topology definition
  • pegasusq: add tweak from galaxsih ICS v3.9 pegasusq tweak
  • enable arch_power
  • disable GENTLE_FAIR_SLEEPERS
  • Proportional Rate Reduction for TCP.
  • Disable Various Debugging
  • Custom Voltage / U/V Interface control support (tested with voltage control & setcpu)
  • Undervolt GPU to -25mv for all frequency
  • Update wifi driver to 1.28.11.9
  • cpupower: update the cpu_power according to cpu load (thanks to andreilux to make it work)

for more detail change log goto:
https://github.com/harunjo/galaxsih-kernel-JB-S3






ICS Kernel Version
6.0

beta tester:
  • deadsoullp
  • JYJY
  • jothi2lingam
  • apeiron6
  • N78006
  • samaxen
  • delgamarco
  • dladz
  • mobilevirus
  • CRBoy47
  • hieupham
  • RuralGalaxy
  • walda
  • Jekle_Ace
  • ongchonghian
  • mariosraptor
  • sunwee
  • ph3nom
  • telenger

thank for your help guys!
-Fix arm topology patch
-Fix broken sound with MHL adapter, edit: confirm its fixed with v6.0
-Disable touchbooster mali (disable again, i think (mali: reduce utilization sampling timeout) is enough for smoothness)
-Kernel patch from 3.0.42 to 3.0.43
-Bigger RAM - Changed memory mapped regions’ allocation sizes (by AndreiLux).
-Patch MTP driver to samsung source update 2

revert:
-Modify unicast filter and ignore IPv4 multicast except for mDNS
-mmc: increase read and write timeouts for bad SDHC cards
-modem_if: make modem driver silent
-revert HRTICK to 0
-kernel compression revert back to gzip
-pegasusq tweak back to 3.9 tweak



5.0

beta tester:
  1. JYJY
  2. Milchbeck
  3. jothi2lingam
  4. hieupham
  5. CRBoy47
  6. MuertoKo
  7. marioh
  8. ph3nom
  9. samaxen
  10. 6pudu5
  11. apeiron6
  12. poppy9009
  13. N78006
  14. Simow.b
  15. ksr007
  16. Chillz88
  17. mariosraptor
thanks for your help guys!


-Modify unicast filter and ignore IPv4 multicast except for mDNS
credit: AndreiLux

-ARM: 7011/1: Add ARM cpu topology definition
The affinity between ARM processors is defined in the MPIDR register.
We can identify which processors are in the same cluster,
and which ones have performance interdependency. We can define the
cpu topology of ARM platform, that is then used by sched_mc and sched_smt.

Signed-off-by: Vincent Guittot
Reviewed-by: Amit Kucheria
Signed-off-by: Russell King

-Alternate wakelock stats labeled as "Discrete" instead of "Exclusive"
credit: Tungstwenty

gokhanmoral:
-modem_if: make modem driver silent
-mmc: increase read and write timeouts for bad SDHC cards

-pegasusq (based on ondemand): cpuidle detection
Signed-off-by: Andrea Arcangeli
ported by: gokhanmoral

-Linaro Compiler update to 2012.18

-disabling printks - hardcore

-sdcard sdhci: Remove Samsung's broken hack
Signed-off-by: Andrew Dodd

-sound Fix debug level
Signed-off-by: Andrew Dodd

-max77686: Fix debug statements



4.0

Thanks to v4.0 Beta Tester:
-ksr007
-ph3nom
-mariosraptor
-hieupham
-MuertoKo
-Jekle_Ace
-apeiron6
-Milchbeck
-Chillz88
-kenzolo
-pidz
-sunwee
-jothi2lingam
-samaxen
-poppy9009
-walda
-amaliapika
-spencer1208
[email protected]
-alerems
- Update kernel from 4.0.41 to 4.0.42
- Re-Enable Touchbooster
- Increase USB charging mAh to 800 so you can charge faster via usb3
- voltage control fix, compatible with most of undervolt application - tested with voltage control and setcpu

AndreiLux:
-Disabled the Kies daemon, I see no point in it and it uses up memory uselessly. Obviously Kies won't work any-more, if you want you can start the service yourselves manually.
-silence the touchscreen debug
-Decreased Mali utilization timeout to 100ms down from 1s which improves reaction time on instant GPU loads (Lock screen is best example).

-gokhanmoral:
-Fix media scanning problem with new clockworkmod
-add efs-backup script
-s3cfb: brightness curve mod

dorimanx:
- Shut Modem logs after new modem update.

- arm: smp: Wrap backtrace IPI with irq_enter/exit
This appears to be something that should also be wrapped. Also,
the backtraces experienced may be a cause and not a symptom -
instead of an RCU stall causing backtraces, backtraces
may be causing an RCU stall - which causes more backtraces
and then the system gets mental.
Signed-off-by: Andrew Dodd

-lib/checksum.c: optimize do_csum a bit
Reduce the number of variables modified by the loop in do_csum() by 1,
which seems like a good idea. On Nios II (a RISC CPU with 3-operand
instruction set) it reduces the loop from 7 to 6 instructions, including
the conditional branch.
Signed-off-by: Ian Abbott
Signed-off-by: David S. Miller

-init/main.c: execute lockdep_init as early as possible
This patch removes the lockdep warning[1] on ARM platform.
The warning is caused by printk inside smp_setup_processor_id.
It is safe to do this because lockdep_init doesn't depend on
smp_setup_processor_id, so make printk can be called as early
as possible without lockdep complainment.
Signed-off-by: Ming Lei
 
Last edited:

harunjo

New member
Aug 5, 2009
1,043
1,155
0
Jakarta
Galaxsih ICS kernel Source Code

Galaxsih Jelly Bean Kernel Source


Interesting UV test thread from:
http://forum.xda-developers.com/showthread.php?p=22126846#post22126846
Miscellaneous

[Q] You claim you cannot increase battery life using UV beyond 2%. Justify yourself!
[A] When the processor is in use (i.e. not asleep or idle) UV does save a tiny amount of power. I tested with the most extreme UV my phone could handle. With a high performance governor, e.g. smartassv2, extreme UV would reduce CPU drain by 13%, or about 7 mA. With a governor that keeps the CPU frequency low, CPU drain would be reduced by about 18%, or 4.6 mA (weighted - see the spreadsheet starting cell H88).

Remember, these savings are limited to the processor, and only when it is active. For most users, this will mean the screen is on. For comparison, the screen on minimum brightness displaying black uses 9mA. On max brightness, displaying white, it uses 690mA. Let us assume some median value, ~350 mA.

A saving of 4.6 mA out of at least 350 mA (screen) plus 20 mA (CPU)
= 1.2%

A saving of 7 mA out of at least 350 mA (screen) plus 50 mA (CPU)
= 1.8%

So, regardless of your choice of governor, even with extreme undervolting, you are not going to be able to increase your battery life by more than 2%.
How to Under volting this kernel?

thanks to eric-filth for helping me wrote this guide

GPU undervolting patterns
light: 875 900 950 1000 (this is galaxsih kernel default GPU UnderVolt)
medium: 850 875 925 975
heavy: 825 850 900 925

note: this kernel already have GPU UV light setting (-25mV) by default*

example init.d script for medium (-50mv) GPU UV:

in terminal (or using root explorer) create a file, put the file inside of /system/etc/init.d/*
the file name must have 11xxx file name format to be working

file name example:
111Cpu, 111Gpu, 111Int

Steps:

1.
# touch /system/etc/init.d/11Gpu
# touch /system/etc/init.d/111Cpu
# touch /system/etc/init.d/111Int

2. open the file using root exlorer and edit the empty 11gpuUV file like below

GPU UNDERVOLT:
inside of 111Gpu file for example (-25mV):
Code:
#!/system/bin/sh
echo "850000 875000 925000 975000" > /sys/class/misc/gpu_voltage_control/gpu_control

CPU UNDERVOLT: ( this even more simple if you are using cpu undervolt app (setcpu, system tuner, etc)


inside of 111Cpu file for example (-25mV):
Code:
#!/system/bin/sh
echo "1275 1213 1175 1125 1075 1025  975 950 938 925 925 900 875" > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
INTERNAL BUS UNDERVOLT:

inside of 111Int file for example (-25mV):

Code:
#!/system/bin/sh
echo "1025 1025 925 925 875 875 875" > /sys/devices/system/cpu/cpu0/cpufreq/int_mV_table

3. change the file permission
# chmod 744 /system/etc/init.d/111Gpu
#chmod 744 /system/etc/init.d/111Cpu
# chmod 744 /system/etc/init.d/111Int

4. change the init.d folder permission
# chmod -R 755 /system/etc/init.d

4. reboot

5.

recheck below file to confirm the UV value have been commit;

GPU:
/sys/class/misc/gpu_voltage_control/gpu_control

CPU:
/sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

BUS:
/sys/devices/system/cpu/cpu0/cpufreq/int_mV_table

- for troubleshoot init.d process you can read *post init process at /data/user.log after reboot

if you got problem and your devices cannot boot properly, you can delete those file in your init.d folder and start again afterward

how to do that?:

1. power off your phone:
2. connect your phone using usb cable to phone
3. start adb shell
cmd> adb shell

4. su -
5. # rm -rf /system/etc/init.d/*

please be carefull with your uV setting



Enable logcat


cmd> adb shell

#su
#mount -o remount,rw /system
#echo ANDROIDLOGGER >> /system/etc/tweaks.conf
#mount -o remount,ro /system
Reboot your phone and you should have it enabled.[/I]
 
Last edited:

gamin92

New member
Oct 18, 2009
468
95
0
Paris
Running it with Foxhound 1.1 for a couple of hours, seems bugfree for now, pretty smooth (although I think speedmod is a little better on this point). Will see for battery life, no warning to this point.
Thanks for this kernel !
 
  • Like
Reactions: harunjo

qwerty12

New member
Jan 21, 2005
451
329
0
(*Europe).London
Thanks for this, I'm a fan of kernels that don't attempt to include everything and the kitchen sink.

Suggestions:
 
Last edited:
  • Like
Reactions: harunjo

harunjo

New member
Aug 5, 2009
1,043
1,155
0
Jakarta
Thanks for this, I'm a fan of kernels that don't attempt to include everything and the kitchen sink.

Suggestions:
Version 2.1 uploaded

-minor fix
-Triangle away support credit: gokhanmoral & qwerty12 for suggestion
-add adb insecure (thx qwerty12 for suggestion)
-modified post init script
logcat still disable by default,
but you can enable it later
 
Last edited:
  • Like
Reactions: 6pudu5 and qwerty12

kandem

New member
May 18, 2010
280
47
0
I'm interested to try this, is it similar to the Phenomenal kernel?
Yes, it's with undevolting like phenomenal, but with olty one version. I'm trying this and I'm very happy but it's too early to talk about battery, but it's seems very good

Enviado desde mi GT-I9300 usando Tapatalk 2
 
Our Apps
Get our official app! (coming soon)
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