Skip to content

Instantly share code, notes, and snippets.

View firelightning13's full-sized avatar
🚿
damn i didnt know i could set status in here

firelightning13

🚿
damn i didnt know i could set status in here
  • Void
View GitHub Profile
@firelightning13
firelightning13 / emswitch.sh
Last active October 5, 2022 12:51
A poorly made script that I've made to facilitate users to use wayland w/o nvidia-drm (disable external monitor) or wayland w/ nvidia-drm (enables external monitor) for Optimus MUXed laptops. This will affect rebootless mode via supergfxctl.
#!/bin/bash
# vars for getopt
LONGOPTS=mode,status,help
OPTIONS=m:sh
# use getopt to parse argument idk
! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
exit 2
@firelightning13
firelightning13 / [GUIDE] GPU Passthrough for Laptop with Fedora.md
Last active November 5, 2024 18:29
[GUIDE] GPU Passthrough for Laptop with Fedora

Running Windows 10/11 Guest with GPU Passthrough using laptop running Fedora

Abstract

This is a full guide for people who wanted to set up Windows 10/11 VM with QEMU/KVM hypervisor enhancements for a laptop that is configured with hybrid graphics card like Intel/AMD + NVIDIA. This process will take about 1 to 2 hours, depending on your system's performance and your patience =)

There is another comprehensive guide you can follow here (shoutout to asus-linux team who made supergfxctl which is a very important tool for this guide). It is more up-to-date than mine. I would probably incorporate those information into my guide, but you are welcome to use this one as a reference!

Before we proceed:

  • This guide is exclusively for Fedora users because this distro is quite different to set up than other distro such as Arch. I would say Arch is easier to setup than Fedora, but sometimes you like to use Fedora than Arc