elementary / switchboard-plug-power

Switchboard Power Plug
GNU General Public License v2.0
19 stars 13 forks source link

If "suspend when inactive" is enabled, system goes to sleep despite io.elementary.files copying files. #262

Open deafboy opened 8 months ago

deafboy commented 8 months ago

What Happened?

While copying files from the phone over MTP, using io.elementary.files, system went to sleep due to inactivity.

Steps to Reproduce

  1. Set "Suspend when inactive" timer
  2. Connect an Android device
  3. Start a large copy job from the phone to a home folder
  4. See it go to sleep in the middle of the job

Expected Behavior

Long running tasks should count as activity.

OS Version

7.x (Horus)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

HP EliteBook 8460p

jeremypw commented 8 months ago

Looks like Files does try to inhibit going to sleep using Gtk.Application.inhibit during file operations so maybe the system is not properly honoring that interface?