Tablet Mode Watcher is a utility that makes Windows switch between slate mode (aka tablet mode) and laptop mode when the keyboard is detached or attached.
NOTE: This tool was developed specifically for the Asus PZ13 but should work just fine on any laptop as long as you specify the right PID/VID. this tool requires administrator privileges.
Status: Stable
- Windows (tested on Asus PZ13)
- Administrator privileges for installation and automatic startup configuration
-
Determine the PID and VID to put into
watcher.config.json:- Open Device Manager while the keyboard is connected.
- Note the PID and VID for devices listed under Keyboards.
- Disconnect the keyboard.
- Identify which device entry disappeared and use its PID and VID.
- If PID and VID values differ from those inside
watcher.config.jsonreplace them. NOTE: usually PID and VID does not differ from keyboards of the same laptop model so the default ones should work if you are on Asus PZ13 HT5306.
-
Run the installer script as an administrator:
- Using the GUI: right-click
install-TabletModeWatcher.ps1→ "Run as administrator". - Using PowerShell (example that launches an elevated PowerShell to run the script):
Start-Process powershell -Verb runAs -ArgumentList "-ExecutionPolicy Bypass -File `\"install-TabletModeWatcher.ps1`\""
- Using the GUI: right-click
The install-TabletModeWatcher.ps1 script should configure the application to run at logon (for example by installing a service or setting an autorun entry).
- No manual start command is needed. Once installed, the program runs automatically at user logon.
- Installation and initial configuration require an account with administrator rights.
install-TabletModeWatcher.ps1— installation script (run as admin).watcher.config.json— configuration file where you put the device PID/VID.src/— C# source code (if present).README.md,LICENSE,.gitignore— project documentation and ignore rules.
- There are no automated tests included. If you want to add tests (e.g., xUnit), tell me which test framework you prefer and I can add an example and instructions.
This project is released under the MIT License. See the LICENSE file for details.
Author: frankie290651