Installazione driver NVIDIA NVIDIA Drivers Installation
Guida passo-passo per installare i driver proprietari NVIDIA su CalamaroOS / Gentoo, con rimozione dei vecchi driver, blacklist di Nouveau e configurazione di Xorg, dracut e GRUB. Step-by-step guide to install proprietary NVIDIA drivers on CalamaroOS / Gentoo, with old driver removal, Nouveau blacklisting and Xorg, dracut and GRUB configuration.
âšī¸ Prima di iniziare âšī¸ Before you start
Tutti i comandi vanno eseguiti come root (oppure preceduti da sudo). Assicurati di avere una connessione internet attiva e di aver effettuato un backup dei file di configurazione che andremo a modificare. La password di default è calamaroos.
All commands must be run as root (or prefixed with sudo). Make sure you have an active internet connection and have backed up the configuration files we are going to modify. The default password is calamaroos.
Modifica il file make.conf per accettare le licenze necessarie e impostare la tua scheda video (rimuovendo i vecchi target video).
Edit your make.conf to accept the required licenses and target your specific video card (removing old video targets).
Dato che la serie di driver 595 ha problemi noti con la GTX 1070, blocca tutte le versioni dalla 595 in poi. Abilita poi il flag dist-kernel per far ricompilare i driver automaticamente ad ogni aggiornamento del kernel.
Since the 595 driver series is known to cause issues with the GTX 1070, mask everything from version 595 onward. Then enable the dist-kernel flag so the drivers rebuild automatically on every kernel update.
Per evitare che un depclean generico rimuova componenti fondamentali del sistema, disinstalla i vecchi driver grafici in modo chirurgico.
To prevent a generic depclean from aggressively removing core system packages, surgically uninstall the old graphics drivers.
Importante: usa --unmerge sui pacchetti specifici e non un depclean generico, che potrebbe rimuovere componenti essenziali del sistema.
Important: use --unmerge on the specific packages and not a generic depclean, which could remove essential system components.
Aggiorna il world per installare i driver NVIDIA corretti. Update your world profile to install the correct NVIDIA drivers.
Nota: se il kernel viene aggiornato durante questa fase, reinstalla i driver sul kernel attivo con emerge --oneshot x11-drivers/nvidia-drivers.
Note: if the kernel gets updated during this process, rebuild the drivers for the active kernel with emerge --oneshot x11-drivers/nvidia-drivers.
Genera la configurazione di Xorg, poi metti completamente in blacklist il driver open-source nouveau creando il file modprobe. Generate the Xorg configuration, then fully blacklist the open-source nouveau driver by creating the modprobe file.
Escludi definitivamente Nouveau dall'initramfs e includi il file di blacklist creato in precedenza. Explicitly exclude Nouveau from your initramfs and include the blacklist file created earlier.
Apri la configurazione di GRUB e modifica la riga GRUB_CMDLINE_LINUX_DEFAULT per disattivare Nouveau e forzare il modesetting NVIDIA.
Open the GRUB configuration and edit the GRUB_CMDLINE_LINUX_DEFAULT line to disable Nouveau and force NVIDIA modesetting.
Rigenera l'initramfs, aggiorna GRUB e riavvia la macchina. Regenerate the initramfs, update GRUB and reboot the machine.
Tutto pronto! Dopo il riavvio i driver NVIDIA proprietari saranno attivi. Verifica con nvidia-smi.
All set! After reboot the proprietary NVIDIA drivers will be active. Verify with nvidia-smi.