Option to start maintenance tasks when charging

asked 2015-12-21 16:14:28 +0200

lakutalo gravatar image

updated 2015-12-28 15:29:31 +0200

When the charger cable is plugged in, several maintenance tasks (like btrfs-balancer, tracker, backup and the like) could be automatically started to run in background.

I could think of an additional dialogue, in addition to the existing ones (developer mode, pc connection, charge only), or a settings entry.

[A cool feature could be to add a custom script for custom jobs (rsync or tar for backups).]

Of course, you can always do that by running those tasks as devel-su from CLI. But from an average user's point of view it would be much more comfortable without that kind of interaction, especially for users not so experienced with CLI or no wish for activating developer mode at all.

edit retag flag offensive close delete

Comments

1

good idea, you could use situations to trigger the start

pawel ( 2015-12-21 16:20:49 +0200 )edit
1

Could be an alternative, true. Personally I've given up using Situations because of consumption and lack of use cases in my personal situation. :) And IMHO a native solution always stands above one you only get by utilising additional 3rd party SW.

lakutalo ( 2015-12-21 16:26:41 +0200 )edit
5

I'd like to know how to make the charging detector thingy trigger custom commands and stuff. That way we could have stuff like this without daemons or other battery-draining-stuff :)

jollailija ( 2015-12-21 18:56:54 +0200 )edit
1

Good idea, I too so there is only doing a backup when the charger cable is plugged and location Home :)

Jfish ( 2015-12-22 05:28:57 +0200 )edit

@jollailija you could try to start a script when one of the dialog buttons is tapped, see /usr/share/lipstick-jolla-home-qt5/connectivity/USBModeSelector.qml. I've got no energy for experiments right now ;)

lakutalo ( 2015-12-29 17:18:21 +0200 )edit