I believe using sed would work, with a caveat.
I used a cp command to test the light level. Waking from sleep, it went back to the old light value. using cp followed by a rescan_books_full worked (the light level was right waking from sleep). The rescan caused a delay , maybe 3 seconds.
So I have the choice, for my use case, of having a couple second delay when I change night/day reading mode, or having to do 2 taps when waking from sleep. I decided to the use the latter.
Thank you everyone for the help.
|