From 1294c0d67ea53b90dc75584cfbe623feb7dda9cf Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:37:28 +0000 Subject: [PATCH] --- pika-baseos/debian/changelog | 7 ++++++ pika-baseos/debian/control | 4 +++- .../etc/modprobe.d/nvidia-pika-config.conf | 5 ---- pika-baseos/usr/bin/pika-chsh | 23 +++++++++---------- 4 files changed, 21 insertions(+), 18 deletions(-) delete mode 100644 pika-baseos/etc/modprobe.d/nvidia-pika-config.conf diff --git a/pika-baseos/debian/changelog b/pika-baseos/debian/changelog index 90de0a0..dc0741c 100644 --- a/pika-baseos/debian/changelog +++ b/pika-baseos/debian/changelog @@ -1,3 +1,10 @@ +pika-baseos (2.4.5-99pika1.lunar) lunar; urgency=medium + + * Add new gpu configs + + -- Ward Nakchbandi Thu, 12 Jan 2023 16:48:00 +030 + + pika-baseos (2.4.4-99pika1.lunar) lunar; urgency=medium * Add new Mesas diff --git a/pika-baseos/debian/control b/pika-baseos/debian/control index 2a6434d..6f785e1 100644 --- a/pika-baseos/debian/control +++ b/pika-baseos/debian/control @@ -66,6 +66,8 @@ Depends: ${misc:Depends}, mousetweaks, ## Display and Graphics pika-amdgpu-core, + pika-amdgpu-config, + pika-nvidia-config, xorg, mesa-hybrid | mesa-stable | mesa-git | mesa-custom | mesa-hybrid-no-march | mesa-stable-no-march | mesa-git-no-march | mesa-custom-no-march, wayland-protocols, @@ -113,7 +115,7 @@ Depends: ${misc:Depends}, wpasupplicant, ## Audio and codecs pika-audio-pipewire | pika-audio-legacy -Recommends: power-profiles-daemon, network-manager-wireguard-plugin +Recommends: power-profiles-daemon Description: The backbone of PikaOS Suggests: ## Make pika-gnome-desktop-minimal deps not go to autoremove diff --git a/pika-baseos/etc/modprobe.d/nvidia-pika-config.conf b/pika-baseos/etc/modprobe.d/nvidia-pika-config.conf deleted file mode 100644 index 82bf182..0000000 --- a/pika-baseos/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_TemporaryFilePath=/var/tmp diff --git a/pika-baseos/usr/bin/pika-chsh b/pika-baseos/usr/bin/pika-chsh index 7b44126..bc10f75 100755 --- a/pika-baseos/usr/bin/pika-chsh +++ b/pika-baseos/usr/bin/pika-chsh @@ -4,17 +4,16 @@ set -e if [[ -z $1 ]] then -echo 'Usage: pika-chsh shell user' -echo 'Example: pika-chsh fish smith' + echo 'Usage: pika-chsh shell user' + echo 'Example: pika-chsh fish smith' else -if [[ ! -f /usr/local/bin/"$1"login ]] -then -touch /usr/local/bin/"$1"login -echo '#! /bin/bash -l' > /usr/local/bin/"$1"login -echo "exec -l $1" $(echo -e '"$@"') >> /usr/local/bin/"$1"login -echo "/usr/local/bin/"$1"login" | tee -a /etc/shells -chmod -x /usr/local/bin/"$1"login -fi - -chsh -s /usr/local/bin/"$1"login $2 + if [[ ! -f /usr/local/bin/"$1"login ]] + then + touch /usr/local/bin/"$1"login + echo '#! /bin/bash -l' > /usr/local/bin/"$1"login + echo "exec -l $1" $(echo -e '"$@"') >> /usr/local/bin/"$1"login + echo "/usr/local/bin/"$1"login" | tee -a /etc/shells + chmod 755 /usr/local/bin/"$1"login + fi + chsh -s /usr/local/bin/"$1"login $2 fi