Skip to content

Commit

Permalink
DEV 22.04.30
Browse files Browse the repository at this point in the history
- 改进 提高滑动操作跟手性
- 改进 内核CPU调速器兼容性
- 修复 部分设备全面屏手势失效
- 修复 Pixel设备自动重启
- 修复 任务调度器任务分类错误
- 修复 游戏负载放置不稳定
- 修复 游戏最小化破音
- ...合计42个commit

Signed-off-by: Matt Yang <yccy@outlook.com>
  • Loading branch information
yc9559 committed Apr 30, 2022
1 parent 764c02f commit 2e4b41e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__pycache__
/.vscode
/build
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# 更新日志

## DEV 22.04.30

- 改进 提高滑动操作跟手性
- 改进 内核CPU调速器兼容性
- 修复 部分设备全面屏手势失效
- 修复 Pixel设备自动重启
- 修复 任务调度器任务分类错误
- 修复 游戏负载放置不稳定
- 修复 游戏最小化破音

## DEV 22.04.23

- 增加 系统动画主动探针
Expand Down
2 changes: 1 addition & 1 deletion magisk/module.prop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
id=uperf
name=Uperf
version=v3(22.04.23)
version=v3(22.04.30)
versionCode=3
author=Matt Yang
description=Userspace performance controller for android. Repo: https://github.com/yc9559/uperf/
Expand Down
2 changes: 1 addition & 1 deletion magisk/script/powercfg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Uperf",
"author": "Matt Yang",
"version": "v3(22.04.23)",
"version": "v3(22.04.30)",
"versionCode": 3,
"features": {
"strict": true,
Expand Down
33 changes: 7 additions & 26 deletions magisk/script/powercfg_once.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ unify_cgroup() {
lock_val "0" /dev/cpuctl/$g/cpu.uclamp.min
lock_val "0" /dev/cpuctl/$g/cpu.uclamp.latency_sensitive
done
for cg in stune cpuctl; do

# clear top-app
for cg in cpuset stune cpuctl; do
for p in $(cat /dev/$cg/top-app/tasks); do
echo $p >/dev/$cg/foreground/tasks
done
Expand All @@ -48,33 +50,13 @@ unify_cgroup() {
change_thread_cgroup "system_server" "^android." "" "cpuset"
change_thread_cgroup "system_server" "^Binder" "" "cpuset"
change_task_cgroup "composer|allocator" "foreground" "cpuset"
change_task_cgroup "android.hardware.media|android.hardware.audio" "top-app" "cpuset"
change_task_cgroup "netd|audioserver" "background" "cpuset"
change_task_cgroup "android.hardware.media" "top-app" "cpuset"
change_task_cgroup "netd" "background" "cpuset"
change_task_cgroup "vendor.mediatek.hardware" "background" "cpuset"
change_task_cgroup "aal_sof|kfps|dsp_send_thread|vdec_ipi_recv|mtk_drm_disp_id|hif_thread|main_thread|mali_kbase_|ged_" "background" "cpuset"
change_task_cgroup "pp_event|crtc_" "background" "cpuset"
}

unify_sched() {
# reduce migration
for d in kernel walt; do
mutate "30" /proc/sys/$d/sched_downmigrate
mutate "90" /proc/sys/$d/sched_upmigrate
mutate "30" /proc/sys/$d/sched_downmigrate
mutate "30 30" /proc/sys/$d/sched_downmigrate
mutate "90 90" /proc/sys/$d/sched_upmigrate
mutate "30 30" /proc/sys/$d/sched_downmigrate
mutate "30" /proc/sys/$d/sched_group_downmigrate
mutate "90" /proc/sys/$d/sched_group_upmigrate
mutate "30" /proc/sys/$d/sched_group_downmigrate
done

# clear cpu load scale factor
for i in 0 1 2 3 4 5 6 7 8 9; do
mutate "0" /sys/devices/system/cpu/cpu$i/sched_load_boost
done
}

disable_hotplug() {
# Exynos hotplug
mutate "0" /sys/power/cpuhotplug/enabled
Expand Down Expand Up @@ -129,7 +111,7 @@ disable_kernel_boost() {
# use cpufreq interface with PPM_POLICY_HARD_USER_LIMIT enabled, thanks to helloklf@github
lock_val "1" /proc/ppm/enabled
lock_val "6 1" /proc/ppm/policy_status
lock_val "0" /proc/perfmgr/tchbst/user/usrtch
lock_val "enable 0" /proc/perfmgr/tchbst/user/usrtch
lock "/proc/ppm/policy/*"

# Samsung
Expand Down Expand Up @@ -170,6 +152,7 @@ disable_userspace_boost() {
# work with uperf/ContextScheduler
lock_val "0" /sys/module/mtk_fpsgo/parameters/boost_affinity
lock_val "0" /sys/kernel/fpsgo/fbt/switch_idleprefer
lock_val "1" /proc/perfmgr/syslimiter/syslimiter_force_disable

# Qualcomm&MTK perfhal
perfhal_stop
Expand Down Expand Up @@ -215,7 +198,6 @@ echo "sh=$(which sh)"
# set permission
disable_kernel_boost
disable_hotplug
unify_sched

disable_userspace_thermal
restart_userspace_thermal
Expand All @@ -225,7 +207,6 @@ restart_userspace_boost
# unify value
disable_kernel_boost
disable_hotplug
unify_sched

# make sure that all the related cpu is online
rebuild_process_scan_cache
Expand Down
2 changes: 1 addition & 1 deletion magisk/script/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ install_uperf() {
echo ""
echo "* Uperf https://github.com/yc9559/uperf/"
echo "* Author: Matt Yang"
echo "* Version: v3(22.04.23)"
echo "* Version: v3(22.04.30)"
echo ""

echo "- Installing uperf"
Expand Down
4 changes: 2 additions & 2 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"versionCode": 3,
"version": "v3(22.04.23)",
"zipUrl": "https://github.com/yc9559/uperf/releases/download/dev-22.04.23/uperf-dev-22.04.23.zip",
"version": "v3(22.04.30)",
"zipUrl": "https://github.com/yc9559/uperf/releases/download/dev-22.04.30/uperf-dev-22.04.30.zip",
"changelog": "https://github.com/yc9559/uperf/raw/master/changelog.md"
}

1 comment on commit 2e4b41e

@K1anaKaslana
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

susu realease

Please sign in to comment.