Clear linux nvidia drivers

Clear linux nvidia drivers

This subreddit has gone dark as part of a mass protest against Reddit’s recent API changes, which break third-party apps and moderation tools. ++ The sub will remain private for at least 48hr from 0000UTC on 12th June 2023. ++ We look forward to seeing you later, and thank you for your understanding.

HOWTO: Clear Linux / NVIDIA drivers / CUDA (assumed start is default install with desktop autostart) (root shell assumed — run » sudo -s «) (corrections/additions welcome!)

swupd bundle-add c-basic kernel-native-dkms linux-dev

2. Disable any Secure Boot settings in BIOS, and turn off kernel module signature checking:

mkdir -p /etc/kernel/cmdline.d echo «module.sig_unenforce» | sudo tee /etc/kernel/cmdline.d/allow-unsigned-modules.conf

3. Disable nouveau driver by creating modprobe dir/file:

blacklist nouveau options nouveau modeset=0

4. Reboot to apply changes to this point.

5. Obtain NVIDIA CUDA runfile. If using links/wget (optional):

swupd bundle-add wget network-basic

6. (optional) Add bundles for openGL and support of CUDA samples. Skipping this will result in «missing recommended libraries» message:

swupd bundle-add devpkg-glu devpkg-libX11 devpkg-libXi devpkg-libXmu

7. Remove the following four symlinks to allow CUDA installer to create them (or get warnings):

rm libGLESv1_CM.so libGL.so libEGL.so libGLESv2.so

8. Start CUDA runfile installer:

(no errors or warnings, right? verify log)

8b. Run » nvidia-smi » as another check. If more curious, lspci -V and look for «nvidia» kernel driver usage.

9. Update path settings per NVIDIA CUDA guide:

11. Run post-install diagnostics:

make (~15 minutes on 7980XE / 2 x 1080Ti)

cd ~/NVIDIA_CUDA-10.1_Samples/x86_64/bin (directory may be slightly different)

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

NVIDIA driver installation on Clear Linux

License

marioroy/nvidia-driver-on-clear-linux

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Читайте также:  Linux python env create

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

A how-to NVIDIA proprietary driver installation on Clear Linux OS.

Starting fresh? Obtain a recent Clear Linux image, 39400 or newer, from the release archive. Currently running < 38270 and updating the OS >= 38270? Please refer to the community article on getting NVIDIA graphics working again.

Planning on running the native 6.3 kernel? It requires NVIDIA driver 525 minimally, as the older 520 kernel modules do not build successfully.

Planning on running Blender or using a NVIDIA Optimus laptop? The NVIDIA driver 520 is preferred. This requires selecting the «lts kernel» in «Advanced options», during OS installation.

Clear Linux OS installation and updates

Depending on the CL release, the open-source nouveau driver may not work with recent NVIDIA graphics (3000 series or newer). The solution is to install the OS in text mode. Press the letter e on the boot screen and prepend nomodeset 3 with a space to the list of kernel arguments. The OS will boot into multi-user mode and prevent the nouveau driver from loading. Press enter to boot the OS. Instructions are provided on the screen for running the installer.

During setup, remember to enter [A] Advanced options. Select «Kernel Command Line» and enter nomodeset 3 to «Add Extra Arguments». Optionally, go back to the prior screen and choose the lts (recommended) or native kernel under «Kernel Selection». Also disable automatic OS updates if desired.

NVIDIA driver installation

git clone https://github.com/marioroy/nvidia-driver-on-clear-linux cd nvidia-driver-on-clear-linux

First, run the pre-installer script. The update argument is needed on prior Clear Linux installations or to refresh the configuration files under /etc/ . Run the pre-installer script subsequently, without an argument, to switch the target from graphical to multi-user (text-mode).

$ bash ./pre-install-driver help Usage: pre-install-driver [ update ] $ git pull $ bash ./pre-install-driver update $ bash ./pre-install-driver

Next, run the driver installer script. Running the LTS kernel? Choose any driver in the list. Planning on running the native kernel or GeForce RTX 4000 series? Specify 525 minimally or latest. Or provide the location of the NVIDIA-Linux-x86_64-* run-file. Do not forget to run the check-kernel-dkms script. That will check each kernel and involve dkms to auto-install the NVIDIA modules, if needed.

Читайте также:  Chuwi hi10 plus linux
Driver Version
latest latest.txt
535 535.54.03
525 525.125.06
520 520.61.05
$ bash ./install-driver help Usage: install-driver latest|535|525|520|valid_pathname> $ bash ./install-driver 525 $ sudo reboot

Run the check script if you have multiple kernel variants on the system.

NVIDIA CUDA Toolkit installation

Installing the CUDA Toolkit is optional. The «auto» argument is preferred and will install the version suitable for the display driver. If the display driver is not in the table then will fetch the latest CUDA run-file.

