From 4321b578eb093f96243618f9bf1dbe7b25265ea9 Mon Sep 17 00:00:00 2001 From: committer Date: Mon, 26 Aug 2024 07:27:58 -0500 Subject: [PATCH] u --- dots/nvidia/nvidia.hook | 14 +++++++----- dots/nvidia/readme.md | 50 ++++++++++++++++++++++++++++++++--------- 2 files changed, 49 insertions(+), 15 deletions(-) diff --git a/dots/nvidia/nvidia.hook b/dots/nvidia/nvidia.hook index 1fcb6c7..5642d65 100644 --- a/dots/nvidia/nvidia.hook +++ b/dots/nvidia/nvidia.hook @@ -3,14 +3,18 @@ Operation=Install Operation=Upgrade Operation=Remove Type=Package -Target=nvidia +# Uncomment the installed NVIDIA package +#Target=nvidia +Target=nvidia-open +#Target=nvidia-lts +# If running a different kernel, modify below to match Target=linux -# Adjust line(6) above to match your driver, e.g. Target=nvidia-470xx-dkms -# Change line(7) above, if you are not using the regular kernel For example, Target=linux-lts +# Adjust line(6-9) above to match your driver, e.g. Target=nvidia-470xx-dkms +# Change line(11) above, if you are not using the regular kernel For example, Target=linux-lts [Action] -Description=Update Nvidia module in initcpio +Description=Updating NVIDIA module in initcpio Depends=mkinitcpio When=PostTransaction NeedsTargets -Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P' \ No newline at end of file +Exec=/bin/sh -c 'while read -r trg; do case $trg in linux*) exit 0; esac; done; /usr/bin/mkinitcpio -P' diff --git a/dots/nvidia/readme.md b/dots/nvidia/readme.md index d385815..55cc99b 100644 --- a/dots/nvidia/readme.md +++ b/dots/nvidia/readme.md @@ -1,19 +1,49 @@ # nvidia driver installation guide -this guide is based upon: https://github.com/korvahannu/arch-nvidia-drivers-installation-guide -which is based upon: https://wiki.archlinux.org/title/NVIDIA -where this also is nifty: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks +this guide is based upon: +https://wiki.archlinux.org/title/NVIDIA +https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks +https://github.com/korvahannu/arch-nvidia-drivers-installation-guide -### set kernel parameters -- `cd /boot/loader/entries/` -- edit the appropriate .conf file for the boot entry - - `sudo nano .conf` -- append `nvidia-drm.modeset=1 fbdev=1` to the `options` line -- create a new line, with the info: `blacklist nouveau` +## tuxwarrior nvidia setup + +### information gathering + +``` +$ lspci -k | grep -A 2 -E "(VGA|3D)" +01:00.0 VGA compatible controller: NVIDIA Corporation TU104BM [GeForce RTX 2080 SUPER Mobile / Max-Q] (rev a1) +``` + +Lookup card at to find codename: +`NV164 (TU104)` + +Card is not found on the legacy driver list at . + +The wiki says: +> For the Turing (NV160/TUXXX) series or newer, NVIDIA recommends the open source kernel driver. +> install the nvidia-open package (for use with the linux kernel) or the nvidia-open-dkms package (for all other kernels). (If these packages do not work, usually due to new hardware releases, nvidia-open-beta (AUR) may have a newer driver version that offers support.) +> The `nvidia-utils` package contains a file which blacklists the nouveau module once you reboot + +### add nvidia software to packages.txt for given host + +added to `dots/archinstall/tuxwarrior/packages.txt`: + +``` +nvidia-open +nvidia-utils +nvidia-settings +``` + +### set kernel parameter (systemd-boot) + +edit the appropriate `.conf` file for the boot entry: + +- `sudo nano /boot/loader/entries/.conf` +- append `nvidia-drm.modeset=1 nvidia_drm.fbdev=1` to the `options` line - save (`ctrl+s`) and close (`ctrl+x`) -### add early loading +### set early loading - `sudo nano /etc/mkinitcpio.conf` - find the line that says `MODULES=(…)`