Lenovo ThinkVision P49w-30 desk setup: switch the laptop's PBP right pane between HDMI 1 and DisplayPort by keyboard shortcut, from either machine.
| Machine | Hotkey | State |
|---|---|---|
| Mac mini (left pane, USB-C) | ⌃⌘⇧D (Ctrl+Cmd+Shift+D) | live and hardware-verified, Hammerspoon + BetterDisplay |
| Cisco laptop (right pane, HDMI 1 ↔ DisplayPort) | Ctrl+Alt+D | implementation ready; laptop install pending |
- CISCO-LAPTOP-INSTRUCTIONS.md — standing rule for the laptop agent: switch the pane back to HDMI 1 when done; add no KVM software handling.
- GUIDE.md — full implementation guide: the 16-bit VCP 0x60 mechanism, ControlMyMonitor commands, AutoHotkey v2 script, acceptance test.
- P49w30DisplaySwitch.ahk — production AutoHotkey v2 implementation with configurable tool path/monitor target and stale-read protection.
- P49w30DisplaySwitch.lua — Mac Hammerspoon binding for Ctrl+Command+Shift+D using BetterDisplay's direct DDC interface.
Mechanism in one line: VCP 0x60 is 16-bit — low byte = the Mac's USB-C input (always 49,
left half), high byte = the laptop's input (0x0F DisplayPort / 0x11 HDMI 1, right half)
— toggle via read-modify-write (4401 = laptop HDMI 1, 3889 = laptop DisplayPort).
KVM: solved natively — double-tap Shift within 0.5 s (the monitor's eKVM trigger, verified working 2026-08-31). Not DDC-controllable; pane shortcuts and KVM are deliberately independent (Dawid's ruling 31.08). Rear-port diagram + which port is the eKVM port: GUIDE.md · images/p49w30-rear-ports.png.
Repository logic tests: python3 -m unittest discover -s tests -v. The Windows script also
has a hardware-free self-test: AutoHotkey64.exe P49w30DisplaySwitch.ahk --self-test.