[KERNEL] Next |Ep7.8 / 7.9| |Ep8.5| |Ep10.4| |Sense / AOSP| - HTC One X

Disclaimer : I'm no developer. I don't know how to write code. Just cherry-pick stuff. Flash at your own risk. Just thought to share.
Huge Credit & Thanks to these guy/lady :
LorD ClockaN, Thömy, n3ocort3x, maxwen, franciscofranco, faux123, Xmister, show-p1984, lyapota, tbalden, metallice, tripnraver,Christopher83, AICP Team, p880 devs, all rom/kernel developer, all guide author and the community.
Were tested before release. But not fully on sense. AOSP my daily driver.
Feature
Govenor : + smartmax, smartmax eps, gaming, intelliactive, wheatly
Scheduler : + BFQ, ROW,SIO,VR
Extra : GPU overclock (default at 520), LP core overclock (640) Undervoltage (LP,GPU,RAM,MPU,CORE), Sweep to Wake (S2W), Double Tap to Wake (DT2W), pocket protection, LP core interface, Button backlight brightness, button blink notification
*Do Not Repack For CpuQuiet Version*
Sense / Aosp
Cpu Quiet : Ep 7.8 / Ep 7.8 OC / Ep 7.9
MPdecision : Ep 8.5 / Ep 8.5 OC
Intelliplug : Ep 10.4 / Ep 10.4 OC/Ep 10.5/Ep 10.5 OC
Older Released : Kernel Folder
Change log see post #2
How to flash:
For S-OFF
1. Download ZIP file and put to SD card
2. Flash ZIP from recovery
For S-ON
1. Download ZIP file and extract kernel\boot.img to Kernel Flasher fastboot dirrectory on the PC
2. Put ZIP file to SD card and flash from recovery
3. Reboot to bootloader and flash kernel by Kernel Flasher from PC
Next Kernel Source
> Be gentle

Changelog
Best Trade Hotplug Commit
Cpu Quiet/Intelliplug Commit
MpDecision Commit
Next Kernel Parameter (init.d script)
#!/system/bin/sh
# **************************************
# init.d script for Next kernel
# **************************************
#***************************
# Cpu Freq & Governor Setting
#***************************
# Gov = ondemand, performance, interactive, smartmax, smartmax_eps, intelliactive, gaming, wheatly
#echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
#echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
# Freq min = 51000, max = 1600000
#echo "51000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
#echo "1600000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
#*******************
#Sweep2Wake Setting
#*******************
#enable=1, disable=0
#echo "0" > /sys/android_touch/sweep2wake
#echo "9" > /sys/android_touch/s2w_register_threshold
#echo "325" > /sys/android_touch/s2w_min_distance
# Sweep direction
#echo "1" > /sys/android_touch/s2w_allow_stroke
#enable=1, disable=0
#echo "0" > /sys/android_touch/doubletap2wake
# 0 = use whole screen
#echo "1300" > /sys/android_touch/doubletap_barrier_y
# Duration between tap, min = 120, max =350
#echo "150" > /sys/android_touch/doubletap_duration
#echo "150" > /sys/android_touch/doubletap_threshold
#enable=1, disable=0
#echo "0" > /sys/android_touch/pocket_detect
#*********************
# LED button
#*********************
# Enable=1, disable=0
#echo "0" > /sys/class/leds/button-backlight/slow_blink
# Value Min=0 , Max=225
#echo "225" > /sys/class/leds/button-backlight/button_brightness
#******************
# Touchscreen
#******************
# Enable=1, disable=0 - for multitouch issue
#echo "0" > /sys/android_touch/calibration_control
#*******************
# Audio Freq
#*******************
# Enable this if playing music stutter
#echo "204000" > /sys/module/snd_soc_tlv320aic3008/parameters/audio_min_freq
#*******************
# Cpu Freq Hard Cap
#*******************
#echo "1200000" > /sys/module/cpu_tegra/parameters/cpu_user_cap
#******************
# CpuQuiet
#******************
#To limit how much cpu online, min=1, max=4
#echo "4" > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/max_cpus
#echo "1" > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/min_cpus
#******************
# Mp Decision
#******************
#To change those frequencies echo the cpu number + the frequency in khz.
# To verify [ cat /sys/kernel/tegra_mpdecision/conf/boost_freqs ]
#echo "0 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "1 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "2 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#echo "3 102000" > /sys/kernel/tegra_mpdecision/conf/boost_freqs
#To limit how much cpu online
#echo "4" > /sys/kernel/tegra_mpdecision/conf/max_cpus
#echo "1" > /sys/kernel/tegra_mpdecision/conf/min_cpus
#****************
# Frandom
#****************
# Script to launch frandom at boot by Ryuinferno @ XDA
#insmod /system/lib/modules/frandom.ko
#chmod 644 /dev/frandom
#chmod 644 /dev/erandom
#mv /dev/random /dev/random.ori
#mv /dev/urandom /dev/urandom.ori
#ln /dev/frandom /dev/random
#chmod 644 /dev/random
#ln /dev/erandom /dev/urandom
#chmod 644 /dev/urandom

