-
Notifications
You must be signed in to change notification settings - Fork 100
Adding better light controls for Tolino Vision 6 based on PR #520 #568
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
Conversation
…ls for the B300 Tolinos based off of koreader/pull/520
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing jumps out to me, so if it's tested. ;-)
Forgot to add the Shine 4 in the enum id.
Forgot to add the Shine 4's ID under enum, whoops |
app/src/main/java/org/koreader/launcher/device/lights/TolinoB300Controller.kt
Outdated
Show resolved
Hide resolved
Resolved all the warnings from Codacy as well as golfing down the warmth change workaround as suggested, and tested on my personal Vision 6, everything is working as expected. Aside from Vision 6 having inverted warmth (which is mentioned in the first message) I believe this is good to go? And in theory, the Shine 4 support changes should work, but seeing as this is my first time actually writing something meaningful I may have missed something. Should I post about this on the MobileRead forum to gather more attention? |
Since is tested only for Vision 6 then add only Vision 6 in the new driver should be good to go. |
…inoB300Controller mapping.
I have removed all of the Shine 4's support and removed the Epos 3 mapping. I'll see if I can get some testers for those devices but in the meantime this should satisfy all? |
Hi, a small update to all. Waldy has offered to test the support for Shine 4 and Epos 3 based on commit Epos 3: Fully supported, everything works correctly including correct warmth slider orientation. (I personally expected this as PR #520, which was made for the Epos 3, of which the code was largely taken from, had it working.) Shine 4: Light control works, has the same inverted warmth slider as the Vision 6. Waiting for the word about the E-ink controller support. I'm going to be looking into a way to fix the warmth slider for Shine 4 and Vision 6. Hopefully with this work, these B300 Tolinos can finally get the full support that previous Tolinos enjoyed. |
I lifted the light control additions from #520, only slightly dusted it up to make it work with the current codebase. All credits to @dboleslawski .
This comes with some caveats:
3. I do not have a Shine 4 personally to test, but I'm operating under the assumption that it will work just fine seeing how architecturally similar the Epos3/Vision6/Shine4 all are. Testers would be crucial here.Additionally, I've gone ahead and added the missing info for the Tolino Shine 4, using the information from this comment koreader/koreader#8482 (comment) as well as this issue: #532 .Seeing how the Epos 3 and Vision 6 already has proper e-ink support using NGL4 EPD (with some caveats that I'll get into), I feel like it's fair to add support to the Shine 4 as well. I'm not entirely sure if I've completely added everything though, so would appreciate extra eyes as I'm completely new to this and this is my first time ever really contributing to anything :lul:Now, I don't know why
persist.mode.global
gets set to 8000 when the official Tolino app is launched, but as I mentioned here in #532 (comment), using the AOSP settings app can reliably set it back to 0.I also recently observed said prop being set to
1800010
, I have no clue how that happened and it's still something I'm looking into. It seems to have enabled the "A2" mode of the screen as contrast was quite poor and has a lot of ghosting, but responded very quickly.This change is