
Dualtooth – Sync Windows Bluetooth Keys to Linux BlueZ in One Command
Use the same Bluetooth keyboard, mouse, headphones or controller in Windows and Linux without re-pairing every time you switch.
以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。
Use the same Bluetooth keyboard, mouse, headphones or controller in Windows and Linux without re-pairing every time you switch.
When you pair a device, it and the PC agree on a secret cryptographic key. Each device only remembers one key per PC, but Windows and Linux each generate their own when pairing. Whichever OS paired last works, and the other gets rejected.
Dualtooth extracts Windows' keys safely and creates an automated script to install them directly into BlueZ on Linux so both systems share the exact same keys.
Make sure your devices work in Windows. (Pair them in Windows first).
Download and run Dualtooth.exe (standalone 64-bit executable, nothing to install).
Click your devices and press CREATE LINUX SCRIPT.
Reboot into Linux, open a terminal in that folder, and run: sudo bash dualtooth-apply.sh
Turn your Bluetooth mouse/keyboard off and on. Done!
Afterwards: Delete the script, since it contains raw pairing keys. Do not pair these devices again in either OS, or you will need to re-run the sync.
Verifies that Linux detects the same physical Bluetooth adapter as Windows.
Writes each device's key to /var/lib/bluetooth/<adapter>/<device>/info (backing up any existing file as info.bak).
Sets AutoEnable=true in /etc/bluetooth/main.conf so Bluetooth keyboards work at the Linux login screen.
Restarts the Linux Bluetooth service (systemctl restart bluetooth).
Security & How it reads keys
Windows stores Bluetooth pairing keys in HKLM\SYSTEM\CurrentControlSet\Services\BTHPORT\Parameters\Keys, which only the SYSTEM account can read.
Dualtooth activates the standard Windows backup privilege (SeBackupPrivilege, available to any local administrator) and opens those keys in read-only mode. It never writes to or alters your Windows registry.
Dualtooth is built independently with no telemetry, no tracking, and no subscriptions. If it saved you an hour of registry hex editing, consider supporting ongoing development:
👉 Buy a Supporter License / Tip on Stripe
Dual-booting a Mac (Boot Camp, Asahi Linux or a Hackintosh)? We'd love to add macOS support, but need real Macs to test on. A read-only, 5-minute probe that never touches your keys helps a lot: see docs/macos.md.
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。