From aa25a4c5f8b47c88d0b75aa9933eb79dbb225b3a Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Fri, 26 Jan 2024 14:20:44 -0800 Subject: [PATCH] feat: Switch to TuneD from PPD --- Containerfile | 14 +++++++++++--- packages.json | 7 +++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 4d7c72f8647..a58f8913a0b 100644 --- a/Containerfile +++ b/Containerfile @@ -61,6 +61,15 @@ RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo ; fi && \ sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/negativo17-fedora-multimedia.repo +# Remove PPD & TLP +RUN rpm-ostree override remove \ + power-profiles-daemon \ + || true && \ + rpm-ostree override remove \ + tlp \ + tlp-rdw \ + || true + # Starship Shell Prompt RUN curl -Lo /tmp/starship.tar.gz "https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-gnu.tar.gz" && \ tar -xzf /tmp/starship.tar.gz -C /tmp && \ @@ -76,6 +85,7 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"$ mkdir -p /usr/etc/flatpak/remotes.d && \ wget -q https://dl.flathub.org/repo/flathub.flatpakrepo -P /usr/etc/flatpak/remotes.d && \ cp /tmp/ublue-update.toml /usr/etc/ublue-update/ublue-update.toml && \ + systemctl enable tuned.service && \ systemctl enable rpm-ostree-countme.service && \ systemctl enable tailscaled.service && \ systemctl enable dconf-update.service && \ @@ -94,6 +104,7 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"$ echo "Hidden=true" >> /usr/share/applications/htop.desktop && \ echo "Hidden=true" >> /usr/share/applications/nvtop.desktop && \ echo "Hidden=true" >> /usr/share/applications/gnome-system-monitor.desktop && \ + sed -i 's@Name=tuned-gui@Name=TuneD Manager@g' /usr/share/applications/tuned-gui.desktop && \ sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \ sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \ sed -i '/^PRETTY_NAME/s/Silverblue/Bluefin/' /usr/lib/os-release && \ @@ -133,9 +144,6 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ganto/lxc4/repo/fedora-"${FEDOR RUN /tmp/build.sh && \ /tmp/image-info.sh -## power-profiles-daemon with amd p-state support, remove when this is upstream -RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:ublue-os:staging power-profiles-daemon - RUN wget https://github.com/docker/compose/releases/latest/download/docker-compose-linux-x86_64 -O /tmp/docker-compose && \ install -c -m 0755 /tmp/docker-compose /usr/bin diff --git a/packages.json b/packages.json index e31eac0c99d..47367e8034a 100644 --- a/packages.json +++ b/packages.json @@ -37,6 +37,13 @@ "stress-ng", "tailscale", "tmux", + "tuned", + "tuned-ppd", + "tuned-utils", + "tuned-utils-systemtap", + "tuned-gtk", + "tuned-profiles-atomic", + "tuned-profiles-cpu-partitioning", "usbmuxd", "wireguard-tools", "xprop",