Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTK reboots on a switch and autoblacklisting doesn't work #206

Closed
usr97629238 opened this issue Aug 10, 2023 · 2 comments
Closed

MTK reboots on a switch and autoblacklisting doesn't work #206

usr97629238 opened this issue Aug 10, 2023 · 2 comments

Comments

@usr97629238
Copy link

usr97629238 commented Aug 10, 2023

The issue seems similar to #107
Version is 2023.7.17
Killed accd, tried acc -x -t:

1/8: /proc/mtk_battery_cmd/current_cmd 0::0 0::1
...blah...
Switch works
- battIdleMode=false

2/8: /proc/mtk_battery_cmd/current_cmd 0::0 0::1 /proc/mtk_battery_cmd/en_power_path 1 0
...blah...
Switch works
- battIdleMode=false

3/8: /sys/devices/platform/battery_meter/FG_suspend_current_threshold 100 5
...blah...
Switch doesn't work

REBOOT

And the /proc/mtk_battery_cmd/current_cmd switch indeed works, tested manually with acc -x -e / acc -x -d
And it keeps trying that /sys/devices/platform/battery_meter/FG_suspend_current_threshold switch after the reboot, crashing again and again despite "The upcoming release will auto detect and blacklist unwritable control files and those that trigger unexpected reboot" and the /data/adb/vr25/acc-data/logs/ps-blacklist.log is empty.
Tried adding /sys/devices/platform/battery_meter/FG_suspend_current_threshold to the /data/adb/vr25/acc-data/logs/ps-blacklist.log file manually, tried commenting out that switch in the /data/adb/modules/acc/ctrl-files.sh, to no avail.

Here are the acc -le logs just in case
log.zip

@VR-25
Copy link
Owner

VR-25 commented Aug 15, 2023

Auto-blacklisting does not account for delayed unexpected reboots, which is what seems to be happening.
If FG_suspend_current_threshold was manually blacklisted, and yet, you're still facing reboots, then it's not the culprit.

What's the full list of available switches? (Run acc -ss:)

@VR-25
Copy link
Owner

VR-25 commented Aug 18, 2023

Have you tried manually toggling /proc/mtk_battery_cmd/en_power_path?

@VR-25 VR-25 closed this as completed Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants