| ⚡ Gaming Mode | 🛡️ Balance Mode |
|---|---|
| Performance ON | Performance OFF |
| Gaming • CPU/GPU Performance | Thermal ON • CPU/GPU Normal |
Tested and developed on Redmi Note 10S + Stock MIUI + Magisk Delta.
| Feature | Description |
|---|---|
| 🎮 Auto Game Detection | Detects configured game processes automatically |
| ⚡ Performance Mode | Enables performance-oriented settings while gaming |
| 🛡️ Auto Restore | Restores normal settings after leaving the game |
| 🔔 Notifications | Shows the current mode directly in Android notifications |
| 🚀 CPU Optimization | Attempts to use performance governor during gaming |
| 🎯 GPU Optimization | Attempts to use available GPU/devfreq performance governors |
| 🌡️ Thermal Management | Adjusts thermal services/zones while Gaming Mode is active |
| 📝 Logging | Writes a runtime log for troubleshooting |
| 📦 Magisk Module | Designed to be installed directly through Magisk |
┌──────────────────┐
│ Game Started │
└────────┬─────────┘
│
▼
┌──────────────────┐
│ Detect Process │
│ ~ every 3 sec │
└────────┬─────────┘
│
▼
┌──────────────────────┐
│ ⚡ PERFORMANCE MODE │
│ │
│ • Thermal adjusted │
│ • CPU performance │
│ • GPU performance │
│ • MIUI limiters │
└──────────┬───────────┘
│
Game still running
│
▼
┌──────────────────────┐
│ Gaming... │
└──────────┬───────────┘
│
Game exits
│
▼
┌──────────────────────┐
│ 🛡️ BALANCE MODE │
│ │
│ • Thermal restored │
│ • CPU normal │
│ • GPU normal │
│ • MIUI restored │
└──────────────────────┘
The module checks the configured package list approximately every 3 seconds.
Default package list:
com.garena.game.df
com.tencent.tmgp.dfm
com.mobile.legends
com.tencent.tmgp.pubgmobile
com.miHoYo.GenshinImpact
com.garena.game.df
Support depends on your Android version, ROM, kernel, thermal framework, and the actual process/package name used by the game.
| Component | Tested |
|---|---|
| 📱 Device | Redmi Note 10S |
| 🧩 SoC | MediaTek |
| 💿 ROM | Stock MIUI |
| 🔑 Root | Magisk Delta |
| 🎮 Main Game | com.garena.game.df |
| ⏱️ Detection | ~3 seconds |
This is not a guarantee of compatibility with other devices.
- Rooted Android device
- Magisk / Magisk Delta or compatible Magisk module manager
- Compatible kernel/ROM with the required sysfs interfaces
- Recommended: backup your important data before testing
- Download the latest ZIP from Releases.
- Open Magisk / Magisk Delta.
- Open Modules.
- Select Install from storage.
- Select the downloaded module ZIP.
- Wait for installation to finish.
- Reboot.
- Launch a supported game.
- Wait approximately 3 seconds.
- You should receive:
⚡ Performance Mode
Gaming ON • CPU/GPU Performance
When the game is closed:
🛡️ Balance Mode
Gaming OFF • Thermal ON • CPU/GPU Normal
Magisk → Modules → Auto Thermal Gaming Mode → Remove → Reboot
Disable/remove the module using your available Magisk recovery/Safe Mode method.
Do not continue gaming if the device becomes unusually hot or unstable.
This module can modify thermal services, thermal-zone settings, CPU/GPU governors, and performance-related services.
Thermal management exists to protect your device from excessive heat.
- 🌡️ Excessive device temperature
- 🔋 Faster battery degradation
- 🔌 Additional battery/charging stress
- 📉 Unstable sustained performance
- 💥 Application crashes
- 🔄 Random reboots
- 🧩 System instability
⚠️ Hardware damage in extreme conditions
- Your phone is already overheating.
- Your battery is swollen or damaged.
- Your charging system is abnormal.
- You do not understand Magisk/root recovery.
- You cannot recover from a problematic Magisk module.
- 🌡️ Monitor CPU/SoC and battery temperature.
- 🎮 Avoid extremely long gaming sessions.
- 🔌 Avoid aggressive thermal modification while charging.
- 🛑 Stop gaming if temperatures become abnormal.
- 💾 Keep important data backed up.
- 🧯 Know how to disable the module if something goes wrong.
Thermal protection exists for a reason.
This project is an experimental performance-tuning module. It is not a replacement for proper thermal management.
When Gaming Mode is activated, the module attempts to:
• Detect the game process
• Stop selected thermal services
• Disable writable thermal-zone mode nodes
• Stop selected MIUI performance daemons
• Set CPU governor → performance
• Set GPU/devfreq governor → performance
When Gaming Mode is disabled:
• Start selected thermal services
• Re-enable writable thermal-zone mode nodes
• Start selected MIUI performance daemons
• Set CPU governor → schedutil
• Set GPU/devfreq governor → schedutil
Not every command is available on every device. Unsupported paths/commands are ignored.
Check the package manually:
su -c 'pidof com.garena.game.df'If the game is running, it should return a PID, for example:
13802
If nothing is returned, the game package/process may differ on your device.
su -c 'cat /data/adb/modules/auto_thermal/auto_thermal.log'The log can show:
AUTO THERMAL SERVICE STARTED
GAME DETECTED
ENABLE GAMING MODE
GAMING MODE ENABLED
GAME CLOSED
RESTORE BALANCE MODE
BALANCE MODE RESTORED
Gaming Mode:
/data/adb/modules/auto_thermal/thermal_off
Balance Mode:
/data/adb/modules/auto_thermal/thermal_on
su -c 'for x in /sys/class/thermal/thermal_zone*/mode; do echo "$x = $(cat "$x" 2>/dev/null)"; done'Inspect thermal-zone types:
su -c 'for x in /sys/class/thermal/thermal_zone*/type; do echo "$x = $(cat "$x" 2>/dev/null)"; done'Edit:
service.sh
and modify:
DAFTAR_GAME="
com.garena.game.df
com.tencent.tmgp.dfm
com.mobile.legends
com.tencent.tmgp.pubgmobile
com.miHoYo.GenshinImpact
"Add your desired package name.
Example:
com.example.mygameOnly add packages you know are correct. Incorrect thermal/service modifications may cause instability.
Not guaranteed.
The module primarily attempts to prevent or reduce performance restrictions while gaming.
Actual results depend on:
- SoC temperature
- CPU/GPU frequency limits
- Kernel configuration
- ROM thermal framework
- Game engine
- FPS cap
- Device cooling
- Battery temperature
- Background workload
Removing thermal limits does not automatically mean higher FPS.
In some cases, excessive heat can result in worse sustained performance or instability.
Issues, compatibility reports, testing results, and improvements are welcome.
When opening an issue, please include:
Device:
Android version:
ROM / MIUI version:
Root solution:
Root version:
Kernel:
Game package:
Problem:
auto_thermal.log:
Please provide logs whenever possible.
If this module is useful to you:
- ⭐ Star the repository
- 🐛 Report bugs
- 💡 Suggest improvements
- 🧪 Share compatibility results
This project is released under the MIT License.
See LICENSE for the full license text.
Made with ⚡ for rooted Android gaming
© Bang Domath
