If your display cable contains a connector that doesn’t match the Thunderbolt / USB 4 ports on your MacBook Air, You should use an adapter (marketed separately) to connect the display. Most Windows notebook computers power management settings will default to putting the computer to sleep with the lid shut, https://garrettzuldt.blogs-service.com/57290382/the-basic-principles-of-hdmi-to-usb-c