View Single Post
Old 10-06-2012, 05:02 PM   #14
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
This program partially works on the Paperwhite, but has some issues that need fixing. The name of the touchscreen device changed from zforce to cyttsp, so I need to change the code that searches for it in the input devices:

I needed to change this:
DT=$(for i in /dev/input/event*;do evtest info $i|grep zforce>$DN&&echo $i&&break;done)

to this:
DT=$(for i in /dev/input/event*;do evtest info $i|grep -w "zforce\|cyttsp">$DN&&echo $i&&break;done)

Also, the eips text output needs to be reformatted. On the K5 and earlier you had 40 lines of 50 characters. But on the Paperwhite, you havee 42 lines of 48 characters. Not only is the line 2 characters narrower, but you can only see the left half of the last character on the line. So practically speaking, in text mode, the new higher resolution eink screen cannot display the rightmost 3 characters of lines that displayed fine on earlier kindles.

Here are the screen dimensions reported by eips:
Code:
[root@kindle root]# eips -i

Fixed framebuffer info
    id:              mxc_epdc_fb    smem_start:       0x75800000
    smem_len:            4718592    type:          PACKED_PIXELS
    type_aux:                  0    visual:   STATIC_PSEUDOCOLOR
    xpanstep:                  1    ypanstep:                  1
    ywrapstep:                 0    line_length:             768
    mmio_start:       0x00000000    mmio_len:                  0
    accel:                     0

Variable framebuffer info
    xres:                    758    yres:                   1024
    xres_virtual:            768    yres_virtual:           6144
    xoffset:                   0    yoffset:                   0
    bits_per_pixel:            8    grayscale:                 1
    red.offset:                0    green.offset:              0
    red.length:                8    green.length:              8
    red.msb_right:             0    green.msb_right:           0
    blue.offset:               0    transp.offset:             0
    blue.length:               8    transp.length:             0
    blue.msb_right:            0    transp.msb_right:          0
    nonstd:                    0    activate:                128
    width:                    -1    height:                   -1
    accel_flags:               0    pixclock:           40000000
    left_margin:              12    right_margin:             76
    upper_margin:              4    lower_margin:              5
    hsync_len:                12    vsync_len:                 2
    sync:                      0    vmode:                     0
    rotate:                    3
[root@kindle root]# 
As you can see, it is 8 bits-per-pixel, just like the K4 and K5. It is not 4bpp as reported in another thread.

Last edited by geekmaster; 10-09-2012 at 10:12 PM.
geekmaster is offline   Reply With Quote