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+.

all 10 comments

sorted by: hot top controversial new old
[–] 8 points 5 months ago (1 child)

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.

  • source
  • hideshow 1 child comment
  • [–] 2 points 5 months ago (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] [S] 2 points 5 months 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.

  • source
  • parent
  • [–] 1 point 5 months ago (5 children)

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

  • source
  • hideshow 5 child comments
  • [–] [S] 1 point 5 months ago (4 children)

    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

  • source
  • parent
  • hideshow 4 child comments
  • [–] 2 points 5 months ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 1 point 5 months ago (2 children)