Skip to content

Instantly share code, notes, and snippets.

View tarik's full-sized avatar

Tárik S. Salem tarik

  • Earth
View GitHub Profile
@tarik
tarik / fedora43_gu604v.md
Last active January 13, 2026 13:23
Fedora 43 on ASUS ROG Zephyrus M16 (GU604V)

Fedora 43 on ASUS ROG Zephyrus M16 (GU604V)

This document describes the required modifications to make Fedora 43 usable on the ASUS ROG Zephyrus M16 (GU604V):

  • NVIDIA drivers
  • ASUS-specific features (AniMe Matrix, fan modes, ...)
  • Functional suspend (using s2idle)
  • Working hibernation (swapfile on LUKS)
  • Fixed brightness keys and slider
@tarik
tarik / refresh_nvidia_module.sh
Created February 13, 2024 18:01
A workaround not requiring a restart if you are getting "CUDA unknown error" after waking up your computer from sleep or hibernation.
#!/bin/bash
# Description: Workaround not requiring a restart if you are getting the following error
# after waking up your PC from sleep or hibernation.
# RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment,
# e.g. changing env variable CUDA_VISIBLE_DEVICES after program start.
# Setting the available devices to be zero.
sudo rmmod nvidia_uvm
sudo modprobe nvidia_uvm