09-23-2013, 02:56 PM | #106 |
Enthusiast
Posts: 27
Karma: 17282
Join Date: Oct 2011
Device: kobo touch
|
ok thanks yoq
|
09-30-2013, 07:29 AM | #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 | |
|
09-30-2013, 08:17 AM | #108 |
Time Waster
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
|
09-30-2013, 08:55 AM | #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. |
|
09-30-2013, 03:20 PM | #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 | |
|
10-09-2013, 06:54 PM | #111 |
Developer
Posts: 77
Karma: 206176
Join Date: Apr 2013
Location: Europe
Device: Kobo Glo
|
not helpful?
|
10-10-2013, 03:44 PM | #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... |
10-11-2013, 04:51 AM | #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.
|
12-02-2013, 06:27 PM | #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.
|
04-07-2014, 02:53 AM | #115 |
Connoisseur
Posts: 59
Karma: 13124
Join Date: Jul 2008
Device: Kobo Aura HD
|
I used a big resistor and it works. Thank you
|
04-22-2014, 07:42 PM | #116 |
Enthusiast
Posts: 46
Karma: 303048
Join Date: Feb 2013
Location: Brazil
Device: Kindle Paperwhite 3
|
|
05-31-2015, 04:53 AM | #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 |
|
05-31-2015, 07:02 AM | #118 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Must be leaking electrons causing the hiss.
|
05-31-2015, 08:03 AM | #119 |
Member
Posts: 24
Karma: 18454
Join Date: Dec 2014
Device: Kobo glo
|
|
05-31-2015, 08:46 AM | #120 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
Was a joke.....
|
|
Similar Threads | ||||
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 |