Package Details: cpupower-gui 1.0.0-5

Git Clone URL: https://aur.archlinux.org/cpupower-gui.git (read-only, click to copy)
Package Base: cpupower-gui
Description: A GUI utility to set CPU frequency limits
Upstream URL: https://github.com/vagnum08/cpupower-gui
Keywords: cpupower frequency gtk3 gui
Licenses: GPL
Conflicts: cpupower-gui
Provides: cpupower-gui
Submitter: vagnum08
Maintainer: vagnum08 (erigas)
Last Packager: vagnum08
Votes: 61
Popularity: 1.69
First Submitted: 2018-03-10 22:16 (UTC)
Last Updated: 2022-01-19 12:02 (UTC)

Dependencies (14)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 5 Next › Last »

elonux commented on 2026-02-08 08:37 (UTC) (edited on 2026-02-08 08:37 (UTC) by elonux)

sudo sed -i 's/"apply", action="store_true"/"--apply", action="store_true"/' /usr/bin/cpupower-gui 

run above command to fix the error

yochananmarqos commented on 2026-02-08 01:42 (UTC)

@peter.lyonskehl: Use cpupower-gui-git, Python 3.14 compatibility was added upstream a few weeks ago.

peter.lyonskehl commented on 2026-02-01 14:19 (UTC) (edited on 2026-02-01 14:42 (UTC) by peter.lyonskehl)

Summary: Upstream error since Python 3.14 = since Manjaro update on/around 30 Jan, 2026. Upstream: https://github.com/vagnum08/cpupower-gui/issues/132

Upset by MAnjaro big update on/around 30 Jan, 2026: I have had cpupower-gui running on the same Manjaro machine happily for years. This Manjaro update updated many libraries and kernel.

But, the kernel update was minor (updated to: Linux spectre 6.18.8-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri, 30 Jan 2026 23:06:21 +0000 x86_64 GNU/Linux). Since then, errors:

cpupower-gui profile Balanced
Traceback (most recent call last):
  File "/usr/bin/cpupower-gui", line 268, in <module>
    config_sub.add_argument(
    ~~~~~~~~~~~~~~~~~~~~~~~^
        "apply", action="store_true", help="apply cpupower configuration",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/argparse.py", line 1543, in add_argument
    raise ValueError(f'action {action_name!r} is not valid for positional arguments')
ValueError: action 'store_true' is not valid for positional arguments

FYI These errors started after the big Manjaro update, but even before I rebooted. So, in addition to NOT being caused by the (minor) kernel update, I believe it's NOT caused by kernel/system libraries either (which wouldn't be re-loaded before reboot). So I believe it's caused by Python or some other userspace library update.

(Confirmed: Same error even after rebooting to the last Manjaro LTS kernel on the same machine: Linux spectre 6.12.68-1-MANJARO #1 SMP PREEMPT_DYNAMIC Fri, 30 Jan 2026 23:06:15 +0000 x86_64 GNU/Linux.)

assert-0 commented on 2026-01-19 00:25 (UTC)

Hi guys, I just addressed some comments on my PR. I think my branch should also be working now.

simona commented on 2026-01-18 22:35 (UTC)

tnx

diego7319 commented on 2026-01-18 22:35 (UTC)

this is a flagged out version, I created a new package just to fix these bugs

simona commented on 2026-01-18 21:50 (UTC)

the more updated is this or new?

trardokont commented on 2026-01-18 21:49 (UTC)

Can confirm that the package works, @diego7319. Many thanks.

diego7319 commented on 2026-01-18 05:35 (UTC)

I created a new aur package and git repo for fixing this issue, following @trardokont pull request. https://aur.archlinux.org/packages/cpupower-gui-new

orax commented on 2026-01-14 17:13 (UTC) (edited on 2026-01-18 22:45 (UTC) by orax)

Based on @assert-0 PR, I was able to update this package locally to make it work again with minimal changes.

Here is the patch of what I did to make it work (use patch -Np1 < patch.diff to apply):

diff --git a/PKGBUILD b/PKGBUILD
index 2f831c9..1aea9ce 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,22 +2,30 @@

 pkgname=cpupower-gui
 pkgver=1.0.0
-pkgrel=5
+pkgrel=6
 pkgdesc="A GUI utility to set CPU frequency limits"
 arch=(any)
 url="https://github.com/vagnum08/cpupower-gui"
 license=('GPL')
 depends=('python' 'gtk3' 'hicolor-icon-theme' 'polkit' 'python-dbus' 'python-gobject' 'python-pyxdg' 'libhandy')
 optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome'
-            'lxsession: needed for authentification in Xfce, LXDE etc.'
-       'libappindicator-gtk3: needed for tray icon')
-
+    'lxsession: needed for authentification in Xfce, LXDE etc.'
+    'libappindicator-gtk3: needed for tray icon')
 makedepends=('meson' 'desktop-file-utils' 'appstream-glib')
 provides=("${pkgname}")
 conflicts=("${pkgname}")
 install=cpupower_gui.install
-source=("${pkgname}_${pkgver}.orig.tar.gz"::"https://github.com/vagnum08/cpupower-gui/archive/v${pkgver}.tar.gz")
-sha256sums=('09f8b9619e974abe00fc06c0d5528b6a36518f6b283b3db338349bada1d51492')
+source=(
+    "${pkgname}_${pkgver}.orig.tar.gz"::"https://github.com/vagnum08/cpupower-gui/archive/v${pkgver}.tar.gz"
+    "argparse.patch"
+)
+sha256sums=('09f8b9619e974abe00fc06c0d5528b6a36518f6b283b3db338349bada1d51492'
+            '378bdc98a367a52376aed3f26b02412d1d02460d41e2a3543f8c2512eae4a1f9')
+
+prepare() {
+  cd "$srcdir/${pkgname}-${pkgver}"
+  patch -Np1 < "$srcdir/argparse.patch"
+}

 build() {
   sed -i '15d' "$srcdir/${pkgname}-${pkgver}/data/meson.build"
diff --git a/argparse.patch b/argparse.patch
new file mode 100644
index 0000000..24cf343
--- /dev/null
+++ b/argparse.patch
@@ -0,0 +1,39 @@
+diff --git a/cpupower_gui/cpupower-gui.in b/cpupower_gui/cpupower-gui.in
+index c0d46ea..c01f638 100755
+--- a/cpupower_gui/cpupower-gui.in
++++ b/cpupower_gui/cpupower-gui.in
+@@ -266,7 +266,7 @@ profile_sub.set_defaults(func=set_profile)
+ # Config commands
+ config_sub = subparsers.add_parser("config", aliases=["co"])
+ config_sub.add_argument(
+-    "apply", action="store_true", help="apply cpupower configuration",
++    "-a", "--apply", action="store_true", help="apply cpupower configuration",
+ )
+ config_sub.set_defaults(func=set_config)
+ 
+diff --git a/data/services/cpupower-gui-user.service.in b/data/services/cpupower-gui-user.service.in
+index 54bcecf..1977e93 100644
+--- a/data/services/cpupower-gui-user.service.in
++++ b/data/services/cpupower-gui-user.service.in
+@@ -4,7 +4,7 @@ After=default.target
+ 
+ [Service]
+ Type=oneshot
+-ExecStart=@bindir@/cpupower-gui config
++ExecStart=@bindir@/cpupower-gui config -a
+ 
+ [Install]
+ WantedBy=default.target
+diff --git a/data/services/cpupower-gui.service.in b/data/services/cpupower-gui.service.in
+index 875b737..aae8772 100644
+--- a/data/services/cpupower-gui.service.in
++++ b/data/services/cpupower-gui.service.in
+@@ -4,7 +4,7 @@ Documentation=https://github.com/vagnum08/cpupower-gui man:cpupower-gui(1)
+ 
+ [Service]
+ Type=oneshot
+-ExecStart=@bindir@/cpupower-gui config
++ExecStart=@bindir@/cpupower-gui config -a
+ 
+ [Install]
+ WantedBy=multi-user.target

EDIT: Added patch to systemd services to work as expected.