If all else fails...
You need to find out what the "correct" values should be, then you can copy the files to a safe location.
The script could then copy the "safe" versions overwriting the /sys/... files.
You could set up (as root) a cron job which would run your script to do this.
Assuming it takes quite a while to detect a battery low condition, you could set the repeat interval to some sensible number of minutes?
|