Package Details: caffeine-ng 4.2.0-2

Git Clone URL: https://aur.archlinux.org/caffeine-ng.git (read-only, click to copy)
Package Base: caffeine-ng
Description: Status bar application able to temporarily inhibit the screensaver and sleep mode.
Upstream URL: https://codeberg.org/WhyNotHugo/caffeine-ng
Keywords: caffeine powersaving screensaver
Licenses: GPL-3.0-or-later
Conflicts: caffeine, caffeine-bzr, caffeine-oneclick, caffeine-systray
Provides: caffeine, caffeine-bzr, caffeine-oneclick, caffeine-systray
Replaces: caffeine-oneclick, caffeine-systray
Submitter: whynothugo
Maintainer: whynothugo (darose)
Last Packager: darose
Votes: 127
Popularity: 0.35
First Submitted: 2014-10-19 05:26 (UTC)
Last Updated: 2024-09-24 00:34 (UTC)

Pinned Comments

whynothugo commented on 2023-05-05 09:34 (UTC)

After an upgrade to Python 3.11, you need to rebuild this package (and all Python packages in the AUR).

Latest Comments

1 2 3 4 5 6 .. 25 Next › Last »

nervocalm commented on 2025-05-20 15:25 (UTC) (edited on 2025-05-20 15:30 (UTC) by nervocalm)

Hi guys! I have been using this package for a long time without any problems, but last system upgrade something weird occurred. When I try to launch caffeine from plasma menu, the app doesn't start and I get this in the journal:

caffeine[10853]:   File "/usr/bin/caffeine", line 3, in <module>
caffeine[10853]:     from caffeine.cli import cli
caffeine[10853]:   File "/usr/lib/python3.13/site-packages/caffeine/__init__.py", line 37, in <module>
caffeine[10853]:   File "/usr/lib/python3.13/site-packages/caffeine/__init__.py", line 30, in init_translations
systemd[829]: app-caffeine@dc6941742c114263b927c8a30f445299.service: Main process exited, code=exited, status=1/FAILURE
systemd[829]: app-caffeine@dc6941742c114263b927c8a30f445299.service: Failed with result 'exit-code'.

But, if I launch it from a terminal, it works:

 > caffeine &
[1] 11541
(caffeine:11541): libayatana-appindicator-WARNING **: 12:18:19.401: libayatana-appindicator is deprecated. Please use libayatana-appindicator-glib in newly written code.
No property specified.

Very weird! I rebuilt the dependencies packages just in case, but the results are the same. Any ideas what could be wrong with my system? I know is a big ask without reveling anything else but I understand this is not a support forum. Just want to check if somebody experienced something like this in the past so could give me a hint.

Thanks in advance!.

pgmillon commented on 2025-03-15 12:40 (UTC)

Solved based on RefSnow comment:

yay -S --rebuild $(yay -Qqo /usr/lib/python3.12/site-packages/)

pgmillon commented on 2025-03-15 12:33 (UTC) (edited on 2025-03-15 12:36 (UTC) by pgmillon)

Broken with the following error:

Program python3 (click, ewmh, setproctitle, pulsectl) found: NO modules: click, setproctitle, pulsectl

meson.build:24:15: ERROR: python3 is missing modules: ewmh

A full log can be found at /home/pgmillon/.cache/yay/caffeine-ng/src/caffeine-ng-v4.2.0-0-g5027f55/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...
-> error making: caffeine-ng-exit status 4
-> Failed to install the following packages. Manual intervention is required:
caffeine-ng - exit status 4

Packages are installed:

yay -Q | grep -i 'click|proctitle|pulsectl|ewmh'
python-click 8.1.8-1
python-ewmh 0.1.6-7
python-pulsectl 1:24.11.0-1
python-setproctitle 1.3.4-1

brianwo commented on 2024-07-04 08:35 (UTC)

The man page is currently located in usr/share/man/man1/caffeine/caffeine.1.gz. Correct location should be in usr/share/man/man1/caffeine.1.gz.

Using man-db package, it returns "No manual entry for caffeine" when man caffeine is executed.

RefSnow commented on 2024-05-20 00:36 (UTC)

Anyone who is having problems can try the command below.

For me, it worked.

paru -S --rebuild $(paru -Qqo "/usr/lib/python3.12/site-packages")

whynothugo commented on 2024-05-18 22:01 (UTC)

python-ewmh is still available here: https://gitlab.archlinux.org/archlinux/packaging/packages/python-ewmh

It can still be built from source. Ideally, someone can maintain it in the AUR.

stas-t commented on 2024-05-18 21:02 (UTC)

Just a kind reminder: python-ewmh is gone from AUR. So I guess caffeine-ng will fail to build.

jadespace commented on 2024-05-07 03:44 (UTC)

I'll throw in the extra detail for anyone that needs it - since I use paru, I uninstalled this package, and then removed the cached files in ~/.cache/paru. Doing that for both caffeine-ng and python-pulsectl let me rebuild them on install. Still works in 3.12, as is.

whynothugo commented on 2024-05-02 20:24 (UTC)

Try rebuilding python-pulsectl for python3.12 too.