NVIDIA

Aus Foxwiki

topic - Kurzbeschreibung

Beschreibung

Installation

GeForce 600 series and newer GPUs

  • Add "contrib" and "non-free" components to /etc/apt/sources.list
deb http://deb.debian.org/debian/ bookworm main contrib non-free

Update the list of available packages, then we can install the nvidia-driver package, plus the necessary firmware:

# apt update
# apt install nvidia-driver firmware-misc-nonfree

DKMS will build the nvidia module for your system, via the nvidia-kernel-dkms package.

Restart your system to load the new driver

Anwendungen

Problembehebung

Stutter/lags problems with KDE Plasma with Nvidia proprietary driver

Some of you that have a GSYNC compatible monitor may have seen that if you have a second monitor at a different refresh rate, let's say 60hz you may have seen some stutters or lags when launching apps like System Settings and you may also have noticed that the windows does not move at 144fps.

Disabling OpenGL Flipping

To do this you need to go to nvidia-settings => OpenGL Settings => Uncheck "Allow OpenGL Flipping"

You will normally see a change in mouse stutter and your cursor should not "skip" frames when launching apps.

To persist this change, you need to edit the XOrg configuration file in /etc/X11/xorg.conf

It is not created by default, nvidia-settings can generate it for you if you launch it with the root user with this command

# nvidia-settings

To generate the XOrg file with nvidia-settings in root mode go to:

X Server Display Configuration => Save to X Configuration File and save it into /etc/X11/xorg.conf:

OpenGL Menu

And then to make the OpenGL Flipping completely disabled add this to your xorg.conf file in the "Device" section of the config:

Option         "NoFlip" "true"

Save it and reboot the computer.

Disabling KWIN Vsync and force full composition pipeline

To achieve this, you will need to add some line to your /etc/environment file.

This file must be edited by the root user, so use your favorite editor in sudo mode and add these lines:

__GL_SYNC_DISPLAY_DEVICE=DP-0 
VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE=DP-0
  • __GL_SYNC_DISPLAY_DEVICE => Indicate your monitor with high refresh rate
  • VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE => Same thing

To obtain the display device ID (like DP-0) you can use nvidia-settings and go to the X Server Display Configuration.

Select your monitor in the layout and read the selection field, it should read "DP-X on GPU-0" where X is the ID of the DisplayPort port used:

Screen of nvidia-settings

Use this value (DP-0 for example) in the __GL_SYNC and VDPAU items in the environment file and save it.

Again in the same file add these three lines after the other two

KWIN_X11_REFRESH_RATE=144000
KWIN_X11_NO_SYNC_TO_VBLANK=1
KWIN_X11_FORCE_SOFTWARE_VSYNC=1
  • KWIN_X11_REFRESH_RATE => Refresh rate of your monitor multiplied by 1000
  • KWIN_X11_NO_SYNC_TO_VBLANK => Don't use vblank for kwin compositor
  • KWIN_X11_FORCE_SOFTWARE_VSYNC => Force the usage of the software Vsync of kwin

Go to nvidia-settings in sudo mode like before then go to the X Server Display Configuration and click on the "Advanced..." button on the bottom of the window.

Select your high refresh rate monitor and check "Force Composition Pipeline" and "Force Full Composition Pipeline".

Apply and Save your X configuration file like before in /etc/X11/xorg.conf

Reboot the computer

Aufruf

Optionen

Parameter

Umgebung

Rückgabewert

Konfiguration

Dateien

Sicherheit

Dokumentation

RFC

Man-Page

Info-Pages

Siehe auch

Links

Projekt

Weblinks

  1. https://wiki.debian.org/NvidiaGraphicsDrivers
  2. https://www.reddit.com/r/linux_gaming/comments/ap781g/living_with_144hz_with_60hz_secondary_screens/
  3. https://bugs.kde.org/show_bug.cgi?id=433094