can i install aosp one on cm10.1 ?

Hey man! Nice to see a pretty decent aftermarket kernel on our forums again, How does Android 4.4 support look like right now? Would you it's ready to use? *I'm flashing it anyway *

deathgame said:
can i install aosp one on cm10.1 ?
Click to expand...
Click to collapse
Ops...don't have time to test on cm10.1..sorry..you could try repack and report if it run ok. Why don't jump to cm10.2? It pretty stable now.
humzaahmed155 said:
Hey man! Nice to see a pretty decent aftermarket kernel on our forums again, How does Android 4.4 support look like right now? Would you it's ready to use? *I'm flashing it anyway *
Click to expand...
Click to collapse
My aim to help sense user so n3o can focus on aosp. .. It my daily driver..I can live with minor bug. Now I'm using custom cm from temasek. Need halo. Jump to aicp when they release.
Sent from my HTC One X using Tapatalk

Thanks I'm on viperx I will flash it and post back my thoughts nice to see things happening on our hox at last
Sent from my HTC One X using Tapatalk

Finally. Great.

All booted fine can I ask for some info on the new smartmax eps governor please
Sent from my HTC One X using Tapatalk

Smartmax eps = extreme power saving

Great Work...Atlast you've posted your kernel in XDA...
Congrats....As said in G+, very happy to see your first kernel here... I hope your kernel would surely help a lot of Users and Devs here...
Keep rocking... :highfive::highfive::highfive:
Ram

Just flashed your kernel on CM11, runs exceptionally faster than stock, only issue was when I was installing the kernel I realised the updater script isn't compatible with the new KitKat recovery, so I had to flash back to twrp to get it running
Sent from my HTC One X using Tapatalk

Aweseome u made it. Just a little info for AOSP/SENSE. U will need 2 defconfigs. Where in AOSP one for example # HTC_PNPMNGR is not set (what fixes core usager on AOSP) u will need it in SENSE defconfig set to HTC_PNPMNGR=y (otherwise u could run into issues). There is a lot of other stuff disabled in our AOSP defconfig, you should re-enable that for sense (SENSE PLUS is such a value, just check git waht thömy and me reverted and revert it back for Sense version)
Keep the kernels coming :highfive:

Smartmax seems a bit slow I tried to play temple run but it as to chuggy and system stalled for a few seconds also ui is not very responsive hope this helps
Sent from my HTC One X using Tapatalk

needs adjustments for tegra, what i expected, its too conservative

On demand seems normal no issues that I can notice
Sent from my HTC One X using Tapatalk

Firstly may I say thank you for you work, your kernel is snappy and all seems good. Is it possible for sweep to unlock?
Sent from my HTC One X using XDA Premium 4 mobile app

Has anyone else had issues waking the phone up?
Sent from my HTC One X using Tapatalk
Edit: it seems as if it was just cold temperatures preventing the phone from turning on

myheroduane said:
Firstly may I say thank you for you work, your kernel is snappy and all seems good. Is it possible for sweep to unlock?
Sent from my HTC One X using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Its there but its off by default.
You can enable it with trickster mod for example.
Gesendet von meinem HTC One X
Using your Kernel right now, Thanks for another option in Kernel Flashing
Using smartmax and rest pretty much default. Running nice so far.
Thanks again and good luck for your development. :good:

I have a question regarding kernel same page merging is it worth using I have found the option to enable it in venom tweaks cpu settings unfortunately it isn't in trickster and in venom tweaks I can't get it to stick after reboot any advise would be appreciated thanks
Sent from my HTC One X using Tapatalk

smeejaytee said:
I have a question regarding kernel same page merging is it worth using I have found the option to enable it in venom tweaks cpu settings unfortunately it isn't in trickster and in venom tweaks I can't get it to stick after reboot any advise would be appreciated thanks
Sent from my HTC One X using Tapatalk
Click to expand...
Click to collapse
Some info
By everyday use I don't see much different.

Related

[KERNEL] [4.2.x] [GSM/LTE/CDMA] ⇒☆007☆ v3.7.1

·:*¨¨*:·..·:*¨☆007☆·:*¨¨*:·..·:*¨
straight from The Land of Smiles
Jame Bond kernels have always been about battery efficiency without sacrificing speed...
-latest version-v3.7.1
☆★☆★☆
-linaro gcc
-some debugging disabled
-undervolted
-interactive governor (default) is recommended
-GPU set to 307MHz
-boots to 1.2 (oc to 1.3)
-cm color control
-eze sound control
-imoseyon gamma control
-installation/Tweaks (colors)
Click to expand...
Click to collapse
-uv settings
Click to expand...
Click to collapse
-protips
Click to expand...
Click to collapse
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
note: please "rate" the thread
Thank you to those that have! If you are new to this thread, browse through the pages. I always try to answer questions quickly and thoroughly, as well as provide a stable kernel. If this kernel doesn't have the "features" you are looking for, or you have seen a cool new mod, just ask and I will try to accommodate (or at least give a reason why not)
thanks for your time -og
acronyms, notes, etc.
deprecated kernels
***************************************************************************************************************************************
4.2.x kernel(s)
1.2/3.5GHz◊GPU 307MHz
☆007☆ v3.7.1
Click to expand...
Click to collapse
4.1.x kernel(s)
that thae
1.2/3.5GHz◊GPU 307MHz
☆Jame Bond☆ v3.4
1.2/3.5GHz◊GPU 307MHz
☆Jame Bond☆ v3.3
mirror
khlang
1.2/3.5GHz◊GPU 307MHz
☆Jame Bond☆ v3.4.6
Click to expand...
Click to collapse
_____________________________________________________________________
thanks to coolbho3000 for his patches
support setcpu
» kernel source
» additional source
Control your Android phone's CPU! SetCPU for Root Users
installation
2 ways...
-download and extract boot.img from zip...non-ak versions
-enter fastboot mode by (with phone off) press and hold volume up&down and then power
then to test (reverts on reboot)
Code:
fastboot boot boot.img
to flash
Code:
fastboot flash boot boot.img
or
-download to sd card and flash from recovery
tweaks
version 3.7.x has several "tweaks" that are controlled in system/etc/init.d/007tweaks
-color control
-gamma control
-volume boost
-high performance sound
everything boots to stock settings
included is system/etc/init.d/007tweaks.bkk which are my preferred settings (just rename to 007tweaks)
also can be adjusted with (most likely not colors) GLaDOS Control and Trinity Kernel Toolbox (as well as other kernel apps)
007tweaks
Code:
#!/system/bin/sh
echo "0" > /sys/class/misc/samoled_color/red_v1_offset
echo "0" > /sys/class/misc/samoled_color/green_v1_offset
echo "0" > /sys/class/misc/samoled_color/blue_v1_offset
#default 0 0 0
echo "1670000000" > /sys/class/misc/samoled_color/red_multiplier
echo "1880000000" > /sys/class/misc/samoled_color/green_multiplier
echo "2000000000" > /sys/class/misc/samoled_color/blue_multiplier
#default 2004318071 2004318071 2004318071
mount -o remount,noauto_da_alloc /data /data
echo "0" > /sys/devices/platform/omapdss/manager0/gamma
#default 5 off 0 max 10 (10 being darkest)
echo "2" > /sys/class/misc/soundcontrol/volume_boost
#default 0 max 3
echo "0" > /sys/class/misc/soundcontrol/highperf_enabled
#default 0
permissions are set on flashing, but if changed with "es explorer" they need to be reset to
for roms that don't have "color slider adjustments" to have the changes take affect without rebooting, open a terminal and run....
Code:
su <enter>
run-parts /etc/init.d/ <enter>
kernels are preset
don't drop more than 75mV under default
protips-
force desktop mode on google chrome
create the file /data/local/chrome-command-line and add below
Code:
adb shell 'echo \"chrome --user-agent="[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.45 Safari/535.19]"\" > /data/local/chrome-command-line'
Click to expand...
Click to collapse
[GUIDE] Proper FULL wipe
Click to expand...
Click to collapse
Tutorial: How to properly post a bug
Click to expand...
Click to collapse
galaxy nexus factory images
Click to expand...
Click to collapse
VLC player for android
Click to expand...
Click to collapse
https://plus.google.com/u/0/101056148805473200158/posts/SsowCdLfTPn
Click to expand...
Click to collapse
-for better scrolling in apps (specifically twitter) go to settings/developer options and select "Force GPU rendering"
*may crash other non-ics optimized apps(twiiter updated for ics)
Click to expand...
Click to collapse
-cool recovery trick to get rid of all the extra "no's" (recovery)
Code:
adb shell
touch /sdcard/clockworkmod/.one_confirm
Click to expand...
Click to collapse
-md5 mismatch (recovery)
Code:
adb shell
cd /sdcard/clockworkmod/backup/2011-11-29.18.20.30
rm nandroid.md5
md5sum *img > nandroid.md5
Click to expand...
Click to collapse
enable 3g video chat (easiest way)
download this from market
Click to expand...
Click to collapse
battery saving tips-
disable gps unless navigating
don't use active widgets that need data
use 2g in low 3g signal areas
2g uses the least power
wifi uses less power than 3g
4g uses the most power, avoid when possible
Click to expand...
Click to collapse
great standby
overnight deep sleep (gsm)(ics)
more to come...
Omg happy to see you. Getting all the Samsung all stars here.
Sent from my Galaxy Nexus using XDA App
Can work with ARHD 2.1.2?
siewsphone said:
Can work with ARHD 2.1.2?
Click to expand...
Click to collapse
Shoult work! ARHD is 4.0.2! Try it out!
Im try it:
fastboot boot boot.img
But Device need to boot cca. 10-15 minutes. also Boot animation(THIS one) is very slow.
Does it have gpu oc?
Sent from my Galaxy Nexus using XDA App
anyone know why my phone need 1325mV for 350Mhz to work?
My settings:
350 / 1325mV
700 / 1175mV
920 / 1200mV
1200 / 1200mV
1400 / 1250mV
OTG
does it support OTG?
Great to see you in this forum mate. I loved your Kernel for the SGSII. I will be definately flashing it when AOSP pushes 4.0.3 properly.
tested on ARHD 2.1.2 and works fine
great job ogdobber
Nice to see a 4.0.2 kernel, thought we were forgotten.
Would you post an Anykernel version with just the kernel.
Thanks
Muchly appreciated! +1 to seeing a 4.0.2 kernel..
All running smooth as silk so far...
Kraenesk said:
Does it have gpu oc?
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
yes the gpu is set to 384
siewsphone said:
anyone know why my phone need 1325mV for 350Mhz to work?
My settings:
350 / 1325mV
700 / 1175mV
920 / 1200mV
1200 / 1200mV
1400 / 1250mV
Click to expand...
Click to collapse
those settings look way off check post 3
ymr0211 said:
does it support OTG?
Click to expand...
Click to collapse
yes, but not usb storage. I forgot all about that. I have been using chainfires stickmount app. It does support keyboard and mouse though.
Gingernut78 said:
Nice to see a 4.0.2 kernel, thought we were forgotten.
Would you post an Anykernel version with just the kernel.
Thanks
Click to expand...
Click to collapse
I will upload it shortly
Cool, thanks for the anykernel version. Didn't want to flash the boot.img as it will overwrite the tweaked boot.img from ARHD 2.1.2.
When I clock down the CPU to 1200, will the 384 for GPU will stay?
Originally Posted by ogdobber
yes i can tell you I hate the naming game...and I'm not good at it
v.1.x.x kernels are basically stock kernels with undervolting and overclocking ability
v2.1 are nd kernel variations
v.2.2.x are fs version...
v2.3.x ndsf
v2.4.x socfs
vX= major change
vx.X=minor change
vx.x.X=variation of that version
I still need to cleanup as long as you can read this line...
meaning there are currently socfs kernels that are 2.3.x ans ndfs that are 2.2.x
I admit , its a mess, but i will get it organized
Click to expand...
Click to collapse
acronyms explained
ND=non-debug
fs=fsync disabled
ndfs=add the ^above
socfs= it is a ndfs building with a different config
cc= color control
fc= fast charge (usb)
mv= morfic vibration
ak= any kernel. keeps original ramdisk(all roms)
up2u=kernel will boot to stock voltages (must be user set)
*not all phones will be able to run 1.4GHz
-ND and fs kernels will see a significant battery savings in standby
Will the Kernel boot @ standard voltages or is he already undervolted, when yes, can you post standard voltages, thanks!

[Q] Question about Calkulin's init.d Undervolt Scripts

Hey All,
I'm new here so sorry if this has already been asked. I was poking around the init.d scripts Calkulin has put up and I noticed that it doesn't seem to work. Here's the "4undervolt" script which you can find in /system/etc/init.d.
Code:
#!/system/bin/sh
#
# Created by Calkulin
# Epic 4G Touch -50mV v1.1
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
UV_TABLE=`cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l`
CPU_MAX_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
STEPS_1600_200="1450 1350 1225 1125 1025 925 875"
STEPS_1704_200="1500 1450 1400 1350 1225 1125 1025 925 875"
if [ $UV_TABLE = "7" ] && [ $CPU_MAX_FREQ = "1600000" ]; then
echo $STEPS_1600_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
elif [ $UV_TABLE = "9" ] && [ $CPU_MAX_FREQ = "1704000" ]; then
echo $STEPS_1704_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
fi
fi
Well I just flashed 2.8.1 (I used to be on 2.5.1 with the same issue), and it seems like the UV_TABLE, which is supposed to be in /sys/devices/system/cpu/cpu0/cpufreq/, isn't there. This means that neither the if nor the elif is being taken, which basically means the script is having no effect.
Am I reasoning correctly? If so, it seems like it would affect a lot of people who think they're undervolting but really aren't. Could someone with more familiarity Android possibly take a look?
Also, is there a way for me to check the current voltage at the CPU?
Thanks!
If no one can help me, could anyone point me to somewhere I can get my question answered?
It seems like a lot of people could be having this problem if they're expecting the init.d scripts to work when they're really doing nothing.
Thanks.
Check the permissions of the scripts. Make sure they are executable
The permissions are rwxr-xr-x, so they do indeed seem executable. In fact I can run them from a terminal emulator and they don't print anything out. This also leads me to believe that while they're running, they have no effect.
parth750 said:
The permissions are rwxr-xr-x, so they do indeed seem executable. In fact I can run them from a terminal emulator and they don't print anything out. This also leads me to believe that while they're running, they have no effect.
Click to expand...
Click to collapse
Interesting. I'm running those scripts in Blazer ROM, and they work really well. Hopefully someone on Calk's can square you away
Well thanks for taking a look. I actually modified the script slightly, just to make sure I wasn't crazy, so that if the first if wasn't taken it would print "Script had no effect". I just ran the modified script, and it does print just that.
Maybe after one of Calk's kernel changes he lost init.d support? I'm running the stock Desperado - I guess it doesn't have support.
Ah, I figured it out. For the last several months, Calk has been running on Stock kernels repackaged by Rouge. This obviously means the UV_mV_table won't be there, which prevents undervolting. I flashed to the latest Hitman kernel and everything works like a charm!
parth750 said:
Ah, I figured it out. For the last several months, Calk has been running on Stock kernels repackaged by Rouge. This obviously means the UV_mV_table won't be there, which prevents undervolting. I flashed to the latest Hitman kernel and everything works like a charm!
Click to expand...
Click to collapse
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Vandam500 said:
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Click to expand...
Click to collapse
I can't remember which version is which but I believe there was one that required Tegrak to undervolt.
Sent from my SPH-D710 using xda premium
Vandam500 said:
So the stock 2.8.1 does not have undervolting enabled?
Sent from my Epic 4G Touch
Click to expand...
Click to collapse
Calkulin's ROMs from 2.5.1 to 2.8.1 (maybe more, I haven't checked) use a stock kernel, which means no undervolting and any undervolt zips you do flash will have no effect.
EDIT: Just ran through the changelog. Looks like he's been using a stock kernel since v2.0.1a.
I wasn't seeing much difference from flashing the -100 and -50 scripts on 2.8.1 so I switched to Hitman kernel, flashed the stock mV script, and use SetCpu instead, now it seems to drain slower.
Transmission sent from a Galaxy S II with XDA Premium
maybe one of you guys can answer this for me so i dont have to post a new thread as the search brings me to this thread for the question i have.
is it as easy as uninstalling setCPU and re-flashing a kernel to get back my stock undervolt settings? or do i have to reflash the ROM?
i am running the latest blazer 3.8 with gunslinger kernel
If you're using SetCPU to change voltages, and you don't remember stock voltages, you could always reflash your kernel. Make sure you uncheck SetCPU's "Set on boot" options first.
Team Rogue's Stock kernels feature init.d support, which means Calk's scripts would work... make sure you don't have a conflicting program installed, and that the correct permissions are in place for the folder and the scripts.
parth750 said:
Hey All,
I'm new here so sorry if this has already been asked. I was poking around the init.d scripts Calkulin has put up and I noticed that it doesn't seem to work. Here's the "4undervolt" script which you can find in /system/etc/init.d.
Code:
#!/system/bin/sh
#
# Created by Calkulin
# Epic 4G Touch -50mV v1.1
if [ -e /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table ]; then
UV_TABLE=`cat /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table | wc -l`
CPU_MAX_FREQ=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
STEPS_1600_200="1450 1350 1225 1125 1025 925 875"
STEPS_1704_200="1500 1450 1400 1350 1225 1125 1025 925 875"
if [ $UV_TABLE = "7" ] && [ $CPU_MAX_FREQ = "1600000" ]; then
echo $STEPS_1600_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
elif [ $UV_TABLE = "9" ] && [ $CPU_MAX_FREQ = "1704000" ]; then
echo $STEPS_1704_200 > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table
echo "-50mV Undervolt Levels SET"
fi
fi
Well I just flashed 2.8.1 (I used to be on 2.5.1 with the same issue), and it seems like the UV_TABLE, which is supposed to be in /sys/devices/system/cpu/cpu0/cpufreq/, isn't there. This means that neither the if nor the elif is being taken, which basically means the script is having no effect.
Am I reasoning correctly? If so, it seems like it would affect a lot of people who think they're undervolting but really aren't. Could someone with more familiarity Android possibly take a look?
Also, is there a way for me to check the current voltage at the CPU?
Thanks!
Click to expand...
Click to collapse
Based on my test, no init.d script was running at least on ICS. It's because there's something not working on the repacked kernel. There's workaround of this - check this out.
http://forum.xda-developers.com/showthread.php?t=1610741

