The officially official Devuan Forum!

You are not logged in.

#1 2021-06-26 14:36:24

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

[SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

1. Install NVIDIA firmware for nouveau driver:

$ mkdir /tmp/nouveau
$ cd /tmp/nouveau
$ wget https://raw.github.com/envytools/firmware/master/extract_firmware.py

Get NVIDIA proprietary driver from official NVIDIA site for your GPU, example

$ wget http://us.download.nvidia.com/XFree86/Linux-x86/325.15/NVIDIA-Linux-x86-325.15.run

Extract and install NVIDIA firmware to your computer:

$ sh NVIDIA-Linux-x86-325.15.run --extract-only
$ python2 extract_firmware.py  # this script is for python 2 only
# mkdir /lib/firmware/nouveau
# cp -d nv* vuc-* /lib/firmware/nouveau/

2. Best Xorg.conf configuration for NVIDIA Nouveau driver. With this code, you must create a config file /usr/share/X11/xorg.conf.d/10-nouveau.conf:

Section "Module"
        Load "bitmap"
        Load "ddx"
        Load "ddc"
        Load "dri2"
        Load "GLCore"
        Load "extmod"
        Load "freetype"
        Load "int10"
        Load "record"
        Load "type1"
        Load "vbe"
EndSection

Section "Device"
        Option     "WrappedFB"          "true"
        Option     "SwapLimit"          "2"
        Option     "AccelMethod"        "exa"
        Option     "DRI"                "2"
        Identifier  "Card0"
        Driver      "nouveau"
        BusID       "PCI:1:0:0"
EndSection

Section "ServerFlags"
        Option  "DRI2"                  "true"
EndSection

Section "DRI"
    Mode         0666
EndSection

Section "Extensions"
        Option  "Composite"     "Enable"
EndSection

Section "Files"
    ModulePath "/lib/xorg/modules/drivers/"
EndSection

You can use a more powerful and modern implementation - DRI3 instead of DRI2 in this configuration file, if you don't have any glitches or artifacts in the graphics system. "AccelMethod" for DRI3 by default is "glamor". "SwapLimit" "2" - is turn on triple buffer for Nouveau for fix many problem with graphics system, example in KDE5. "WrappedFB" "true" - is recommend for old NVIDIA GPU. "Mode         0666" - work mode driver, you can change this mode to "664" for high security.

3. Tuning kernel parameters for Nouveau driver.
You must add the following information to your /etc/default/grub file in the "GRUB_CMDLINE_LINUX_DEFAULT =" section:

GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_backlight=vendor drm.rnodes=1 nouveau.pstate=1 nouveau.runpm=1"

And run

update-grub

in your console for refresh grub boot configuration.

4. After all these changes, you can reboot your computer and get not only a significant performance boost for your free Nouveau driver, but also the hardware media decoding available for the proprietary NVIDIA driver.

I was forced to publish this information for NVIDIA GPUs due to the fact that in Devuan Linux proprietary NVIDIA drivers do not install loosely. This solution will help people using Devuan Linux, as well as other Linux distributions without the systemd virus, in solving the problem with installing NVIDIA drivers, which, without sacrificing functionality, can now be replaced with the free Nouveau driver according to the method I described. I hope that this information, which I have collected, will be useful to many people with NVIDIA GPUs.

Offline

#2 2021-06-26 17:02:14

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,880  
Website

Re: [SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

Eaglet wrote:

Install NVIDIA firmware for nouveau driver

Most of the NVIDIA firmware is provided by the firmware-misc-nonfree package.

Eaglet wrote:

Best Xorg.conf configuration for NVIDIA Nouveau driver

I would encourage people to read nouveau(4) and make their own decisions about the various options. A blanket approach seems unhelpful (IMO).


antifa ftw!

Offline

#3 2021-06-26 18:08:19

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: [SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

Head_on_a_Stick wrote:
Eaglet wrote:

Install NVIDIA firmware for nouveau driver

Most of the NVIDIA firmware is provided by the firmware-misc-nonfree package.

Eaglet wrote:

Best Xorg.conf configuration for NVIDIA Nouveau driver

I would encourage people to read nouveau(4) and make their own decisions about the various options. A blanket approach seems unhelpful (IMO).

I do not impose anything on anyone. But it's better to read and use the original sources: https://nouveau.freedesktop.org/
The primary sources provide more information and are more up-to-date than the Debian documentation.

Offline

#4 2021-06-26 18:16:19

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 1,880  
Website

Re: [SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

Eaglet wrote:

are more up-to-date than the Debian documentation.

But the De??an documentation is for the version supplied for that branch whereas the upstream documentation refers to the latest versions.

Last edited by Head_on_a_Stick (2021-06-26 18:16:42)


antifa ftw!

Offline

#5 2021-06-26 18:32:59

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: [SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

Head_on_a_Stick wrote:
Eaglet wrote:

are more up-to-date than the Debian documentation.

But the De??an documentation is for the version supplied for that branch whereas the upstream documentation refers to the latest versions.

Documentation can be found in the primary sources for any version. Primary sources have more information written in more understandable language.

Offline

#6 2021-06-28 12:07:28

Ogis1975
Member
Registered: 2017-04-21
Posts: 216  
Website

Re: [SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

Get NVIDIA proprietary driver from official NVIDIA site for your GPU

If you absolutely must have the proprietary closed-source drivers, do not download them directly from the manufacturer's website! Installing drivers this way only works for the current kernel, and after the next kernel update, your video drivers will not work until they are manually reinstalled again.


MyLiveMatter

Offline

#7 2021-06-28 23:22:08

Eaglet
Member
From: USSR
Registered: 2018-06-24
Posts: 56  
Website

Re: [SOLVED] NVIDIA Nouveau with proprietary performance/accel* and best Xorg.conf

Ogis1975 wrote:

Get NVIDIA proprietary driver from official NVIDIA site for your GPU

If you absolutely must have the proprietary closed-source drivers, do not download them directly from the manufacturer's website! Installing drivers this way only works for the current kernel, and after the next kernel update, your video drivers will not work until they are manually reinstalled again.

You are not right! The firmware is independent of the Linux kernel version and driver version. So there won't be any problems. ;-)

Last edited by Eaglet (2021-06-28 23:32:50)

Offline

Board footer