Skip to content

Instantly share code, notes, and snippets.

@kiview
Last active February 5, 2021 22:40
Show Gist options
  • Save kiview/bafe6f60df7829df80c9ae0d544fa3c4 to your computer and use it in GitHub Desktop.
Save kiview/bafe6f60df7829df80c9ae0d544fa3c4 to your computer and use it in GitHub Desktop.
Dell XPS 15 9570 - Fedora 29
# Since out of the box support of nvidia is sketchy, I've done these things to disable nvidia completey.
# Disable nouveau driver
vim /etc/default/grub
# -> Disable nouveau, also use s3 as default suspend mode
# GRUB_CMDLINE_LINUX="resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.luks.uuid=my-id rd.lvm.lv=fedora/swap rhgb quiet nouveau.modeset=0 mem_sleep_default=deep"
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
# Poweroff nvidia GPU on boot via systemd service
vim /etc/systemd/system/nvidia-off.service
#------------------------------
[Unit]
Description=Power off nvidia gpu
[Service]
Type=oneshot
ExecStart=/bin/bash -c "echo 'auto' > /sys/bus/pci/devices/0000:01:00.0/power/control"
[Install]
WantedBy=default.target
#------------------------------
systemctl enable /etc/systemd/system/nvidia-off.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment