On Oct 15, 2007 1:51 AM, Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:

> Luis Mondesi wrote:
> > Hello all,
> >
> > Thanks to the folks at RPath [0], we were able to understood and patch
> > a bug that was making Splashy impossible to use from initramfs on
> > Linux [1] (while using init and not upstart to start all user-space
> > applications).
> >
> > The problem happens when the TTY from which Splashy is started gets
> > modified while the application is running (again, refer to RPath's
> > detailed ticket). The modification of this special file causes the
> > keyboard event function on directfb [2], to go into an infinite loop,
> > taking more and more CPU power as the boot process goes along.
> >
> > Apparently the solution to this problem is to simply release some CPU
> > cycles on the keyboardEventThread. This is done by simple applying the
> > following patch:
> >
> > --- directfb-0.9.25.1.orig/inputdrivers/keyboard/keyboard.c
> > +++ directfb-0.9.25.1/inputdrivers/keyboard/keyboard.c
> > @@ -279,6 +279,8 @@
> >
> >               keyboard_set_lights( data, evt.locks );
> >          }
> > +          if (readlen <= 0)
> > +                usleep(2000);
> >     }
> >
> >     if (readlen <= 0 && errno != EINTR)
> >
> > (Note that this is the same fix for directfb 1.1.x)
>
> I made the change in the driver.
>
> Would reopening the device help? What about not using VTs at all,
> but use the Linux Input driver?
>

Hello,

Well, it's time for us to revisit this problem. The patch has finally
reached the debian repositories and now we can actually find a solution for
this problem.

I would like to explore with the solutions that you recommended here but I'm
not sure how to proceed. Here is the questions that I have:

Can we re-open the device without patching directfb?

How can we avoid using a VT? I'm not too sure how the linux input driver is
supposed to work. I do know that there is a note about the linux_input
driver causing problems on somebody's system (line 1126 of splashy_video.c
http://git.debian.org/?p=splashy/splashy.git;f=src/splashy_video.c;hb=HEAD):
        /*
         * I disabled these modules, because they were causing problems on
my
         * machine.
         */
        DirectFBSetOption ("disable-module", "linux_input");

Any help will be greatly appreciated.
Regards,

-- 
----)(-----
Luis Mondesi
Maestro Debiano

----- START ENCRYPTED BLOCK (Triple-ROT13) ------
Gur Hohagh [Yvahk] qvfgevohgvba oevatf gur fcvevg bs Hohagh gb gur fbsgjner
jbeyq.
----- END ENCRYPTED BLOCK (Triple-ROT13) ------
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to