04-21-2023, 09:04 AM | #1 |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Front light controls don't work on Boox Leaf
KOReader frontlight controls don't seem to work on Boox Leaf. Does anyone know if there is a fix?
|
04-21-2023, 04:18 PM | #2 |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
|
Advert | |
|
04-21-2023, 04:22 PM | #3 | |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Quote:
I can't do this test because I don't have Developer options under that menu. |
|
04-21-2023, 04:23 PM | #4 |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
FM means File Manager, not within a document.
|
04-21-2023, 04:29 PM | #5 |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Thank you. I am really confused now because if I use "test lights" it can control them just fine. If I "test e-ink" it works if it's set to Onyx/Qualcomm. At the top it says "device already supported". However the frontlight control gestures don't affect the light at all. What should I do?
|
Advert | |
|
04-21-2023, 05:05 PM | #6 |
Addict
Posts: 317
Karma: 1830473
Join Date: Mar 2013
Location: Spain
Device: Kindle, Kobo, PocketBook, Tolino, Onyx Boox, Bigme.
|
(Deleted).
Last edited by cellaris; 04-21-2023 at 05:08 PM. |
04-21-2023, 05:12 PM | #7 |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
So the frontlight widget works as is but gestures don't work?
It probably means the touch events near the border are eaten by some system thingy and they're never forwarded to the application. No idea if it can be fixed but I'm fairly sure that cannot be fixed at the application level (maybe workarounded by making the left zone wider) You might get some luck asking in the onyx subforum. Hopefully there's a toggable setting somewhere. |
04-21-2023, 05:19 PM | #8 | |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Quote:
|
|
04-22-2023, 05:24 AM | #9 | |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
"Supported" means that the strings used to identify the device are already in the whitelist paired with one or more drivers. Just below the "supported" you can see which drivers it uses for eink and lights. In your case is (from https://github.com/koreader/koreader...ent-1518263493) Code:
04-21 21:24:10.792 I/EPD ( 4363): Using Onyx/Qualcomm driver 04-21 21:24:10.792 I/Lights ( 4363): Using Generic driver The driver is missing from your repport but I'm going to assume is "something Onyx" or "something Qualcomm" |
|
04-22-2023, 05:46 AM | #10 | |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Quote:
So do I have to wait for an update to KOReader that will fix the frontlight controls for this device? Or is there a way to make it use the appropriate driver? Sorry I'm new to all this. |
|
04-24-2023, 05:41 PM | #11 | |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
You'll need to wait a few days. There's no other way of forcing a driver. The link in my first answer contains hints for people to contribute patches, is not that hard and it will make the whole process faster. Is not mandatory if you can wait |
|
04-25-2023, 09:17 AM | #12 | |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Quote:
I am not a developer. But I looked at android-luajit-launcher commits for a bit. It seems like maybe in app/src/main/java/org/koreader/launcher/device/LightsFactory.kt the line 27 Code:
DeviceInfo.LightsDevice.ONYX_LEAF, But I am not sure and I have no way to test. Does this seem right to you? If it's that simple I would be happy to submit a pull request. Otherwise I will wait for someone more knowledgeable to do it. |
|
04-25-2023, 12:35 PM | #13 | |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Quote:
Generic is the default light driver that's assigned to every android device unless overriden by specific device definitions. You need to add your device name to the lightsMap and assing the proper controller in LightsFactory (onyx warmth). Pretty much like in https://github.com/koreader/android-...ca6e664cea40a4, except you don't need to touch the device definition & match because it is already there. Please give me a few days. |
|
04-25-2023, 12:37 PM | #14 | |
Connoisseur
Posts: 95
Karma: 28346
Join Date: Mar 2023
Device: Kobo Libra 2, Boox Leaf 7"
|
Quote:
|
|
04-25-2023, 05:08 PM | #15 |
cosiñeiro
Posts: 1,325
Karma: 2200073
Join Date: Apr 2014
Device: BQ Cervantes 4
|
Actually my bad as I forgot to add the device to the proper map. All the rest was already there.
It should work with just: https://github.com/koreader/android-...pull/414/files |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Libra Slide on the left to control front-light - How to make it work the way it should? | Almamida | Kobo Reader | 16 | 03-02-2021 08:43 PM |
front light control is not working in kitkat 4.4 on Onyx Boox i86 Plus | Ramana | Onyx Boox | 0 | 12-19-2018 03:57 AM |
Updated N96ML to Android 4.4 - Front light doesn't work?! | stardest | Onyx Boox | 2 | 10-20-2018 12:29 PM |
Front light controls for H2O? | Techno | KOReader | 7 | 05-06-2017 04:11 AM |
ONYX BOOX N96 ML Front Light verses Hanvon E930 | teotjunk | Which one should I buy? | 9 | 12-12-2016 02:23 AM |