qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
26.16k stars 3.84k forks source link

Add options for altering no-sleep behavior when on battery power #19669

Open Nerva72 opened 9 months ago

Nerva72 commented 9 months ago

Suggestion

Currently when I look at the options, under Behavior > Power Management, there are check-marks to inhibit system sleep when torrents are downloading and/or seeding, but these are blanket options with no regard for whether the system is plugged-in or running off the battery. I would like options/configurations to be added that, for example, allow me to set it to suspend sleep entirely when downloading torrents while also only suspending sleep while plugged in when torrents are seeding (but not suspend sleep when on seeding on battery power).

Use case

In the past I have only used qBittorrent on desktop machines, so I set it to suspend sleep when I was downloading torrents or seeding. However, now I've installed it on a laptop which I probably use 50/50 plugged-in vs. on-battery, and I don't want to drain the battery by preventing sleep while it is running on-battery, particularly if I'm only seeding old torrents. So, added configurability for the suspend-sleep settings would be beneficial.

Extra info/examples/attachments

No response

luzpaz commented 9 months ago

Please offer a more detailed proposal on what your vision is for this.
Have you seen this feature in other clients ?