Skip to content

asadcodz101/Keyboard-Toggler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔌 PS/2 Keyboard Driver Toggle Script (Windows Only)

This batch script allows you to easily enable or disable the PS/2 keyboard driver (i8042prt) on Windows systems.

Perfect for users who want to temporarily disable their laptop keyboard when using an external USB keyboard.


Features

  • ✔️ Detects current PS/2 driver status automatically
  • 🔁 Toggles between ENABLED and DISABLED
  • 💾 No driver uninstall or permanent changes
  • ⚠️ Reboot required for changes to take effect

Supported Platforms

  • ✅ Windows 10 / 11 (with PS/2 keyboard support)
  • ❌ Not compatible with USB-only keyboards
  • ❌ Not compatible with macOS or Linux

How to Use

  1. Download the ZIP from the Releases section.
  2. Extract the contents.
  3. Right-click the .bat file → Run as Administrator.
  4. A message box will confirm if the driver is now ENABLED or DISABLED.
  5. Reboot your system for the change to take effect.

Common Use Cases

  • Disable Laptop Keyboard While Using USB Keyboard

    • Ideal for users with a broken or malfunctioning built-in keyboard.
    • Prevents accidental keypresses during typing or gaming.
  • Prevent Unauthorized Physical Access

    • Useful in public or kiosk environments.
    • Blocks local keyboard input to improve physical security.
  • Child or Pet Safety

    • Prevents toddlers or pets from pressing keys unintentionally.
  • Keyboard Cleaning Mode

    • Temporarily disables keyboard input for safe cleaning.
  • Testing or Troubleshooting

    • Helps technicians or QA engineers test boot behavior or driver settings.
  • Accidental Typing Prevention

    • Writers and editors can temporarily lock the keyboard to avoid distractions while reviewing content.
  • Automated Use with Task Scheduler or Remote Scripts

    • Can be integrated into automation flows for toggling keyboard state on startup, shutdown, or remote command execution.

⚠️ Important Notes

  • This script does NOT uninstall the driver.
  • It only updates the startup setting for the i8042prt driver.
  • If you've manually removed the driver from Device Manager, this script cannot re-enable it. You’ll need to reinstall it manually.