I ran it uncommented in the terminal, and it worked perfectly. Then I saved it, per your instructions, rebooted -- but no log file was created. And the percentage is, again, stuck at what it was when I ran it in the terminal.Koentje wrote: ⤴Wed Feb 14, 2024 6:48 pm Ok, thanks! That made some things more clear.. you have another path to your AC device then my laptop. And your battery power has decimals indeed.. you can uncomment a line to get rid of the decimals.
The script now checks for the right path to BAT0 and AC. And it logs more stuff, your environment, when started, some upower things and when it goes into a loop waiting for the screensaver.. etc.
Call itss-battstat3.sh
and place it in your~/bin
folder. Then change the autostart application to point to the correct script. Logout and login again and it now has created a ~/bin/ss-battstat.log.
There must be something going wrong when I save the script. Is there something to consider that I'm not aware of? I'm using the standard text editor (xed).