Bug ID | 1022824 |
---|---|
Summary | Add do_not_run_on_battery option in /etc/btrfsmaintenance |
Classification | openSUSE |
Product | openSUSE Distribution |
Version | Leap 42.2 |
Hardware | All |
OS | Other |
Status | NEW |
Severity | Enhancement |
Priority | P5 - None |
Component | Basesystem |
Assignee | bnc-team-screening@forge.provo.novell.com |
Reporter | spam.catcher@t-online.de |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
Thanks to https://bugzilla.opensuse.org/show_bug.cgi?id=983925 the cron jobs now also run on battery. However, the fstrim cron job considerably shortens battery life. Therefore, please add an option in /etc/btrfsmaintenace that prevents fstrim from running while the computer runs on battery. This could be achieved by adding to /etc/cron.weekly/btrfs-trim the line (command -v on_ac_power && on_ac_power && $do_not_run_on_battery ) || exit 0