Skip to content

chg-hou/FloatingCpuControl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Floating CPU Control

Android app with floating window to control CPU.

English

中文

Screenshot Screenshot


This app requires ROOT permissions to change settings. By now, this app is only tested using Meizu MX4. It MAY work in other devices.

playstore

flymestore

What settings can it change?

Note: /proc/hps is only supported by mtk CPU. In other words, big/little core control function will work only in models with mtk cpu (i.e. MX4). In models with other brand CPU (i.e. MX4 Pro), this function will be hidden.

Active cores manually

  • /proc/hps/enabled
  • /sys/devices/system/cpu/cpu*/online

Minimum numbers of online big and little cores

  • /proc/hps/num_base_perf_serv

Maximum scaling frequency

  • /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq

Disable GPU dvfs

  • /sys/module/pvrsrvkm/parameters/gpu_dvfs_enable

Refs:

How to use

Screenshot

  1. Use radio buttons to switch between Auto and Manual modes.
  2. Use spinners to set the minimum numbers of online big and little cores.
  3. Use square bars to limit the maximum scaling frequency.
  4. Use checkboxes to enable or disable cores. (in Manual mode)
  5. Click to close this app.
  6. Click to minimize the floating window.
  7. Touch and hold on the blank area to open/close the preference screen. Touch and drag to move the window.

CPU load bar: user / system(including IO) / idle

GPU load bar: loading / block / idle

  1. https://github.com/Trinea/android-common/blob/81cfc7ce0e93b2c4137fc8a37c836db6dccc6cea/src/cn/trinea/android/common/util/ShellUtils.java
  2. https://github.com/mikewang0326/FloatingViewDemo

License

The source code for this app is licensed under the MIT license, which you can find in the LICENSE file.

If you find this app useful, you are welcome to donate any amount you wish :)

Paypal WeChat
paypal Weixin

修改设置时需要ROOT权限。目前仅在Meizu MX4中测试。

注意: /proc/hps 仅被MTK系的CPU支持。大小核心调节功能只在采用MTK CPU的型号(如MX4)中可见,采用其他CPU的型号(如MX4 PRO)中将被隐藏。

playstore

flymestore

App可设置的参数

手动激活核心

  • /proc/hps/enabled
  • /sys/devices/system/cpu/cpu*/online

最少激活的大、小核心数

  • /proc/hps/num_base_perf_serv

核心最高频率

  • /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq

禁用GPU dvfs

  • /sys/module/pvrsrvkm/parameters/gpu_dvfs_enable

参见:

如何使用

Screenshot

  1. 点击单选按钮切换模式。
  2. 选择大、小核心数。
  3. 滑动或点击,限制最高频率。
  4. 手动模式下激活、关闭核心。
  5. 关闭App。
  6. 最小化悬浮窗。
  7. 空白处拖动改变位置。长按开关设置页面。

CPU 使用率指示: 用户态 / 系统态 / 空闲

GPU 使用率指示: loading / block / idle

  1. https://github.com/Trinea/android-common/blob/81cfc7ce0e93b2c4137fc8a37c836db6dccc6cea/src/cn/trinea/android/common/util/ShellUtils.java
  2. https://github.com/mikewang0326/FloatingViewDemo

License

The source code for this app is licensed under the MIT license, which you can find in the LICENSE file.

欢迎捐赠,金额随意 :)

Paypal
paypal

About

Android app with floating window to control cpu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages