From a0b1b95229c647a260c710d2f5556c0d9ff35075 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 3 May 2020 23:16:15 -0400 Subject: systemctl enable moved and powertop.service added powertop.service autotunes everything on boot, and systemctl enable had to be moved to accomodate its "late" addition. --- build.sh | 3 +-- services | 1 + src/etc/systemd/system/powertop.service | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 src/etc/systemd/system/powertop.service diff --git a/build.sh b/build.sh index e73cab9..ab4d8ba 100755 --- a/build.sh +++ b/build.sh @@ -5,8 +5,6 @@ if [ ! -e work/pacman ]; then touch work/pacman sed 's:#.*$::' packages | xargs pacman -Syu --needed --noconfirm fi -sed 's:#.*$::' services | xargs systemctl enable - ip link export USE=czar @@ -29,3 +27,4 @@ sh source.sh grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB grub-mkconfig -o /boot/grub/grub.cfg mkinitcpio -P +sed 's:#.*$::' services | xargs systemctl enable diff --git a/services b/services index 5c991d8..0218954 100644 --- a/services +++ b/services @@ -5,3 +5,4 @@ avahi-daemon wpa_supplicant@wlp3s0 bluetooth tlp +powertop diff --git a/src/etc/systemd/system/powertop.service b/src/etc/systemd/system/powertop.service new file mode 100644 index 0000000..d9311c0 --- /dev/null +++ b/src/etc/systemd/system/powertop.service @@ -0,0 +1,10 @@ +[Unit] +Description=Powertop Tuning + +[Service] +Type=exec +ExecStart=/usr/bin/powertop --auto-tune +RemainAfterExit=true + +[Install] +WantedBy=multi-user.target -- cgit