How to install nvidia driver in Manjaro Linux?

۲۲.۹ K


۳۲

Website : https://goo.gl/Ffv7sY Readme: https://goo.gl/HZHDT5 How to setup nVidia drivers in Manjaro Linux? Step 1: remove bumblebee If you installed with the non-free driver option mhwd will have set up bumblebee for you. This will get in the way so the first step is to remove it. Use the mhwd command-line or simply remove it via Manjaro Settings Manager. Then Reboot the System! Step 2: Install the NVIDIA driver Use mhwd or MSM to install the nvidia driver in the normal way. Do not Reboot the system now. Install LightDM and GDM using package manager. Step 3:Mannual mhwd's configuration mhwd does the sensible thing and puts configuration in place as though the NVIDIA GPU was the only device available. We need to change this setup so NVIDIA will work. Step 3.1: set up a new Xorg configuration Firstly, remove /etc/X11/xorg.conf.d/90-mhwd.conf and replace it sudo nano /etc/X11/xorg.conf.d/optimus.conf Section "Module" Load "modesetting" EndSection Section "Device" Identifier "nvidia" Driver "nvidia" BusID "PCI:1:0:0" Option "AllowEmptyInitialConfiguration" EndSection While the BusID value above should be correct for most laptops You should check your values with: lspci | grep -E "VGA|3D" Step 3.2: Refine blacklisting PRIME relies on nvidia-drm and mhwd puts it in a blacklist by default, but to ensure the nvidia kernel module will load we still need to blacklist certain other modules. Therefore, you’ll have to do some editing of the files in /etc/modprobe.d/ To remove the existing blacklist, edit, move or remove any related mhwd-* files in /etc/modprobe.d/ sudo rm /etc/modprobe.d/mhwd* Create a new file /etc/modprobe.d/nvidia.conf sudo nano /etc/modprobe.d/nvidia.conf blacklist nouveau blacklist nvidiafb blacklist rivafb Step 4: Enable nvidia-drm.modeset Create a new file /etc/modprobe.d/nvidia-drm.conf sudo nano /etc/modprobe.d/nvidia-drm.conf options nvidia_drm modeset=1 Step 5: Set the output source for your DM This is the most complicated part and the one which will take longest to get right. If you reboot now, your DM will load but display on the wrong output; the laptop display will be entirely blank (powered off). We need to set a startup script to load the correct settings while the DM is loading. Create a new file /usr/local/bin/optimus.sh sudo nano /usr/local/bin/optimus.sh #!/bin/sh xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto Make sure to set it would read-execute: chmod a+rx /usr/local/bin/optimus.sh Now you have to get this to load in your DM’s startup sequence LightDM Edit /etc/lightdm/lightdm.conf and set: sudo nano /etc/lightdm/lightdm.conf display-setup-script=/usr/local/bin/optimus.sh GDM Create a new file /usr/local/share/optimus.desktop sudo nano /usr/local/share/optimus.desktop [Desktop Entry] Type=Application Name=Optimus Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto" NoDisplay=true X-GNOME-Autostart-Phase=DisplayServer And link it into place so it starts with GDM and on Login sudo ln -s /usr/local/share/optimus.desktop /usr/share/gdm/greeter/autostart/optimus.desktop sudo ln -s /usr/local/share/optimus.desktop /etc/xdg/autostart/optimus.desktop You’ll also have to use X, not Wayland SDDM Create a new file /usr/share/sddm/scripts/Xsetup sudo nano /usr/share/sddm/scripts/Xsetup xrandr --setprovideroutputsource modesetting NVIDIA-0 xrandr --auto Step 6: Reboot If everything is set correctly, when you reboot your DM will load, you can Login,

Published by: DaRkLiGhT
Published at: ۱ year ago
Category: مردم و وبلاگ