-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Tolino Vision 6 Illumination Control #8429
Comments
It is a known issue for all e-ink android readers. See #5364 (a bit old, some stuff changed a lot). Resumed in: If your device use non standard lights then you need to workaround yourself. We can't help without the device. Saying that: it should work with I'm not very fan of keeping a separate ticket for each device. I think we can push a I'll see if I get a couple of free hours to play with it |
@DominikSchmidbauer Thank you for your feedback. @pazos The Vision 6 seems to use Android 8.1 (all the other Tolinos have 4.4). The tolino reading app seems to be the same except the version number 15.1.0 vs 14.2.0. To your suggestion not to have a ticket for every device: +1 |
@DominikSchmidbauer Just a suggestion if @pazos does not find a solution (I strongly believe he will!). Your name sounds familiar to me. If you live in Tyrol ("Unterland"), we could meet in person. You could lend me your device for a few days and we get that. |
Today I checked again and suddenly the brightness controller was working. The rest looks quite good so far, but I haven't checked the coverimage so far, it's just the standard tolino image. @zwim Yes, indeed. How do you know me? |
@DominikSchmidbauer : I don't know you personally, but an other Schmidbauer. |
Test activity updated with both epd and light tests. We won't keep tickets opened for each one of the unsupported devices/drivers. If somebody with the device wants to write a driver for it please follow instructions in #8482:
|
I looked at my device and this is the data (With firmware 15.2.0, unrooted): Manufacturer: rakuten kobo inc The existing driver does not work out of the box, because the backlight devices have different names and for Android APIs Koreader is missing the necessary settings permissions. |
A new driver would be great.
ADB shell has different SELinux context than unprivilegied apps. You can do a lot of things on adb shell that you won't be able to do in user apps. Hopefully you won't need to write to sysfs nodes directly and just find the call used by the Tolino app that does that and the arguments needed for that call. If they implemented it using a Settings wrapper you might need to get runtime permissions for If they wanted to avoid 3rd party apps to use that feature (and implemented it well) it won't be possible without root. AFAIK nobody cared about restricting it in the first place. |
FWIW these are the permissions granted for the shell https://github.com/aosp-mirror/platform_frameworks_base/blob/master/packages/Shell/AndroidManifest.xml#L25 😭 |
Heh, are any missing? 🤣 |
I don't understand the problem here. The system settings for the frontlight are screen_brightness and screen_brightness_color. Only a runtime permission is needed to change these settings. |
The problem is always the same. The maintainer (me) doesn't have the specific device and relies on actual users of the device to add support for it. Add support doesn't mean write the code yourself but document how the stuff works on that specific device (which you just did) and the parameters used as min/max brightness/warmth. Ofc writting yourself a new controller and testing how it works makes my job much easier. In that specific case it's a bit harder: the light controller interface exposes a boolean method But if you get a new driver that works fine once you granted |
@pazos Do you have a hint on how to find out which calls the stock firmware is doing? |
Issue still persists. Device is shown as unknown in the compatibilty tester |
I have done further research: To change: There are also symlinks to this device somewhere, but I don't exactly know where. Probably better use those to access it. Is this only a define somewhere that tells that the device is unknown? private const val ACTUAL_BRIGHTNESS_FILE = "/sys/class/backlight/mxc_msp430_fl.0/actual_brightness" is of course slightly wrong for this reader. (0.0, not fl.0) I am more than willing to test it, so in where and how to define the reader as known, and where can I see which driver it's trying to use? The tester says unknown device, tolino NTX or root does not work there. But I don't know if the App even tries in the background. I doubt, because at least it should work with the color temp. Edit: more Testing: the ntx_io variant does NOT seem to work without root on this device. The file can only be accessed with root |
I looked into how the stock reader does it and it works exactly as described in koreader/android-luajit-launcher#351 (comment) Looking at the source of |
Illumination and light color can not be adjusted via the KOreader slider on the new Tolino Vision 6
The text was updated successfully, but these errors were encountered: