Skip to content

Instantly share code, notes, and snippets.

@sl33nyc
Created December 10, 2021 14:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sl33nyc/f21f96e5d02d5831b908f48c8866bc49 to your computer and use it in GitHub Desktop.
Save sl33nyc/f21f96e5d02d5831b908f48c8866bc49 to your computer and use it in GitHub Desktop.
display-switch on win10 vm with gpu passthrough
PS C:\Users\sl33n\Downloads> .\display_switch.exe
PS C:\Users\sl33n\Downloads> 14:49:29 [INFO] Configuration loaded ("C:\\Users\\sl33n\\AppData\\Roaming\\display-switch\\display-switch.ini"): Configuration { usb_device: "25a7:fa70", default_input_sources: InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None }, monitor1: Some(PerMonitorConfiguration { monitor_id: "GA102", input_sources: InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None } }), monitor2: Some(PerMonitorConfiguration { monitor_id: "Generic", input_sources: InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None } }), monitor3: None, monitor4: None, monitor5: None, monitor6: None }
14:49:29 [ERROR] Failed to get current input for display 'Generic PnP Monitor': Os { code: -1071241854, kind: Uncategorized, message: "An error occurred while transmitting data to the device on the I2C bus." }
14:49:30 [INFO] Display 'GA102-A/2147881091:Lvds' is currently set to DisplayPort1(0xf)
14:49:35 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "25a7:fa70"
14:49:35 [INFO] Monitored device is ("25a7:fa70") is disconnected
14:49:35 [DEBUG] (1) display_switch::display_control: Input sources found for display 'Generic PnP Monitor': InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None }
14:49:35 [INFO] Display 'Generic PnP Monitor' is not configured to switch on USB disconnect
14:49:35 [DEBUG] (1) display_switch::display_control: Input sources found for display 'GA102-A/2147881091:Lvds': InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None }
14:49:35 [INFO] Display 'GA102-A/2147881091:Lvds' is not configured to switch on USB disconnect
14:49:35 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "1a40:0101"
14:49:35 [DEBUG] (1) display_switch::app: Detected device change. Removed device: "046d:c52b"
14:49:40 [DEBUG] (1) display_switch::app: Detected device change. Added device: "1a40:0101"
14:49:40 [DEBUG] (1) display_switch::app: Detected device change. Added device: "25a7:fa70"
14:49:40 [INFO] Monitored device ("25a7:fa70") is connected
14:49:40 [DEBUG] (1) display_switch::display_control: Input sources found for display 'Generic PnP Monitor': InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None }
14:49:40 [DEBUG] (1) display_switch::display_control: Setting display 'Generic PnP Monitor' to DisplayPort1(0xf)
14:49:40 [INFO] Display 'Generic PnP Monitor' set to DisplayPort1(0xf)
14:49:40 [DEBUG] (1) display_switch::display_control: Input sources found for display 'GA102-A/2147881091:Lvds': InputSources { on_usb_connect: Some(DisplayPort1(0xf)), on_usb_disconnect: None, on_usb_connect_execute: None, on_usb_disconnect_execute: None }
14:49:40 [DEBUG] (1) display_switch::display_control: Setting display 'GA102-A/2147881091:Lvds' to DisplayPort1(0xf)
14:49:40 [INFO] Display 'GA102-A/2147881091:Lvds' set to DisplayPort1(0xf)
14:49:40 [DEBUG] (1) display_switch::app: Detected device change. Added device: "046d:c52b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment