Skip to content

SharkPlush/Aeon-AC-update-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DISCLAIMER: This isn't affilated with Aeon Desktop in anyway! If you install this don't expect any help from the Aeon community!

NOTE: This is mostly untested, so if you are willing to test or better yet provide fixes / optimizations feel free to do so.

A wrapper for transactional_update.

This script aims to solve this problem: AeonDesktop/Project#4

How the wrapper works:

  • Once the transactional-update.service gets triggered it will execute /usr/sbin/transactional-update, this wrapper replace that with /usr/local/ac-detect
  • The service gets triggered and executes the wrapper.
  1. The wrapper check if the device you have is a mobile device or a PC.
  2. If its a PC the wrapper will just update your PC.
  3. If its a mobile device the wrapper check if its on AC power currently. If it is it will trigger an update.
  4. If the mobile device is off AC power then it will wait for AC power in the background, once plugged in an update will be triggered.
  • Laptops with removed batteries will be treated as always plugged in and update without issues, if you do put a battery into the laptop the script will adapt to that and function as intended.

  • The wrapper technically doesn't need PC detection since it only checks for AC power and obviously if its able to check then the PC is plugged in, BUT I don't know how UPS batteries work and I think there is a chance that it can function like a laptop would where the battery is keeping the PC on without the AC status being true.

Main features:

  • PC detection.
  • No polling.
  • Multi-battery laptop support!
  • Multi-AC adapter support.

To install run:

aeon@localhost:~> sudo ./installer.sh

To uninstall run:

aeon@localhost:~> sudo ./uninstaller.sh

As the sole copyright holder, I hereby permanently and irrevocably waive the requirements in Section 3(a)(1)(A)(i) (attribution/credit) and Section 3(a)(1)(B) (indication of modifications) of the CC BY-NC 4.0 license for this work. You are not required to credit me or list any changes, although both are appreciated. All other terms, including the NonCommercial restriction (no commercial use allowed), remain in full effect.

Shield: CC BY-NC 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.

CC BY-NC 4.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages