Skip to content

Odin 2 mini workaround using the run script function in odin settings#8

Open
iloveswiming909 wants to merge 13 commits into
AurelioB:mainfrom
iloveswiming909:main
Open

Odin 2 mini workaround using the run script function in odin settings#8
iloveswiming909 wants to merge 13 commits into
AurelioB:mainfrom
iloveswiming909:main

Conversation

@iloveswiming909

Copy link
Copy Markdown

There seems to be an issue in the odin 2 firmware that is stopping this app working on those devices. I have made a crude workaround using the run script function. I have very limited coding expiriance so this is COMPLETELY vibe coded, but it works on my system. Open to feedback if it doesnt work on other peoples minis. Here is the claude Opus 4.7 summary:

On the AYN Odin 2 Mini, the PServer binder service (/system/bin/pservice) is broken in the shipped firmware. Binder transactions complete without throwing, but the reply payload is always empty, so every cat call ClusterTune issues through PServer returns null. This affects both reading sysfs (detection fails — no clusters found) and writing it (apply silently no-ops — "didn't stick").
This PR works around the firmware bug without requiring root:

  • Reads are routed around PServer entirely — the per-policy cpufreq files are world-readable, so direct File.readText works.
  • Writes use the "Run script as Root" feature in AYN's Odin Settings app as the privileged channel, since PServer can't be made to deliver kernel writes reliably on this firmware.

Non-Mini devices keep the existing PServer path unchanged.

@AurelioB

Copy link
Copy Markdown
Owner

I have a new version on the way that will hopefully solve odin 2 mini issues

@Rinzheim

Copy link
Copy Markdown

I have a new version on the way that will hopefully solve odin 2 mini issues

fingers crossed, i think this will help the mini a lot. probably more than any gen 2 device tbh

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

Successfully merging this pull request may close these issues.

3 participants