Quantcast
Channel: xda-developers - One S Android Development
Viewing all articles
Browse latest Browse all 275

[Kernel][JB 4.2.1][aosp][s4] Komodo [USBOTG][linaro][S2W]

$
0
0
I don not own an HTC ONE S however I have an AOSP kernel for the EVO 4G LTE. Both use CM 8960 kernel source. Even though this will be a first release for the one S it is the 25th release for this kernel so it is heavily modified.

I suggest using the app kernel tuner from the market as this app will really let you unlease this kernels features.
compiled with linaro 4.7.3 (1/13) THos has all -O3 eerors fixed but for now is compiled with -Os so I know it boots.
Has S2W (thanks to Zarboz and showp)
Fix for headphone detection
kernel based thermal mangement
kernel based mpdecision (this will give you better battery life)
OC to 1.809 (optional)
usb otg
Usb Fast charge(optional off by default)
cpu governeors:wheatly,lionheart,baddass(3 phase),onedemand,performance,conservative,savadged zen,intellidemand,lagfree,interactive,
IO schedulers: deadline,cfq,bfq,sio,zen,vr,row,fifo,noop
gpu OC (optional)
Linux 3.0.62
user controlled voltage (optional)
dynamic fsync
dynamic readahead


here is a little explanation of kernel based thermal and mpdecision control
What is msm_thermal?

Kernel based 3-phase thermal control!
This replaces your /system/bin/thermald binary which is renamed by the installer to thermald_backup.

Check /sys/kernel/msm_thermal/conf/ for the thermal configuration

allowed_max_high = highest threshold (phase 3)
allowed_max_low = remove the throttling if we cooled down to this (clr_thrshold)
allowed_max_freq = max frequency if throttled (limit)

[...]mid[...] = same as above, just for phase 2
[...]low[...] = Lowest threshold (phase 1)

check_interval_ms = how often shall we check? (sampling rate)
Default: 1000ms (=1sec)

If you want to see msm_thermal doing it's job:
Code:

adb shell cat /proc/kmsg | grep 'msm_thermal'
What is msm_mpdecision?

100% kernel based multi core decision! (should cpu1 be online or not?)
This replaces your /system/bin/mpdecision binary which is renamed by the installer to mpdecision_backup.

Check /sys/kernel/msm_mpdecision/conf/ for the configuration.

startdelay = time until mpdecision starts doing it's magic (70000)
delay = time between checks (500)
pause = if something else plugs in the cpu, fall asleep for 10000
scroff_single_core = if the screen is off, don't plug in cpu1 (1)
nwns_threshold_up = runqueue threshold, if this is reached cpu1 will be hotplugged (35)
nwns_threshold_down = runqueue threshold, if this is reached cpu1 will be unplugged (5)
twts_threshold_up = time threshold, this amount of time must have passed (250)
twts_threshold_down = same as above (250)
enabled = enable(1) or disable(0) mpdecision. This does not affect scroff_single_core!
idle_freq = a value against that will be checked if a core +/- is requested. (486000)
If cpu0 is below that value and a core up of cpu1 is requested, nothing will happen.
If cpu1 is above that value and a core down of cpu1 is requested, nothing will happen. (otherwise it would now put down cpu1 even though it is still working)

(all times are in ms)

My source can be found https://github.com/thicklizard

Normal disclaimer NOT RESPONSIBE IF YOU BRICK,DROP,LOSE YOUR DEVICE. FLASH AT YOUR OWN RISK

download http://d-h.st/2jj


installation instructions

Open zip fastboot flash/flash gui the bootimg
using a file explore replace the modules location in system/lib/modules with the ones in the zip make sure permisions are set correctly
go to system/bin rename mpdecision to mpdecision_backup
go to system/bin rename thermald to thermald_backup

Thanks to
Chad G
intervigil
deck
Showp
Zarboz
Ca1ne

Viewing all articles
Browse latest Browse all 275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>