HopelessFantasy / openetna

Automatically exported from code.google.com/p/openetna
0 stars 0 forks source link

Battery drain / akmd2 consistently using 4% cpu time #434

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Did you search through the other issues to make sure that this issue has
not been already reported?
yes
Did you look at the FAQ http://wiki.openetna.com/w/Manual:FAQ ?
yes
Did you use SetCPU or other means to overclock the cpu? 
no

What steps will reproduce the problem?
1. connect the phone to adb
2. adb shell
3. top

What is the expected output? What do you see instead?
Verify that akmd2 is using 4% cpu with GPS off and screen is off

What version of OpenEtna are you using?
6.3-rc7

I did not fastboot -w

I believe this is draining the battery.
Have tried to disable auto-rotation of the screen and creation of /data/delay 
and nothing changed.

User 4%, System 14%, IOW 0%, IRQ 0%
User 14 + Nice 0 + Sys 50 + Idle 280 + IOW 0 + IRQ 0 + SIRQ 0 = 344

  PID CPU% S  #THR     VSS     RSS PCY UID      Name
  559  11% R     1   1000K    392K  fg root     top
  115   5% S     2   1344K    156K  fg root     /system/bin/akmd2
  170   1% S    53 187396K  36536K  fg system   system_server
   69   0% S     1      0K      0K  fg root     yaffs-bg-1
  456   0% R     8 110776K  21012K  bg app_75   com.marigold.android.gprsmonitor
  244   0% S    19 128200K  24116K  fg radio    com.android.phone
   70   0% S     1      0K      0K  fg root     yaffs-bg-1
    5   0% S     1      0K      0K  fg root     events/0
   13   0% S     1      0K      0K  fg root     kondemand/0
  499   0% S     8 109564K  18568K  bg app_63   com.geekyouup.android.widgets.battery
   12   0% S     1      0K      0K  fg root     kmmcd
   14   0% S     1      0K      0K  fg root     qmi

Original issue reported on code.google.com by trmfrei...@gmail.com on 22 Feb 2011 at 10:42

GoogleCodeExporter commented 9 years ago
i can verify this is the same for me using 5% cpu, but i think thats a process 
to do with the accelerometer? someone will let me know

Original comment by blin...@gmail.com on 23 Feb 2011 at 9:16

GoogleCodeExporter commented 9 years ago
just had a read.. 
http://android.modaco.com/content/zte-blade-blade-modaco-com/320988/akmd2/#entry
0 it shouldnt be running wit the phone idle....

Original comment by blin...@gmail.com on 23 Feb 2011 at 9:18

GoogleCodeExporter commented 9 years ago
I read the same thing. 

I too believe that it should not be running when the phone is sleeping.

Original comment by trmfrei...@gmail.com on 23 Feb 2011 at 9:57

GoogleCodeExporter commented 9 years ago
Adding some references for a possible solution:

http://code.google.com/p/gaosp/issues/detail?id=152
http://www.drakaz.com/forum/viewtopic.php?pid=3773#p3773

Original comment by oldm...@gmail.com on 23 Feb 2011 at 10:12

GoogleCodeExporter commented 9 years ago
I have already tried those solutions.

They don't solve the problem with akmd2 when phone is locked.

Original comment by trmfrei...@gmail.com on 23 Feb 2011 at 10:21

GoogleCodeExporter commented 9 years ago
the libsensor driver always activate light sensor and
it make akmd2 always activated that cause battery consume constantly.

Original comment by wkp...@gmail.com on 10 May 2011 at 11:37