@bobslept, thanks, your message was very helpful
Search Criteria
Package Details: auto-cpufreq 2.5.0-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/auto-cpufreq.git (read-only, click to copy) |
---|---|
Package Base: | auto-cpufreq |
Description: | Automatic CPU speed & power optimizer |
Upstream URL: | https://github.com/AdnanHodzic/auto-cpufreq |
Licenses: | LGPL-3.0-or-later |
Submitter: | liljaylj |
Maintainer: | parmjot (MusicalArtist12) |
Last Packager: | parmjot |
Votes: | 81 |
Popularity: | 1.90 |
First Submitted: | 2020-10-29 00:09 (UTC) |
Last Updated: | 2025-01-29 03:15 (UTC) |
Dependencies (16)
- dmidecode (dmidecode-gitAUR)
- gobject-introspection
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR, gtk3-classicAUR)
- python (python37AUR, python311AUR, python310AUR)
- python-click
- python-distro
- python-gobject
- python-psutil
- python-pyinotify
- python-requests
- python-setuptools
- python-build (make)
- python-installer (make)
- python-poetry-core (python-poetry-core-gitAUR) (make)
- python-poetry-dynamic-versioning (make)
- python-wheel (make)
Required by (0)
Sources (4)
Latest Comments
« First ‹ Previous 1 .. 4 5 6 7 8 9 10 Next › Last »
liljaylj commented on 2021-12-26 21:13 (UTC)
bobslept commented on 2021-12-25 21:03 (UTC)
We switch to a python virtual environment on auto-cpufreq on the next release, so the systemd service file is made for the python virtual environment. Just a heads up for next release that will come.
I'm not a Arch user myself, and there are maybe better ways of doings this, but this seems to fix the issue.
Hope the maintainer find this patch helpfull.
diff --git a/PKGBUILD b/PKGBUILD
index ec948a2..b495634 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,6 +19,18 @@ b2sums=('a1c113132edf11ed38cb835df6aeaf22da787095d1d3f8b9c8a75b45954d372b641777f
prepare() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|usr/local|usr|g' "scripts/${pkgname}.service" auto_cpufreq/core.py
+ cat > auto-cpufreq.service <<EOF
+[Unit]
+Description=auto-cpufreq - Automatic CPU speed & power optimizer for Linux
+After=network.target network-online.target
+
+[Service]
+Type=simple
+User=root
+ExecStart=/usr/bin/auto-cpufreq --daemon
+[Install]
+WantedBy=multi-user.target
+EOF
}
build() {
@@ -32,5 +44,5 @@ package() {
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README"
install -Dm755 scripts/cpufreqctl.sh -t "$pkgdir/usr/share/$pkgname/scripts"
- install -Dm644 "scripts/$pkgname.service" -t "$pkgdir/usr/lib/systemd/system"
+ install -Dm644 "auto-cpufreq.service" -t "$pkgdir/usr/lib/systemd/system"
}
liljaylj commented on 2021-12-10 21:01 (UTC)
@qguv, thanks, will update the message with next release
qguv commented on 2021-12-10 19:34 (UTC)
From 332c10f6160ddd4f9037eafca8b16c0e4421bb69 Mon Sep 17 00:00:00 2001
From: Quint Guvernator <quint@guvernator.net>
Date: Wed, 8 Dec 2021 11:30:06 +0100
Subject: [PATCH] update flag in post-install message
The --log flag has been renamed to --stats
---
auto-cpufreq.install | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/auto-cpufreq.install b/auto-cpufreq.install
index e09d2087ee44..f2cd38daf674 100644
--- a/auto-cpufreq.install
+++ b/auto-cpufreq.install
@@ -7,7 +7,7 @@ post_install() {
echo 'systemctl enable --now auto-cpufreq'
echo ''
echo 'To view live log, run:'
- echo 'auto-cpufreq --log'
+ echo 'auto-cpufreq --stats'
echo ''
}
--
2.34.1
liljaylj commented on 2021-11-01 18:47 (UTC)
@willemw removed conflicts/provides. thank you!
willemw commented on 2021-11-01 13:27 (UTC)
OK.
Provides and conflicts are still redundant. From the Wiki: "Do not add pkgname to the provides array, as it is done automatically." and "Note that conflicts are checked against pkgname ..."
liljaylj commented on 2021-11-01 12:16 (UTC)
@willem removed gcc
from dependencies, thanks.
as for --remove
if you look to source code then you'll see that it is not suitable for this package layout
willemw commented on 2021-10-18 08:58 (UTC)
Please remove 'gcc', 'conflicts' and 'provides'. They are redundant.
To cleanup files from the .install file, maybe run 'auto-cpufreq --remove' instead?
coxe87b commented on 2021-06-03 12:20 (UTC)
@liljaylj Thank you, sorted it
coxe87b commented on 2021-06-03 12:19 (UTC)
Nevermind, I missed the instruction on your github page the first time as below;
Please note: If you want to install auto-cpufreq daemon, do not run auto-cpufreq --install otherwise you'll run into an issue: #91, #96.
Instead run systemctl start auto-cpufreq to start the service. Run systemctl status auto-cpufreq to see the status of service, and systemctl enable auto-cpufreq for service to persist running accross reboots.
Pinned Comments
liljaylj commented on 2021-06-03 12:13 (UTC)
@coxe87b you don't need to --install daemon manually, this package contains systemd service already. instead, you need to start and enable service using:
systemctl enable --now auto-cpufreq.service