transactional-update.service goes into standby instead of failing to start if laptop isn't plugged in #4
Replies: 2 comments 3 replies
-
|
I realized that if there is a system where it's checking to see if the laptop is charging it will probably waste more battery over the course of a day than just allowing updates on battery life. So it will have to be done in such way where once AC power is in it tells the service to start an update. Basically instead of the service going "hey are you plugged in yet?" every few minutes, something else tells the service "I'm plugged in now, if you were waiting for that you can start updating" That way there won't be unnecessary battery drain. |
Beta Was this translation helpful? Give feedback.
-
|
Maybe the I THINK if we moved
Now, I'm not sure if it'll magically trigger when you plug it in..I'm not sure if the But at least it would stop the .service triggering and failing Anyone feels like experimenting with this to take a look? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently if transactional-update.service gets triggered and the laptop isn't plugged in the service will just fail. The problem with this is the service gets triggered between 12:00 - 02:00 AM when most users are sleeping. So when they wake up their device in the morning and it's not plugged in the service auto fails.
Some people don't plug in their devices before bed. Primary reason is to save preserve battery health.
Below I'll provide a a hypothetical.
User schedule:
If the user lives on this schedule consistently the laptop will never auto update.
So instead of outright failing, the timer should get triggered like normal and if the services sees the laptop is unplugged it goes into standby waiting for a charger to be plugged in to update Aeon.
Currently (at least to my knowledge) systemd doesn't have a system to detect if the laptop is charging but tik does. Is it possible to take the charging detection system from tik and combine it with the systemd service?
Beta Was this translation helpful? Give feedback.
All reactions