-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Automatic warmth #3825
Comments
People who are subscribed still receive e-mails but new issues are much easier to track. When you take a quick look at the issues you check what open issues exist for Kobo (for example). You don't wonder which closed issues might've received comments. However, please do refer back to the issue number with Pinging @dengste |
Regarding the comments:
|
Or just stick them underneath each other? :-) |
or trim them. you don't need to repeat warmth under the warmth section (or just auto for automatic) ; and you could say max for maximum. There is a similar thing in the configure menu : your "save settings" overflows the button ; but since we are in the settings menu just saying "save" is enough, i think (I made this change on my ka1) |
Thanks for your answer @dengste!
Yeah, 2 or 3 hours would be fine.
No, unless there is something more I must do (except for ticking the Automatic warmth box). Every time I exit KOReader the Automatic warmth box becomes unticked. |
There could be setting below setting for achieving maximum warmth, something like: Hold it for: and there you set for how long you hold maximum value. |
That's weird. Have you modified KOBO_LIGHT_ON_START by any chance? |
No I don't think so. In what way? In the "Advanced settings" I have set KOBO_LIGHT_ON_START to 20. Nothing else. |
Well, if you set KOBO_LIGHT_ON_START to 20, koreader does not read the frontlightsettings at all but simply sets intensity to 20. This also applies to the warmth settings, including automatic warmth, so that's why your settings do not stick. If you set it back to -2 (which means syncing with Nickle) it should work. Maybe we should change that. This whole KOBO_LIGHT_ON_START thingy is a bit confusing. |
You are right. Now it sticks. Thanks for your time and help! |
I had some thoughts about that in #3103 - but forgot about them (as all the frontlight bugs had finally been solved, I figured it was best to not touch that anymore) |
'Save settings' was too large a string for larger fonts, so replace with just 'Save' (issue koreader#3825).
Reduce text size because for larger fonts this would not fit into widget's size (issue koreader#3825).
…3825) Keep max. warmth for 2h after bedtime, and then start reducing for 2h, so that 4h after bedtime we have reached zero warmth.
'Save settings' was too large a string for larger fonts, so replace with just 'Save' (issue #3825).
Reduce text size because for larger fonts this would not fit into widget's size (issue #3825).
Keep max. warmth for 2h after bedtime, and then start reducing for 2h, so that 4h after bedtime we have reached zero warmth.
I've reduced the text in the widget, and max. warmth is now kept for 2h after bedtime. What's left is to make this configurable, but first I want to work on light sensor support. |
For light sensor, if reasonably possible it would be preferable to generalize the currently Kindle-specific https://github.com/koreader/koreader/blob/7a28c7d7aa5a38e6f3acb5ee9246017c96e8d8ff/plugins/autofrontlight.koplugin/main.lua |
At a glance the most important part of that is:
Which leads to: koreader/frontend/device/kindle/device.lua Lines 141 to 154 in 7a28c7d
Doesn't look hard in principle, depending a bit on what the Kobo in question outputs. Which Kobos have light sensors? The One and the H2Ov2? |
It seems the Kindle outputs 16bit unsigned, and the Kobo does as well. There are two issues with the current "ambientBrightnessLevel": The output value in [0 4] is not granular enough. It is OK for deciding whether to turn frontlight on/off (which is what the autofrontlight plugin does), but not for setting the frontlight level depending on the ambient brightness. The second issue is that the Kobo has two sensors: one for visible light (sensitivity peaks around 450nm) and one for infrared (around 850nm). The latter can be used to detect sunlight, as artificial light usually does not emit as much IR as the sun. I think in Nickel, turning frontlight on/off is done solely depending on IR light (the option says "turn off in bright sunlight"), whereas the frontlight level is set depending on visible light (I think simply "the more, the brighter"). |
Regardless, that's ground for a modification I'd say, not for something wholly separate. ;-)
Ah, very interesting. Afaik my phone only has one brightness level sensor, for visible light. Yes, your proposal makes sense. |
Cross ref #5372 |
Implemented by #8129. |
I'm not sure how Github works. Are "closed" threads still active (people reading them)? Threads dealing with natural light and automatic setting were closed, so I open a new one here. :)
Anyway I want to add some comments about this new great feature by dengste.
When maximum is reached it should stay there for several hours. Even if your normal bedtime is for example 23.00, some days you just want to continue reading. :-)
For inspiration: In nickel, no matter what your chosen bedtime is, the light starts to go back to daylight around 4 a.m and is finished around 8.00 a.m.
There is no way to save the setting to always have the automatic warmth enabled.
Maybe (or maybe not) it would be a good thing to allow the users to choose their prefered maximum level, i.e. if they would prefer something lower than 100%.
Some fixes are needed. From my Kobo Aura One:
The text was updated successfully, but these errors were encountered: