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 April 30, 2024 19:23
[GUIDE] GPU Passthrough for Laptop with Fedora

Abstract

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

There is another comprehensive guide you can follow here (shoutout to asus-linux team). It is more up-to-date than mine. I'll probably incorporate those information to my guide, but you are welcome to use this one as a reference!

Before we proceed:

  • This guide is exclusively for Fedora 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 your prefer Fedora than Arch in terms of its usage & features.
  • This tutorial mostly focus on laptops with NVIDIA Optimus MUXed configuration when dGPU (dedicated GPU) can connect directly to HDMI/DP output. If in doubt, sea