Antergos nvidia-installer (install Nvidia proprietary drivers)

Antergos nvidia-installer (install Nvidia proprietary drivers)
As most newer cards will work with the latest (called nvidia) driver some older cards are not longer supported by the lates driver // see discussion here: xorg-server-update-causes-issues-with-nvidia-propritary-drivers

Latest changes on supported Cards by Driver versions:

newly moved to legacy:
* 390xx --> works with xorg 1.20 (current version) GeForce 400/500/600 series cards [NVCx and NVDx] * 340xx --> NOW! works with xorg 1.20 (current version) GeForce 8/9, ION and 100-300 series cards [NV5x, NV8x, NV9x and NVAx]
So called unsupported drivers:
* 304xx --> last supported xorg 1.19 (needs downgrade) For GeForce 6/7 series cards [NV4x and NV6x] * 173xx --> last supported xorg 1.15 (needs downgrade) GeForce 5 FX series cards [NV30-NV36] * 96xx --> last supported xorg 1.12 (needs downgrade) GeForce 2/3/4 MX/Ti series cards [NV11, NV17-NV28] nvidia-installer only support latest drivernvidia-390xx as all others are not supported by latest Xorg anymore and will need to permanent downgrade xorg-server to last working version, what may will brake in future.
To see what driver version support your card go here:
http://www.nvidia.de/Download/index.aspx Put in the info for your card, and choose Linux-64bit as OS.
All supported cards for nvidia-390xx:
http://www.nvidia.com/download/driverResults.aspx/134262/en-us
For GeForce it seems to show all drivers only on this page:
https://www.geforce.com/drivers/

nvidia-installer

nvidia-installer -h
                                                                                                                         
usage: nvidia-installer [-h] [-b] [-f] [-t] [-q] [-n]

Antergos Nvidia Installer v1.12

optional arguments:
  -h, --help       show this help message and exit
  -b, --bumblebee  For Nvidia Optimus cards (Bumblebee + proprietary Nvidia drivers)
  -f, --force      Force driver installation even if a nvidia card is not detected
  -t, --test       Test mode. Nothing in your system will be modified
  -q, --quiet      Supress log messages
  -n, --nouveau    Restores nouveau (open) nvidia driver

Install Nvidia proprietary drivers

sudo pacman -S nvidia-installer testrun for installation: nvidia-installer -t if it does not putout error run real install: sudo nvidia-installer this will install nvidia proprietary drivers and do some configuration inside /etc/X11/xorg.conf.d/ sudo systemctl reboot And you are on nvidia drivers!

If you want KMS (no requirement)

to get maybe want gnome-wayland-session working you need to hack a bit after this... adding nvidia-drm.modeset=1 to the kernel parameter inside grub: sudo nano /etc/default/grub and put nvidia-drm.modeset=1 inside as you can see here:
# GRUB boot loader configuration

GRUB_DEFAULT=0 GRUB_TIMEOUT=5

GRUB_DISTRIBUTOR="Antergos"

GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1 resume=UUID=*****
save the file [Ctrl+X] and rebuild the grub.cfg: sudo grub-mkconfig -o /boot/grub/grub.cfg edit mkinitcpio.conf to get the module inside: sudo nano /etc/mkinitcpio.conf and edit like this:
# vim:set ft=sh

# MODULES

# The following modules are loaded before any boot hooks are

# 跑. Advanced users may wish to specify all system modules

# in this array. For instance:

# MODULES="piix ide_disk reiserfs"

MODULES="nvidia"

# BINARIES ....
save the file as above... rebuild kernel image: sudo mkinitcpio -p linux   replace linux with linux-lts if you are using lts kernel.... reboot again and you shpuld have early boot enabled... this will make it possible to run a GNOME session on wayland together with GDM instead of lightdm...

Avoid screen tearing

and i have nvidia-settings installed and run it on login with this to get better video quality: nvidia-settings --assign CurrentMetaMode="nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }" https://wiki.archlinux.org/index.php/NVIDIA/Troubleshooting#Avoid_screen_tearing You can add this to /etc/X11/xorg.conf.d/20-nvidia.conf like this:
Section "Device"
    Identifier "Nvidia Card"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Option "NoLogo" "true"
EndSection

Section "Screen"
        Identifier      "nvidia"
        Option         "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"

        Option          "TripleBuffer"                  "on"
        Option          "AllowIndirectGLXProtocol"      "off"
EndSection
 

Bumblebee

is also possible to install with this little helper: sudo nvidia-installer -b This will look like this:
nvidia-installer -b
2017-12-17 17:02:29 [INFO]: Antergos Nvidia Installer v1.12
2017-12-17 17:02:29 [INFO]: All logs will be stored in /tmp/nvidia-installer.log
2017-12-17 17:02:29 [INFO]: Installing bumblebee driver...
2017-12-17 17:02:29 [INFO]: Removing conflicting packages...
2017-12-17 17:02:29 [INFO]: Downloading and installing driver packages, please wait...
2017-12-17 17:04:43 [INFO]: Adding user antergos to bumblebee group...
2017-12-17 17:04:43 [INFO]: gpasswd -a antergos bumblebee
2017-12-17 17:04:43 [INFO]: Adding user antergos to video group...
2017-12-17 17:04:43 [INFO]: gpasswd -a antergos video
2017-12-17 17:04:43 [INFO]: Enabling bumblebeed.service service...
2017-12-17 17:04:43 [INFO]: systemctl enable bumblebeed.service
2017-12-17 17:04:43 [INFO]: Patching /usr/share/applications/nvidia-settings.desktop...
2017-12-17 17:04:43 [INFO]: /etc/X11/xorg.conf.d/20-nvidia.conf not found. That's ok.
2017-12-17 17:04:43 [INFO]: Installation finished. You need to reboot now!
 

Troubleshooting:

If you have trouble booting into the graphical system on bumblebee you can blacklist nvidia and nouveau drivers from grub kernel boot line: adding modprobe.blacklist=nouveau if you do not have nvidia drivers installed, will boot with intel GPU only. adding both: modprobe.blacklist=nouveau modprobe.blacklist=nvidia if you have nvidia drivers installed, as it may load nouveau-driver from kernel (if not already blacklisted). Simple press "e" (for edit) when you reach grub boot menu:
  • Use the arrow keys to find the line looks like this: linux /vmlinuz=linux root=UUID=...... rw quiet resume=.... (… = long snake of numbers)
  • put systemd.unit=multi-user.target right after rw like this: rw modprobe.blacklist=nouveau modprobe.blacklist=nvidia resume=....
  • Press Ctrl+X to boot with this parameter.
For EFI/UEFI boot: press "e" use right arrow key to reach the end of the line and add parameter at the end press enter to boot.  

Contributors:

(访问 32,310 时, 3 今日访问量)

Pin It on Pinterest

Share This