Skip to content

systemd SystemUpdates trigger: ConditionACPower can cause no checking for updates for a long time #236

Description

@leolost2605

What Happened?

Checking for updates is triggered once a day by a systemd timer that starts the io.elementary.settings-daemon.system-update.service. However the service has the condition ACPower=true. This means if you happen to be not plugged in when the timer runs you have to wait another day for a new chance to check for updates.

I usually only charge my laptop when it's empty so by default it's not plugged in. This means that my last update check was 8 days ago and I think that even was a manual one.

Steps to Reproduce

  1. run elementary OS on a laptop
  2. only charge it when it's empty so don't have it plugged in by default
  3. observe no updates check

Expected Behavior

I think for checking for updates we can just remove ConditionACPower=true. It doesn't run very often so it won't be too straining and nothing bad happens when you run out of battery. The optimal solution would of course be a way to have systemd automatically start the service once the condition becomes met if it failed to start because of it. @ryonakano any idea if that's possible?

OS Version

8.x (Circe)

OS Architecture

amd64 (on most hardwares)

Session Type

Secure Session (Wayland, This is the default)

Software Version

Early Access or Compiled from git

Log Output

Hardware Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status
    Needs Discussion

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions