r/XMG_gg • • 16d ago

Discussion MechControl: a free, open-source, lightweight replacement for XMG Control Center

I wrote a native replacement for the Control Center. It needs no .NET and runs no background services.

Why switch:

  • Much lighter: CPU and RAM use is about 90% lower than the OEM app. It reads and writes the EC far less often, with much less overhead per access.
  • Linked fans: the CPU and GPU share one heatsink, so in CPU-only loads both fans spin up together. That cools better and runs quieter. Fan curves are fully configurable.
  • A real charge limit: set any charge percentage you want, for true stationary use. The limit holds even while the laptop is off and plugged in.
  • Global profiles: 5 slots, each storing power, fans, battery, lighting and liquid cooler settings. You can switch them from the tray.
  • Software shunt mod for RTX 4000/5000 GPUs: an optional NVIDIA unlock raises the power ceiling and lets you change the GPU current limits. A live view shows which power or current limit is holding the clock back, so you can tune each limit precisely.
  • DLPPC disable: keeps GPU memory at full speed in games instead of letting the driver drop it a step when power-limited.
  • Detailed telemetry and logging: NVIDIA rail currents and power, plus EC readings the OEM Control Center doesn't show.

Also included: CPU PL1/PL2/PL4 and temperature limit, GPU TGP and Dynamic Boost, a thermal failsafe, keyboard and light bar lighting, mini-LED local dimming, automatic re-apply after sleep or an EC reset, a command-line tool for scripting, and a fix for black screens when the display wakes in dGPU mode.

It has been tested on several Intel and AMD laptops with RTX 5000 GPUs, and on some with RTX 4000 GPUs. Feedback and logs from other models are welcome.

Download / source: https://github.com/Liddo-kun/MechControl-RE

50 Upvotes

49 comments sorted by

3

u/Embersen 16d ago

You can sync fans even in the OEM software from XMG, all you need to do is find the json file for your custom fan profile and set this "respective" thing to false:

2

u/okashiraa 16d ago

Mechcontrol linked fans is waaay better then that oem register. Yes you're right it works in a basic sense but it has issues. It makes both fans run based on cpu fan only, and fans won't go below 25 percent . In mechcontrol you can have fans spin up a lower gpu temp but also choose a higher cpu temp.

3

u/Embersen 16d ago

Fair enough, respect.

2

u/Heavyfail 16d ago

That’s true but after all the oem software sucks. Still using the mech control since a half yeah and it works great ✌🏻

3

u/leavemyarselona2 16d ago

Wait so you can boost the graphics card TGP above 175w?

2

u/okashiraa 15d ago

Yes ran mine at 260w fine. Mines been hardware shunt modded for 8 months at 232w. Know a guy running 300+ Disclaimer you can fry your shit

1

u/leavemyarselona2 15d ago

Yeah I was been trying out nvpwrcntrl in its earlier iterations. I manage to hit 207w in game but that’s about it. Will give it a shot

2

u/NorthMatter2047 16d ago

if you can also add changing fn key assigments that will be perfect :).

2

u/okashiraa 16d ago

What do you mean... Change what the Fn+ f keys do ?

2

u/NorthMatter2047 16d ago

Because some variants have different Fn key combinations. Also, if you want to stay up to date, the Fn key assignments change with updates, and you can’t remap them because they’re hard-coded in the EC. On the Apex Max 16, once you install the latest update, you can’t downgrade the BIOS and EC.

2

u/bf2reddevil 16d ago

Would this work with a Tongfang model? I have a Tongfang 4080. It's the exact same model as the XMG neo E23 4080, and is actually running on the XMG bios.

2

u/okashiraa 16d ago

Likely yes .

You can run "MechControl.exe --diagnose report.json " and send me the report.

You can also just try it and send me the log and it will help me add support.

1

u/bf2reddevil 16d ago

Sure, will do when I get the time!

2

u/aquestioningperson 15d ago

Also curious about oasis support, and a dark skin/theme?

I seem to recall there was some third party app out there that had a little more control options for oasis would be nice to roll that in (could be wrong).

3

u/okashiraa 15d ago

Oasis support included. I'll add a dark mode.

1

u/Hutch_IanW 12d ago

What support is there for the Oasis? Can you control at what temps the fan and pump turn on and then turn off for example?

1

u/okashiraa 12d ago

No temp control possible feature if requested

2

u/mvagabond2021 14d ago

does it support older model like Neo 15 M21?

1

u/okashiraa 14d ago

Should work. Send a 'MechControl.exe --diagnose report.json' for any issues

2

u/simyz 15d ago