[Kernel][ICS] ForzaferrarileoV3.1 | 1.9/1.7GHz version | TWRP | Recovery Indipendent

Hi all , as new year gift I present you my First kernel​
This kernel , it's made for have the best performance and balanced battery consuption :good: , and since this is my first kernel and I'm still learning , any suggestions,hints,tips , are greatly accepted
REQUIRE UNLOCKED BOOTLOADER!!!!!
WORKS ONLY ON STOCK ROM , SO DOESN'T WORKS WITH AOSP BASED ROM(CM9/10,AOSP;AOKP); maybe works with miui , I don't know
I'm not responsible for damage to your device , use it at own risk!!!!
Features:
[V1] Based on .55 stock FW
[V1] Based on Arakmar ramdisk , with all the feature of Advanced stock kernel :CWM recovery , busybox, root , etc... [Very thanks to Arakmar forhis great work!!!]
[V1] BOOT Freq capped at 1512 MHz.
[V1] CPU Underclock/Overclock 30/1900 MHz
[V1] GPU 3D Overclock : 320 MHz (from the original 260 MHz)
[V1] GPU 2D Overclock : 228 MHz (from the original 200 MHz)
[V1] VDD SVS support ( for change voltages of cpu freq )
[V1] ZRam , ZCache and Frontswap
[V1] Snapdragon and other build optimization
[V1] VFP ( Virtual Float Point ) Neon and other optimization
[V1] Enabled Unaligned memory access
[V1] NTFS filesystem support
[V1] UTF-8 codepage support
[V1] Default TCP congestion algorithm shifted to "VEGAS"
[V1] [TEST] Increase max audio volume
[V2] GPU 2D OC to 266 mhz
[V2] GPU 2D scaling
[V2] CPU Smooth scaling (works only with pegasusq and ondemand)
[V2] Added CPU Topology
[V2] Optimized READAHEAD(sd cache) and Writeback Ratio
[V2] 3.0.57 linux upstream
[V3] MPDecision
[V3] RECOVERY INDIPENDENT WITH TWRP
[V3] Glibc
[V3] Small 2D GPU scaling fix
[V3] Optimized RWSEM algorithm
[V3] Other small tweaks
[V3] 3.0.71 linux upstream
[V3.1] Full 2D / 3D scaling fix and tweak : now you can set both using "kernel tuner" app
[V3.1]New logo. Thanks to dpiroto
[V3.1]New 1.7GHz OC version for who gets bootloops
​
More Governor:
[V1] Hotplug
[V1] Pegasusq
[V1] Interactive (Enabled)
[V3] Sakuractive
[V3] Adaptive
More scheduler:
[V1] VR
[V1] SIO
[V1] ZEN
[V3] ROW
LAST version
Download link here :
CWM package ForzaferrarileoV3.1 1.9Ghz fixed bootloops. after flash do a wipe cache and dalvik Link1
Click to expand...
Click to collapse
Download link here :
CWM package ForzaferrarileoV3.1 1.7GHz version (for who gets bootloops with normal version) Link1
Click to expand...
Click to collapse
Older version(not recommended)
Download link here :
CWM package ForzaferrarileoV3 Link1
Click to expand...
Click to collapse
Download link here :
CWM package ForzaferrarileoV2 Link1 (seems not working on some rom )
Click to expand...
Click to collapse
https://www.box.com/shared/mpg41z4c18up9r4lfh58https://www.box.com/shared/mpg41z4c18up9r4lfh58https://www.box.com/shared/mpg41z4c18up9r4lfh58
Download link here :
CWM package ForzaferrarileoV1Link1
Click to expand...
Click to collapse
​
Source here
CREDITS :
Sony for source
Arakmar for his Ramdisk
Amin and Mericon for the help
Dpiroto for the last bootlogo
Nice to see more development.. Thank you very much
Sent from my Xperia S using xda app-developers app
Hey....will give it a try....
thanks
---------- Post added at 09:42 PM ---------- Previous post was at 09:33 PM ----------
seems am getting a bootloop.....
---------- Post added at 09:49 PM ---------- Previous post was at 09:42 PM ----------
seems my phone went bananas........ it started..but after android is upgrading.....went into loop..now stuck on kernel sign.....
any ideas????????
Rom?
Sent from my LT26i using xda app-developers app
What rom are you using?
Sent from my LT26i using xda app-developers app
trying......now
Sent from my LT26i using xda app-developers app
hey every thing works great and and antutu benchmark = 9681 very good but how to use swap and zram ? please give me step by step guide how to use them
elias234 said:
hey every thing works great and and antutu benchmark = 9681 very good but how to use swap and zram ? please give me step by step guide how to use them
Click to expand...
Click to collapse
Swap : http://forum.xda-developers.com/showthread.php?t=1659231
Zram = download terminal emulator
su mkswap /dev/block/zram0
swapon /dev/block/zram0
or create an init.d script
Sent from my LT26i using xda app-developers app
:crying: When a Kernel for Lock bootloader. It's not possible ? You're seems very cooool
MaxPayne3004 said:
:crying: When a Kernel for Lock bootloader. It's not possible ? You're seems very cooool
Click to expand...
Click to collapse
Unlocked bootloader is needed for custom kernel
Sent from my LT26i using xda app-developers app
Forzaferrarileo said:
Swap : http://forum.xda-developers.com/showthread.php?t=1659231
Zram = download terminal emulator
su mkswap /dev/block/zram0
swapon /dev/block/zram0
or create an init.d script
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
hey swap works thanks , but when i put mkswap /dev/block/zram0 it says mkswap : image is to small
and i entered su for root access before excuting this command what to do ?
elias234 said:
hey swap works thanks , but when i put mkswap /dev/block/zram0 it says mkswap : image is to small
and i entered su for root access before excuting this command what to do ?
Click to expand...
Click to collapse
How to make simple ZRAM init.d script 1. Using Root Explorer, got to /sytem/etc/init.d/2. press Menu then create new file 3. paste these in it
#!/system/bin/sh sysctl -w vm.swappiness=40 echo "1" > /sys/block/zram0/reset echo $((50*1024*1024)) > /sys/block/zram0/disksize mkswap /dev/block/zram0 swapon /dev/block/zram0
4. close and save it as 60ZRAM 5. set permission to 777 or "rwxrwxrwx" (tick all) 6. take note: 50 *1024*1024 = 50MB zram disksize. if you want to set 30MB, change 50 to 30.
To check download terminal emulator and type su free
if you see swap memory, that means thats activated
Sent from my LT26i using xda app-developers app
More kernels are always welcome.
Sent from hell using Xperia-S(atan)
[/COLOR]
Forzaferrarileo said:
How to make simple ZRAM init.d script 1. Using Root Explorer, got to /sytem/etc/init.d/2. press Menu then create new file 3. paste these in it
#!/system/bin/sh sysctl -w vm.swappiness=40 echo "1" > /sys/block/zram0/reset echo $((50*1024*1024)) > /sys/block/zram0/disksize mkswap /dev/block/zram0 swapon /dev/block/zram0
4. close and save it as 60ZRAM 5. set permission to 777 or "rwxrwxrwx" (tick all) 6. take note: 50 *1024*1024 = 50MB zram disksize. if you want to set 30MB, change 50 to 30.
To check download terminal emulator and type su free
if you see swap memory, that means thats activated
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
hey it worked thanks a lot and i can feel a little better need for speed most wanted because i have a lot lot of games and nfs mw lags very little but after swap and zram i realized no more lag thanks for this great kernel and thanks for fast replay
test it is good . thanks for sharing
Sent from my LT26i using xda app-developers app
hey,when i Use your kernel... Can i relock my phone????
Hey, very nice kernel, how do I overclock the gpu ???
Please answer, I want more performance for games..
First of all you cannot re lock your bootloader with custom kernel... Secondly gpu is already overclocked... There is no way you can alter it... So stop asking in every thread that could you relock the bootloader with custom kernel...
Hey dev could you please make a kernel with all these features for cm10 as well??we will be glad to have it..thanks
Sent from PAC Xperia S
amey_gangal said:
Hey dev could you please make a kernel with all these features for cm10 as well??we will be glad to have it..thanks
Sent from PAC Xperia S
Click to expand...
Click to collapse
I don't have a lot of time in this period...
Anyway novakernel is a good one, try it :thumbup:
Sent from my LT26i using xda app-developers app

