u
This commit is contained in:
@@ -3,14 +3,18 @@ Operation=Install
|
|||||||
Operation=Upgrade
|
Operation=Upgrade
|
||||||
Operation=Remove
|
Operation=Remove
|
||||||
Type=Package
|
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
|
Target=linux
|
||||||
# Adjust line(6) above to match your driver, e.g. Target=nvidia-470xx-dkms
|
# Adjust line(6-9) 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
|
# Change line(11) above, if you are not using the regular kernel For example, Target=linux-lts
|
||||||
|
|
||||||
[Action]
|
[Action]
|
||||||
Description=Update Nvidia module in initcpio
|
Description=Updating NVIDIA module in initcpio
|
||||||
Depends=mkinitcpio
|
Depends=mkinitcpio
|
||||||
When=PostTransaction
|
When=PostTransaction
|
||||||
NeedsTargets
|
NeedsTargets
|
||||||
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux) exit 0; esac; done; /usr/bin/mkinitcpio -P'
|
Exec=/bin/sh -c 'while read -r trg; do case $trg in linux*) exit 0; esac; done; /usr/bin/mkinitcpio -P'
|
||||||
|
|||||||
@@ -1,19 +1,49 @@
|
|||||||
# nvidia driver installation guide
|
# nvidia driver installation guide
|
||||||
|
|
||||||
this guide is based upon: https://github.com/korvahannu/arch-nvidia-drivers-installation-guide
|
this guide is based upon:
|
||||||
which is based upon: https://wiki.archlinux.org/title/NVIDIA
|
https://wiki.archlinux.org/title/NVIDIA
|
||||||
where this also is nifty: https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks
|
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/`
|
## tuxwarrior nvidia setup
|
||||||
- edit the appropriate .conf file for the boot entry
|
|
||||||
- `sudo nano <filename>.conf`
|
### information gathering
|
||||||
- append `nvidia-drm.modeset=1 fbdev=1` to the `options` line
|
|
||||||
- create a new line, with the info: `blacklist nouveau`
|
```
|
||||||
|
$ 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 <https://nouveau.freedesktop.org/CodeNames.html> to find codename:
|
||||||
|
`NV164 (TU104)`
|
||||||
|
|
||||||
|
Card is not found on the legacy driver list at <https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/>.
|
||||||
|
|
||||||
|
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/<filename>.conf`
|
||||||
|
- append `nvidia-drm.modeset=1 nvidia_drm.fbdev=1` to the `options` line
|
||||||
- save (`ctrl+s`) and close (`ctrl+x`)
|
- save (`ctrl+s`) and close (`ctrl+x`)
|
||||||
|
|
||||||
### add early loading
|
### set early loading
|
||||||
|
|
||||||
- `sudo nano /etc/mkinitcpio.conf`
|
- `sudo nano /etc/mkinitcpio.conf`
|
||||||
- find the line that says `MODULES=(…)`
|
- find the line that says `MODULES=(…)`
|
||||||
|
|||||||
Reference in New Issue
Block a user