gamemode icon indicating copy to clipboard operation
gamemode copied to clipboard

Remain in background when not needed anymore

Open seb128 opened this issue 5 years ago • 2 comments

Using 1.5.1 on current Ubuntu

  • start a GNOME session, check that gamemode isn't started
  • start a game or the helper script, the service is dbus activated
  • exit the progam, wait, the service stays active

It would be nice if the service would auto-exit when not needed anymore

seb128 avatar Apr 15 '20 06:04 seb128

The daemon itself should probably have some idle timeout... It probably won't work well with systemd StopWhenUnneeded= (if that works at all for dbus activation) as it may quit midair in a game, either leaving optimizations in place or turning them off.

I'm not sure if we'd need to prevent any dbus activation races wihen implementing an idle timeout. Does it really hurt so much to leave it running? It just sits idle in the background and hardly uses any resources.

kakra avatar Apr 24 '20 07:04 kakra

On the resources note, if it measures at any impactful amount of background resources when idle then I'd consider that the bug to be fixed. I purposely made this thing as low profile as possible, so if anything slipped through, let's fix it.

mdiluz avatar Apr 24 '20 07:04 mdiluz