[Q] Interactive Governor tweaks?

Has anyone found better parameters to run the interactive governor on? Maybe a script? L Speed Mod only tweaks OnDemand so is there an interactive tweak?
Ntrasme said:
Has anyone found better parameters to run the interactive governor on? Maybe a script? L Speed Mod only tweaks OnDemand so is there an interactive tweak?
Click to expand...
Click to collapse
here is my interactive setting..
I didnt touch max cpu and min cpu clock..
using noop i/o for both internal n external..
and using SManager apps widget to trigger the script i made.. or u may use terminal emulator with su command and just copy paste this settings below..
echo "97" > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
echo "960000" > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
echo "40000" > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
echo "35000" > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/boost
echo "80000" > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration
echo "0" > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
echo "80000" > /sys/devices/system/cpu/cpufreq/interactive/timer_slack
echo "90 300000:45 729000:65 960000:70 1500000:90 1800000:99" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
echo "20000 960000:60000 1500000:20000 " > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
its currently stable enough for me, rom is still snappy without any lag..and my ze551ml never gets overheat because my device seldomly reach 2330mhz..
do give it a try first but dont blame me if its not perfect haha.. im just too bored on waiting for someone to develop custom kernel for our device..thats why i keep trying to tweak the stock kernel interactive governor to gain more battery life..
Could you give me a quick rundown? I see that you are boosting the frequency under load. And you are boosting it less when the screen is touched?
Is it possible for you to edit the script so I can use it on my 1.8ghz Zenfone? Sorry, I don't know how to write a script for the governor.

