Package Details: caffeine-ng 4.2.0-1

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: whynothugo
Votes: 120
Popularity: 0.85
First Submitted: 2014-10-19 05:26 (UTC)
Last Updated: 2023-05-08 10:23 (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

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 .. 24 Next › Last »

mmkodali commented on 2021-10-17 08:28 (UTC)

build fails as python-pulsectl build fails with following error.

error: failed to commit transaction (conflicting files)
python-pulsectl: /home/xxxx/.pyenv exists in filesystem
Errors occurred, no packages were upgraded.

whynothugo commented on 2021-07-14 10:13 (UTC)

Updated, thanks!

thiagowfx commented on 2021-07-11 20:37 (UTC)

A few improvements:

darose commented on 2021-04-20 16:53 (UTC)

NM. I see that this has already been referenced in several bug reports. I'll stay on 3.4.2 until the bug fixes for audio get released in the next version.

darose commented on 2021-04-20 16:41 (UTC)

Looks like this might be the trigger:

INFO:caffeine.core:Audio playback detected (firefox). Inhibiting.

darose commented on 2021-04-20 16:39 (UTC)

I've been having an issue with caffeine v3.5.1, where it automatically activates even when I'm not in full-screen mode in any window. (I think it might be getting triggered by browser windows - Firefox.) v3.4.2 doesn't have this issue. Anyone else experiencing this / have a fix/workaround?

FirstAirBender commented on 2021-03-12 07:39 (UTC) (edited on 2021-03-12 07:44 (UTC) by FirstAirBender)

If you started noticing that caffeine keeps running in the background, make sure you don't have an application making use of your speakers/mic.

For me, the culprit was speech-dispatcher. I found out because caffeine reported that something called sd-dummy was playing back audio. Strange because there was no audio playing and the speech-dispatcher service was not activated.

When I ran the command pstree -shap $(pidof speech-dispatcher), I got output similar to:

systemd,1
  └─speech-dispatch,114394 --spawn --communication-method unix_socket --socket-path /run/user/1000/speech-dispatcher/speechd.sock
      ├─{speech-dispatch},114395
      └─{speech-dispatch},114396

Which suggests that it was started by systemd! WTF?? How is started by systemd when the service was never enabled to begin with.

Anyways, my current solution was to kill it. You can also try the solution suggested here

If you continue to have it started randomly, then just remove that package.

sleedy commented on 2021-02-16 23:35 (UTC)

@yochananmarqos

I do have hicolor-icon-theme installed, though, and it still doesn't work

yochananmarqos commented on 2021-02-15 17:07 (UTC)

@sleedy: Apparently hicolor-icon-theme is a missing dependency.

sleedy commented on 2021-02-15 16:29 (UTC) (edited on 2021-02-15 16:42 (UTC) by sleedy)

3.5.1 doesn't work on KDE Manjaro; running in the terminal gives this:

/usr/lib/python3.9/site-packages/caffeine/main.py:61: PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded.

from gi.repository import AppIndicator3

INFO:caffeine.core:Caffeine is starting up...

(caffeine:10901): Gtk-WARNING **: 15:28:52.979: Could not find the icon 'caffeine'. The 'hicolor' theme

was not found either, perhaps you need to install it.

You can get a copy from:

http://icon-theme.freedesktop.org/releases

Traceback (most recent call last):

File "/usr/bin/caffeine", line 33, in <module>

sys.exit(load_entry_point('caffeine-ng==3.5.1', 'gui_scripts', 'caffeine')())

File "/usr/lib/python3.9/site-packages/caffeine/main.py", line 454, in main

main = GUI(arguments["--preferences"])

File "/usr/lib/python3.9/site-packages/caffeine/main.py", line 251, in __init__

get_icon_pixbuf(16),

File "/usr/lib/python3.9/site-packages/caffeine/icons.py", line 48, in get_icon_pixbuf

pixbuf = icon_theme.load_icon(icon_name, size, Gtk.IconLookupFlags.NO_SVG)

gi.repository.GLib.Error: gtk-icon-theme-error-quark: Icon 'caffeine' not present in theme (null) (0)

Downgrading to 3.4.2 works, and it seems that the way icons are imported was changed in 3.5.1.