qunxyz / plasma-applet-caffeine-plus

Disable screensaver and auto suspend
GNU General Public License v2.0
35 stars 5 forks source link

How does it work? #6

Open bipox opened 5 years ago

bipox commented 5 years ago

It's installed and shows as a tray icon, white cup full. When I click on it all my open windows are there, with the same full cup near each window. If I inhibit suspend globally the cup goes green.

Whatever I do suspend is always inhibited. I don't know how to get an empty cup, even with all windows closed.

qunxyz commented 5 years ago

seems that might be a bug. could you reproduce it after re-login?

bipox commented 5 years ago

I have logged in and out and rebooted a few times it's always the same.

I should add I have version 1.3-4 installed through AUR (don't know if that matters or not). I'm on Manjaro KDE.

qunxyz commented 5 years ago

which version, 17.1.12? have you installed other apps like caffeine?

bipox commented 5 years ago

Yes, Manjaro 17.1.12. Kernel 4.18.9-1-MANJARO

I don't think I have installed any similar app, no.

Can I create a log and send it, or anything else? You have to tell me how though.

qunxyz commented 5 years ago

there's no log for caffeine-plus, maybe next version. but you can check "Battery and Brightness", what is under "Enable Power Management", when caffeine cup full

bipox commented 5 years ago

I'm sorry but even when switching to english I can't find something called "enable power management". I have found posts mentioning it but it's just not there in my settings

https://i.imgur.com/TfYoDEs.png

also caffeine cup is always full that's the issue^^

bipox commented 5 years ago

got it

it says :

102760457-userApps and 10 other applications are currently suppressing power management

it switches between 10 and 11 "other applications"

qunxyz commented 5 years ago

weird. could you removed caffeine and check that again?

bipox commented 5 years ago

After uninstall and reboot there is only an informative popup about what power management is.

qunxyz commented 5 years ago

try disable other widgets, the cup should be empty normally, you should find out which widget might cause caffeine broken. run below script to save your time after disabled widget kquitapp5 plasmashell && plasmashell &

bipox commented 5 years ago

I don't really use widgets. I disabled most of the task bar, problem still there.

kupiqu commented 4 years ago

There seems to be a bug in caffeine-plus.cpp line 449, in particular in this conditional:

( file_name.indexOf(applicationName, 0) >= 0 )

I removed it and now I only have some false negatives (no inhibition for some apps I'd like to; I don't know yet how to fix this), but at least I avoid 100% false positives (all my applications that weren't in the list inhibited power saving before, and now they don't)

EDIT: You can take a look at my fork if you want to

qunxyz commented 4 years ago

for current version, it might mismatched some programs. I developed a new version might work well, but I haven't submitted it to github yet

kupiqu commented 4 years ago

for current version, it might mismatched some programs. I developed a new version might work well, but I haven't submitted it to github yet

Well, unfortunately it matched all my applications... Looking forward for your new version