[WAR MOD] || CPU & VM Tweaks | Battery Saving

Please read this entire post before doing anything.
Pretty straight forward modification that will increase performance and save battery life. You must be rooted to apply this.
Drop this file: https://drive.google.com/file/d/1h0ET7pYHdPB32v-ZtK5pEMlwlHNn8O46/view?usp=drivesdk
... into this location (replacing the existing stock one):
Code:
/system/vendor/bin
Basically, there is a file in that sub-folder "init.qcom.post_boot.sh"
You are replacing that file with mine, which I've made the following changes to:
-modified hispeed_freq and hispeed_load parameter for both CPU clusters so they run more efficiently
-modified vm parameters in /proc/sys/vm to allow a little more RAM to be used. USE YOUR RAM, that's what it is for! I don't like having a full 900Mb of free RAM, then having apps refresh when they are opened again.
-added a script to limit the maximum display brightness (this is still very usable, but it will be more power friendly. The stock settings are way too aggressive)
- there will be much more to come, this is just to start us off
Also, after you drop the new file into the folder, change the permissions to:
Code:
rwxr-xr-x
then reboot/power up
The .sh file executes on its own after each boot. No more CPU apps.
You will see a noticeable difference in battery life and performance. :good:
Yes could you please give me step by step on how I post apply this to my device because I cannot give it permission and then when I do get to permission changed it keeps saying that ignore it it snow please help
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Igorfmedeiros said:
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Click to expand...
Click to collapse
SMD632 is the ID.
Pretty sure yours is SMD636
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
How is this working for those that have used it?
I'm curious too..I've benchmarked my G7 and got a baseline for performance and will eventually try this to see if it improved things..but first I plan on trying some of the tweaks available in Magisk.
this mod doesn't seem to stick as it always reverts to the stock file. why not just make a custom flashable kernel?
Is there guidance to make the change persistent after a reboot. This is my first A/B device and things seems little different now. I am unsure if Motorola is restoring the vendor partition or if the reset isn't related to something else.
I've been trying to avoid installing TWRP due to lack of development and was hoping to apply this with either the stock recovery of just in the file system.
*edit.
I guess Ill look into disabling dim-verity without TWRP, I think I saw a way to do it. Or maybe boot TWRP from the command line instead of installing it.
I made a magisk module to load this file.
See Page 2 to download.
Download ?
idcamper said:
Download ?
Click to expand...
Click to collapse
*module fixed
Use Magisk to make this change stick
*module fixed, we down a few posts.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
The unofficial Twrp actually works quite well on my Moto G7.
maybeme2 said:
The unofficial Twrp actually works quite well on my Moto G7.
Click to expand...
Click to collapse
Without anyone making twrp flashable zips of the updates I am remiss to install it. If more mods come along that require workarounds like this one I will pull the trigger but for now, this one change does not warrant TWRP for me anyway.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
can you send me?
absvini said:
can you send me?
Click to expand...
Click to collapse
*module fixed
Magisk Module fixed
HT123 said:
The mod didn't work. While the file was replaced, it was not processed, look up a few posts to see how to do it without a module.
Click to expand...
Click to collapse
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code]
idcamper said:
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
Click to expand...
Click to collapse
Same happens to me, just rebooted. I'll check my current file with the one he uploaded on Google Drive by comparing them in a text editor?
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
This Magisk module provides the exact same thing as the .sh file in the original post? The exact same benefits?
Click to expand...
Click to collapse
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
I notice quite a difference
Click to expand...
Click to collapse

Categories

Resources