GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dawidbednarczyk/p49w30-display-switch

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
images
images
 
 
project_notes
project_notes
 
 
rpi
rpi
 
 
tests
tests
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
CISCO-LAPTOP-INSTRUCTIONS.md
CISCO-LAPTOP-INSTRUCTIONS.md
 
 
GUIDE.md
GUIDE.md
 
 
P49w30DisplaySwitch.ahk
P49w30DisplaySwitch.ahk
 
 
P49w30DisplaySwitch.lua
P49w30DisplaySwitch.lua
 
 
README.md
README.md
 
 
STATUS.md
STATUS.md
 
 
p49w30-switch.ini.example
p49w30-switch.ini.example
 
 

Repository files navigation

p49w30-display-switch

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.

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.