throttled
throttled copied to clipboard
We should try to reduce dependencies
The script has quite some dependencies beside python3. I am quite sure we could get rid of some by getting the information a bit differently.
This would be nice, but it will also require some re-design I think.
I can get rid of psutil (and I should) but the main problem is glib that I use to receive external events so to avoid polling. systemd does have the sleep target so we can get a signal when the system is entering/exiting suspend states, but it does not have an AC/BAT target. We might use an udev rule for this but it's quite an hack.
Just dropped psutil.