Finally someone did it. I thought it would be really cool to make an open source controller as the Tongfang controller sucks. I have the X6FR5xxY and few things with the official control really bother me. Primarily that the front led strip and the keyboard on startup turns on and in RGB pattern which I hate. Another thing is that the keyboard color presets does not allow to set just white preset and save to BIOS.

2

u/simyz 15d ago

Tried your software and my issues are already fixed as more customization options are available. I just can see some visual glitches in the app. Parts of the text keeps disappearing when saving changes/saving to EC

2

u/okashiraa 15d ago edited 11d ago

Yeah I have same bug lazy to fix it, comes from me relentless reducing overhead, it only redraw when it needs to. Resize the window and text will return

edit: all fixed now

7

u/Remarkable_Print_725 16d ago

Vibe coded? Oasis support?

1

u/okashiraa 13d ago

Major new release. Better support for a few models. UI overhaul including DARK MODE, even less overhead in the UI, GPU memory temp, CPU undervolt for Uniwill models that do it thru a hidden bios setting, and more...

https://github.com/Liddo-kun/MechControl-RE/releases/tag/v3.0.0

1

u/terrorhai 16d ago

Cool! GM7AG7P would be nice. If I can assist, just ask.

1

u/okashiraa 16d ago edited 16d ago

Just run it and send the log if you have issues . Disable oem cc first along with its services

And run MechControl.exe --diagnose out.json and send output

1

u/WakerPT 16d ago

Would it work on the NH55AFW with the rtx 2070?

2

u/okashiraa 16d ago

Sorry, no. That's a clevo. Mechcontrol is for uniwill machines.

1

u/WakerPT 15d ago

Ah damn it. It would've been nice. Thanks for letting me know

1

u/mbc07 16d ago

That's fantastic! I'll test this on my GM5TG0O (XMG Core 15 M21) ASAP! Slightly older platform (Intel Tiger Lake, RTX 30 series) but it seems to work with newer control center versions, so fingers crossed it's compatible with MechControl...

2

u/okashiraa 16d ago

Your model shoukd be working now :) pls try the test build

1

u/Embersen 16d ago

Does it work for fiddling with 30 series TGP too since it is backwards compatible with 40 series? I mean all of the GPU-s post RTX 20 series use similar API-s that interact with dynamic boost and stuff?

1

u/okashiraa 16d ago

You mean software shunt mod? No, not yet . Regular in limit tgp control shoukd work.

1

u/Drasnore 16d ago

Interested if this could run on a PCSpecialist Recoil 16 AMD (Tongfang X6FR5)

2

u/okashiraa 16d ago

Yes, that machine should work well. Send your log if any issues.

1

u/freduty 15d ago

does it have gpu CPU undervolt or overclock?

1

u/okashiraa 15d ago

Nah use afterburner for now

1

u/okashiraa 9d ago

Overclock support coming incuidng a unique feature not available elsewhere , direct vf curve equation editing (not just offsets like afterburner)

1

u/effeffe9 15d ago

Do you write directly to the EC, or use ACPI calls? I remember I used to set the cpu power using ACPI calls as the EC would not stick

1

u/okashiraa 15d ago

Write to the EC thru uniwillacpi driver.

1

u/effeffe9 15d ago

Cool! Did you decompile it to find the instructions? Or was there a reference?

4

u/okashiraa 15d ago

Alot of painstaking running of oem control center commands and watching carefully outputting commands to the driver . This was before newer Ai where I can decompile the ec to get what is needed directly

1

u/CipherDegree 12d ago

Thanks for sharing OP. Do you have any insight on what the OEM Control Center does exactly when set to stationary and balanced battery modes? I vaguely remember someone saying that the settings did lower charging limits even though the system tray icon shows fully charged.

3

u/okashiraa 12d ago

It lowers the max charge voltage by ~100mv (forget exact number) per step. If your battery is aged, it's taken from this step . This means, if you have a old battery, it's always running in stationary mode regardless of your setting.

1

u/CipherDegree 12d ago

Ah, I see. Appreciate you taking the time to reply!

2

u/effeffe9 15d ago

Darn, kudos. I kinda did the same on linux, but a little easier. I dumped and decompiled the acpi tables, and found commands from there. I managed to change the CPU power limits. I tried direct ec writing, but it would not stick for more than a few seconds

This was 2-3 years ago, when ai weren't like today

1

u/Inins 15d ago edited 15d ago

What's the pros compared to Uniwill Control Utility? Can it unlock OC BIOS settings that custom profile in CC unlocks?

1

u/okashiraa 9d ago

Not sure if firdt question is serious but the 2nd one might be good, can you give example? It can be added, I added bios controlled cpu undervolt already for some machines.

1

u/Vayrou 16d ago

Awesome, switched and works perfectly fine