Hi Michel, Yes, vi ./utils/tools/hciattach.c file. I am using the bluez 3.36 version,i dnt why it works on poll mode. If i increase the timeout? Is this cause problem,
On Fri, May 8, 2009 at 5:46 PM, Michael Trimarchi < trimar...@gandalf.sssup.it> wrote: > > BHEEMSEN KULKARNI wrote: > > HI Michael, > > > > Thanks for your reply, > > > > Which version of Bluez-utils are you using? > > > > This timer is not the System to go to sleep, basically in the system > > Idle thread start when there is no activity on the system and it > > should stay in the idle state for some time (in our case it is more > > than 500 msec) to achieve the full system sleep (Core Off). > Now it is clear, you are talking about deep idle mode of the micro. I > don't understand > why it works in polling mode and why you can't choose the timeout value. > I'm working on the git repository of koolu but and an old checkout of > android I have the > same value. Are we talking about the vi ./utils/tools/hciattach.c file? > > > > On Fri, May 8, 2009 at 5:18 PM, Michael Trimarchi > > <trimar...@gandalf.sssup.it <mailto:trimar...@gandalf.sssup.it>> wrote: > > > > > > Hi, > > > > BHEEMSEN KULKARNI wrote: > > > Hi, > > > > > > There is piece code in the hciattach "poll(&p, 1, 500)", which > > is poll for > > > every 500 msec. > > > > > > main() > > > { > > > while (!__io_canceled) { > > > p.revents = 0; > > > err = poll(&p, 1, 500); > > In my code the poll is every 5000 seconds, but maybe is a > > different version > > > if (err < 0 && errno == EINTR) > > > continue; > > > if (err) > > > break; > > > } > > > what is this piece of this does exactly,because of polling off > > every 500 > > > msec causes the System not going to Sleep state. > > Why the poll on a file descriptor cause the no sleep state? > > > > > > Can I increase timer value? > > > > > > Regards > > > Bheemsen K > > > > > > > > > > > > > > > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---