Driver CUDA Toolkit
535 12.2.0
530 12.1.1
525 12.0.1
520 11.8.0
$ bash ./install-cuda help Usage: install-cuda auto|latest|valid_pathname> $ bash ./install-cuda auto # or path to run file $ bash ./install-cuda ~/Downloads/cuda_12.0.1_525.85.12_linux.run

Update ~/.profile so that it can find the nvcc command.

export CUDA_HOME=/opt/cuda export PATH=$PATH:$CUDA_HOME/bin

Q) Why specify the auto argument to install-cuda ?

A) This is the preferred choice. Otherwise, using a mismatched CUDA Toolkit installation not suited for the display driver may cause some CUDA programs to emit an error, «the provided PTX was compiled with an unsupported toolchain».

Q) What are my options if the install-cuda script is no longer current?

A) Notifying the author is one option. The other option is to visit the CUDA archive URL, provided at the bottom of the page. Determine the display driver version from the filename. Then visit the driver archive and scroll to the bottom of the page. Click on the latest matching the base version. Install the driver and CUDA Toolkit by providing the path to install-driver and install-cuda respectively.

Enable hardware acceleration

Hardware acceleration requires installing NVDEC/VDPAU back-end VA-API drivers. See the HWAccel folder. It provides instructions for building the VA drivers, a configuration file for Firefox, and launch-desktop files for Brave, Chromium-Freeworld, Google Chrome, Microsoft Edge, and Vivaldi.

Updating the NVIDIA driver

First, ensure you have the latest by running git pull followed by pre-install-driver with the update argument. You may stop here if all you want to do is refresh the NVIDIA-related configuration files from any upstream updates.

$ git pull $ bash ./pre-install-driver update

The output will be much smaller for pre-install-driver without an argument since it will skip completed sections. Run the pre-installer script regardless to switch the boot target to text mode.

Run install-driver latest or acquire the run-file from NVIDIA and save it locally. Note: Choosing latest may not always be the latest release.

$ bash ./pre-install-driver $ bash ./install-driver latest # or path to run file $ bash ./install-driver ~/Downloads/NVIDIA-Linux-x86_64-525.125.06.run $ sudo reboot

Update the CUDA Toolkit, if installed, to install the version suitable for the display driver.

[ -d /opt/cuda ] && bash ./install-cuda auto

The NVIDIA software can be uninstalled and nouveau driver restored. Reinstall the NVIDIA driver if the nouveau driver is failing for your graphics (e.g. NVIDIA 3000+ series).

$ bash ./uninstall-cuda $ bash ./uninstall-driver $ sudo reboot

Purging old kernel files is something I do after an OS update followed by a reboot cycle. Optionally, skip the purge script if there were no kernel updates.

sudo swupd update sudo reboot bash ./purge-old-kernels

Running 6.x kernel? There’s an issue installing the NVIDIA driver while running the native kernel. Ignore the errors in /var/log/nvidia-installer.log if the installation succeeds. Otherwise, you will need to run the lts kernel before installation.

Installing a kernel manually or have multiple kernels (LTS and native)? Run check-kernel-dkms manually. The script installs missing dkms bundles and runs dkms autoinstall per each kernel on the system.

Running a NVIDIA Optimus laptop? See CONFIGURATION STEPS or search for dbus in /usr/share/doc/NVIDIA_GLX-1.0/README.txt . Undo the steps if nvidia-powerd reports no matching GPU found. Refer to: Failure with the nvidia-powerd service and Video decode does not work after exiting sleep.

Experiencing stutter or tearing when moving windows? Lanuch NVIDIA Settings and enable «Force Full Composition Pipeline». See also, Difference between Force Full Composition Pipeline and Force Composition Pipeline.

Note: Skip this section on Optimus-based laptops. Instead, see the prior URL.

1. sudo chown $USER /etc/X11 # this is done by the install-driver script 2. Go to NVIDIA Settings > X Server Display Configuration > Advanced. 3. Enable "Force Full Composition Pipeline" per each monitor 4. Click "Apply" 5. Click "Save to X Configuration File" to persist the change

Using a HiDPI display? In GNOME, run gnome-tweaks and adjust «Scaling Factor» on the Fonts pane. For Wayland, restore text-scaling-factor back to 1.0 and enable an experimental feature scale-monitor-framebuffer . Log out for the settings to take effect. Go to GNOME settings > Displays and set the scale accordingly, for the display to 100%, 125%, 150%, . 400%.

gsettings set org.gnome.desktop.interface text-scaling-factor 1.0 gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"

Installing KDE? Important, remove the desktop-autostart bundle to not autostart GDM resulting in black screen.

sudo swupd bundle-remove desktop-autostart sudo swupd bundle-add desktop-kde sudo swupd bundle-add desktop-kde-apps # optional

Источник

Оцените статью
Adblock
detector