WhyNotHugo / caffeine-ng

⚠ This project has migrated to codeberg.org
https://codeberg.org/WhyNotHugo/caffeine-ng
GNU General Public License v3.0
180 stars 21 forks source link

Give a more meaningfull reason of why the session is being inhibited #78

Closed carlocastoldi closed 2 years ago

carlocastoldi commented 3 years ago

https://github.com/caffeine-ng/caffeine-ng/blob/1e5febf86a792edd5627f5e50e048be0848bd185/caffeine/inhibitors.py#L26

As of now the reason caffeine-ng gives the DEs for why the session should not be suspended is just "Inhibited via libcaffeine". I suggest to get a text based on the enabled triggers, shown based on a given priority such as:

  1. manually disabled
  2. whitelisted program detected ()
  3. fullscreen program detected ()
  4. audio output detected ()
  5. audio recording detected ()
WhyNotHugo commented 3 years ago

Is this reason displayed anywhere?

carlocastoldi commented 3 years ago

it is for me on KDE and, afaik, on gnome it is displayed when you try to log off. Since it's possible to know, it would be nice to know why my system is not being suspended without having to restart caffeine in --verbose mode

immagine

jarrard commented 2 years ago

I think my libcaffeine issue fixed itself after a reboot or update, or something.

Only shows up now when firefox plays audio which is correct behavior. And I think xscreensaver works accordingly.

There is a minor suspend issue with steam interface but that is being handled over on steamforlinux github.

WhyNotHugo commented 2 years ago

This project has moved to codeberg.

Follow-up for this issue is at https://codeberg.org/WhyNotHugo/caffeine-ng/issues/78