![]() |
#106 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 27
Karma: 17282
Join Date: Oct 2011
Device: kobo touch
|
ok thanks yoq
![]() |
![]() |
![]() |
![]() |
#107 | |
ebook fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Quote:
Is it possible to get the current frontlight level? |
|
![]() |
![]() |
Advert | |
|
![]() |
#108 |
Time Waster
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
|
![]() |
![]() |
![]() |
#109 | |
ebook fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Quote:
![]() The one solution I see for now is intercepting ioctls (LD_PRELOAD) but I don't like it... Last edited by sergeyvl12; 09-30-2013 at 11:10 AM. |
|
![]() |
![]() |
![]() |
#110 |
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 206176
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
|
The easiest way, (but rather cpu heavy) is to scan dmesg as every change is printed to the log.
But there are other options: The kernel source for the backlight driver is at arch/arm/mach-mx5/mx50_ntx_io.c, but there is no ioctl to get the current level. It shouldn't be too hard to implement a new one, but how many users will want to change their kernel for that ![]() A more hacky way: Since we are root, we can simply fetch the content of the last_FL_duty variable from kernel memory: Code:
hexdump -s 0x803ba614 -n1 -v -e '"%d"' /dev/kmem Last edited by yoq; 10-01-2013 at 12:23 PM. Reason: fixed command: -v to also show '0' |
![]() |
![]() |
Advert | |
|
![]() |
#111 |
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 77
Karma: 206176
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
|
not helpful?
|
![]() |
![]() |
![]() |
#112 |
ebook fan
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 735
Karma: 2528718
Join Date: Dec 2010
Device: PocketBook 301+, Kindle 3 Wi-Fi, Onyx Boox A62, Kindle Touch
|
Thanks!
I decided to not use the nickel frontlight level. It's difficult to get it from nickel and it's completely impossible to tell nickel the level that I selected in the KoboLauncher... |
![]() |
![]() |
![]() |
#113 |
Time Waster
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
The same for Koreader, having to register a memory address for each device and possibly changing with firmware updates is a nightmare to maintain.
|
![]() |
![]() |
![]() |
#114 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2013
Device: Kobo Glo
|
Hey Yoq! I've been lurking this forum since I got my Kobo glo and your resistor hack worked perfectly. Thanks for taking the time to share your knowledge. I agree with you that the 30k resistor works best for this purpose. I've tried a 25k, 27k and 30k resistor. You can get a very dim screen with the 27k at 1% brightness but it tends to quite flicker a bit. I don't recommend 25k because the light is off at the lowest brightness. I'm using the night mode hack along with the resistor hack and its great for reading at night.
|
![]() |
![]() |
![]() |
#115 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 59
Karma: 13124
Join Date: Jul 2008
Device: Kobo Aura HD
|
I used a big resistor and it works. Thank you
|
![]() |
![]() |
![]() |
#116 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46
Karma: 303048
Join Date: Feb 2013
Location: Brazil
Device: Kindle Paperwhite 3
|
![]() |
![]() |
![]() |
![]() |
#117 | |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 18454
Join Date: Dec 2014
Device: Kobo glo
|
Quote:
There is just one strange thing; now when the backlight is on, the kobo emit a hiss sound from the place the resistor is... No hiss when the backlight is off. I tried removing the resistor and putting it back again, but the hiss is still here. Do you have a hiss too on your device? If no, is there anything I can check to find what's wrong? thank you ![]() |
|
![]() |
![]() |
![]() |
#118 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,448
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Must be leaking electrons causing the hiss.
|
![]() |
![]() |
![]() |
#119 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24
Karma: 18454
Join Date: Dec 2014
Device: Kobo glo
|
|
![]() |
![]() |
![]() |
#120 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,448
Karma: 78880114
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Was a joke.....
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Odyssey Odyssey HD FrontLight available for preorder | Chi Cygni | Bookeen | 66 | 12-21-2012 02:55 AM |
Frontlight + touchscreen + moths | GeoffR | Kobo Reader | 7 | 12-12-2012 05:21 PM |
Kobo Glo vs Cybook Odyssey Frontlight | Magean | Which one should I buy? | 4 | 11-30-2012 06:50 AM |
Frontlight: How to reset? | WS64 | Bookeen | 18 | 11-26-2012 04:47 AM |
Odyssey Odyssey HD FrontLight battery | Gardenman | Bookeen | 4 | 11-12-2012 03:46 AM |