From 586b384691883ef131fbcf7638ece6d6d1b117ba Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:29:53 +0000 Subject: [PATCH] --- main.sh | 2 +- .../debian/changelog | 2 +- pika-amdgpu-config/debian/control | 11 +++++++++++ .../debian/pika-amdgpu-config.install | 0 .../debian/rules | 0 .../debian/source/format | 0 .../etc/modprobe.d/amdgpu-pika-config.conf | 5 +++++ pika-nvidia-config/debian/control | 11 ----------- pika-nvidia-config/debian/postinst | 18 ------------------ .../etc/modprobe.d/nvidia-pika-config.conf | 5 ----- 10 files changed, 18 insertions(+), 36 deletions(-) rename {pika-nvidia-config => pika-amdgpu-config}/debian/changelog (62%) create mode 100644 pika-amdgpu-config/debian/control rename pika-nvidia-config/debian/pika-nvidia-config.install => pika-amdgpu-config/debian/pika-amdgpu-config.install (100%) rename {pika-nvidia-config => pika-amdgpu-config}/debian/rules (100%) rename {pika-nvidia-config => pika-amdgpu-config}/debian/source/format (100%) create mode 100644 pika-amdgpu-config/etc/modprobe.d/amdgpu-pika-config.conf delete mode 100644 pika-nvidia-config/debian/control delete mode 100644 pika-nvidia-config/debian/postinst delete mode 100644 pika-nvidia-config/etc/modprobe.d/nvidia-pika-config.conf diff --git a/main.sh b/main.sh index 7494af3..cf06136 100755 --- a/main.sh +++ b/main.sh @@ -3,7 +3,7 @@ DEBIAN_FRONTEND=noninteractive # Clone Upstream -cd ./pika-nvidia-config +cd ./pika-amdgpu-config # Get build deps apt-get build-dep ./ -y diff --git a/pika-nvidia-config/debian/changelog b/pika-amdgpu-config/debian/changelog similarity index 62% rename from pika-nvidia-config/debian/changelog rename to pika-amdgpu-config/debian/changelog index 86efcd0..7766199 100644 --- a/pika-nvidia-config/debian/changelog +++ b/pika-amdgpu-config/debian/changelog @@ -1,4 +1,4 @@ -pika-nvidia-config (2.0-99pika1.lunar) lunar; urgency=medium +pika-amdgpu-config (2.0-99pika1.lunar) lunar; urgency=medium * Initial release. diff --git a/pika-amdgpu-config/debian/control b/pika-amdgpu-config/debian/control new file mode 100644 index 0000000..596774d --- /dev/null +++ b/pika-amdgpu-config/debian/control @@ -0,0 +1,11 @@ +Source: pika-amdgpu-config +Section: graphics +Priority: optional +Maintainer: Ward Nakchbandi +Standards-Version: 4.6.1 +Build-Depends: debhelper-compat (= 13) +Rules-Requires-Root: no + +Package: pika-amdgpu-config +Architecture: all +Description: PikaOS configration for AMD GPUs. diff --git a/pika-nvidia-config/debian/pika-nvidia-config.install b/pika-amdgpu-config/debian/pika-amdgpu-config.install similarity index 100% rename from pika-nvidia-config/debian/pika-nvidia-config.install rename to pika-amdgpu-config/debian/pika-amdgpu-config.install diff --git a/pika-nvidia-config/debian/rules b/pika-amdgpu-config/debian/rules similarity index 100% rename from pika-nvidia-config/debian/rules rename to pika-amdgpu-config/debian/rules diff --git a/pika-nvidia-config/debian/source/format b/pika-amdgpu-config/debian/source/format similarity index 100% rename from pika-nvidia-config/debian/source/format rename to pika-amdgpu-config/debian/source/format diff --git a/pika-amdgpu-config/etc/modprobe.d/amdgpu-pika-config.conf b/pika-amdgpu-config/etc/modprobe.d/amdgpu-pika-config.conf new file mode 100644 index 0000000..1396042 --- /dev/null +++ b/pika-amdgpu-config/etc/modprobe.d/amdgpu-pika-config.conf @@ -0,0 +1,5 @@ +options amdgpu si_support=1 +options amdgpu cik_support=1 +options radeon si_support=0 +options radeon cik_support=0 +blacklist radeon \ No newline at end of file diff --git a/pika-nvidia-config/debian/control b/pika-nvidia-config/debian/control deleted file mode 100644 index 07f9a73..0000000 --- a/pika-nvidia-config/debian/control +++ /dev/null @@ -1,11 +0,0 @@ -Source: pika-nvidia-config -Section: graphics -Priority: optional -Maintainer: ard Nakchbandi -Standards-Version: 4.6.1 -Build-Depends: debhelper-compat (= 13) -Rules-Requires-Root: no - -Package: pika-nvidia-config -Architecture: all -Description: PikaOS configration for NVIDIA GPUs. diff --git a/pika-nvidia-config/debian/postinst b/pika-nvidia-config/debian/postinst deleted file mode 100644 index 4dfcf7d..0000000 --- a/pika-nvidia-config/debian/postinst +++ /dev/null @@ -1,18 +0,0 @@ -#! /bin/bash - -if [ -f /boot/refind_linux.conf ] -then - if cat /boot/refind_linux.conf | grep -i 'nvidia-drm.modeset=1' > /dev/null 2>&1 - then - true - else - if cat /boot/refind_linux.conf | grep -i 'nvidia-drm.modeset=0' > /dev/null 2>&1 - then - sed -i "s#nvidia-drm.modeset=0#nvidia-drm.modeset=1" /boot/refind_linux.conf - else - sed -i "s#root=#nvidia-drm.modeset=1 root=#" /boot/refind_linux.conf - fi - fi -else - echo "Warning: You seem to not be using refind as a boot manager as PikaOS normally does, so make sure to add nvidia-drm.modeset=1 to your linux cmd if you have an nvidia card." -fi \ No newline at end of file diff --git a/pika-nvidia-config/etc/modprobe.d/nvidia-pika-config.conf b/pika-nvidia-config/etc/modprobe.d/nvidia-pika-config.conf deleted file mode 100644 index dfa9467..0000000 --- a/pika-nvidia-config/etc/modprobe.d/nvidia-pika-config.conf +++ /dev/null @@ -1,5 +0,0 @@ -options nvidia-drm modeset=1 -options nvidia NVreg_UsePageAttributeTable=1 -options nvidia NVreg_RegistryDwords="OverrideMaxPerf=0x1" -options nvidia NVreg_PreserveVideoMemoryAllocations=1 -options nvidia NVreg_RegistryDwords=EnableBrightnessControl=1 \ No newline at end of file