From 24afa3c31c99df4c65898be195281f930e120267 Mon Sep 17 00:00:00 2001 From: "Ward Nakchbandi (Cosmic Fusion)" <83735213+CosmicFusion@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:39:08 +0300 Subject: [PATCH] --- pika-baseos/debian/changelog | 2 +- pika-baseos/debian/control | 196 +----------------- pika-baseos/debian/pika-baseos.postinst | 4 + pika-baseos/debian/pika-baseos.prerm | 4 + .../systemd/system/nvidia-pika-prime.service | 9 + 5 files changed, 20 insertions(+), 195 deletions(-) create mode 100644 pika-baseos/debian/pika-baseos.postinst create mode 100644 pika-baseos/debian/pika-baseos.prerm create mode 100644 pika-baseos/usr/lib/systemd/system/nvidia-pika-prime.service diff --git a/pika-baseos/debian/changelog b/pika-baseos/debian/changelog index 6a2fa97..8413db1 100644 --- a/pika-baseos/debian/changelog +++ b/pika-baseos/debian/changelog @@ -1,4 +1,4 @@ -pika-baseos (2.5.2-100pika1) pikauwu; urgency=medium +pika-baseos (2.5.3-100pika1) pikauwu; urgency=medium * Add optimus commands diff --git a/pika-baseos/debian/control b/pika-baseos/debian/control index 989984f..be610c9 100644 --- a/pika-baseos/debian/control +++ b/pika-baseos/debian/control @@ -115,197 +115,5 @@ Depends: ${misc:Depends}, ## Audio and codecs pika-audio-pipewire | pika-audio-legacy Recommends: power-profiles-daemon -Description: The backbone of PikaOS -Suggests: -## Make pika-gnome-desktop-minimal deps not go to autoremove -# Basic Session - pika-session, - pika-settings, - gdm3, - gnome-shell, -# Gnome VRR Session - gnome-shell-vrr, - mutter-vrr, -# Fonts - fonts-cantarell, - fonts-dejavu-core, - fonts-freefont-ttf, - fonts-liberation, -# Theming - gnome-themes-standard, - gnome-themes-extra, - adwaita-icon-theme-full, - adw-gtk3-theme, - papirus-icon-theme, - sound-theme-freedesktop, -# Plugins - chrome-gnome-shell, - ghostscript-x, - gnome-bluetooth, - gnome-online-miners, - gnome-menus, - gnome-video-effects, - inputattach, - libatk-adaptor, - libcanberra-gtk-module, - libpam-gnome-keyring, - network-manager-pptp-gnome, - network-manager-openvpn-gnome, - appmenu-gtk2-module, - appmenu-gtk3-module, - brltty, - language-selector-gnome, - gnome-remote-desktop, - gnome-shell-extension-legacy-gtk3-theme-scheme-auto-switcher, - gnome-shell-extension-supergfxctl-gex, - nautilus-share, -# Applications - gnome-control-center, - gnome-disk-utility, - gnome-system-monitor, - gnome-terminal | kgx, - nautilus, - fonts-noto-color-emoji, - gnome-shell-extension-manager, - gnome-tweaks, - baobab, - eog, - firmware-manager, - geary, - gnome-text-editor, - gnome-calculator, - gnome-calendar, - gnome-contacts, - gnome-font-viewer, - gnome-power-manager, - gnome-weather, - gnome-photos, - gnome-sushi, - gucharmap, - ibus-table-emoji, - pika-welcome, - seahorse, - simple-scan, - yelp, - pavucontrol, -## Last to replace mime information - file-roller, -## Make pika-kde-desktop-minimal deps not go to autoremove -# Basic Session - kde-plasma-desktop, - kamera, - kgamma5, - svgpart, - plasma-pa, - plasma-nm, - pika-kde-settings, - plasma-workspace-wayland, - kwin-x11, - sddm, -# Fonts - fonts-cantarell, - fonts-dejavu-core, - fonts-freefont-ttf, - fonts-liberation, - fonts-indic, - fonts-kacst-one, - fonts-khmeros-core, - fonts-lao, - fonts-liberation, - fonts-lklug-sinhala, - fonts-noto-cjk, - fonts-noto-color-emoji, - fonts-sil-abyssinica, - fonts-sil-padauk, - fonts-thai-tlwg, - fonts-tibetan-machine, - fonts-ubuntu, -# Theming - breeze, - breeze-icon-theme, - breeze-gtk-theme, - sddm-theme-breeze, - papirus-icon-theme, - sound-theme-freedesktop, -# Plugins - ghostscript-x, - inputattach, - libatk-adaptor, - libcanberra-gtk-module, - appmenu-gtk2-module, - appmenu-gtk3-module, - kdenetwork-filesharing, - kde-zeroconf, - dolphin-plugins, - kdegraphics-mobipocket, - kdegraphics-thumbnailers, - kdeconnect, - kde-cli-tools, - baloo-kf5, - frameworkintegration, - inputattach, - khelpcenter, - khotkeys, - kinfocenter, - kio, - kio-extras, - kmenuedit, - kwrited, - language-selector-common, - bluedevil, - powerdevil, - desktop-file-utils, - kde-config-gtk-style, - kde-config-gtk-style-preview, - kde-config-sddm, - xdg-desktop-portal-kde, - kde-config-tablet, - polkit-kde-agent-1, - go-mtpfs, - kdialog, - kimageformat-plugins, - kio-audiocd, - krdc, - kscreen, - kdialog, - kio-fuse, - kaccounts-integration, - plasma-supergfxctl, - plasma-browser-integration, - dbus-x11, - plasma-widgets-addons, - plasma-wallpapers-addons, - plasma-runners-addons, - plasma-dataengines-addons, - plasma-calendar-addons, - kwin-addons, - kdeplasma-addons-data, - libunity9, -# Applications - kwalletmanager, - print-manager, - fonts-noto-color-emoji, - firmware-manager, - gucharmap, - ibus-table-emoji, - pika-welcome, - pavucontrol-qt, - filelight, - kgpg, - gwenview, - kde-spectacle, - okular, - mpv, - kcalc, - dolphin, - kate, - konsole, - plasma-disks, - plasma-firewall, - plasma-systemmonitor, - plasma-vault, - ksystemlog, - partitionmanager, - gwenview, -## Last to replace mime information - ark, +Conflicts: nvidia-prime +Description: The backbone of PikaOS \ No newline at end of file diff --git a/pika-baseos/debian/pika-baseos.postinst b/pika-baseos/debian/pika-baseos.postinst new file mode 100644 index 0000000..7e7c65e --- /dev/null +++ b/pika-baseos/debian/pika-baseos.postinst @@ -0,0 +1,4 @@ +#! /bin/bash +systemctl disable --now gpu-manager +systemctl mask gpu-manager +systemctl enable --now nvidia-pika-prime \ No newline at end of file diff --git a/pika-baseos/debian/pika-baseos.prerm b/pika-baseos/debian/pika-baseos.prerm new file mode 100644 index 0000000..c6fc06b --- /dev/null +++ b/pika-baseos/debian/pika-baseos.prerm @@ -0,0 +1,4 @@ +#! /bin/bash +systemctl disable --now nvidia-pika-prime +systemctl unmask gpu-manager +systemctl enable --now gpu-manager diff --git a/pika-baseos/usr/lib/systemd/system/nvidia-pika-prime.service b/pika-baseos/usr/lib/systemd/system/nvidia-pika-prime.service new file mode 100644 index 0000000..3eae9ec --- /dev/null +++ b/pika-baseos/usr/lib/systemd/system/nvidia-pika-prime.service @@ -0,0 +1,9 @@ +[Unit] +Description=Nvidia prime offload pika-style. +Conflicts=gpu-manager.service + +[Service] +ExecStart=rm -rfv /usr/share/X11/xorg.conf.d/11-nvidia-prime.conf + +[Install] +WantedBy=multi-user.target