Initial commit

This commit is contained in:
EnumDev committed 2026-09-25 19:52:33 +03:00
commit 19abedbd0e
9 files changed
+266

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%VERSION%"
AUTOINSTALL="yes"
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
MAKE[0]="'make' -j$(nproc) NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=${kernelver} modules"
# The list of kernel modules was generated by nvidia-installer at runtime.
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-uvm"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-modeset"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-drm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
+12
View File
@@ -0,0 +1,12 @@
Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
ModulePath "/usr/lib/nvidia/xorg"
EndSection
+6
View File
@@ -0,0 +1,6 @@
name: nvidia-powerd
description: NVIDIA Dynamic Boost deamon
type: background
start_cmd: /usr/bin/nvidia-powerd
exit_method: kill
restart: true
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -e
case "$1" in
pre)
logger -t nvidia-sleep "Entering hibernation mode..."
/usr/sbin/nvidia-sleep.sh "hibernate"
;;
post)
logger -t nvidia-sleep "Exiting hibernation mode..."
/usr/sbin/nvidia-sleep.sh "resume"
;;
esac
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
__NV_PRIME_RENDER_OFFLOAD=1 __VK_LAYER_NV_optimus=NVIDIA_only __GLX_VENDOR_LIBRARY_NAME=nvidia "$@"