View Single Post
Old 09-23-2019, 09:11 AM   #163
Michal Jancik
Sorry for my English
Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.Michal Jancik ought to be getting tired of karma fortunes by now.
 
Michal Jancik's Avatar
 
Posts: 419
Karma: 3003406
Join Date: Aug 2018
Location: France/Besancon 25000
Device: KOBO H2O,Inkpad 4,ONYX Leaf 2
RESOLVED
I change code in /.adds/koreader/frontend/device/kobo/device.lua' (line 253)
I used "lm3630a_led/" instead of "tlc5947_bl"
[From]:
PHP Code:
frontlight_mixer "/sys/class/backlight/lc5947_bl/color"
[To]:
PHP Code:
frontlight_mixer "/sys/class/backlight/lm3630a_led/color"
Spoiler:

PHP Code:
-- Kobo Libra:
-- 
NOTEAssume the same quirks as the Forma apply.
local KoboStorm Kobo:new{
    
model "Kobo_storm",
    
hasFrontlight yes,
    
hasKeys yes,
    
canToggleGSensor yes,
    
touch_snow_protocol true,
    
misc_ntx_gsensor_protocol true,
    
display_dpi 300,
    
hasNaturalLight yes,
    
frontlight_settings = {
        
frontlight_white "/sys/class/backlight/mxc_msp430.0/brightness",
        
frontlight_mixer "/sys/class/backlight/lm3630a_led/color",
        -- 
Warmth goes from 0 to 10 on the device's side (our own internal scale is still normalized to [0...100])
        -- NOTE: Those three extra keys are *MANDATORY* if frontlight_mixer is set!
        nl_min = 0,
        nl_max = 10,
        nl_inverted = true,
    }, 

Now my headlight (warm, orange) works as it should.

@NiLuje
"Which is exactly what I posted earlier "
Yes, exactly. Thanks. Thank you for your patience NiLuJe .

It just took me a while to understand the meaning of + and - in that correction code, "mea culpa"

PS : "doom" also works well, pretty works.
- Results with Kobo Libra H2O:
PHP Code:
./doom  --S2 –l 24
Variable fb info1264x1680 (1280x3584), 8bpp rotation(Upright)
Fixed fb infoID is "mxc_epdc_fb"length of fb mem9175040 bytes line length1280 bytes
Device
's expected Portrait orientation should be: -1 (Unknown?!)!

Current bitdepth is already 8bpp!
112.0 FPS (8.929 ms)
117.4 FPS (8.516 ms)
116.1 FPS (8.611 ms)
116.3 FPS (8.596 ms)
113.4 FPS (8.820 ms)
112.5 FPS (8.890 ms)
111.4 FPS (8.978 ms)
110.5 FPS (9.053 ms)
109.3 FPS (9.152 ms)
100.2 FPS (9.978 ms)
100.5 FPS (9.952 ms)
93.3 FPS (10.719 ms)
98.7 FPS (10.131 ms)
96.0 FPS (10.421 ms)
95.3 FPS (10.497 ms)
..etc 

Last edited by Michal Jancik; 09-23-2019 at 11:14 AM.
Michal Jancik is offline   Reply With Quote