humn, thanks...

but tell me .. what if I disable the kernel PM itself... that will surely do
.. it. ..
but yeah... anyway can't change the kernel.. uImage.. given to me.. have to
make it work without changing it..

So was looking for sysfs entries/ proc entries or ways of killing suspend or
something...


On Fri, Feb 20, 2009 at 12:35 PM, aow <[email protected]> wrote:

>
> A simple way to turn off android power management:
> edited kernel\drivers\android\power.c
> static void android_power_suspend(struct work_struct *work)
> {
>        int entry_event_num;
>        int ret;
>        int wait = 0;
>        android_early_suspend_t *pos;
>        int print_locks;
>        unsigned long irqflags;
>  return;/*add this,then android will not enter in sleep state,just do
> this,try it in your code*/
>       while(g_user_suspend_state != USER_AWAKE) {
>       ......
> }
> On 2月19日, 下午5时33分, pavan savoy <[email protected]> wrote:
> > Earlier android kernel code, had a .config option of ANDROID_PM, what has
> it
> > been replaced with ?
> >
> > What should I do, if I don't want the "Freezing user space processes...",
> > "Syncing file systems..." kind of power management suspend states?
> > [apart from disabling PM on kernel itself...]
> >
> > Also I have an console based application which would like itself to be
> run
> > for a while, however I see that some Power manager [activity manager or
> > something... I am not too familiar with java/c++ of android...] is
> causing
> > the suspend state which causes my application to freeze as well...
> >
> > Any ideas ?
> >
> > regards,
> > Pavan
> >
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to