Skip to content

Instantly share code, notes, and snippets.

@dragon788
Created March 18, 2020 04:08
Show Gist options
  • Save dragon788/6b1a638878644a7824b242681aa3a63f to your computer and use it in GitHub Desktop.
Save dragon788/6b1a638878644a7824b242681aa3a63f to your computer and use it in GitHub Desktop.
Sometimes the mouse cursor stops responding or two finger scrolling doesn't work, this quick reset fixes that
virsh detach-device --domain macOS-Simple-KVM --live --conf
ig <( cat << 'EOF'
<input type='tablet' bus='usb'>
<alias name='input3'/>
<address type='usb' bus='0' port='2'/>
</input>
EOF
)
sleep 2
virsh attach-device --domain macOS-Simple-KVM --live --conf
ig <( cat << 'EOF'
<input type='tablet' bus='usb'>
<alias name='input3'/>
<address type='usb' bus='0' port='2'/>
</input>
EOF
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment