main-- / windows-gaming

This project makes it easy and straightforward to set up PCI/VGA passthrough on your system. - OR AT LEAST IT WOULD, IF IT WASNT DEAD
6 stars 1 forks source link

Semi-Temporarily switch the input to windows #111

Closed moritzuehling closed 7 years ago

moritzuehling commented 7 years ago

If you have BitLocker enabled, you obviously need to switch over your keyboard to Windows to enter your password.

During the boot of Windows both Windows and Linux are blocked. This is usually not a problem, as the Windows boot is less than 10 seconds for me, and waiting isn't a big problem. However, Windows Update can prolongen this time where I can neither use windows nor linux significantly.

This is the reason I usually use a second hotkey, executing this script when booting:

#!/bin/bash
echo -e -n '\x03' | netcat -w 1 -U /run/user/1000/windows-gaming-driver/control.sock
sleep 20
echo -e -n '\x04' | netcat -w 1 -U /run/user/1000/windows-gaming-driver/control.sock

This script exits the IO-devices again after 20 seconds, so if Windows Update takes longer, I can use Linux again.

However, I'd like to propose an aditional command besides IoExit: SoftIoExit - it only exits when the guest agent isn't active at the moment - similar to IoEntry and ForceIoEntry, but vice versa. This has some advantages: