Install and activate Nvidia X11 driver
This commit is contained in:
parent
eec40b87ab
commit
eeeb67f066
4 changed files with 69 additions and 7 deletions
|
|
@ -55,6 +55,9 @@ RUN dnf install -y ${KERNEL}-devel ${KERNEL}-devel-matched
|
||||||
RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver
|
RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver
|
||||||
RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL})
|
RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL})
|
||||||
|
|
||||||
|
# Install Nvidia X11 driver
|
||||||
|
RUN dnf install xorg-x11-nvidia --enablerepo=fc-nvidia -y
|
||||||
|
|
||||||
RUN dnf install -y waydroid scx-scheds
|
RUN dnf install -y waydroid scx-scheds
|
||||||
|
|
||||||
# Remove plocate to avoid updatedb going crazy with scanning the file system once a day
|
# Remove plocate to avoid updatedb going crazy with scanning the file system once a day
|
||||||
|
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
Section "Device"
|
|
||||||
Identifier "Intel Graphics"
|
|
||||||
Driver "modesetting"
|
|
||||||
Option "ShadowFB" "false" # you don't need on recent hardware
|
|
||||||
Option "Atomic" "true" #only effective on Xlibre, or Xorg-git with a special patch
|
|
||||||
Option "TearFree" "false" # Compositor is being used so TearFree is not needed
|
|
||||||
EndSection
|
|
||||||
31
etc/X11/xorg.conf.d/20-nvidia.conf
Normal file
31
etc/X11/xorg.conf.d/20-nvidia.conf
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
Section "ServerLayout"
|
||||||
|
Identifier "layout"
|
||||||
|
Screen 0 "intel"
|
||||||
|
Inactive "nvidia"
|
||||||
|
Option "AllowNVIDIAGPUScreens"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "nvidia"
|
||||||
|
Driver "nvidia"
|
||||||
|
BusID "PCI:1:0:0"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "nvidia"
|
||||||
|
Device "nvidia"
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Device"
|
||||||
|
Identifier "intel"
|
||||||
|
Driver "modesetting"
|
||||||
|
BusID "PCI:0:2:0"
|
||||||
|
Option "ShadowFB" "false" # you don't need on recent hardware
|
||||||
|
Option "Atomic" "true" #only effective on Xlibre, or Xorg-git with a special patch
|
||||||
|
Option "TearFree" "false" # Compositor is being used so TearFree is not needed
|
||||||
|
EndSection
|
||||||
|
|
||||||
|
Section "Screen"
|
||||||
|
Identifier "intel"
|
||||||
|
Device "intel"
|
||||||
|
EndSection
|
||||||
35
repo/fc-nvidia.repo
Normal file
35
repo/fc-nvidia.repo
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
[fc-nvidia]
|
||||||
|
name=negativo17 - Nvidia
|
||||||
|
baseurl=https://negativo17.org/repos/nvidia/fedora-44/$basearch/
|
||||||
|
enabled=0
|
||||||
|
skip_if_unavailable=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://negativo17.org/repos/RPM-GPG-KEY-slaanesh
|
||||||
|
enabled_metadata=1
|
||||||
|
metadata_expire=6h
|
||||||
|
type=rpm-md
|
||||||
|
repo_gpgcheck=0
|
||||||
|
|
||||||
|
[fc-nvidia-source]
|
||||||
|
name=negativo17 - Nvidia - Source
|
||||||
|
baseurl=https://negativo17.org/repos/nvidia/fedora-44/SRPMS
|
||||||
|
enabled=0
|
||||||
|
skip_if_unavailable=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://negativo17.org/repos/RPM-GPG-KEY-slaanesh
|
||||||
|
enabled_metadata=1
|
||||||
|
metadata_expire=6h
|
||||||
|
type=rpm-md
|
||||||
|
repo_gpgcheck=0
|
||||||
|
|
||||||
|
[fc-nvidia-debug]
|
||||||
|
name=negativo17 - Nvidia - Debug
|
||||||
|
baseurl=https://negativo17.org/repos/nvidia/fedora-44/$basearch.debug/
|
||||||
|
enabled=0
|
||||||
|
skip_if_unavailable=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://negativo17.org/repos/RPM-GPG-KEY-slaanesh
|
||||||
|
enabled_metadata=1
|
||||||
|
metadata_expire=6h
|
||||||
|
type=rpm-md
|
||||||
|
repo_gpgcheck=0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue