From 172062c267477e10c8ed994b661f1f0c2f0ae798 Mon Sep 17 00:00:00 2001 From: committer Date: Sun, 25 Aug 2024 18:04:42 -0500 Subject: [PATCH] + nvidia --- README.md | 8 ++++++-- dots/nvidia/nvidia.hook | 16 ++++++++++++++++ dots/nvidia/readme.md | 28 ++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 dots/nvidia/nvidia.hook create mode 100644 dots/nvidia/readme.md diff --git a/README.md b/README.md index 97383d3..b4e0892 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ Primary key fingerprint: 3E80 CA1A 8B89 F69C BA57 D98A 76A5 EF90 5444 9A5C - and disable the two options `Ask before syncing folders larger than xxx` and `Ask before syncing external storages` - click `Connect` - wait for nextcloud to complete syncronisation - - this will take many hours, possibly days, depending on the internet speed + - this will likely take a few days, depending on the internet speed and the amount of data stored with nextcloud ## step five :: post syncronisation tasks @@ -184,7 +184,11 @@ Primary key fingerprint: 3E80 CA1A 8B89 F69C BA57 D98A 76A5 EF90 5444 9A5C - `importGnupgKeys.sh` (deployment of gnupgp keys) - `reboot` and re-login -## step six :: final tweaks +## step six :: nvidia + +if the system runs nvidia, follow the steps in `dots/nvidia/readme.md` to set up the nvidia driver. + +## step seven :: final tweaks - firefox - install dictionaries for [en-AU](https://addons.mozilla.org/en-US/firefox/addon/english-australian-dictionary/) and [no-NB](https://addons.mozilla.org/en-US/firefox/addon/norsk-bokm%C3%A5l-ordliste/) diff --git a/dots/nvidia/nvidia.hook b/dots/nvidia/nvidia.hook new file mode 100644 index 0000000..1fcb6c7 --- /dev/null +++ b/dots/nvidia/nvidia.hook @@ -0,0 +1,16 @@ +[Trigger] +Operation=Install +Operation=Upgrade +Operation=Remove +Type=Package +Target=nvidia +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 + +[Action] +Description=Update 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 diff --git a/dots/nvidia/readme.md b/dots/nvidia/readme.md new file mode 100644 index 0000000..d385815 --- /dev/null +++ b/dots/nvidia/readme.md @@ -0,0 +1,28 @@ +# 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 + +### 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` +- save (`ctrl+s`) and close (`ctrl+x`) + +### add early loading + +- `sudo nano /etc/mkinitcpio.conf` +- find the line that says `MODULES=(…)` +- add nvidia modules: `MODULES=(… nvidia nvidia_modeset nvidia_uvm nvidia_drm)` +- find the line that says `HOOKS=()` +- on the `HOOKS=()` line, find the word `kms` inside the parenthesis and remove it +- save (`ctrl+s`) and close (`ctrl+x`) +- regenerate the initramfs with `sudo mkinitcpio -P` + +### add pacman hook + +- `sudo mkdir -p /etc/pacman.d/hooks/ && sudo mv /home/poq/syncDir/gitRepos/git.mz.fo/lnx-arch/dots/nvidia/nvidia.hook /etc/pacman.d/hooks/`