Package Details: caffeine-ng 3.5.1-4

Git Clone URL: (read-only, click to copy)
Package Base: caffeine-ng
Description: Status bar application able to temporarily inhibit the screensaver and sleep mode.
Upstream URL:
Keywords: caffeine powersaving screensaver
Licenses: GPL3
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
Last Packager: whynothugo
Votes: 113
Popularity: 1.04
First Submitted: 2014-10-19 05:26 (UTC)
Last Updated: 2022-04-19 22:27 (UTC)

Latest Comments

whynothugo commented on 2022-04-19 22:28 (UTC) (edited on 2022-04-19 22:28 (UTC) by whynothugo)

I've reverted the change for now; it's best to deal with pep517 support upstream.

yochananmarqos commented on 2022-04-19 16:15 (UTC)

@DropstEffect: Add rsync to makedepends() and change the package() function to:

package() {
  cd "$srcdir"/caffeine-ng-${pkgver}
  python -m installer --destdir="$pkgdir" dist/*.whl

  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
  mv "${pkgdir}${site_packages}/etc" "$pkgdir/"
  rsync -av "${pkgdir}${site_packages}/usr" "$pkgdir/"
  rm -rf "${pkgdir}${site_packages}/usr"

DrosteEffect commented on 2022-04-19 14:51 (UTC)

Latest update puts files in the wrong spots (all under /usr/lib/python3.10/site-packages/), e.g. the desktop file is located at /usr/lib/python3.10/site-packages/usr/share/applications/caffeine.desktop.

whynothugo commented on 2022-02-26 22:15 (UTC)

cciva: Try rebuilding python-pulsectl. Did you recently upgrade your python version?

johnjohn commented on 2022-02-23 06:04 (UTC) (edited on 2022-02-23 06:05 (UTC) by johnjohn)

I got no module pulsectl error

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/bin/caffeine", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/", line 162, in load
    module = import_module('module'))
  File "/usr/lib/python3.10/importlib/", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/caffeine/", line 54, in <module>
    from .core import Caffeine  # noqa: E402
  File "/usr/lib/python3.10/site-packages/caffeine/", line 26, in <module>
    from pulsectl import Pulse
ModuleNotFoundError: No module named 'pulsectl'

Simply install it via pip solved it.

pip install pulsectl

cciva commented on 2021-12-14 10:20 (UTC) (edited on 2021-12-14 10:21 (UTC) by cciva)

And to rebild them all with latest python (python 3.10) you can do following :

pacman -Qoq /usr/lib/python3.9 | yay -S - --rebuild

source: reddit

whynothugo commented on 2021-12-13 19:15 (UTC) (edited on 2021-12-15 12:46 (UTC) by whynothugo)

After upgrading to Python 3.10, you need to rebuild all Python packages built with Python 3.9. You can get a list of these packages using:

pacman -Qo /usr/lib/python3.9

You can reinstall these with:

paru -S --aur --rebuild $(pacman -Qo /usr/lib/python3.9)

alfredo.ardito commented on 2021-12-13 10:20 (UTC)

caffeine not working anymore after python upgrade to 3.10.1
it reports this error:
importlib.metadata.PackageNotFoundError: No package metadata was found for caffeine-ng
I tried to uninstall and reinstall but the error persists.

johnjohn commented on 2021-11-12 17:25 (UTC)

I am using pyenv and had to install "dbus-python" manually using pip.

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:

  └─speech-dispatch,114394 --spawn --communication-method unix_socket --socket-path /run/user/1000/speech-dispatcher/speechd.sock

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)


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/ 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:

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/", line 454, in main

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

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


File "/usr/lib/python3.9/site-packages/caffeine/", 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.

earlybird commented on 2021-01-19 05:57 (UTC)

Does not launch - this is what you get if launched in the terminal

caffeine /usr/lib/python3.9/site-packages/caffeine/ 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 Traceback (most recent call last): File "/usr/bin/caffeine", line 33, in <module> sys.exit(load_entry_point('caffeine-ng==3.5.0', 'gui_scripts', 'caffeine')()) File "/usr/lib/python3.9/site-packages/caffeine/", line 454, in main main = GUI(arguments["--preferences"]) File "/usr/lib/python3.9/site-packages/caffeine/", line 155, in init self.core = Caffeine(self.__process_manager) File "/usr/lib/python3.9/site-packages/caffeine/", line 53, in __init GnomeInhibitor(), File "/usr/lib/python3.9/site-packages/caffeine/", line 57, in init super().init(self) TypeError: init() takes 1 positional argument but 2 were given

darose commented on 2021-01-19 02:40 (UTC)

New 3.5.0 version seems buggy. Caffeine seems to activate constantly, even when I'm not in full-screen mode.

yochananmarqos commented on 2021-01-18 15:13 (UTC)

@pkr: This commit fixes the issue.

Use this PKGBUILD for now

@WhyNotHugo: python-pulsectl is missing from dependencies.

pkr commented on 2021-01-18 12:42 (UTC) (edited on 2021-01-18 12:43 (UTC) by pkr)

Getting error when starting from console after update today:

Traceback (most recent call last): File "/usr/bin/caffeine", line 33, in <module> sys.exit(load_entry_point('caffeine-ng==3.5.0', 'gui_scripts', 'caffeine')()) File "/usr/bin/caffeine", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/", line 77, in load module = import_module('module')) File "/usr/lib/python3.9/importlib/", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 790, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/caffeine/", line 54, in <module> from .core import Caffeine # noqa: E402 File "/usr/lib/python3.9/site-packages/caffeine/", line 26, in <module> from pulsectl import Pulse ModuleNotFoundError: No module named 'pulsectl'

Looks like the dependencies are not completely listed or am I doing something wrong?

yochananmarqos commented on 2021-01-17 02:35 (UTC)

python-setuptools-scm is missing from makedepends().

The options() array is not necessary, neither apply here.

Rhinoceros commented on 2020-08-25 00:16 (UTC)

With the bundled desktop file, the caffeine icon looks blurry for me in KDE Plasma [a]. However, if I quit and relaunch caffeine, it looks crisp. On my system, adding a delay to the desktop file also results in a crisp icon [b]. I'm not sure if the caffeine launch should wait until some other process is complete, but the sleep hack works fine, i.e. change the line to Exec=/usr/bin/sleep 20 && /usr/bin/caffeine.

[a] [b]

PhotonX commented on 2020-08-11 19:08 (UTC)

Would be great if possible!

whynothugo commented on 2020-08-11 06:56 (UTC)

Hmm.. make make sense to make changes upstream and add a flag to determine if appdindicators are used or not.

PhotonX commented on 2020-08-10 20:27 (UTC)

I tried to figure out what is happening and looks like network-manager-applet pulled libappindicator-gtk3 as new dependency in a recent update (June 22):

Is it possible to build caffeine without appindicator usage? Maybe make a different package with corresponding build options?

darose commented on 2020-08-10 14:24 (UTC)

I think I remember the left-click toggle on/off working a while back. Not sure when/why that changed. Kind of a nuisance though.

whynothugo commented on 2020-08-10 13:33 (UTC)

@emontenegro Sounds like something produced by using appindicators, not something that can be controlled on the caffeine side.

emontenegro commented on 2020-08-01 01:15 (UTC)

Is it possible to switch caffeine just with left click on icon? Now works just popup menu via right click, then Enable - Disable... (Manjaro i3)

whynothugo commented on 2019-12-09 10:21 (UTC) seems to be down right now, I'll update the URL at some point when it's back up.

FWIW, the static, predictable URL for the PyPI package is

Sintan commented on 2019-12-05 17:12 (UTC) (edited on 2019-12-05 17:23 (UTC) by Sintan)

@WhyNotHugo I have libappindicator-gtk3 installed but it still doesn't work.

alfredo.ardito commented on 2019-11-25 15:10 (UTC)

hi, got it working, thx

brown25 commented on 2019-11-25 14:55 (UTC)

@alfredo.ardito re-installing caffeine and these python packages worked for me: python-docopt, python-ewmh, python-setproctitle, python-wheel, python-xlib

I believe its something about last python update

alfredo.ardito commented on 2019-05-20 19:13 (UTC)

It always used to work. I had this lately

whynothugo commented on 2019-05-20 07:43 (UTC)

@alfredo.ardito That's odd. Was this a one-time thing, or is it consistent?

alfredo.ardito commented on 2019-05-17 12:21 (UTC)

Caffeine not executing anymore.
I uninstalled and reinstalled it again without errors. When I run it it halts displaying the following error:

~ $ caffeine
/usr/lib/python3.7/site-packages/caffeine/ 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
Traceback (most recent call last):
File "/usr/bin/caffeine", line 11, in <module>
load_entry_point('caffeine-ng==3.4.2', 'gui_scripts', 'caffeine')()
File "/usr/lib/python3.7/site-packages/caffeine/", line 437, in main
main = GUI(arguments["--preferences"])
File "/usr/lib/python3.7/site-packages/caffeine/", line 155, in init
self.core = Caffeine(self.__process_manager)
File "/usr/lib/python3.7/site-packages/caffeine/", line 73, in __init

self._ewmh = EWMH()
File "/usr/lib/python3.7/site-packages/ewmh/", line 70, in init
self.display = _display or display.Display()
File "/usr/lib/python3.7/site-packages/Xlib/", line 89, in init
self.display = _BaseDisplay(display)
File "/usr/lib/python3.7/site-packages/Xlib/", line 71, in init
protocol_display.Display.init(self, args, *keys)
File "/usr/lib/python3.7/site-packages/Xlib/protocol/", line 167, in init
raise error.DisplayConnectionError(self.display_name, r.reason)
Xlib.error.DisplayConnectionError: Can't connect to display ":0.0": b'Invalid MIT-MAGIC-COOKIE-1 key'

whynothugo commented on 2018-10-23 05:03 (UTC)

@Demeter That behaviour is triggered if you have app indicators in your system (rather than a classic systray).

It's only active if libappindicator-gtk3 is installed.

Demeter commented on 2018-09-22 10:28 (UTC) (edited on 2018-09-22 10:32 (UTC) by Demeter)

Is it possible to switch caffeine just with left click on icon? Now works just popup menu via right click, then Enable - Disable... (MATE)

whynothugo commented on 2018-08-06 20:33 (UTC)

Yup, will update the pkgrel in a bit.

macxcool commented on 2018-08-06 18:02 (UTC)

@WhyNotHugo Is a version bump appropriate because of the python upgrade?

Batou commented on 2018-02-16 09:05 (UTC)

Is there a way to disable INFO messages? My .xsession-errors is littered with messages of the type:

INFO:caffeine.core:XorgInhibitor is applicable, running it.

jfk commented on 2017-12-19 00:36 (UTC)

@WhyNotHugo: apparently, it was related to a conflict in my locale settings. In short, I had a script that set fr_CH instead of fr_FR as my default language. Fr_CH is not well handled in Plasma. Since I've deleted it, caffeine-ng opens normally.

whynothugo commented on 2017-12-14 13:38 (UTC)

Can you clarify what you mean by "nothing happens". Does the icon not respond? Do you get any sort of error?

jfk commented on 2017-12-13 20:52 (UTC) (edited on 2017-12-13 21:41 (UTC) by jfk)

KDE Plasma 5.40.0 lts 4-9.68 nothing happens when I run the app or preferences. Moreover, no process is loaded (which is not the case with "caffeine").

libappindicator-gtk3 is installed.

whynothugo commented on 2017-09-07 15:52 (UTC)

caffeine-ng depends on python-ewmh depends on python-xlib depends on python-six. From your previous comment, it looks like you're doing a partial update. Partial upgrades are unsupported on ArchLinux (, and that's probably what left your system on the broken state it's in. You should run a full update to fix it, try running caffeine again.

archerie commented on 2017-09-07 10:32 (UTC) (edited on 2017-09-07 10:35 (UTC) by archerie)

Here's how installation looks. Any idea why python-six isn't getting installed as a dependency of python-xlib? $ pacaur -y caffeine-ng :: resolving dependencies... :: looking for inter-conflicts... AUR Packages (2) caffeine-ng-3.4.0-2 python-ewmh-0.1.6-1 Repo Packages (5) python-dbus-1.2.4-2 python-setproctitle-1.1.10-2 python-wheel-0.29.0-2 python-xdg-0.25-4 python-xlib-0.19-1

whynothugo commented on 2017-09-06 16:12 (UTC)

It IS included in the dependencies of that package: $ pacman -Si python-xlib | grep Depends Depends On : python python-six That's what I was referring to by "your setup is broken"; you've somehow installed python-xlib without having its dependencies installed.

archerie commented on 2017-09-06 16:09 (UTC)

hobarrera: Shouldn't this be included in the dependencies on the package? Why do I need to install it separately?

whynothugo commented on 2017-09-06 15:31 (UTC)

archerie: Looks like your setup is broken. You need to install python-six, which is required by python-xlib. Make sure you install them both through pacman, not pip, otherwise one may lag out of date or alike.

archerie commented on 2017-09-06 14:30 (UTC) (edited on 2017-09-06 14:31 (UTC) by archerie)

I'm getting an error when trying to run caffeine, how do I fix this? pkg_resources.ContextualVersionConflict: (six 1.9.0 (/usr/lib/python3.6/site-packages), Requirement.parse('six>=1.10.0'), {'python-xlib'}) ... pkg_resources.DistributionNotFound: The 'six>=1.10.0' distribution was not found and is required by python-xlib

whynothugo commented on 2017-08-02 00:30 (UTC)

Thanks for pointing it out. Updated!

ainola commented on 2017-08-02 00:19 (UTC)

Thanks for maintaining this! The .install file isn't necessary any more as Pacman will automatically run those commands as hooks (

varikonniemi commented on 2017-07-29 14:31 (UTC) (edited on 2017-07-29 14:32 (UTC) by varikonniemi)

installing libappindicator-gtk3 breaks the timer functionality in the tray icon (it just goes missing) for me on both kde plasma and gnome (different computers). Works fine without it.

whynothugo commented on 2017-06-19 20:02 (UTC)

Developer here. I don't *think* this'll work on wayland. What compositor are you using? The tray icon SHOULD show up it sway. Not sure about others. Also, maybe installing `libappindicator-gtk3` makes a difference? I'm currently working on a version that'll properly support wayland, but it's still very green, TBH.

emphire commented on 2017-06-19 19:59 (UTC)

Does this work on Wayland for anyone? The app seems to launch without any errors for me when I run it from a terminal but the tray icon is not visible.

whynothugo commented on 2017-03-02 16:00 (UTC)

The package was bumped (due to a new release), but some people update their pythons after others, so there are still issues. I agree that having this in community would be great, but you need a TU to commit to that (I'm not a TU, obviously).

PhotonX commented on 2017-03-02 15:52 (UTC)

Returning to the discussion about the need of rebuilding the package (for no reason besides of me having time to write a comment :)). caffeine-ng has only one AUR dependency, python-ewmh. I think, bumping those two packages whenever python gets updated would solve the recurrent startup problem. The best solution would be probably to get it into community/ repo since caffeine-ng is really useful, sufficiently popular imho and, as I said, has only one AUR dependency.

matschi commented on 2017-02-11 03:19 (UTC)

@hobarrera: Sorry, my bad!

whynothugo commented on 2017-02-07 23:48 (UTC)

@matschi: python-ewmh is already listed as a dependency.

matschi commented on 2017-02-07 23:30 (UTC)

I needed to install the python-ewmh package. Might need to add this as a dependency.

macxcool commented on 2017-01-28 22:42 (UTC)

just rebuilding python-ewmh worked for me.

whynothugo commented on 2017-01-26 16:05 (UTC)

@manuelschneid3r This is the normal "build". I'll try to make logging configurable (as a feature) when I get a chance.

manuelschneid3r commented on 2017-01-25 16:03 (UTC)

Is this a debug build or is the application printing that much info by default? caffeine pollutes the journalctl

whynothugo commented on 2017-01-19 20:04 (UTC)

@punk0x29a Please read the pinned post.

punk0x29a commented on 2017-01-19 18:22 (UTC)

pkg_resources.DistributionNotFound: The 'caffeine-ng==3.3.8' distribution was not found and is required by the application That's what I get now. Previously I fixed the problem by editing requirements, but now that's something different ( I guess...)

PhotonX commented on 2017-01-18 19:19 (UTC)

Ok, I got the point. In my case it was enough to rebuild caffeine-ng to make it work again. On another system I had to rebuild a dependency (ewmh) as well. In the latter case indeed rebuilding caffeine-ng wouldn't help, in the former it would.

whynothugo commented on 2017-01-18 14:35 (UTC)

The setups in question have python pckages pointing to an absent python, and not accesible by the default python. You might not want to call them broken (it's semantics and poorly relevant), but the rest of the point stands; pushing the pkgrel won't rebuild dependencies. Users should have rebuilt python packages during the python36 update. TBH, I think this should have been an Arch announcement, since it affected too many users/packages. I've just pinned that comment helping them do that because it's relevant here, but there's no way to push a fix to affected users.

PhotonX commented on 2017-01-18 07:54 (UTC)

What do you mean by "broken setups"? I don't consider my setup broken. :) Isn't a rebuild required for everybody after python is updated? Concerning the warning: What does grep -R "$(pwd)/src" pkg/ return if you run in the build directory?

whynothugo commented on 2017-01-18 06:28 (UTC)

> WARNING: Package contains reference to $srcdir. Not sure how to deal with that. Any hints?

whynothugo commented on 2017-01-18 06:27 (UTC)

> why don't you just bump the revision if you realize that a rebuild is necessary? A rebuild of dependencies is necessary only for users with broken setups. Pushing the pkgrel won't rebuild dependencies, and would trigger rebuilds for users who don't need it.

PhotonX commented on 2017-01-17 21:39 (UTC)

Makepkg reports: WARNING: Package contains reference to $srcdir. Check Also, why don't you just bump the revision if you realize that a rebuild is necessary?

whynothugo commented on 2017-01-08 19:54 (UTC)

sergey.orloff: Please understand that that specific command fixed YOUR broken setup, and it's not a universal fix.

sergey.orloff commented on 2017-01-08 18:55 (UTC) (edited on 2017-01-08 19:00 (UTC) by sergey.orloff)

A big thank you to @hobarrera! Hi all! Helped here it is: sudo pacman -R python-ewmh python-xlib caffeine-ng && sudo pacman -S python-docopt python-setproctitle python-wheel python-xlib && yaourt -S python-ewmh caffeine-ng

whynothugo commented on 2017-01-08 17:25 (UTC) (edited on 2017-01-08 17:25 (UTC) by whynothugo)

Note that python-ewmh is at 0.1.6-1 anyway, so merely upgrading should fix the issue (because it'll rebuild).

whynothugo commented on 2017-01-08 17:24 (UTC) (edited on 2017-01-08 17:26 (UTC) by whynothugo)

If you see an error like: pkg_resources.DistributionNotFound: The 'XXXXXXXX' distribution was not found and is required by caffeine-ng Then you probably need to rebuild and reinstall packages build with python3.5 (due to the recent python3.6 upgrade). You can find a list of these packages running this command: pacman -Qo /usr/lib/python3.5

sergey.orloff commented on 2017-01-08 14:38 (UTC)

Hello @PhotonX! Installed this version: pacman -Q python-ewmh python-ewmh 0.1.4-2

zwastik commented on 2017-01-08 12:28 (UTC)

Same problem here: File "/usr/lib/python3.6/site-packages/pkg_resources/", line 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'ewmh=0.1.4' distribution was not found and is required by caffeine-ng aur/python-ewmh 0.1.6-1 [installed] (31) (2.36)

PhotonX commented on 2017-01-08 10:46 (UTC)

Please check which version of python-ewmh is installed.

sergey.orloff commented on 2017-01-08 09:15 (UTC) (edited on 2017-01-08 09:16 (UTC) by sergey.orloff)

Recently not working Caffeine. Here's the terminal output: [sergey@p43es3g ~]$ caffeine Traceback (most recent call last): File "/usr/bin/caffeine", line 6, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.6/site-packages/pkg_resources/", line 3019, in <module> @_call_aside File "/usr/lib/python3.6/site-packages/pkg_resources/", line 3003, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.6/site-packages/pkg_resources/", line 3032, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.6/site-packages/pkg_resources/", line 655, in _build_master ws.require(__requires__) File "/usr/lib/python3.6/site-packages/pkg_resources/", line 963, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.6/site-packages/pkg_resources/", line 849, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'ewmh>=0.1.4' distribution was not found and is required by caffeine-ng [sergey@p43es3g ~]$

vintherine commented on 2016-11-14 19:37 (UTC)

error with the sha256sums : the good one is c7e61cfc7ad66bf34b9c8159a4d7b5b3356b69e6f6e75e103ec5cc1c7c585cd4

Matombo commented on 2016-10-06 20:30 (UTC)

Found the missing dependency: it's libappindicator-gtk3 (not sure whats the difference to libindicator-gtk3) you should add it as optional dependency for kde plasma 5 support

Matombo commented on 2016-10-05 21:23 (UTC)

When installing this package on Arch or Manjaro-Net-Edition with the plasma-desktop installed. The tray icon is broken: pixilated and doesn't react on right- or leftklick. However when installing the package on Manjaro-KDE-Edition it works just fine. It looks like a weired missing dependency issue but it doesn't throw any error message.

PhotonX commented on 2016-08-18 11:18 (UTC)

Yep, after today's updates I successfully switched back to caffeine-ng, too.

Dawa commented on 2016-08-18 11:14 (UTC)

@hobarrera Sorry about the confusion. I'll be sure to specify my distro in the future. python-xlib has been updated by Manjaro and caffeine-ng is now running perfectly. Thanks! @PhotonX python-xlib is in the Manjaro stable repos now and caffeine-ng works for me.

PhotonX commented on 2016-08-17 15:36 (UTC)

I think, python-xlib will reenter Manjaro's stable repos soon, at least it is already present in testing. I switched to caffeine-systray till then (though it has some other problems, so it is only a temporary solution).

PhotonX commented on 2016-08-15 05:36 (UTC)

@Dawa: Please post a link to the forum thread, if you ask on the Manjaro forums, so I can also follow the discussion. At the same time I flagged python-xlib-git out of date, hope to get the maintainers attention.

whynothugo commented on 2016-08-14 20:10 (UTC)

Please DO clarify that you're NOT using Arch next time. The AUR package for python-xlib was out-of-date and conflicting with one on [community] since about a week ago. I'd suggest you manually build the one from the Arch repos as a workaround until Manjaro picks it up: (this should be just as simple as building from AUR).

Dawa commented on 2016-08-14 19:32 (UTC)

@hobarrera - the python command you suggested runs without error. I am running Manjaro though and am probably running into the problem PhotonX suggested. I'll go to the Manjaro forums and ask them what they're doing with python-xlib.

PhotonX commented on 2016-08-14 09:04 (UTC)

I also stumbled upon this problem on a Manjaro machine. There it seems like python-xlib has disappeared from the repos (it is installed locally but not available for installation any more), only python2-xlib is available. However, python-xlib-git exists in the AUR which, however, fails to build. So I see two options for further digging: Ask the Manjaro devs what happened with python-xlib or wait for a fix for python-xlib-git in the AUR.

whynothugo commented on 2016-08-14 05:00 (UTC)

@Dawa. Not sure why python-ewmh is not working for you. Does "python -c "import ewmh"" also fail for you? If so, there's something broken with your python-xlib/python-ewmh installtion, but I'm not sure that (note that the error is not in caffeine-ng itself, rather ewmh).

Dawa commented on 2016-08-13 08:34 (UTC) (edited on 2016-08-13 08:35 (UTC) by Dawa)

@hobarrera python-ewmh and python-xlib are both installed and are the latest versions from AUR. I tried uninstalling python-xlib/ewmh and caffeine-ng, then reinstalling all three. I still get the same error message.

whynothugo commented on 2016-08-13 03:51 (UTC)

@Dawa: The last line is pretty clear: "The 'python-xlib' distribution was not found and is required by ewmh". Make sure your installation of python-ewmh is up-to-date, and so are its dependencies.

Dawa commented on 2016-08-13 02:21 (UTC)

3.3.8 fails to start, when I try to run it from terminal i get the error seen here:

Rhinoceros commented on 2016-08-12 22:58 (UTC)

@hobarrera no worries. It works perfectly for me now. Thanks for the fix.

whynothugo commented on 2016-08-12 17:03 (UTC)

@Dawa: Could you be a bit clearer?

Dawa commented on 2016-08-12 17:02 (UTC)

This new build breaks Caffeine-ng for me. 3.3.7 was working fine; 3.3.8 won't start with python-xlib errors in terminal.

whynothugo commented on 2016-08-12 14:48 (UTC)

Oops, forgot to actually UPLOAD the new PKGBUILD.

commented on 2016-08-12 13:52 (UTC)

I can confirm that python-xlib is not fixed yet. You can manually workaround this issue by editing /usr/lib/python3.5/site-packages/caffeine_ng-3.3.7-py3.5.egg-info/requires.txt

Rhinoceros commented on 2016-08-12 12:22 (UTC)

Unfortunately I'm still getting the same errors. I noticed that you updated python-ewmh but not this one. (Not sure if that was intentional.)

whynothugo commented on 2016-08-12 11:11 (UTC)

Issues with python-xlib should be fixed now.

whynothugo commented on 2016-08-11 02:35 (UTC)

Looks like the official repos now have a python-xlib that's a different fork thatn the one in the AUR. I'll try to figure out what's going on later.

Rhinoceros commented on 2016-08-11 02:23 (UTC)

Thanks @javier, but I'd prefer it to be installed by the package manager.

javier commented on 2016-08-11 01:08 (UTC)

only installed with: pip install python3-xlib

Rhinoceros commented on 2016-08-10 23:56 (UTC)

Thank you for that @hobarrera. However, now I'm getting the following error: pkg_resources.DistributionNotFound: The 'python3-xlib>=0.15' distribution was not found and is required by caffeine-ng FWIW I *do* have python-xlib 0.17-1 installed (as a dependency of python-ewmh).

whynothugo commented on 2016-08-10 22:41 (UTC)

I've stopped pinning requirement versions upstream so we stop having these issues. I'll update this package as soon as the deployment (ie: publishing) finishes.

Rhinoceros commented on 2016-08-10 10:07 (UTC)

Yes, caffeine-ng is also broken for me with the same error: pkg_resources.DistributionNotFound: The 'python3-xlib==0.15' distribution was not found and is required by caffeine-ng On @JethroTux's advice, I found I could edit `/usr/lib/python3.5/site-packages/caffeine_ng-3.3.6-py3.5.egg-info/requires.txt`, commenting out the following two lines, which makes it work again. ewmh>=0.1.3 python3-xlib==0.15 I'm also not sure if it's the preferred option.

JethroTux commented on 2016-08-08 19:25 (UTC)

OK. As a workaround I commented out all the lines in "/usr/lib/python3.5/site-packages/caffeine_ng-3.3.6-py3.5.egg-info/requires.txt", this way the program runs smoothly. Is it safe? Cheerz.

JethroTux commented on 2016-08-08 19:20 (UTC)

Caffeine-ng does not start anymore after python-xlib (0.15rc1-1 -> 0.16-1) upgrade. "pkg_resources.DistributionNotFound: The 'python3-xlib==0.15' distribution was not found and is required by caffeine-ng"

PhotonX commented on 2016-07-28 04:25 (UTC)

Thanks for the quick fix!

whynothugo commented on 2016-07-27 23:51 (UTC)

Fixed, sorry.

JethroTux commented on 2016-07-27 23:06 (UTC)

Had to force installtion skipping md5sums coz the file did not pass validity check. Also, had to install python-wheel-0.29.0-1 which was not needed with previous caffeine package. How's that?

PhotonX commented on 2016-07-27 19:43 (UTC)

Caffeine crashes at startup after the python-ewmh update to 0.1.4-1 and reports that python-ewmh 0.1.3 is required.

whynothugo commented on 2016-07-02 10:25 (UTC)

I've no idea about the PKGBUILD question. I guess it might be somewhat different, considering this is a pure-python app, and that's a python app with several shells scripts. Whitelisting used to work as it does in caffeine-ng, you add an app to a list, and caffeine won't inhibit the screensaver while it's running.

m265neC7vk commented on 2016-07-01 21:26 (UTC)

Apparently you can just run 'caffeinate application' instead of 'application' and caffeine will keep your session live as long as the application is up. I'm not familiar with the earlier whitelist support beyond this. I think I'll try my hand at getting a PKGBUILD setup for it. It shouldn't be too terribly different than your setup right? Thanks for getting back so quickly.

whynothugo commented on 2016-07-01 05:36 (UTC)

Apparently, upstream was partially rewritten in bash, so there's no real chance of a merge at this point. Both apps have diverged in both features and bugs at this point, and I'm not sure about the minor details, regrettably.

whynothugo commented on 2016-07-01 05:32 (UTC)

I'm not sure if upstream re-introduced the whitelist support as well (I'd have to check closer). This fork has actually had a lot of code cleanups, and some bugfixes of its own. I'm not sure how caffeine compares, especially for bugs that were only reported to us, but dragged from before the fork. I'd love to talk about a merge at some point, though.

m265neC7vk commented on 2016-07-01 03:38 (UTC)

As of 2015-01-16, I believe the toggle has been reintroduced. Is there any benefit to using this fork as opposed to upstream? Thanks

whynothugo commented on 2016-05-18 14:05 (UTC)

Odd. The only thing I can think of is the reinstall required post python3.5, but that was months ago, and IIRC, the pkgrel was pushed.

lockheed commented on 2016-05-18 13:07 (UTC)

@hobarrera: it was, but I reinstalled it and now caffeine starts. Thanks for the pointer.

whynothugo commented on 2016-05-18 12:56 (UTC)

@lockheed: Can you confirm that python-ewmh is installed?

lockheed commented on 2016-05-18 12:13 (UTC)

I'd appreciate some help with this: $ caffeine Traceback (most recent call last): File "/usr/bin/caffeine", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.5/site-packages/pkg_resources/", line 2927, in <module> @_call_aside File "/usr/lib/python3.5/site-packages/pkg_resources/", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 2940, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.5/site-packages/pkg_resources/", line 635, in _build_master ws.require(__requires__) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 943, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 829, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'ewmh==0.1.3' distribution was not found and is required by caffeine-ng

whynothugo commented on 2016-05-14 10:54 (UTC)

Latest version of caffeine-ng should work fine with setproctitle 1.1.10 (or later versions).

sa1t commented on 2016-05-13 22:11 (UTC)

I'm getting this when trying to run it File "/usr/lib/python3.5/site-packages/pkg_resources/", line 635, in _build_master ws.require(__requires__) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 943, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 834, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (setproctitle 1.1.10 (/usr/lib/python3.5/site-packages), Requirement.parse('setproctitle==1.1.9'), {'caffeine-ng'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/caffeine", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python3.5/site-packages/pkg_resources/", line 2927, in <module> @_call_aside File "/usr/lib/python3.5/site-packages/pkg_resources/", line 2913, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 2940, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.5/site-packages/pkg_resources/", line 637, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 650, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.5/site-packages/pkg_resources/", line 829, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'setproctitle==1.1.9' distribution was not found and is required by caffeine-ng I do have setproctitle: sudo pacman -S python-setproctitle warning: python-setproctitle-1.1.10-1 is up to date -- reinstalling

cj360 commented on 2016-04-22 19:21 (UTC)

Anyone else notice this package doesn't stop xscreensaver from running?

whynothugo commented on 2016-04-03 17:38 (UTC)

python-ewmh is not missing, it's listed as a depends, python-xlib is a dependency of python-ewmh itself.

punk0x29a commented on 2016-04-03 11:43 (UTC)

Missing dependencies: python-xlib, python-ewmh

whynothugo commented on 2016-02-24 15:23 (UTC)

Scrub that, the package was out of date and that particular issue had been fixed. The current version should not display that warning.

whynothugo commented on 2016-02-24 15:17 (UTC)

@DellArch: Those warnings should be harmless (and everything should still work fine). I'll get around to fixing them later anyway (for correctness sake). You can ignore them safely in the meantime.

DellArch commented on 2016-02-24 15:15 (UTC)

Hi guys, I've installed caffeine on my parents laptop caffeine with yaourt. But if it starts from terminal appears this error: "sys:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. sys:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded. INFO:caffeine.core:Caffeine is starting up..." What should I do to fix it?

octaveparango commented on 2016-02-04 13:30 (UTC) (edited on 2016-02-04 13:42 (UTC) by octaveparango)

Hey guys, I've installed caffeine on my arch with kde plasma DE (my arch is only three days old, so everything should be up to date). The installation went well and the caffeine indicator appears on my task bar. However, clicking it doesn't have any effect at all. I just see the coffee cup, that's it. Does anybody have an idea how I can fix this? I'd love to use coffeine-ng. PS: I have installed all suggested dependencies.

PhotonX commented on 2015-12-03 19:33 (UTC)

Thanks a lot, I'm always available in case some testing needs to be done!

whynothugo commented on 2015-12-03 19:13 (UTC)

@PhotonX I'll have to set up an xfce VM with whatever-their-screensaver is up and test this (it's not the first xfce-specific bug report anyway). I'll let you know if I need any additional detail when I get around to it.

PhotonX commented on 2015-12-03 17:58 (UTC) (edited on 2015-12-03 19:32 (UTC) by PhotonX)

Maybe not the best way to report a bug, but I'm not yet registered at Gitlab, so I'm trying it here. I got a huge memory leak: I'm running it on Manjaro Xfce, the laptop stays on for a long time and goes to Suspend2RAM instead of being switched off (uptime at the time of the screenshot is above 7 days). Caffeine is just there sitting in the tray. A few minutes after the screenshot Caffeine actually grabbed even more memory, the memory usage increased to 2,4GiB so I had to kill it...

getzze commented on 2015-10-13 13:16 (UTC)

Can you increment the pkgrel, also in the dependencies? So pacman will reinstall them against python 3.5.

whynothugo commented on 2015-10-09 21:05 (UTC)

Yes, you'll need to reinstall any AUR python packages due to the python35 upgrade. You can list which ones these are using: pacman -Qo /usr/lib/python3.4

PhotonX commented on 2015-10-09 20:47 (UTC)

Same here, caffeine-ng, python-ewmh and python-xlib needed to be reinstalled to make Caffeine work again.

ryansito commented on 2015-10-09 20:40 (UTC)

@DellArch, @cj360 It worked for me too, in my case yaourt -Sa python-ewmh python-xlib. Thanks!!

whynothugo commented on 2015-10-09 03:53 (UTC)

Updated checksum. Thanks for the notification and the kind words. :)

manuelschneid3r commented on 2015-10-05 00:55 (UTC) (edited on 2015-10-05 00:57 (UTC) by manuelschneid3r)

Wrong shasum. I get 23c1[...]3af4 for Please fix this. btw thanks for your work! Nifty little tool, I use nearly every day.

cj360 commented on 2015-10-04 15:42 (UTC)

@DellArch, yup that did it I saw on the caffeine-ng-git package page to run packer /or/ yaourt -Qoq /usr/lib/python3.4 to check what other python packages need to be re-installed to fix them.

DellArch commented on 2015-10-04 10:21 (UTC) (edited on 2015-10-04 11:40 (UTC) by DellArch)

@cj360, I had the same problem but I solved: 1- run in terminal "yaourt ewmh" and reinstall the package 2- if you try to run caffeine now you receive a similar error with 'Xlib' so run "yaourt Xlib" and reinstall the package. 3- run caffeine These steps worked for me, I hope for you too.

cj360 commented on 2015-10-03 20:49 (UTC)

With hybroid's suggestion it builds, but fails to run: (caffeine:6504): Gtk-WARNING **: Theme parsing error: gtk-widgets.css:1444:58: `px' is not a valid unit. Traceback (most recent call last): File "/usr/bin/caffeine", line 19, in <module> from caffeine.main import main File "/usr/lib/python3.5/site-packages/caffeine/", line 41, in <module> from .core import Caffeine File "/usr/lib/python3.5/site-packages/caffeine/", line 23, in <module> from ewmh import EWMH ImportError: No module named 'ewmh

hybroid commented on 2015-09-26 21:05 (UTC)

Fixes for successful build: --- PKGBUILD.old 2015-06-09 07:43:32.000000000 +0300 +++ PKGBUILD 2015-09-26 23:57:38.309220243 +0300 @@ -9,21 +9,21 @@ license=(GPL3) depends=(python-gobject python-xdg python-dbus python-docopt python-ewmh gtk3 libnotify python-setproctitle) -optdepends=("libindicator-gtk3: AppIndictor support.") +optdepends=("libindicator-gtk3: AppIndicator support.") conflicts=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray) provides=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray) replaces=(caffeine-oneclick caffeine-systray) options=(!emptydirs !libtool) install=$pkgname.install source=("$pkgver.tar.gz::$pkgname/repository/archive.tar.gz?ref=v$pkgver") -sha256sums=('08f1034895013d99e31ede006543eabeace368378e36a9be4b27b51a3fd80fc0') +sha256sums=('23c10f0381225ae13fd7efb5cd29a7d852dc52214650bee4cbc18032a46b3af4') build() { - cd $pkgname.git + cd ${srcdir}/${pkgname}-v${pkgver}-* python build } package() { - cd $pkgname.git + cd ${srcdir}/${pkgname}-v${pkgver}-* python install --root="$pkgdir" }

PhotonX commented on 2015-09-25 16:10 (UTC)

Fails with sha256sum mismatch and (if this is fixed by hand) folder name mismatch (tries to cd into caffeine-ng.git but the folder is called caffeine-ng-v3.1-c6292f0cae28f78de075ce52a5ea1a1cda034d05).

whynothugo commented on 2015-03-15 23:41 (UTC)

I'll be requesting a merge of this package (caffeine-systray) into caffeine-ng, which is basically a fork of caffeine v2.5 with bugfixes and minor improvements. I suggest all users upgrade onto caffeine-ng, since this will cease to exists. Cheers!

whynothugo commented on 2015-03-15 23:17 (UTC)

Shameless plug: caffeine-ng is a branch of caffeine-v2.5 with the intention of keeping that funcionality, and future bugfixes, and enhancements. You might want to look at that. Cheers!

frank604 commented on 2015-01-27 07:46 (UTC)

Thank you Hobarrera for this. Error on startup. Fixed by installing libnotify. ** (caffeine:28068): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. Traceback (most recent call last): File "<frozen importlib._bootstrap>", line 2158, in _find_spec AttributeError: 'DynamicImporter' object has no attribute 'find_spec' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/bin/caffeine", line 19, in <module> from caffeine.main import main File "/usr/lib/python3.4/site-packages/caffeine/", line 37, in <module> from gi.repository.Notify import Notification File "/usr/lib/python3.4/site-packages/gi/", line 53, in find_module 'introspection typelib not found' % namespace) ImportError: cannot import name Notify, introspection typelib not found

whynothugo commented on 2015-01-07 13:37 (UTC)

@akovia: Sorry, my mistake: this package builds the latest git HEAD, it should include the commit you linked to below.

whynothugo commented on 2015-01-07 03:16 (UTC)

@akovia: Yes, I havent made a release since fixing that issue so haven't updated the package - will get around to that when I have some free time.

akovia commented on 2015-01-06 20:26 (UTC)

Ran into a problem where it wouldn't start with more than 1 entry in the programs list. Manually fixed it with this diff.

orschiro commented on 2014-11-26 13:12 (UTC)

Very useful, small applet. Thank you very much for packaging!

whynothugo commented on 2014-11-11 17:54 (UTC)

@chmurli: Odd. You didn't keep a copy of those so I can look into it, did you? In any case, it works fine now, right?

chmurli commented on 2014-11-11 17:42 (UTC)

@hobarrera: ok, removing all configuration files fixed my problem.

whynothugo commented on 2014-11-11 13:11 (UTC)

@nunigb: I though it was a transitive dependency. Updated.

nunigb commented on 2014-11-11 06:54 (UTC)

This is the only one of caffeine versions that works for me on KDE. but GTK3 is needed. Please add Dependency. Thanks!

chmurli commented on 2014-11-10 21:08 (UTC)

@hobarrera: I don't have older/other version installed. Also I reinstalled caffeine-ng, does not helped.

whynothugo commented on 2014-11-09 18:15 (UTC)

@chmurli: Odd. You don't have any older version installed as well, do you? Is this the latest version?

chmurli commented on 2014-11-09 18:10 (UTC)

Cannot run caffeine any more, got this error message:

whynothugo commented on 2014-11-04 08:17 (UTC)

@lockheed: Can you please open an issue on [1] with any relevant details, and any output by caffeine? Thanks [1]

lockheed commented on 2014-11-04 07:23 (UTC)

The function "Disable screensaver for..." does not work. Screensaver never gets re-enabled.

whynothugo commented on 2014-10-29 05:35 (UTC)

Latest version now auto-activates when a fullscreen window is detected (I'll make this configurable in the next version if people want to disable this behaviour).

dermirt commented on 2014-10-20 07:54 (UTC)

@hobarrera no issues as for now ! thanks a lot :-)

whynothugo commented on 2014-10-20 06:37 (UTC)

@chmurli: All dependencies fixed. Thanks.

chmurli commented on 2014-10-19 21:19 (UTC)

Typo in pkgbuild, should be python-docopt (no python-docopts).

whynothugo commented on 2014-10-19 18:32 (UTC)

Yes, the intention is to carry on the proyect in a similar spirit to the original one - systray icon, being able to add specific programs, and detecting those that commonly don't disable the screensaver but "should" (eg: Flash). Flash detection was broken, so it's not working right now, but I'll get to it when I have time. This specific package won't diverge really and mostly stay as-is. Actual work will be made on caffeine-ng, which is the fork I've started.

vaikus commented on 2014-10-19 12:29 (UTC)

If someone could continue this work and improve it over time somewhat (better flash playing detection and let Caffeine be in affect only if a stream or a video is actually playing - and maybe add most commonly used video players to the Preferences list for out of the box use) and not go the way the original was made. That would be a good thing for all of us :)

chmurli commented on 2014-10-19 08:59 (UTC)

Please add python-docopt as dependency, it is required.

whynothugo commented on 2014-10-18 19:42 (UTC)

@PhotonX: You're right, this package had an epoch before I adopted it and that prevented AUR helpers from picking up the update. Fixed that now.

PhotonX commented on 2014-10-18 17:24 (UTC)

That's really good news, thanks! I just installed the new version (which has been seen by yaourt as a downgrade for some reason) and have no issues to report.

whynothugo commented on 2014-10-18 17:02 (UTC)

Good news, everyone: I'm maintaining my own fork, and will be addressing issues as they arise (as well as clean up code). I've also merged the patches from this port into that fork. @dermirt: The issue you encountered should now be fixed, can you confirm this?

whynothugo commented on 2014-10-18 15:39 (UTC)

@dermirt: It's an issue with caffeine: try: generic = icon_theme.load_icon("application-x-executable", 16, Gtk.IconLookupFlags.NO_SVG) except GObject.GError, e: generic = GdkPixbuf.Pixbuf.new_from_file(caffeine.GENERIC_PROCESS_ICON_PATH) GdkPixbuf is never imported. I'll see if I can branch caffeine and fix this (considering this version is already unsupported).

dermirt commented on 2014-10-18 11:14 (UTC)

caffeine-systray doesnt work for me: NameError: name 'GdkPixbuf' is not defined gdkpixbuf is installed...

whynothugo commented on 2014-10-04 00:28 (UTC)

For all those interested, caffeine-systray has the same goal, so I'll be merging this package into that one (which works btw, and this one broke with some recent update).

whynothugo commented on 2014-07-23 07:06 (UTC)

@ignace72: Please read the description or my comment.

ignace72 commented on 2014-07-23 07:01 (UTC)

the latest revision is 600.

whynothugo commented on 2014-07-23 06:50 (UTC)

@ignace72: As the description clearly states, this package tracks and older version which offered different funcionality. I don't care about newer versions, since they provide different functionality. Please don't flag this out-of-date, as that does not apply.

ignace72 commented on 2014-07-23 06:49 (UTC)

Caffeine 2.7 released on 2014-05-19

michaelsproul commented on 2014-07-20 02:39 (UTC)

Brilliant, thanks.

shimi commented on 2014-03-30 11:32 (UTC)

I have recently switched to GNOME and using the great Caffeine shell extension. Since I am no longer using and testing this package, I am disowning it.

shimi commented on 2014-02-20 20:21 (UTC)

@ryebread761 Let's try and figure this out. Is the package gdk-pixbuf2 installed on your system? If not, can you check if installing it and then caffeine-systray fixes the issue? Or at least changes the error?

ryebread761 commented on 2014-02-20 15:54 (UTC)

Getting the same error as @qubodup on KDE 4.12.2.

shimi commented on 2014-02-04 18:50 (UTC)

@Bluthund Thanks for the tips. Patch is now applied.

Bluthund commented on 2014-02-04 18:39 (UTC)

@shimi It is in the package but it is not applied in the prepare()-step. If you set up a proper fork it would be great to retain the DPMS/X-blanking support via xset. Upstream unfortunately removed it when they switched over from their "per desktop"-implementation to the org.freedesktop.ScreenSaver DBus-API in r514 which is fine if you use a moderately current screensaver but makes caffeine useless for those that don't need/want a separate screensaver application.

shimi commented on 2014-02-03 18:48 (UTC)

@Bluthund Thanks for the patch. It is now included in the package. @Bluthund @PhotonX Hopefully when I have a bit more time (read: late March) I will try to set up a proper fork on github/launchpad.

PhotonX commented on 2014-01-29 21:36 (UTC)

I'm wondering, whether it is possible to create a patch reverting the systray code removal and apply it to the newest revision rather than sticking to rev. 498?

Bluthund commented on 2014-01-29 20:40 (UTC)

@shimi: A lot of spurious errors are being spammed ("ERROR: Exception: too many values to unpack") because the wrong python binary is called from inside the Caffeine core module. You might want to add this patch or stub the method _check_for_Flash() as a whole by returning True right at the start as the detection mechanism used there seems to be broken anyways. It seems flash does not store metadata in /tmp/Flash* files anymore (using flashplugin on firefox 26.0-2 and chromium 32.0.1700.102-1 at least) which (called from _check_for_Flash()) is looking for. Caffeine also dropped the method in r521 probably for the same reason.

whynothugo commented on 2014-01-17 19:09 (UTC)

Updated, thanks.

ed0c commented on 2014-01-17 12:12 (UTC)

On first launch : Traceback (most recent call last): File "/usr/bin/caffeine", line 40, in <module> import caffeine File "/usr/lib/python2.7/site-packages/caffeine/", line 108, in <module> from caffeine.config import Configurator File "/usr/lib/python2.7/site-packages/caffeine/", line 21, in <module> import gconf ImportError: No module named gconf Please add "python2-gconf" to the dépendencies Thanks

shimi commented on 2014-01-11 08:46 (UTC)

@qubodup I cannot reproduce your issue with this package. Have you removed caffeine-bzr before installing caffeine-systray?

qubodup commented on 2014-01-11 02:04 (UTC)

caffeine-systray does not work, unfortunately. The error was mentioned on but ERROR:root:Could not find any typelib for AppIndicator3 Traceback (most recent call last): File "/usr/bin/caffeine", line 40, in <module> import caffeine File "/usr/lib/python2.7/site-packages/caffeine/", line 126, in <module> from caffeine.main import main File "/usr/lib/python2.7/site-packages/caffeine/", line 59, in <module> generic = GdkPixbuf.Pixbuf.new_from_file(caffeine.GENERIC_PROCESS_ICON_PATH) NameError: name 'GdkPixbuf' is not defined

PhotonX commented on 2014-01-06 18:29 (UTC)

Looks like there will be no systray version since the bug report has been marked "Won't fix" and the developer is not even subscribed to it...

shimi commented on 2014-01-02 08:36 (UTC)

@donniezazen Please read the package description. caffeine-systray is intentionally an older version of caffeine, the last one supporting the traditional systray rather than appindicator. If you are looking for a newer version have a look at: Unflagging.

donniezazen commented on 2014-01-02 08:27 (UTC) Caffeine 2.5 released

PhotonX commented on 2013-12-20 14:31 (UTC)

Whoever is using this, please vote for this bug: :)