Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Auto Thermal Gaming Mode

Auto Thermal Gaming Mode

Automatic Performance & Thermal Mode for Rooted Android

Latest Release GitHub Stars License Android Magisk


🎮 Detect Game → ⚡ Performance Mode → 🛡️ Restore Automatically


📸 Preview

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


✨ Features

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

🧠 How It Works

                    ┌──────────────────┐
                    │   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.


🎮 Supported Games

Default package list:

com.garena.game.df
com.tencent.tmgp.dfm
com.mobile.legends
com.tencent.tmgp.pubgmobile
com.miHoYo.GenshinImpact

Primary Tested Target

com.garena.game.df

Support depends on your Android version, ROM, kernel, thermal framework, and the actual process/package name used by the game.


📱 Tested Environment

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.


📥 Installation

Requirements

  • 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

Install

  1. Download the latest ZIP from Releases.
  2. Open Magisk / Magisk Delta.
  3. Open Modules.
  4. Select Install from storage.
  5. Select the downloaded module ZIP.
  6. Wait for installation to finish.
  7. Reboot.
  8. Launch a supported game.
  9. Wait approximately 3 seconds.
  10. You should receive:

Performance Mode
Gaming ON • CPU/GPU Performance

When the game is closed:

🛡️ Balance Mode
Gaming OFF • Thermal ON • CPU/GPU Normal


🗑️ Uninstallation

Normal removal

Magisk → Modules → Auto Thermal Gaming Mode → Remove → Reboot

If the device becomes unstable

Disable/remove the module using your available Magisk recovery/Safe Mode method.

Do not continue gaming if the device becomes unusually hot or unstable.


⚠️ WARNING & RISKS

🌡️ THIS MODULE MODIFIES THERMAL MANAGEMENT

USE AT YOUR OWN RISK.

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.

Possible risks

  • 🌡️ Excessive device temperature
  • 🔋 Faster battery degradation
  • 🔌 Additional battery/charging stress
  • 📉 Unstable sustained performance
  • 💥 Application crashes
  • 🔄 Random reboots
  • 🧩 System instability
  • ⚠️ Hardware damage in extreme conditions

DO NOT use this module if:

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

Recommended

  • 🌡️ 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.


🔧 Technical Details

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.


🧪 Troubleshooting

Game is not detected

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.


Check the module log

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

Check current state

Gaming Mode:

/data/adb/modules/auto_thermal/thermal_off

Balance Mode:

/data/adb/modules/auto_thermal/thermal_on

Inspect thermal zones

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'

🛠️ Customization

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

Only add packages you know are correct. Incorrect thermal/service modifications may cause instability.


📊 Does It Increase FPS?

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.


🤝 Contributing

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.

👉 Open an Issue


⭐ Support the Project

If this module is useful to you:

  • ⭐ Star the repository
  • 🐛 Report bugs
  • 💡 Suggest improvements
  • 🧪 Share compatibility results

⭐ If it helps your gaming setup, give the project a star!

GitHub


👤 Author

Bang Domath

GitHub: @Formatth

Project: Auto-Thermal-Gaming-Mode


📜 License

This project is released under the MIT License.

See LICENSE for the full license text.


Made with ⚡ for rooted Android gaming

© Bang Domath

Releases

Contributors

Languages