AutoWarmth: add option to toggle/set frontlight on day/night#9337
Conversation
7494a8b to
d7601d0
Compare
|
Strange, I got a crash. Can not reproduce :/ crash.log |
9055fcb to
297d668
Compare
|
The line numbers in the stacktrace look wonky as hell, are you running a patched kobo powerd? |
|
Yes, I am running with #8934, which is unrelated to this PR. |
|
I think I know what the cause of the crash was. Most probably I had run an outdated code. If I remove those two lines which where corrected by the last commit, I can reproduce the crash. In the current state of this PR, I can not reproduce any crashes. |
|
From my side this is ready. |
|
Any objections to merge this? |
|
Sounds good to me, but I barely glanced at it ;). |
|
Hi. I have tried this plugin and I think the line 75 should be instead of Regards |
|
@carmelocotonto Thank you. |
I was experimenting with a solution to dim the frontlight smoothly on sun set/rise.
Too long to explain: This does not work, as I don't want to find out how the intensity of devices maps to brightness felt by us humans. (maybe or next year, or the year after or in 2525).
So, this solution stupidly turns the frontlight on (toggle) between sunset and sunrise, and turns the frontlight off (toggle) during daytime, once (per day). The user can override the selection of the plugin, but on the next day/night change AutoWarmth toggles again (if necessary).
This should also work with autosuspend (which I really, really love from the users view, but from the developers point :/)
Draft by now, as some more test will follow, so no need to review as long this PR is in draft state.
But as always ( :) ), improvements on wording (menu) are welcomed.
This change is