As usually I made my ow version of Smartass governor for phone I have. I couldn't break 1 day battery life on stock governor - so I started write my own and finally looks like there will be up to 4 days with this version of smartass governor. But I don't use my phone for listening music etc. So when phone has screen off - I require that it does nothing.
This thread still evolves - now will consist following parts:
Prerequisites:
- for latest version: any SE based 3.0.x kernel and U8500 based device,
- up to smartass v006 Xperia U with stock 6.1.1.B.1.10 ROM,
- root,
- desire to replace SetCPU - when used only for 'ScreenOff' profile.
Automatic installation using apk:
GOVERNORS
General info:
- information about governors is here,
- a lot of information about performance, battery draining: Battery, Governors, and...: Tips and Conclusions
- more information about 'smartass' governor is here or here,
- how different governors work is explained here: [Q] SetCPU governors (explained).
ONDEMANDAX
The benefits:
- CPU when screen is off is capped to 200MHz,
- behaves as ondemand governor when screen is on,
- no need for sleep-off profile,
Governor file: axperiau_ondemandax.ko
Governor name: ondemandax
PEGASUSQ
Samsung's own multi-core aware governor. Pegasusq is basically an ondemand based governor which also controls hotplugging.
Information about this governor: Pegasusq Governor
Governor file: axperiau_pegasusq.ko
Governor name: pegasusq
LULZACTIVEQ
Lulzactiveq is a modified lulzactive governor authored by XDA member robertobsc and is adapted in Siyah kernel for GS2 and GS3. Lulzactiveq aims to optimize the second version of luzactive from Tegrak by a) providing an extra parameter (dec_cpu_load) to make scaling down more sensible, and b) incorporating hotplug logic to the governor. Luzactiveq is the first ever interactive based governor with hotplugging logic inbuilt (atleast the first of its kind for the exynos platform). When CPU comes out of idle loop and it's time to make a scaling decision, if load >= inc_cpu_load CPU is scaled up (like original luzactiveq) and if load <dec_cpu_load, CPU is scaled down. This possibly eliminates the strict single cut-off frequency for luzactiveq to make CPU scaling decisions. Also, stand hotplug logic runs as a separate thread with the governor so that external hotplugging logic is not required to control hotplug in and out (turn On and Off) CPU cores in multi core devices like GS2 or GS3. Only a multi core aware governor makes real sense on muti-core devices. Lulzactiveq and pegasusq aims to do that.
Governor file: axperiau_lulzactiveq.ko
Governor name: lulzactiveq
SMARTASSV2
The benefits:
- CPU when screen is off is capped to 200MHz,
- allows to set starting CPU freq when phone awakes (to speed up awake process),
- allows set/change almost all aspects of governor (to suite needs),
Governor file: axperiau_smartass2.ko
Governor name: smartassV2
Manual installation:
Now governor should works
IO SCHEDULERS
General info:
Information about io schedulers: I/O Schedulers
SIO
Simple I/O scheduler aims to keep minimum overhead to achieve low latency to serve I/O requests. No priority quesues concepts, but only basic merging. Sio is a mix between noop & deadline. No reordering or sorting of requests.
Advantages:
Scheduler name: sio
V(R)
Unlike other schedulers, synchronous and asynchronous requests are not treated separately, instead a deadline is imposed for fairness. The next request to be served is based on it's distance from last request.
Advantages:
Scheduler name: vr
Manual installation:
Now scheduler should works.
VERSION INFO
LULZACTIVEQ:
v005:
- based on latest sources of lulzactiveq,
- code cleanup,
v004: in tests,
v003:
- based on latest sources of lulzactiveq,
v002:
- tuned parameters,
- when screen is off - max cpu freq in policy is changed to 200MHz,
v001:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
PEGASUSQ:
v003:
- code cleanup,
v002:
- tuned parameters,
- when screen is off - max cpu freq in policy is changed to 200MHz,
v001:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
VR, SIO:
v001:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
ONDEMANDAX:
v004:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
v003:
- added all features that I discovered while developing SmartASS to original ondemand code - so it's save battery now as SmartASS and no longer screen-off profile is needed.
SMARTASS:
v008:
- code cleanup,
- should be less laggy then previous version,
v007:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
v006:
- few parameters tuned,
v005:
- changed logic - so now should work more stable,
- when screen is off - max cpu freq in policy is changed to 200MHz,
- few parameters tuned,
v004:
- minor changes for screen off power saving,
v003:
- fixed logical bug in code,
v002:
- added sleep_max_freq and sleep_rate_jiffies - to change SMARTASSV1 behavior,
- added apk that automates install and run smartass after boot,
v001:
- just initial version fixed to work with Xperia U.
Disclaimer
I'm not responsible if this module damages your lovely phone. Use it at your own risk! Think before you do something!
Sources at: GitHub
This thread still evolves - now will consist following parts:
- Governors
- IO Schedulers
Prerequisites:
- for latest version: any SE based 3.0.x kernel and U8500 based device,
- up to smartass v006 Xperia U with stock 6.1.1.B.1.10 ROM,
- root,
- desire to replace SetCPU - when used only for 'ScreenOff' profile.
Automatic installation using apk:
- Use app from this post (starting from v003 it is inside zip file),
After install there is just simple button to run any desired governor and io scheduler.
When phone boots again- there is service that boots with phone called 'SmartAss v.00x'.
You can check it on: Settings->Applications->Running - I believe.
When you click on it - there is details with timer that shows how long this service run. After 1min service will install desired governor and scheduler and run it again and close itself. - If you try to upgrade app - reboot phone to load new version. If this not works - remove app - reboot phone and load new one.
GOVERNORS
General info:
- information about governors is here,
- a lot of information about performance, battery draining: Battery, Governors, and...: Tips and Conclusions
- more information about 'smartass' governor is here or here,
- how different governors work is explained here: [Q] SetCPU governors (explained).
ONDEMANDAX
The benefits:
- CPU when screen is off is capped to 200MHz,
- behaves as ondemand governor when screen is on,
- no need for sleep-off profile,
Governor file: axperiau_ondemandax.ko
Governor name: ondemandax
PEGASUSQ
Samsung's own multi-core aware governor. Pegasusq is basically an ondemand based governor which also controls hotplugging.
Information about this governor: Pegasusq Governor
Governor file: axperiau_pegasusq.ko
Governor name: pegasusq
LULZACTIVEQ
Lulzactiveq is a modified lulzactive governor authored by XDA member robertobsc and is adapted in Siyah kernel for GS2 and GS3. Lulzactiveq aims to optimize the second version of luzactive from Tegrak by a) providing an extra parameter (dec_cpu_load) to make scaling down more sensible, and b) incorporating hotplug logic to the governor. Luzactiveq is the first ever interactive based governor with hotplugging logic inbuilt (atleast the first of its kind for the exynos platform). When CPU comes out of idle loop and it's time to make a scaling decision, if load >= inc_cpu_load CPU is scaled up (like original luzactiveq) and if load <dec_cpu_load, CPU is scaled down. This possibly eliminates the strict single cut-off frequency for luzactiveq to make CPU scaling decisions. Also, stand hotplug logic runs as a separate thread with the governor so that external hotplugging logic is not required to control hotplug in and out (turn On and Off) CPU cores in multi core devices like GS2 or GS3. Only a multi core aware governor makes real sense on muti-core devices. Lulzactiveq and pegasusq aims to do that.
Governor file: axperiau_lulzactiveq.ko
Governor name: lulzactiveq
SMARTASSV2
The benefits:
- CPU when screen is off is capped to 200MHz,
- allows to set starting CPU freq when phone awakes (to speed up awake process),
- allows set/change almost all aspects of governor (to suite needs),
Governor file: axperiau_smartass2.ko
Governor name: smartassV2
Manual installation:
- Unzip file
- Copy 'governor-file' to directory where you have adb
- Execute
Code:
adb push 'governor-file' /data/local/tmp
- Run adb shell or terminal - whatever you like
- Execute following commands:
Code:
su
cd /data/local/tmp
insmod 'governor-file'
echo "governor-name" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "governor-name" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
IO SCHEDULERS
General info:
Information about io schedulers: I/O Schedulers
SIO
Simple I/O scheduler aims to keep minimum overhead to achieve low latency to serve I/O requests. No priority quesues concepts, but only basic merging. Sio is a mix between noop & deadline. No reordering or sorting of requests.
Advantages:
- Simple, so reliable.
- Minimized starvation of requests.
- Slow random-read speeds on flash drives, compared to other schedulers.
- Sequential-read speeds on flash drives also not so good.
Scheduler name: sio
V(R)
Unlike other schedulers, synchronous and asynchronous requests are not treated separately, instead a deadline is imposed for fairness. The next request to be served is based on it's distance from last request.
Advantages:
- May be best for benchmarking because at the peak of it's 'form' VR performs best.
- Performance fluctuation results in below-average performance at times.
- Least reliable/most unstable.
Scheduler name: vr
Manual installation:
- Unzip file
- Copy 'scheduler-file' to directory where you have adb
- Execute
Code:
adb push 'scheduler-file' /data/local/tmp
- Run adb shell or terminal - whatever you like
- Execute following commands:
Code:
su
cd /data/local/tmp
insmod 'scheduler-file'
echo "scheduler-name" > /sys/block/mmcblk0/queue/scheduler
VERSION INFO
LULZACTIVEQ:
v005:
- based on latest sources of lulzactiveq,
- code cleanup,
v004: in tests,
v003:
- based on latest sources of lulzactiveq,
v002:
- tuned parameters,
- when screen is off - max cpu freq in policy is changed to 200MHz,
v001:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
PEGASUSQ:
v003:
- code cleanup,
v002:
- tuned parameters,
- when screen is off - max cpu freq in policy is changed to 200MHz,
v001:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
VR, SIO:
v001:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
ONDEMANDAX:
v004:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
v003:
- added all features that I discovered while developing SmartASS to original ondemand code - so it's save battery now as SmartASS and no longer screen-off profile is needed.
SMARTASS:
v008:
- code cleanup,
- should be less laggy then previous version,
v007:
- will load on any SE 3.0.x kernel and any SE devices with U8500 CPU,
v006:
- few parameters tuned,
v005:
- changed logic - so now should work more stable,
- when screen is off - max cpu freq in policy is changed to 200MHz,
- few parameters tuned,
v004:
- minor changes for screen off power saving,
v003:
- fixed logical bug in code,
v002:
- added sleep_max_freq and sleep_rate_jiffies - to change SMARTASSV1 behavior,
- added apk that automates install and run smartass after boot,
v001:
- just initial version fixed to work with Xperia U.
Disclaimer
I'm not responsible if this module damages your lovely phone. Use it at your own risk! Think before you do something!
Sources at: GitHub
Attachments
-
axperiau_smartass_6.1.1.B.1.10_v003.zip182.6 KB · Views: 629
-
axperiau_smartass_6.1.1.B.1.10_v004.zip505.4 KB · Views: 285
-
axperiau_smartass_6.1.1.B.1.10_v005.zip502.8 KB · Views: 981
-
axperiau_smartassv006_ondemandv003_6.1.1.B.1.10.zip531.3 KB · Views: 432
-
axperiauv002_smartassv007_ondemandaxv004_pegasusqv001_siov001_vrv001.zip248.9 KB · Views: 531
-
SmartGovernorsv201.apk214.1 KB · Views: 1,273
-
axperiau_governors_v203_smartassv007_ondemandaxv004_pegasusqv002_siov001_vrv001.zip601.8 KB · Views: 496
-
axv205_smartassv007_ondemandaxv004_pegasusqv002_lulzactivev003_siov001_vrv001.zip651.4 KB · Views: 459
-
axv208_smartassv008_ondemandaxv005_pegasusqv003_lulzactivev005_siov001_vrv001.zip644.3 KB · Views: 2,524
-
cpufreq_conservative.zip5.6 KB · Views: 230
Last edited: