nanogui: Re: timer not working fixed, at least for now, I think.


Previous by date: 26 Sep 2007 21:31:00 +0100 Re: Problem with GC_MODE, Carlo Zinato
Next by date: 26 Sep 2007 21:31:00 +0100 Using jpeglib, Junior
Previous in thread: 26 Sep 2007 21:31:00 +0100 Re: timer not working fixed, at least for now, I think., Greg Haerr
Next in thread:

Subject: Re: timer not working fixed, at least for now, I think.
From: "Martin Kajdas" ####@####.####
Date: 26 Sep 2007 21:31:00 +0100
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC24F9919@mkmail.MKPROD.COM>

> : TTYKBD = N  // was Y
> : NOKBD = Y   // was N
> : 
> : And now the timer events happen when nano-X is started at boot time.
I 
> : even start the app at boot time at it gets the timer events.
>
> Amazing.  And I'm glad you've got it working.  This has got to do
> with the kbd init code or select() in nanox/srvmain.c I think.


I have the same problem (timers not working) but in my case the keyboard
is optional.
Because the keyboard is USB, it is hot-plugged and has to work anytime.
It is not required at boot time and without it the problem occurred.
Because nano-X had to be configured with TTYKBD=Y, I fixed it by
changing nanox/srvmain.c
GsSelect(0L);
to:
GsSelect(1L);
inside main().
This way, GsSelect does not hang waiting for keyboard and processes all
timers when needed.
I do not see any reason why the timeout parameter should be zero.
Martin

Previous by date: 26 Sep 2007 21:31:00 +0100 Re: Problem with GC_MODE, Carlo Zinato
Next by date: 26 Sep 2007 21:31:00 +0100 Using jpeglib, Junior
Previous in thread: 26 Sep 2007 21:31:00 +0100 Re: timer not working fixed, at least for now, I think., Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.