Handheld + eGPU: Windows Game Mode was capping my CPU at ~12 W / 2.1 GHz. Found the cause and made a free fix
I got tired of re-configuring my Ally X every time I docked or undocked it, so I built DockSense, a free, open-source tray app that does it automatically.
Sound familiar?
- You dock to a TV or monitor and Windows boots into the Xbox full screen experience, or you go handheld and it boots to the desktop.
- You want 8 GB of VRAM for the iGPU in handheld mode, but less with an eGPU, so you change it in Armoury Crate and restart every time.
- With an eGPU, the CPU sits at about 10–12 W and 2 GHz in game even though it shows 100%, and FPS tanks.
- You switch power plans by hand, and Armoury Crate or another vendor tool keeps changing them back.
- You want Steam Big Picture, Playnite or another program to launch only when you're docked.
What DockSense does
It detects your mode (Handheld, Docked to an external display, or eGPU) and applies a profile you set for each one:
- Xbox full screen experience / Xbox mode: choose whether each mode boots into it or to the desktop. It can also switch right away when the mode changes, with no restart.
- iGPU memory (VRAM): stores a size for each mode, on ASUS devices. A tray entry like Restart for Handheld (8 GB) lets you set it before you swap, so the PC comes back up with the right size.
- Power plan: a plan for each mode, re-applied if other software changes it, with a limit so it never fights your vendor tool forever.
- The eGPU Game Mode fix: Windows Game Mode applies a power profile meant for iGPU play that throttles the CPU when an eGPU is doing the work. DockSense uses a plan that profile doesn't touch, so you can keep Game Mode on.
- Programs: start or stop apps when you enter or leave a mode.
It doesn't need admin rights, it's a single exe, and it updates itself from GitHub releases.
Pairs well with Winhanced, AnyFSE, Playnite…
DockSense doesn't replace your launcher. It decides when you get it. Use it with a controller launcher like Winhanced or Playnite, or with AnyFSE to make any launcher your Xbox mode home app:
- Handheld: boot straight into Xbox mode with your launcher.
- Docked to a monitor: boot to the desktop instead, or switch the moment you plug in.
- Use the per-mode Programs to start Winhanced when you go handheld, or Steam Big Picture when you dock to a TV.
Devices
It uses standard Windows APIs, so it should work on any Windows handheld (ROG Ally / Ally X, Legion Go, MSI Claw, Ayaneo, GPD, OneXPlayer) or laptop. Only the VRAM setting is ASUS-only. So far I've only tested it on an Ally X with an XG Mobile. If you try it on another device, a diagnostic report (About → Copy diagnostic report) in an issue would help a lot.
GitHub (GPLv3): https://github.com/rozx/DockSense
I'm the dev, happy to answer questions.
