gnome-shell-extension-caffeine icon indicating copy to clipboard operation
gnome-shell-extension-caffeine copied to clipboard

Caffeine losing state after few minutes

Open Vinibo opened this issue 8 years ago • 10 comments

I've updated the extension through Gnome Extensions (https://extensions.gnome.org/extension/517/caffeine/) and since the last update, Ceffeine is resetting its state after few minutes, even if the computer is under use.

The result is that even if I click on the extension to keep my screen on, after 5 minutes the screen is shutdowned.

I've observed this behavior on two different machines, a laptop and a desktop. Both are running the latest stable Gnome version (3.18.2) on Archlinux.

Vinibo avatar Mar 10 '16 02:03 Vinibo

Okay I did test it and it took 30 minutes to be resetted. All the time I was doing something with the computer.

Vinibo avatar Mar 10 '16 03:03 Vinibo

There is no errors reported in Looking Glass.

Vinibo avatar Mar 10 '16 03:03 Vinibo

I'm not able to reproduce your error, running Fedora 23 with Gnome 3.18.4.

Currently, caffeine does not store the state anyhow. That means, if caffeine is restarted it will be disabled. Maybe something causes caffeine (or even gnome) to restart?

eljenso avatar Mar 11 '16 15:03 eljenso

Maybe, I can only confirm you that I'm not doing an Alt+F2, r :) Is there anything I can do to give you more information?

Vinibo avatar Mar 11 '16 22:03 Vinibo

Maybe check if gnome-session-manager doesn't restart for some reason.

Also do you have configured some application to activate caffeine automatically ?

eonpatapon avatar Mar 12 '16 00:03 eonpatapon

I don't use apps/scripts to interact with Caffeine but it's not the single extension I use. Here are all the active extensions on my computers : -AlternateTab -BackSlide -Dash to Dock -Launch new instance -Media player indicator -OpenWeather -Place Status Indicator -Removable Drive Menu

Now that I goes through the list, BackSlide is changing my wallpaper every 30 minutes and it was "hacked" to work on Gnome 3.18 (not simply with metadata.json). I will investigate on that.

On the gnome-session-manager lead, is there a log or something where this information could be? I checked dmesg and Xorg logs but nothing really useful showed up.

Vinibo avatar Mar 12 '16 03:03 Vinibo

Sorry for the delayed response but as far as I tested, it happens with or without BackSlide activated.

Maybe if I could run an older version, it might help to find the issue.

Vinibo avatar Mar 16 '16 21:03 Vinibo

To run an older version, you must first uninstall your current installation of the plugin. Then follow the git installation instructions in the readme (here).

After you did this, you run the following command in that folder git reset --hard 801064d

This will reset your local installation to the version from November.

eljenso avatar Mar 18 '16 15:03 eljenso

Has anyone been able to reproduce this?

jonafato avatar Nov 29 '19 19:11 jonafato

Since nobody has been able to reproduce this in the last ~7 years, this should probably be closed. If anyone can reproduce this on the latest Caffeine version with GNOME 43 / 44, let me know :)

stuarthayhurst avatar May 08 '23 23:05 stuarthayhurst