Can I overclock an Android tablet through Termux?

24 days ago by printf("%s", name); to c/android

EDIT3: this is NOT an overclock! Manually setting a scaling governor does not forcibly increase the intended frequency range of the CPU clock! Setting the scaling governor has more to do with performance management. In my case, setting it to “performance”, it simply forces the cpu to always run at the maximum frequency as designed by the manufacturer. Further reading here and here. Thank you @nocteb@feddit.org for the reminder!

EDIT2: the tablet is rooted with Magisk ( https://topjohnwu.github.io/Magisk/install.html ) and Termux is running with superuser privileges granted through Magisk. The below command was issued after su - ing into a root shell. "performance" was echo ed into all available /sys/devices/system/cpu/cpufreq/.../scaling_governors, meaning, there are several subdirectories called policy[0...] in which the scaling_governor files reside.

EDIT: echo ing “performance” to /sys/devices/system/cpu/cpufreq/policy0/scaling_governor seems to have maxed out the cpu clockspeed! Now the tablet is snappy as hell! It’ll be interesting to see how battery drain and heat are affected by this. Thank you @tal@lemmy.today !

Say, by sending some value to something inside /sys/.../cpu or the likes. I have already aggressively debloated the tablet, but I like to experiment and I am not afraid to destroy the tablet since I bought it for 150 bucks at sale. Or pehaps there is some Magisk module that can do this?

The tablet is a Samsung Galaxy A9+.

Clearwater 9 points 24 days ago

Kinda. Kinda not. If you rooted the tablet, you can just run su in termux to get elevated out of termux entirely and into Android's root shell. Then fucking about with values may get you an overclock, however it's possible no options will exist at all, since it would depend on the kernel version and CPU.

path: 0 24001967, hotness: undefined, score: 9, children: 1
akunohana 3 points 24 days ago

Thanks! I didn't have my hopes up, but echoing "performance" to the scaling_governor seems to have maxed out the cpu frequency as reported by cpuinfo_cur_freq.

path: 0 24001967 24002232, hotness: undefined, score: 3, children: 0
thenextguy 2 points 24 days ago

I think not. /sys is not mounted and the termux user is a fake root with limited access.

path: 0 24001766, hotness: undefined, score: 2, children: 1
akunohana 2 points 24 days ago

Thanks! I have no idea how Android works really, so I'll take this opportunity to learn how filesystems are mounted on this bad boi.

Although, following another commenter's advice, I did manage to max out the cpu frequency reported by /sys/devices/system/cpu/policy0/cpuinfo_cur_freq but echo ing performance to scaling_governor.

path: 0 24001766 24002211, hotness: undefined, score: 2, children: 0
frongt 1 point 24 days ago

If you haven't already, I'd see if you could put lineageos on it instead of Samsung's crap.

path: 0 24004968, hotness: undefined, score: 1, children: 5
akunohana 1 point 24 days ago

Yeah, I know... What's up with their poor optimization... I just checked though, and the A9+ is not supported... :(

But incidentally my main driver (Galaxy S23) is!!! Hahaha

path: 0 24004968 24005210, hotness: undefined, score: 1, children: 4
hexagonwin 2 points 23 days ago

if you can unlock its bootloader (might be possible if you haven't upgraded to oneui8 yet) you can install a GSI

path: 0 24004968 24005210 24007742, hotness: undefined, score: 2, children: 3
akunohana 1 point 23 days ago path: 0 24004968 24005210 24007742 24007897, hotness: undefined, score: 1, children: 2
hexagonwin 2 points 23 days ago

:) try searching for phh treble on xda forums, the google official aosp gsis tend to not work so well on different devices

path: 0 24004968 24005210 24007742 24007897 24008070, hotness: undefined, score: 2, children: 0
Kroko 1 point 23 days ago path: 0 24004968 24005210 24007742 24007897 24014975, hotness: undefined, score: 1, children: 0
android
android

@lemmy.world

login for more options
34224
1971
940

DROID DOES

Welcome to the Android community on Lemmy. Here you can participate in amazing discussions and events relating to all things Android.

The rules for posting and commenting, besides the rules defined here for lemmy.world, are as follows:

Rules


1. All posts must be relevant to Android devices/operating system.


2. Posts cannot be illegal or NSFW material.


3. No spam, self promotion, or upvote farming. Sources engaging in these behavior will be added to the Blacklist.


4. Non-whitelisted bots will be banned.


5. Engage respectfully: Harassment, flamebaiting, bad faith engagement, or agenda posting will result in your posts being removed. Excessive violations will result in temporary or permanent ban, depending on severity.


6. Memes are not allowed to be posts, but are allowed in the comments.


7. Posts from clickbait sources are heavily discouraged. Please de-clickbait titles if it needs to be submitted.


8. Submission statements of any length composed of your own thoughts inside the post text field are mandatory for any microblog posts, and are optional but recommended for article/image/video posts.


Community Resources:


go to feed...