> It was found that suspend is getting called continuously. This happens > if the device is kept in standalone mode.
probably you should see it other way: system never stays in sleep mode, and getting woken up by spurious hardware event. since no task may be scheduled for that event, system will enter sleep immediately. can you check at kernel sleep code, why its exiting suspend? >[ 94.146756] Exiting suspend_enter.... error ==0.S >[ 95.683567] bluetooth_power: on = 0 >[ 95.740751] Exiting suspend_devices_and_enter..error : 0.....S >[ 95.741075] PM: Finishing wakeup. On Fri, May 21, 2010 at 6:00 PM, shilpa <shilpa.gurusw...@gmail.com> wrote: > Hi, > > I'm facing a strange problem. I'm working on Android eclair 2.1 > version. > Even when device was put to suspendwithout running any apps the > battery was discharging faster. > It was found that suspend is getting called continuously. This happens > if the device is kept in standalone mode. > Below is the log > > [ 62.023531] Inside state_store..S > [ 62.023751] request_suspend_state: sleep (0->3) at 62023591538 > (2009-08-30 17 > :17:00.971967105 UTC) > [ 62.030222] Exiting state_store... if error:0...S > [ 62.037117] adxl345_early_suspend(): going to early suspend > [ 62.040446] adxl345_early_suspend(): Handled early suspend event. > rc = 0 > [ 62.047082] msm_batt_early_suspend: enter > [ 62.052686] msm_batt_early_suspend: exit > [ [ 80.219252] Inside state_store..S > [ 80.219459] request_suspend_state: wakeup (3->0) at 80219297790 > (2009-08-30 1 > 7:17:19.167672524 UTC) > [ 80.226175] Exiting state_store... if error:0...S > [ 80.352049] msm_proc_comm(24,42,20898000) error 0x5 > [ 80.352434] msm_proc_comm(24,43,20898000) error 0x5 > [ 80.597824] msm_batt_late_resume: exter > [ 80.599744] msm_batt_late_resume: exit > [ 80.600044] adxl345_late_resume(): going to resume > [ 80.604679] adxl345_late_resume(): Handled Late resume event. rc = > 0 > [ 85.921797] Inside state_store..S > [ 85.922004] request_suspend_state: sleep (0->3) at 85921845291 > (2009-08-30 17 > :17:24.870220441 UTC) > [ 85.928461] Exiting state_store... if error:0...S > [ 85.934153] adxl345_early_suspend(): going to early suspend > [ 85.938701] adxl345_early_suspend(): Handled early suspend event. > rc = 0 > [ 85.945448] msm_batt_early_suspend: enter > [ 85.951161] msm_batt_early_suspend: exit > [ 90.227726] Inside state_store..S > [ 90.227932] request_suspend_state: wakeup (3->0) at 90227771957 > (2009-08-30 1 > 7:17:29.176146691 UTC) > [ 90.236930] Exiting state_store... if error:0...S > [ 90.343673] msm_proc_comm(24,42,20898000) error 0x5 > [ 90.344031] msm_proc_comm(24,43,20898000) error 0x5 > [ 90.587835] msm_batt_late_resume: exter > [ 90.589483] msm_batt_late_resume: exit > [ 90.589850] adxl345_late_resume(): going to resume > [ 90.594696] adxl345_late_resume(): Handled Late resume event. rc = > 0 > [ 90.906680] Inside state_store..S > [ 90.906902] request_suspend_state: sleep (0->3) at 90906744457 > (2009-08-30 17 > :17:29.855120024 UTC) > [ 90.914186] Exiting state_store... if error:0...S > [ 90.918650] adxl345_early_suspend(): going to early suspend > [ 90.923629] adxl345_early_suspend(): Handled early suspend event. > rc = 0 > [ 90.931138] msm_batt_early_suspend: enter > [ 90.957167] msm_batt_early_suspend: exit > [ 91.703233] Inside suspen:wakelock.c > [ 91.712351] suspend: enter suspend > [ 91.712549] Inside pm_suspend...S > [ 91.713502] Inside enter_state..S > [ 91.716752] PM: Syncing filesystems ... done. > [ 91.729276] PM: Preparing system for mem sleep > [ 91.729516] Inside suspend_prepare....S > [ 91.732617] Inside freeze_processes()...S > [ 91.736680] Freezing user space processes ... (elapsed 0.00 > seconds) done. > [ 91.743832] Freezing remaining freezable tasks ... (elapsed 0.00 > seconds) don > e. > [ 91.750590] Exiting freeze_processes()..error::0...S > [ 91.755539] Exiting suspend_prepare... No ERROR...err::0..S > [ 91.761199] PM: Entering mem sleep > [ 91.764565] Inside suspend_devices_and_enter...S > [[ 92.921050] Finish disable_nonboot_cpus() error::0...S > [ 92.926159] Inside suspend_enter...S > [ [ 94.103887] wakeup wake lock: rpcrotuer_smd_xprt > [ 94.108509] report_hs_key: No mapping for remote handset event 1 > [ 94.114433] smem_alloc failed ch=41 > [ 94.117865] smd_alloc_channel() cid 41 does not exist > [ 94.123079] Probe skipping ch 41, not allocated > [ 94.127546] report_hs_key: No mapping for remote handset event 7 > [ 94.133528] smem_alloc failed ch=47 > [ 94.136995] smd_alloc_channel() cid 47 does not exist > [ 94.142009] Probe skipping ch 47, not allocated > [ 94.146756] Exiting suspend_enter.... error ==0.S > [ 95.683567] bluetooth_power: on = 0 > [ 95.740751] Exiting suspend_devices_and_enter..error : 0.....S > [ 95.741075] PM: Finishing wakeup. > [ 95.744243] Restarting tasks ... done. > [ 95.811678] Exiting enter_state...ret:0...S > [ 95.811914] suspend: exit suspend, ret = 0 (2009-08-30 > 17:17:34.632514378 UTC > ) > [ 95.832836] suspend: pm_suspend returned with no event > [ 95.833132] Inside suspend:wakelock.c > [ 95.835972] suspend: abort suspend > [ 96.769575] Inside suspen:wakelock.c > [ 96.786633] save exit: isCheckpointed 1 > [ 96.793816] suspend: enter suspend > [ 96.794014] Inside pm_suspend...S > [ 96.794971] Inside enter_state..S > [ 96.798290] PM: Syncing filesystems ... done. > [ 96.810926] PM: Preparing system for mem sleep > [ 96.811254] Inside suspend_prepare....S > [ 96.814167] Inside freeze_processes()...S > [ 96.818121] Freezing user space processes ... (elapsed 0.00 > seconds) done. > [ 96.825548] Freezing remaining freezable tasks ... (elapsed 0.00 > seconds) don > e. > [ 96.832240] Exiting freeze_processes()..error::0...S > [ 96.837190] Exiting suspend_prepare... No ERROR...err::0..S > [ 96.842848] PM: Entering mem sleep > [ 96.846216] Inside suspend_devices_and_enter...S > .... and it goes on.... and switches the device off after around 4 > hrs.... > > Please can anyone give a suggestion as to why this might be > happening..... > The applications have still not been implemented yet.. Only basic > applications are present in the device.. > > Regards, > Shilpa > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting