-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix battery name add logging and uninstall #5
base: main
Are you sure you want to change the base?
Fix battery name add logging and uninstall #5
Commits on Aug 19, 2023
-
Use battery name generated from glob pattern instaed of hard coding t…
…he name. Previously, the battery name was hard-coded to BAT1 which mightn't be the battery designation for every device, so using the battery name generated from glob pattern while opening the file charge_full. Additionally, it can be further improved to collect separate data for each batteries in case of multiple batteries (if required).
Configuration menu - View commit details
-
Copy full SHA for 169df02 - Browse repository at this point
Copy the full SHA 169df02View commit details -
Copy the content of the local git repo for insallation.
- For development purposes, it mightn't be feasible to get root access to edit the files inside of /opt/batterylog which is the folder of installation to which every file got moved prior to this. So, instead of moving the whole repository keeping a local copy as to make it easier for development. - Also adding log messages for installation as to debug installation errors (if any). - Adding .sleep to the extension of batterylog script used pior to suspend and after resuming to keep it consistent with other files in /usr/lib/systemd/system-sleep/.
Configuration menu - View commit details
-
Copy full SHA for aaf915c - Browse repository at this point
Copy the full SHA aaf915cView commit details -
Add additional logging to make it easier to know if scripts are runni…
…ng properly. - Use string 'pre' and 'post' for comparison to remove ambiguity in the comparison.
Configuration menu - View commit details
-
Copy full SHA for 41617ba - Browse repository at this point
Copy the full SHA 41617baView commit details -
Configuration menu - View commit details
-
Copy full SHA for e73a5dc - Browse repository at this point
Copy the full SHA e73a5dcView commit details -
Add UNINSTALL.sh script for removing the added files.
Prior to this, user wouldn't totally know the location of added files as separate files are added to different locations, so to make it easier to properly remove the added files and restore the system to prior state, adding UNINSTALL.sh script.
Configuration menu - View commit details
-
Copy full SHA for fcef347 - Browse repository at this point
Copy the full SHA fcef347View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ae7bba - Browse repository at this point
Copy the full SHA 5ae7bbaView commit details