View Single Post
Old 08-30-2015, 10:01 AM   #77
newman
homo viator
newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.newman ought to be getting tired of karma fortunes by now.
 
newman's Avatar
 
Posts: 78
Karma: 252594
Join Date: May 2010
Device: Kindle DXi with 3.4.2 firmware, Kobo Glo HD
How to enable KF8 (MOBI8) on Kindle DX with 3.4.2 FW

How to enable KF8 (MOBI8) on Kindle DX with 3.4.2 FW

Since KF8 was introduced in Kindle 3 in with 3.4 firmware, you have to upgrade your YifanLu's firmware at least to 3.4 (https://www.mobileread.com/forums/sho....php?p=3149351), I suggest you to upgrade to 3.4.2.

Add following modes to /etc/fb.modes if you are on DX(G), K2 should work out of the box and you don't have to add anything:
Code:
mode "824x1200-0"                        
# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
geometry 824 1200 824 1200 8             
timings 0 0 0 0 0 0 0                    
accel false                              
rgba 0/0,0/0,0/0,0/0                     
endmode                                  
                                         
mode "1200x824-0"                        
# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
geometry 1200 824 1200 824 4             
timings 0 0 0 0 0 0 0                    
accel false                              
rgba 0/0,0/0,0/0,0/0                     
endmode                                  
                                         
mode "1200x824-0"                        
# D: 0.000 MHz, H: 0.000 kHz, V: 0.000 Hz
geometry 1200 824 1200 824 8             
timings 0 0 0 0 0 0 0                    
accel false                              
rgba 0/0,0/0,0/0,0/0                     
endmode
They are the same as the original "824x1200-0" mode but it's geometry ends with 8 (that's 2^8 of shades of grey, I guess). The last two modes are for landscape mode (test it with

Log in to you Kindle via SSH and execute webreader -d (-d = "Disable Key Events" without this option it crashes like a hell), you should see a bunch of lines wrt DirectFB. In your Kindle interface open some KF8 book (e.g. download free book samples from Amazon: http://www.amazon.com/gp/feature.html?docId=1000729511). I opened the "Cherokee Lessons", "Three man in a Boat" and "Kindle Format 8 sample". If you see just "the selected item could not be opened. ..." webreader did not made it, see the output of the command. Otherwise you should see a rendering far complicated to what you are used to from old MOBI(v6) books. The rendering goes thru WebKit rendering engine (the same which is used in Experimental Browser), so it looks nice:

Now, it would be cool if webreader could start with Kindle. Set Kindle root to read-write mode:
Code:
mntroot rw
Link luigi's PMOND webreader directory to mario's directory:
Code:
ln -s /etc/kdb.src/luigi/system/daemon/pmond/webreader/ /etc/kdb.src/mario/system/daemon/pmond/webreader
Remount back to read-only:
Code:
mntroot ro
Restart PMON daemon:
Code:
/etc/init.d/pmond restart
Start webreaderd via init script:
Code:
/etc/init.d/webreaderd start
Try some KF8 books in Kindle, they should work just fine.
Restart Kindle to see if webreader is executed after restart.

--

Images: #1 Broken resolution of framebuffer device, fix your fb.modes; #2-5: Just a bunch of screenshots.
Attached Thumbnails
Click image for larger version

Name:	screen_shot-27523.gif
Views:	538
Size:	34.5 KB
ID:	141515   Click image for larger version

Name:	screen_shot-27530.gif
Views:	564
Size:	37.1 KB
ID:	141516   Click image for larger version

Name:	screen_shot-12835.gif
Views:	473
Size:	33.8 KB
ID:	141517   Click image for larger version

Name:	screen_shot-27539.gif
Views:	436
Size:	29.4 KB
ID:	141518   Click image for larger version

Name:	screen_shot-12832.gif
Views:	462
Size:	22.5 KB
ID:	141519   Click image for larger version

Name:	screen_shot-31611.gif
Views:	440
Size:	78.1 KB
ID:	141545  

Last edited by newman; 08-31-2015 at 09:52 AM. Reason: Added landscape modes and screenshot from Kindle Text Pop Up
newman is offline   Reply With Quote