View Single Post
Old 11-17-2013, 02:19 PM   #794
giorgio130
Time Waster
giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.giorgio130 ought to be getting tired of karma fortunes by now.
 
Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
Quote:
Originally Posted by sergeyvl12 View Post
giorgio130

Currently I tried to launch koreader from KoboLauncher. I got success but koreader changes some framebuffer parameters and doesn't restore them at exit:

Code:
        if (fb->vinfo.bits_per_pixel == 16) {
                /* Only (known) platform using this is Kobo;
                 * since we can change the mode to 8bpp, at this time
                 * driving directly the screen at 16bpp is not supported.
                 * */
                fb->vinfo.bits_per_pixel = 8;
                fb->vinfo.grayscale = 1;
                fb->vinfo.rotate = 3; // 0 is landscape right handed, 3 is portrait
                if (ioctl(fb->fd, FBIOPUT_VSCREENINFO, &fb->vinfo)) {
                        return luaL_error(L, "cannot change screen
So, the only option we have after exit from koreader is reboot.

Is there any chance to get it fixed?
Hmm, I know that code
I've tried to fix that, but just putting back the original values seems not to be enough. Probably there's some other field that gets changed automatically and doesn't get changed back when the original values are written.
I'd say that your results are already an improvement!
giorgio130 is offline   Reply With Quote