Related
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Patches got merged to CM7
Will be included from nightly 27 onwards. Thread is about to be closed. Use nightly thread for further discussion if any.
Achievment earned: RIVER RUNS RED (write in red on first post of a thread with at least 50 pages)
Build #9 contains Kali's latest kernel plus the 2 patches from hrkfdn about the aic3254 dsp chip. no other tweaks involvled, since i like kali's fast and simple work.
get build #9 here - md5: cc9372655750994cddfd12460dcdcb8b
http://postkreative.eu/mad/mad-batfix-B9-signed.zip
http://uberfail.org/mad/mad-batfix-B9-signed.zip
mirrors by phunkycow - thanks a bunch!
just flash this .zip file from recovery. reflash it each time you installed a new nightly build. #6 and newer contains a cleanup-function to remove older deprecated files from system. reported to work with cm6
no workaround needed anymore with #9
Now that we seem to have reached the final version - thanks to you all and your feedback - without it, it would have been much harder to trace down all issues.
FAQ
Q: Where has the CHANGELOG gone?
A: Move to the top of 2nd post - just scroll down a bit.
Q: Do i need anthing else but the latest patch?
A: No. Except for a cm7 RC or nightly rom installed.
Q: Why do i need to reflash after a new nightly?
A: Because we cannot backup the boot image. So once you flash a nightly/RC, you also get its kernel.
Q: Whats this FM-Radio thing i read about?
A: One discussed way to solve the battery drain in cm7 nigthlies and future RC's would be to use hrkfdn's patches and disable all fm-radio support (not only the apk file, but also the libs and framework). This patch is bypassing disabling FM-Radio and still doing its job. Result of quiet some work.
Q: Will this patch work with other roms?
A: Sense based roms dont need it at all. Non sense roms could use the patch on their kernel, but its not sure if this kernel runs with other roms. You can either try it, or ask in your kernel thread to include the patches. But, this is not final/stable yet. Guranteed to work with CM7, reported to work with CM6.
Q: When will this be in CM7 nightlies?
A: When all issues are solved. It seems thats the case with #8 - so expect nightly integration soon.
Known Issues in #9
None yet.
Monitor Status of DSP Chip
get gscript light free from market
start it, menu -> add script
use "dmesg aic" as title
leave "Needs SU?" checked
write "dmesg | grep -i aic | grep -v suspend | grep -v resume | tail -n 25" into the lower command box and save
back in adw: menu -> add -> shortcuts -> GScript Lite -> dmesg aic
This results in one-click-to-check-homescreen-shortcut
Sample dmesg output
Code:
<6>[ 106.647766] aic3254_ioctl: index 13 for 40047313
<6>[ 106.647949] aic3254_set_config: table(0x40047313) index(13)
<6>[ 106.648071] aic3254_set_config: enable rx
<6>[ 106.648498] aic3254_config: size = 15
<6>[ 106.649475] aic3254_config: size = 11
<6>[ 122.602355] aic3254_ioctl: index 29 for 40047313
<6>[ 122.602508] aic3254_set_config: table(0x40047313) index(29)
<6>[ 122.602722] aic3254_config: size = 8
<6>[ 122.603973] aic3254_set_config: disable rx
<6>[ 122.604095] aic3254_powerdown: power off AIC3254
<6>[ 122.604217] aic3254_config: size = 32
at first, the dsp is enabled (enable rx) when i started a mp3 - then the dsp chip is powered off again when i stopped the playback. this power off should occur each time, you stop using sound playback or microphone.
requested feedback:
are there situations, when power off does not work? when you for example have to invoke the old "voice dial" workaround to make poweroff appear again?
Closing comments
build #9 should be the final version. if no more issues arise in the next 48 hours, i will integrate it into cm7 nightlies.
in case you wanna use #5 again, i made a copy of the old opening post below this post, including downloads and instructions.
happy battery life
mad
changelog
#9: remove AicBootFix.apk from app-drawer and list of applications. its secret now!
#8: added final(?) AicBootFix.apk, removed old bootfix, removed suspend/resume messages, added hopes this is the final version without issues
#7: reverted the latest patch of hrkfdn on behalf of himself. this kernel now only contains the first and second spi_aic3254.c patches.
#6: switched to hrkfdn's patches - added aicbootfix - looking forward to keep fm enabled.
#5: no need to use workaround anymore - modified power daemon and kernel driver take care of it. just flash .zip file once - will add itself to cm's auto backup facility.
#4: stoped logcat spam. opened an own thread, since cm7-ace-nightly started beeing the wrong place now.
#3: addind missing wifi module of #2
#2: added kernel and status - decreased ioctl time from 60s to 20s
#1: initial release
archive of old bat fix / method - build #5 - do not use unless you got good reason
This thread/patch aims to fix the battery drain all non-sense ace roms currently have. As soon as this is tested and working for everyone without issues, it will be merged into cm7 and probably also to other roms.
update 2011/03/11: sorry for being away two days. was unforseen. whats the status? hrkfdn started developing a own patch to the aic driver. by now, it seems much better than my solution. it still got an issue with fm radio on boot - but once that is figured out, that patch will be superior to my solution and probably make its way to nightly. until then, have fun with #5 - but dont expect further development here.
This patch contains a kernel, which is based on kali's cm7 kernel. in fact, its absolutly the same, just the driver for the AIC3254 dsp chip is changed.
get build #5 here - md5: f7c7b01a47266b26b8a01f2fc853cfbe
http://www.filesonic.com/file/178617251/mad-#5-aic3254pd_signed.zip
phunkycow's mirrors: http://postkreative.eu/mad/mad-5-aic3254pd_signed.zip / http://uberfail.org/mad/mad-5-aic3254pd_signed.zip - thanks phunky!
old work around after boot not needed anymore. just flash and smile.
to get the current power status:
Code:
[[email protected] xbin]$ adb shell aic3254pd status
Power status of aic3254 chip: OFF
same in terminal emulator on phone:
Code:
localhost / # aic3254pd status
Power status of aic3254 chip: OFF
this is a typical "adb logcat | grep -i aic":
Code:
[ 340.841369] aic3254_set_config: enable tx
[ 340.841766] aic3254_config: size = 12
[ 349.698486] aic3254_powerdown: power off AIC3254
[ 349.698638] aic3254_config: size = 32
[ 381.205322] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)
[ 498.071563] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)
this is the desired output - since OFF means less battery drain. if you only see ON but never OFF (even though no apps using speaker/microphone), leave feedback.
note: unmodified kernel cannot keep track of power status and init status. flash on non official cm7 roms on your own risk
measurements with battery monitor widget showed, for cm7 the battery drain drops from 11-15mA to 1-5mA to the level, sense roms in standby reach.
regards
mad
I don't have a mirror but I'll seed this until you update: torrent.
Thanks a lot, this made me try CM7
EDIT: I see you are updating but, anyway - the torrent is #4.
#5 might be the last - working on sending the stuff google voice search sends automatic on startup
need feedback: anyone notices, auto-power-down doesnt work anymore after it worked once?
do you need to start voice search again to get power down working?
I'm on cm7, latest nightly. flashed latest version battery fix however even after using voice search, terminal always shows the aic3254 chip as on?
Sent from my Desire HD using Tapatalk
Good on U!
Sent from my DHD Gingerbread
mad-murdock said:
#5 might be the last - working on sending the stuff google voice search sends automatic on startup
need feedback: anyone notices, auto-power-down doesnt work anymore after it worked once?
do you need to start voice search again to get power down working?
Click to expand...
Click to collapse
Noticed. Activated back on some time later.
Hey thanks so much for the patch !
However, when i try to enter command in terminal emulator, i have access denied ???
Do you know why ???
But when i tap dmesg | grep AIC3254, i have this after voice search activation :
Result:
<6>[ 366.089080] aic3254_powerdown: power off AIC3254
<6>[ 426.296417] aic3254_powerdown: power off AIC3254
<6>[ 486.500854] aic3254_powerdown: power off AIC3254
<6>[ 546.708404] aic3254_powerdown: power off AIC3254
<6>[ 606.913177] aic3254_powerdown: power off AIC3254
Cheers
Type in su, enter. Then type in the aic3254 status code.
Sent from my Desire HD using Tapatalk
alexmason14 said:
Type in su, enter. Then type in the aic3254 status code.
Sent from my Desire HD using Tapatalk
Click to expand...
Click to collapse
Oh thanks a lot
Sent from my Desire HD using XDA Premium App
I can replicate the autoswitching on of aic3254pd by playing music through headphones using the android music player..
I don t understand how to apply this patch sorry .... Just flash via CWM 3.0.0.6 and restart ?
sonydesouza said:
Hey thanks so much for the patch !
However, when i try to enter command in terminal emulator, i have access denied ???
Do you know why ???
But when i tap dmesg | grep AIC3254, i have this after voice search activation :
Result:
<6>[ 366.089080] aic3254_powerdown: power off AIC3254
<6>[ 426.296417] aic3254_powerdown: power off AIC3254
<6>[ 486.500854] aic3254_powerdown: power off AIC3254
<6>[ 546.708404] aic3254_powerdown: power off AIC3254
<6>[ 606.913177] aic3254_powerdown: power off AIC3254
Cheers
Click to expand...
Click to collapse
this is what you want to see! dsp chip powers itself down when unused. when you hear a sound, you should see another power off short after.
better do the aic3254pd status command described above
I don't have google voice installed, so I activate power off with built-in voice dialer. Works perfect for me.
Sent from my Desire HD using XDA Apppt
Great work, thanks! Here is some info from my testing, hope it's useful.
I installed mad-#4-aic3254pd_signed.zip from recovery, rebooted then waited
a while without doing anything with the phone (no power button, no touch).
Here is what I got:
/cygdrive/c/xxx: adb shell aic3254pd status
Power status of aic3254 chip: ON
/cygdrive/c/xxx: adb shell dmesg | grep aic3254_
<6>[ 5.092376] spi_aic3254_init
<6>[ 5.092590] spi_aic3254_probe
<6>[ 9.520355] aic3254_ioctl: parameters(64, 1024, 806041a0)
<6>[ 9.521087] aic3254_config: size = 23
<6>[ 9.524627] aic3254_config: size = 1
<6>[ 9.524963] aic3254_ioctl: update table(64,1024) successfully
<6>[ 9.526031] aic3254_ioctl: parameters(64, 1024, 806341a8)
<6>[ 9.526733] aic3254_ioctl: update table(64,1024) successfully
<6>[ 10.349945] aic3254_ioctl: parameters(24, 16384, 806641b4)
<6>[ 10.351898] aic3254_ioctl: update table(24,16384) successfully
<6>[ 10.370605] aic3254_ioctl: index 23 for 40047321
<6>[ 10.370697] aic3254_set_config: table(0x40047321) index(23)
<6>[ 10.370910] aic3254_set_config: miniDSP command len = 32
<6>[ 10.371002] aic3254_set_config: rx mode 29, tx mode 29
<6>[ 10.371124] aic3254_config: size = 32
<6>[ 10.372253] aic3254_set_config: configure minidsp done
<6>[ 10.372406] aic3254_ioctl: index 15 for 40047312
<6>[ 10.372619] aic3254_set_config: table(0x40047312) index(15)
<6>[ 10.372711] aic3254_set_config: enable tx
<6>[ 10.373138] aic3254_config: size = 23
<6>[ 10.373626] aic3254_config: size = 20
<6>[ 470.774963] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 1 (ON)
After this I used Google voice and then the power button to turn off the screen:
/cygdrive/c/xxxb: adb shell aic3254pd status
Power status of aic3254 chip: OFF
/cygdrive/c/xxx: adb shell dmesg | grep aic3254_
...
<6>[ 470.774963] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 1 (ON)
<6>[ 608.652496] aic3254_ioctl: index 1 for 40047321
<6>[ 608.652709] aic3254_set_config: table(0x40047321) index(1)
<6>[ 608.652801] aic3254_set_config: miniDSP command len = 32
<6>[ 608.653015] aic3254_set_config: rx mode 29, tx mode 15
<6>[ 608.653106] aic3254_config: size = 32
<6>[ 608.658111] aic3254_config: size = 23
<6>[ 608.659820] aic3254_config: size = 20
<6>[ 608.660278] aic3254_set_config: configure minidsp done
<6>[ 608.660614] aic3254_ioctl: index 29 for 40047312
<6>[ 608.660705] aic3254_set_config: table(0x40047312) index(29)
<6>[ 608.660919] aic3254_set_config: enable tx
<6>[ 608.661315] aic3254_config: size = 12
<6>[ 608.733917] aic3254_ioctl: index 23 for 40047321
<6>[ 608.734008] aic3254_set_config: table(0x40047321) index(23)
<6>[ 608.734222] aic3254_set_config: miniDSP command len = 32
<6>[ 608.734313] aic3254_set_config: rx mode 29, tx mode 29
<6>[ 608.734436] aic3254_config: size = 32
<6>[ 608.737457] aic3254_set_config: configure minidsp done
<6>[ 608.737670] aic3254_ioctl: index 15 for 40047312
<6>[ 608.737792] aic3254_set_config: table(0x40047312) index(15)
<6>[ 608.737976] aic3254_set_config: enable tx
<6>[ 608.738372] aic3254_config: size = 23
<6>[ 608.738922] aic3254_config: size = 20
<6>[ 614.000122] aic3254_ioctl: index 13 for 40047313
<6>[ 614.000396] aic3254_set_config: table(0x40047313) index(13)
<6>[ 614.000549] aic3254_set_config: enable rx
<6>[ 614.001068] aic3254_config: size = 15
<6>[ 614.001892] aic3254_config: size = 11
<6>[ 616.998382] aic3254_ioctl: index 1 for 40047321
<6>[ 616.998565] aic3254_set_config: table(0x40047321) index(1)
<6>[ 616.998687] aic3254_set_config: miniDSP command len = 32
<6>[ 616.998931] aic3254_set_config: rx mode 13, tx mode 15
<6>[ 616.999359] aic3254_config: size = 32
<6>[ 617.001770] aic3254_config: size = 15
<6>[ 617.006561] aic3254_config: size = 11
<6>[ 617.011535] aic3254_config: size = 23
<6>[ 617.013336] aic3254_config: size = 20
<6>[ 617.059783] aic3254_set_config: configure minidsp done
<6>[ 617.059906] aic3254_ioctl: index 29 for 40047312
<6>[ 617.059936] aic3254_set_config: table(0x40047312) index(29)
<6>[ 617.059936] aic3254_set_config: enable tx
<6>[ 617.059967] aic3254_config: size = 12
<6>[ 617.269744] aic3254_ioctl: index 29 for 40047313
<6>[ 617.269744] aic3254_set_config: table(0x40047313) index(29)
<6>[ 617.269744] aic3254_set_config: enable rx
<6>[ 617.269744] aic3254_config: size = 8
<6>[ 627.686737] aic3254_powerdown: power off AIC3254
<6>[ 627.686859] aic3254_config: size = 32
<3>[ 627.794860] aic3254_config: 3254 power down procedure ,flag 0x24=0x00(0x88)
<6>[ 1173.502197] aic3254_ioctl: Query for AIC3254_POWERSTATUS returned 0 (OFF)
After google voice search and chipset off:
# logcat | grep -i aic
I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Original)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)
I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Original)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)
I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Recording)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 1, 1)
I/AudioHardwareMSM7X30( 1206): aic3254: change tx mode to 15
I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Recording)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 1, 1)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 1, 0)
I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 13
E/HTC Acoustic( 1206): cannot open codec aic3254 device -1
I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Recording)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 0)
E/AudioHardwareMSM7X30( 1206): cannot open codec aic3254 device -1
I/AudioHardwareMSM7X30( 1206): aic3254_configure: sound effect (Original)
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 0)
I/AudioHardwareMSM7X30( 1206): aic3254: change tx mode to 29
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)
I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 29
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 0)
I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 13
I/AudioHardwareMSM7X30( 1206): do_aic3254_control (1, 0, 1)
I/AudioHardwareMSM7X30( 1206): aic3254: change rx mode to 29
Sent from my Desire HD using Tapatalk
No complaint here, just reporting so others know.
I flashed CM7 RC2, but it was still necessary to flash mad-#4-aic3254pd_signed.zip again after that and use Google voice to enable the power off of the aic3254.
Can someone explain in easy dummy guide style how to turn off voice after patching this fix. Thanks
Sent from my Desire HD using XDA App
Chezbel said:
No complaint here, just reporting so others know.
I flashed CM7 RC2, but it was still necessary to flash mad-#4-aic3254pd_signed.zip again after that and use Google voice to enable the power off of the aic3254.
Click to expand...
Click to collapse
FYI, things work the same as above for #14
shah_jee said:
Can someone explain in easy dummy guide style how to turn off voice after patching this fix. Thanks
Click to expand...
Click to collapse
I'm assuming that you used Google search and then clicked the microphone. When you are done speaking it should just turn off. If that doesn't help then can you provide more info about what you did and what problem you see.
Recently I decided to start using Juice Defender, but after two days of use, I figured I could do the same thing or better with Tasker. Personally, I was annoyed with the lack of a delay between turning my screen off and JD turning off my data. Sometimes I would turn off my screen for 10 seconds and see that the data was off (and my phone had yet to even lock). I had to reinstall Pandora after this because it would give me an error every time it loaded. The purpose of this post is to give other people ideas about how to replace Juice Defender, and to perhaps get ideas from others about how to improve upon this. These profiles will do two things:
1) Wait 4 minutes after my screen is turned off (I have it set to lock after 2 minutes of screen off) to turn off mobile data and auto-sync.
2) Wait 12 minutes after data/auto-sync are turned off to turn them back on for 1 minute and repeat this process every 12 minutes until phone is unlocked.
There are 3 profiles and each is linked to one task.
Profile: Screen Off (24)
Event: Display Off
Enter: Net Off (25)
A1: Wait [ MS:0 Seconds:0 Minutes:4 Hours:0 Days:0 ]
A2: Mobile Data [ Set: Off ] If [ %SCREEN ~ off ]
A3: Auto-Sync [ Set: Off ] If [ %SCREEN ~ off ]
A4: Variable Set [ Name:%DATA To: off Do Maths: Off Append: Off ] If [ %SCREEN ~ off ]
Profile: Screen On (26)
Event: Display Unlocked
Enter: Net On (29)
A1: Mobile Data [ Set: On ]
A2: Auto-Sync [ Set: On ]
A3: Variable Set [ Name:%DATA To: on Do Maths: Off Append: Off ]
A4: Stop [ With Error: Off Tasking ]
Profile: Ping (34)
Event: Variable Set [ Variable:%DATA Value: off ]
Enter: Ping (32)
A1: Wait [ MS:0 Seconds:0 Minutes:12 Hours:0 Days:0 ]
A2: Mobile Data [ Set: On ] If [ %DATA ~ off ]
A3: Auto-Sync [ Set: On ] If [ %DATA ~ off ]
A4: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ] If [ %DATA ~ off ]
A5: Mobile Data [ Set: Off ] If [ %DATA ~ off ]
A6: Auto-Sync [ Set: Off ] If [ %DATA ~ off ]
A7: Perform Task [ Nameing Stop: Off Priority:1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] If [ %DATA ~ off ]
I struggled with the "Ping" task for a while before coming to do it this way. The Ping profile will wait until the data is turned off, wait 12 minutes, then do a 1 minute ping, turning data and sync back on. This process will be repeated every 13 minutes and will be stopped only when I unlock my phone. However, I'm worried that it will keep my phone awake or end up taking more battery than necessary.
P.S. Obviously this doesn't take current network activity into consideration, but I figure that most things that I do in the background, I do on a charger. When running Pandora in my car, I keep my screen stay on and plug it in. When updating apps, I do so on Wifi. I may encounter apps that require me to change this profile, but until then, this is all I need.
EDIT: This latter context (Ping 2) does not appear to work now that I've tested it for weeks and looked at the logs. This could explain why the "Ping" context wakes your phone more often than "Ping 2". I'm leaving this so that maybe someone that is more informed can help me make it work.
I also thought of one other way to do this. I could use a Time-based profile as follows:
Profile: Ping 2 (36)
Event: Variable Set [ Variable:%DATA Value: off ]
Time: Every 10m
Enter: Ping 2 (32)
A1: Wait [ MS:0 Seconds:0 Minutes:5 Hours:0 Days:0 ]
A2: Mobile Data [ Set: On ] If [ %DATA ~ off ]
A3: Auto-Sync [ Set: On ] If [ %DATA ~ off ]
A4: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ] If [ %DATA ~ off ]
A5: Mobile Data [ Set: Off ] If [ %DATA ~ off ]
A6: Auto-Sync [ Set: Off ] If [ %DATA ~ off ]
Using this profile instead, the 1 minute "pings" would repeat every 10 minute starting 5 minutes after the data is first turned off. I will be testing this over the next couple of days, but unfortunately I lack experience using any battery-logging apps and will just be doing it by eye. Would anyone recommend one way over the other, or perhaps any other changes that I can make?
Click to expand...
Click to collapse
Thanks for sharing it, I have set the profile in tasker with ping time based, will share update by tomorrow
hoping for the best.
Thanks
Jitu
S3- Lord of the Phones.
What is the purpose of pinging periodically... just to check for new emails?
electricpete1 said:
What is the purpose of pinging periodically... just to check for new emails?
Click to expand...
Click to collapse
Yes, and any other things requiring an internet connection. Google Talk, Facebook, etc. Juice Defender has this very same functionality. That's where I got the idea.
So, I should mention that after a couple of days I've had a lot of success with the timer-based Ping task (Ping 2 listed above). The other (Ping 1) does seem to keep my phone awake more, but also works decently.
i have set for sync, every 5 hours, sync and data turns on and off to sync with google, and thats mostly it
Sent from my Desire HD using Tapatalk 2
XML file
TherynK said:
So, I should mention that after a couple of days I've had a lot of success with the timer-based Ping task (Ping 2 listed above). The other (Ping 1) does seem to keep my phone awake more, but also works decently.
Click to expand...
Click to collapse
Hi I tried to create profiles and task,,, but seems like it not running at all. Can u please share its XML file.
Thanks
Jitu
Thanks for this, I've just installed Tasker and this is the first thing I've tried. So far it looks to be working well - I have BetterBatteryStats installed and for the previous two days it was showing my battery consumption as being around 5-6% per hour. So far with this profile running in Tasker its down at 3% per hour so I'm happy
I've not got JuiceDefender installed so can't compare it with that just now but if I get a chance to I'll put it on (and then maybe GO Power Master) and see how they stack up. I prefer the idea of tasker though as it seems to be able to replace several apps in one.
Thanks
Thanks for sharing!! I'm trying out tasker and your profiles are my first... looking good!!
Nice trick, im going to try it!
I've noticed that my Ping 2 context does not trigger. Going back to trying the original Ping context.
im going to try it, sure it works great, thanks
I also recommend Llama
It can do almost everything that tasker (and obviously more things than JD) does and for free
Search it on Play store
I tested Tasker, JD, and Llama and i also find the last one more stable, so im using it actually
Enlight me...
Could you explain A7 from your Ping profile??
I'm new to Tasker, and I'm also trying to implement this save battery function.
TherynK said:
I've noticed that my Ping 2 context does not trigger. Going back to trying the original Ping context.
Click to expand...
Click to collapse
Is the original Ping context working for you?
Sent from my DROID RAZR HD using xda app-developers app
Thanks for sharing it
i am trying to do the ping 2 profile but i dont get how i do to insert the 10 mins in the profile,i can only add the variable event
any help?
Thanks!
Hi,
i've created tasker profile with this.
but i want to limit the profile to run only from certain time of the day (7:00 - 23:00), 23:00 - 7:00 no sync, no internet connection.
how do i set this up ?
I have a profile set up already to turn off all connection from 23:00 - 7:00, will my profile override the sync?
Thank you
TherynK said:
Recently I decided to start using Juice Defender, but after two days of use, I figured I could do the same thing or better with Tasker. Personally, I was annoyed with the lack of a delay between turning my screen off and JD turning off my data. Sometimes I would turn off my screen for 10 seconds and see that the data was off (and my phone had yet to even lock). I had to reinstall Pandora after this because it would give me an error every time it loaded. The purpose of this post is to give other people ideas about how to replace Juice Defender, and to perhaps get ideas from others about how to improve upon this. These profiles will do two things:
1) Wait 4 minutes after my screen is turned off (I have it set to lock after 2 minutes of screen off) to turn off mobile data and auto-sync.
2) Wait 12 minutes after data/auto-sync are turned off to turn them back on for 1 minute and repeat this process every 12 minutes until phone is unlocked.
There are 3 profiles and each is linked to one task.
Profile: Screen Off (24)
Event: Display Off
Enter: Net Off (25)
A1: Wait [ MS:0 Seconds:0 Minutes:4 Hours:0 Days:0 ]
A2: Mobile Data [ Set: Off ] If [ %SCREEN ~ off ]
A3: Auto-Sync [ Set: Off ] If [ %SCREEN ~ off ]
A4: Variable Set [ Name:%DATA To: off Do Maths: Off Append: Off ] If [ %SCREEN ~ off ]
Profile: Screen On (26)
Event: Display Unlocked
Enter: Net On (29)
A1: Mobile Data [ Set: On ]
A2: Auto-Sync [ Set: On ]
A3: Variable Set [ Name:%DATA To: on Do Maths: Off Append: Off ]
A4: Stop [ With Error: Off Tasking ]
Profile: Ping (34)
Event: Variable Set [ Variable:%DATA Value: off ]
Enter: Ping (32)
A1: Wait [ MS:0 Seconds:0 Minutes:12 Hours:0 Days:0 ]
A2: Mobile Data [ Set: On ] If [ %DATA ~ off ]
A3: Auto-Sync [ Set: On ] If [ %DATA ~ off ]
A4: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ] If [ %DATA ~ off ]
A5: Mobile Data [ Set: Off ] If [ %DATA ~ off ]
A6: Auto-Sync [ Set: Off ] If [ %DATA ~ off ]
A7: Perform Task [ Nameing Stop: Off Priority:1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] If [ %DATA ~ off ]
I struggled with the "Ping" task for a while before coming to do it this way. The Ping profile will wait until the data is turned off, wait 12 minutes, then do a 1 minute ping, turning data and sync back on. This process will be repeated every 13 minutes and will be stopped only when I unlock my phone. However, I'm worried that it will keep my phone awake or end up taking more battery than necessary.
P.S. Obviously this doesn't take current network activity into consideration, but I figure that most things that I do in the background, I do on a charger. When running Pandora in my car, I keep my screen stay on and plug it in. When updating apps, I do so on Wifi. I may encounter apps that require me to change this profile, but until then, this is all I need.
EDIT: This latter context (Ping 2) does not appear to work now that I've tested it for weeks and looked at the logs. This could explain why the "Ping" context wakes your phone more often than "Ping 2". I'm leaving this so that maybe someone that is more informed can help me make it work.
Click to expand...
Click to collapse
Is there any plugin or event to monitor the downloading speed of mobile data. The idea is to set a event trigger which triggers the "Net Off"-task if the download goes under certain threshold. For example if I set threshold as [50 KB/10 seconds] then the event is triggered soon the download speed goes under 50KB and for stays below continuously for more than 10 seconds.
I saw the above feature in Juice Defender Plus/Ultimate version. This cuts the data after all downloads is finished. In the profiles you shared it cuts the data after 4 mins even some download is going on. The another issue is data stays on for 4 mins even after it is not needed or all downloads are finished.
Hello TherynK,
This post really looks promising .. I have tried to build this profile but getting a little confused at the last step of the PING part. Is there a was to simplify that and would it be possible if you can post the profile download linke...
Thanks
Hi, I have been looking for a solution for this problem for quite a while myself, and today I found a way to collect the current value of data transferred and sent on all interfaces. Altho, I will not take credit for this part, nor will I bother to find the original poster, I will however share with you a more detailed explanation on how to set it up, and some ways to make use of it.
First off, this is what will happen
Situation 1. Headphones, Streaming with Spotify - When screen goes off, a variable with the current value of data transferred will be set, after 7 minutes an updated value will be set, we will get the difference between these two and thus get the amount of data transferred, if this is higher than a certain level, nothing will happen! (I.e spotify will continue to stream even tho screen is off)
The reason why I have used 7 minutes is this:Say you put on a song, it is 3 minutes long, after 30 seconds your screen goes off, the song is already downloaded when the traffic calculations will take place, using 7 minutes(or more), will in most cases lead to more than one song being played during the calculation, "ensuring" the capture of traffic data.
Situation 2. Headphones, No stream - Data will turn off after 7 minutes
Situation 3. No headphones, No Stream - Data will turn off after 2 minutes
Situation 4. No headphones, Stream - In my case, data will also turn off after 2 minutes(since this is not an issue for me) if you do however have issues with this, change the point A8 in section 2.2 below
In all cases: If the screen is turned On within the 7 or 2 minutes(depending on situation) the calculation will cancel! (i.e if you are surfing the web and screen goes black during a read)
1. Add some variables (I do not know if this is actually necessary!)
Open tasker, go to the variables tab on the top right corner and press the "+" button in order to add a variable, add these:
%CHEA 0
%CHEAB 0
%DIFF 0
%HEAD Off
2. Add some tasks (In the tasks tab)
-Make a new task called Checknet, press the options button(the screwdrivers) and set Collision handling to: Run both together, and keep device awake: on
Next is the list of what to do, this is not a script, add them one by one manually!
A1: Read Paragraph [ File: /proc/self/net/dev Para:1 To Var:%tet ]
A2: Variable Set [ Name:%newline To:
Do Mathsff Append: Off ]
A3: Variable Split [ Name:%tet Splitter:%newline Delete Base: Off ]
A4: For [ Variable:%line Items:%tet(3 ]
A5: Variable Split [ Name:%line Splitter: Delete Base: Off ]
A6: Variable Add [ Name:%rxb Value:%line2 Wrap Around:0 ]
A7: Variable Add [ Name:%txb Value:%line10 Wrap Around:0 ]
A8: End For
A9: Variable Set [ Name:%totalb To:%rxb+%txb Do Maths: On Append: Off ]
A10: Return [ Value:%totalb Stop: On ]
2.1 Add another task and call it Chediff
A1: Add a Perform Task (Found under the Task section) and choose Checknet, make sure to set the "Return Value Variable" value to %CHEA
A2: Add a Wait and set it to 7 minutes (This can be tuned, however you will have issues if you set this too low, I will explain later)
A3: Add another Perform Task, choose Checknet again, and set the "Return Value Variable" to %CHEAB
A4: Add another Wait, I use 2 seconds (For some reason it calculates wrong without this)
A5:Add a Variable set - Set %DIFF to: (%CHEAB-%CHEA)/1000 (Select "Do Maths")
2.2 Add one last task, and call it Dispoff
A1: If %HEAD ~ On
A2: Perform task Chediff
A3: If %DIFF < 1000
A4: Mobile data off
A5: WiFi off
A6: End if
A7: Else
A8: Wait 2 minutes (You could use another "Chediff" (perhaps with a lower waiting walue? Would need to duplicate it tho), but personally I have no reason for it)
A9: Mobile data off
A10: WiFi off
A11: End if
3. Add some profiles
1. On state, hardware, Headset plugged (any) - Variable set %HEAD On
2. On state, hardware, Headset plugged (any) check the invert box - Variable set %HEAD Off
3. On event, Display On - Use 3x stop tasks to stop, Chediff, Dispoff and Chenet
4. On event, Display Off - Perform task "Dispoff"
Hmmm
Interesting...I have been trying to figure out a solution similar to this. In my case, I listen to a lot things not only via headphones but also through the speakers. I would like my wifi or 3g (depending on which one is connected) to stay on even if the app is in the background and or the screen is off. I think I may be able to tweak this to my needs...thank you....
EDIT: task A2 of Task 2, this doenst seem clear. What are we supposed to enter for in the Variable Set box?
Also A4, what is %tet set to? In the post it says %tet(3 but I dont think this is right
edit
I got the task to read the data values from the dev file. The original post was a bit confusing so here it is again with some notes that may help:
A1: Read Paragraph [ File: /proc/self/net/dev Para:1 To Var:%tet ]
A2: Variable Set [ Name:%newline To: Do Maths: Off Append: Off ] >> in order to have the Variable Set to blank you need to press Enter two times in the To box
A3: Variable Split [ Name:%tet Splitter:%newline Delete Base: Off ]
A4: For [ Variable:%line Items:%tet(3 ]
A5: Variable Split [ Name:%line Splitter: Delete Base: Off ] >> enter a [space] in the Splitter box
A6: Variable Add [ Name:%rxb Value:%line2 Wrap Around:0 ]
A7: Variable Add [ Name:%txb Value:%line10 Wrap Around:0 ]
A8: End For
A9: Variable Set [ Name:%totalb To:%rxb+%txb Do Maths: On Append: Off ]
A10: Return [ Value:%totalb Stop: On ]
So I got this and the %DIFF task working. Now I am trying to write a profile to turn off wifi and 3g is the streaming data amount is low (i.e I am no longer streaming music or media).
A little help would be appreciated
I've been trying to make this work for a while, but my CHDIFF just doesnt seem to be doing its maths right,
For instance, onf the latest run i got CHEA 282554 and CHEB 289286, so (%CHEB-%CHEA)1000 should be like 6700/1000 = 6.7, right??
However the result shown on %DIFF is -221.962 for these numbers.... W-T-F??
EDIT: Okay, I think I got this to work (Thanks!), but the odd thing is that the CHECKNET is coming up with values (around 140,000) even when there is nothing downloading or when both WiFi and Data are turned off.... hmmm=?
Amazing!!
Thanks for this small "Tutorial". Everything works really fine!!
parthipanramesh said:
Thanks for this small "Tutorial". Everything works really fine!!
Click to expand...
Click to collapse
Yup, been using this for a while now. I love it!
Can you make a profile for wifi to switch off when the screen is off please? Dont need wifi to switch on when screen is on
ermacwins said:
Can you make a profile for wifi to switch off when the screen is off please? Dont need wifi to switch on when screen is on
Click to expand...
Click to collapse
oh thats easy..what I have is a delay of 30 secs after the screen turns off to see if the phone is turned back and an app that i designate as using Wifi is opened, if not then I turn off the wifi, otherwise I leave it on. I also have another profile checking to see if I have a streaming app running is, if so I will leave the wifi on. %streamapp is used in conjunction with the profile above to see if data is still being streamed.
Profile - wifi off
Context:
Event - display off
Variable - %streamapp ~ false
Tasks:
Wait 30 secs
If %display ~ on (I have another profile that checks the status of the display, on or off)
If %wifiapp ~ true (I have another profile that checks if an app I designate as needing wifi is running in the foreground)
Stop
End if
Else
Wifi off
End if
Screen off=wifi/data off if no stream or download active
Hey Guys,
I created a new thread: http://forum.xda-developers.com/showthread.php?t=2127481 to make it a little bit clear. Cz this is not my thread and I don't want to upset the thread owner.
I'd like to welcome you in my thread.
parthipanramesh said:
Context:
State - Display off
State - Wifi connected
Tasks:
Run task → Checkdiff (Create all the tasks from the first post!!)
If: %DIFF<1000
Wifi → off
End if
Stop → if %wifi~off
Goto Action 1
This profile will check if your streaming or downloading something and will only switch off wifi if you don't have traffic. If you have traffic it will run this task every 2 min until you don't have traffic. (Download/Streaming completed)
Click to expand...
Click to collapse
Hi
Can you please share your xml files?
I've tried to perform step by step but with no sucess....
Many thanks
toyjeep said:
Hi
Can you please share your xml files?
I've tried to perform step by step but with no sucess....
Many thanks
Click to expand...
Click to collapse
Hi toyjeep,
yes of course. I updated my post above yours and tweaked the tasks.
Have a look! Ask me if you have problems
Hope I helped you
parthipanramesh said:
Hi toyjeep,
yes of course. I updated my post above yours and tweaked the tasks.
Have a look! Ask me if you have problems
Hope I helped you
Click to expand...
Click to collapse
Thanks work almost perfect...
when task Screen off (wifi) runs it gives this error:
Variable convert: %CHECKA_WIFI: no value
Whats wrong??
BR
toyjeep said:
Thanks work almost perfect...
when task Screen off (wifi) runs it gives this error:
Variable convert: %CHECKA_WIFI: no value
Whats wrong??
BR
Click to expand...
Click to collapse
Click on the Screen off (wifi) task and press on Variable Convert: %CHECKA_WIFI. Look if it looks like this "Variable Convert: Name: %CHECKA_WIFI ;Function: Bytes to Kilobytes ;Store Result In: %CHECKA_WIFI".
Did you use my xml file?
parthipanramesh said:
Click on the Screen off (wifi) task and press on Variable Convert: %CHECKA_WIFI. Look if it looks like this "Variable Convert: Name: %CHECKA_WIFI ;Function: Bytes to Kilobytes ;Store Result In: %CHECKA_WIFI".
Did you use my xml file?
Click to expand...
Click to collapse
I had just imported your file
No messing around.....
---- edit -----
After anwser went to tab variable and it have a value now.
I think i'm understanding...
With WIFI off - If I go to task and "play", the value in variable goes to (none, empty)
With WIFI ON - It works well.
---------- Post added at 10:01 PM ---------- Previous post was at 09:52 PM ----------
Ok its working!
Testing with wifi off was the cause to the error.
Now I've tweaked a little the task SCREEN OFF
Screen off (4)
A1: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
A2: If [ %SCREEN ~ on ]
A3: Goto [ Type:Action Number Number:1 Label: ]
A4: Else If [ %SCREEN ~ off ]
A5: Perform Task [ Name:Screen off (Data) Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A6: Perform Task [ Name:Screen off (Wifi) Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A7: Vibrate [ Time:200 ]
A8: End If
Now I have 10 seconds to turn on again the phone and dont lose the connection.
If the screen is on it goes in loop!
What do you think?
toyjeep said:
I had just imported your file
No messing around.....
---- edit -----
After anwser went to tab variable and it have a value now.
I think i'm understanding...
With WIFI off - If I go to task and "play", the value in variable goes to (none, empty)
With WIFI ON - It works well.
---------- Post added at 10:01 PM ---------- Previous post was at 09:52 PM ----------
Ok its working!
Testing with wifi off was the cause to the error.
Now I've tweaked a little the task SCREEN OFF
Screen off (4)
A1: Wait [ MS:0 Seconds:10 Minutes:0 Hours:0 Days:0 ]
A2: If [ %SCREEN ~ on ]
A3: Goto [ Type:Action Number Number:1 Label: ]
A4: Else If [ %SCREEN ~ off ]
A5: Perform Task [ Name:Screen off (Data) Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A6: Perform Task [ Name:Screen off (Wifi) Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
A7: Vibrate [ Time:200 ]
A8: End If
Now I have 10 seconds to turn on again the phone and dont lose the connection.
If the screen is on it goes in loop!
What do you think?
Click to expand...
Click to collapse
It's a good idea but this profile only runs if the screen is on You can set up an exit task which stops the Screen off task or which turns wifi on.
toyjeep said:
Thanks work almost perfect...
when task Screen off (wifi) runs it gives this error:
Variable convert: %CHECKA_WIFI: no value
Whats wrong??
BR
Click to expand...
Click to collapse
I have modified the script to get away that error
1.Name: Screen off (Wifi)
2.Run Shell: Command: cat sys/class/net/wlan0/statistics/rx_bytes ;Store Result In: %CHECKA_WIFI ;Continue Task After Error: yes
3.Variable Convert: Name: %CHECKA_WIFI ;Function: Bytes to Kilobytes ;Store Result In: %CHECKA_WIFI
Add in 1: Variable Set: Name: %CHECKA_WIFI; To:0; If %CHECKA_WIFI !set
4.Wait: 30 seconds
5.Run Shell: Command: cat sys/class/net/wlan0/statistics/rx_bytes ;Store Result In: %CHECKB_WIFI ;Continue Task After Error: yes
6.Variable Convert: Name: %CHECKB_WIFI ;Function: Bytes to Kilobytes ;Store Result In: %CHECKB_WIFI
Add in 2: Variable Set: Name: %CHECKB_WIFI; To:0; If %CHECKB_WIFI !set
7.Wait: 2 seconds (need to wait or it won't do the maths correctly)
8.Variable Set: Name: %DIFF_WIFI ;To: %CHECKB_WIFI-%CHECKA_WIFI ;Do Maths: yes
9.If: %DIFF_WIFI < 15
10.Mobile Data: off
11.Stop: Task: Screen off (Wifi)
12.Else:
13.Wait: 2 Minutes
14.Goto: Type Action Number ;Number: 1
15.End if
Basically if the CHECKA_WIFI and CHECKB_WIFI no value, it will set the value to 0
Any chance you could post the fixed/updated xml files? It would be ever so gracious.
wl3gan said:
I have modified the script to get away that error
1.Name: Screen off (Wifi)
2.Run Shell: Command: cat sys/class/net/wlan0/statistics/rx_bytes ;Store Result In: %CHECKA_WIFI ;Continue Task After Error: yes
3.Variable Convert: Name: %CHECKA_WIFI ;Function: Bytes to Kilobytes ;Store Result In: %CHECKA_WIFI
Add in 1: Variable Set: Name: %CHECKA_WIFI; To:0; If %CHECKA_WIFI !set
4.Wait: 30 seconds
5.Run Shell: Command: cat sys/class/net/wlan0/statistics/rx_bytes ;Store Result In: %CHECKB_WIFI ;Continue Task After Error: yes
6.Variable Convert: Name: %CHECKB_WIFI ;Function: Bytes to Kilobytes ;Store Result In: %CHECKB_WIFI
Add in 2: Variable Set: Name: %CHECKB_WIFI; To:0; If %CHECKB_WIFI !set
7.Wait: 2 seconds (need to wait or it won't do the maths correctly)
8.Variable Set: Name: %DIFF_WIFI ;To: %CHECKB_WIFI-%CHECKA_WIFI ;Do Maths: yes
9.If: %DIFF_WIFI < 15
10.Mobile Data: off
11.Stop: Task: Screen off (Wifi)
12.Else:
13.Wait: 2 Minutes
14.Goto: Type Action Number ;Number: 1
15.End if
Basically if the CHECKA_WIFI and CHECKB_WIFI no value, it will set the value to 0
Click to expand...
Click to collapse
Hi,
The error persists
Screen off (Wifi) (12)
A1: Run Shell [ Command:cat sys/class/net/wlan0/statistics/rx_bytes Timeout (Seconds):0 Use Rootff Store Result In:%CHECKA_WIFI Continue Task After Errorn ]
A2: Variable Convert [ Name:%CHECKA_WIFI Function:Bytes to Kilobytes Store Result In:%CHECKA_WIFI ]
A3: Variable Set [ Name:%CHECKA_WIFI To:0 Do Mathsff Appendff ] If [ %CHECKA_WIFI ! Set ]
A4: Wait [ MS:0 Seconds:30 Minutes:0 Hours:0 Days:0 ]
A5: Run Shell [ Command:cat sys/class/net/wlan0/statistics/rx_bytes Timeout (Seconds):0 Use Rootff Store Result In:%CHECKB_WIFI Continue Task After Errorn ]
A6: Variable Convert [ Name:%CHECKB_WIFI Function:Bytes to Kilobytes Store Result In:%CHECKB_WIFI ]
A7: Variable Set [ Name:%CHECKB_WIFI To:0 Do Mathsff Appendff ] If [ %CHECKB_WIFI ! Set ]
A8: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A9: Variable Set [ Name:%DIFF_WIFI To:%CHECKB_WIFI-%CHECKA_WIFI Do Mathsn Appendff ]
A10: If [ %DIFF_WIFI < 15 ]
A11: WiFi [ Setff ] If [ %SCREEN ~ off ]
A12: Silent Mode [ Modeff ]
A13: Auto-Sync [ Setff ]
A14: Stop [ With Errorff Task:Screen off (Wifi) ] If [ %SCREEN ~ off ]
A15: Else
A16: Wait [ MS:0 Seconds:0 Minutes:2 Hours:0 Days:0 ]
A17: Goto [ Type:Action Number Number:1 Label: ]
A18: End If
A19: Vibrate Pattern X [ Pattern:100,100,100,100,100,100 ]
A20: Auto-Sync [ Setff ]
A21: Silent Mode [ Modeff ]
Is this ok??
Hello everyone, most of you should know me by now.
I've been talking to @fatboyslimerr and it seems he and a lot of people are having random reboots.
I've created this thread as a discussion place to make it easy to coordinate the issues.
Known So Far about Random Reboots:
-Not Kernel Related apparently
-Issues appear when it goes into sleep mode
-Issues are appearing with wcnss_wlan.0, power.0, and alarm failing to suspend
-Issues are only (supposedly) appearing on CM-Based ROMS
Please post as many logs as possible and report the combinations where it's appearing
Thanks, javelinanddart
@Tamlins @waver1967 @letsurock @kudykam @amh.online @Auross are some of the people I believe that also had this reboot issue running various CM-based ROMs.
fatboyslimerr said:
@Tamlins @waver1967 @letsurock @kudykam @amh.online @Auross are some of the people I believe that also had this reboot issue running various CM-based ROMs.
Click to expand...
Click to collapse
Hi,
Yes I have it.
(sorry for my poor english)
I had it @ the begening of CM12 but the problems seemed to be corrected in some of last versions of CM12 (but I also changed 2-3 times Gapps)
The problem came back with 12.1. (with Gapps 5.1)
I'm not a dev, It's juste a feeling but are we sure that the problem not coming from Gapps ? Someone tryed to test with no Gapps installed at all ? (I can't do it for the moment)
Hboot 2.16
S-OFF
Cache/Dalvik cache wipe only
Regards,
Tamlin
Tamlins said:
Hi,
Yes I have it.
(sorry for my poor english)
I had it @ the begening of CM12 but the problems seemed to be corrected in some of last versions of CM12 (but I also changed 2-3 times Gapps)
The problem came back with 12.1. (with Gapps 5.1)
I'm not a dev, It's juste a feeling but are we sure that the problem not coming from Gapps ? Someone tryed to test with no Gapps installed at all ? (I can't do it for the moment)
Hboot 2.16
S-OFF
Cache/Dalvik cache wipe only
Regards,
Tamlin
Click to expand...
Click to collapse
It's a ROM issue, not gapps or kernel
For me, it used to reboot when charging the phone. Now I am on Euphoria 5.1.1 24-05-15 build. I didn't have any reboot in this build.
letsurock said:
For me, it used to reboot when charging the phone. Now I am on Euphoria 5.1.1 24-05-15 build. I didn't any reboot in this build.
Click to expand...
Click to collapse
Exactly the same problem : reboot when fully battery charged ! I'm on cyanid L 5.1.1 ROM.
I will do some tests with the setting tomorrow and i tell you if i find something interesting.
letsurock said:
For me, it used to reboot when charging the phone. Now I am on Euphoria 5.1.1 24-05-15 build. I didn't any reboot in this build.
Click to expand...
Click to collapse
Auross said:
Exactly the same problem : reboot when fully battery charged ! I'm on cyanid L 5.1.1 ROM.
I will do some tests with the setting tomorrow and i tell you if i find something interesting.
Click to expand...
Click to collapse
As far as I know Euphoria is not CM based, so maybe that's it. I know Cyanide for sure is.
Thanks for the feedback and please do run tests!
BTW, I have emailed @intervigil about this
I've been using CM from version 11 to 12.1.
I've alway seen random reboots and I still see some (1 to 3 times a day). Each time, it' GPS/gyro related. I use location services a lot: Ingress, Ware, Google Maps, Google location tracking, apps needing GPS for other usages. Each time I could diagnose it, the last lines of the last_kmg were about the Panasonic gyro kernel driver. It both happen while the screen is off and on, but it occurs more often while unlocking and turning on the phone/screen.
Since 12.1, I have random reboots while the phone is charging. This is new, and I did not take the time to diagnose this one, it always happened while I'm in bed trying to sleep, I don't want to get up I think it can be reproduced easily, just make it charge, in less than 2 hours it should occur.
I got a reboot whilst device was sleeping, not charging on Euphoria from 1st May.
The last_kmsg is here https://drive.google.com/open?id=0B7gvN7Z3xFy2V05zQ2VuYkwzMUU&authuser=0
Do you know if we can find any logs on the system which could explain some reboots or another troubles ?
Thanks
I just had a reboot while the phone was screen off in my pocket. I had been using Ingress so it might have tried to access GPS data. It was a full reboot with vibration and white HTC statup screen. That's why I guess it's a kernel bug.
Several info:
HBOOT 2.16
CM 12.1 2015-05-06 unofficial nightly built by F-L-Y-E-R
Radio 1.20
ext4 FS
Here are the last lines of /proc/kmesg:
Code:
[18001.475382] wakeup wake lock: bam_dmux_wakelock
[18001.480113] PM: early resume of devices complete after 4.120 msecs
[18001.482310] [BATT][BMS] cc_uah = 72241uAh, raw->cc = 102858d, cc = 16942477 after subtracting 0
[18001.482341] [BATT][BMS] pm8921_bms_resume: BMS_TOLERANCES=0x2f
[18001.484722] [USB] OTG PM resume
[18001.485179] [GSNR] Gsensor enable
[18001.485179] [GSNR][BMA250] BMA_set_mode: mode = 0x00
[18001.488659] [COMP][AKM8975] akm8975_resume: (m, a, t, mv) = (0x0, 0x0, 0x0, 0x0)
[18001.488689] [GYRO][PANASONIC] Gyro sys on on:g_status=0 off_status=0
[18001.488720] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=0
[18001.488750] [FLT]TPS tps61310_resume:
[18001.493054] msm_fb_ext_resume: Turning on HPD circuitry
[18001.493298] PM: resume of devices complete after 13.123 msecs
[18001.496106] [BATT] htc_battery_complete: sr_time_period=32959 ms; total passing time=168592 ms.htc_batt_info.state=0x2, batt_temp=374, sensor0_temp=0 at 18000998147051 (2015-05-11 12:06:23.003784523 UTC)
[18001.712709] Restarting tasks ... done.
[18001.742527] PM: suspend exit 2015-05-11 12:06:23.250197422 UTC
[18001.747746] suspend: exit suspend, ret = 0 (2015-05-11 12:06:23.255412362 UTC)
[18001.957024] [COMP][AKM8975] AKECS_GetOpenStatus:
[18002.228381] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:
[18003.479350] PM: suspend entry 2015-05-11 12:06:24.986408282 UTC
[18003.516188] Freezing user space processes ...
[18003.526138] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:wait OK
[18003.534165] (elapsed 0.009 seconds) done.
[18003.537278] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[18003.545823] Suspending console(s) (use no_console_suspend to debug)
[18003.553972] [BATT] htc_battery_prepare: passing time:170652 ms, alarm will be triggered after 3430 sec.(suspend_highfreq_check_reason=0x0, htc_batt_info.state=0x6), batt_temp=374, sensor0_temp=0 at 18003055387229 (2015-05-11 12:06:25.060994183 UTC)
[18003.555620] msm_fb_ext_suspend: Turning off HPD circuitry
[18003.559130] [FLT]TPS tps61310_suspend:
[18003.559130] [FLT]TPS flashlight_turn_off
[18003.559741] [GYRO][PANASONIC] Gyro sys off on:g_status=0 off_status=1
[18003.559771] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=1
[18003.559771] [GSNR] Gsensor disable
[18003.559771] [GSNR][BMA250] BMA_set_mode: mode = 0x01
[18003.576344] [USB] OTG PM suspend
[18003.609367] [BATT][BMS] cc_uah = 72410uAh, raw->cc = 1030269, cc = 16974441 after subtracting 0
[18003.609367] [BATT][BMS] pm8921_bms_suspend: BMS_TOLERANCES=0x2f
[18003.610740] PM: suspend of devices complete after 55.360 msecs
[18003.611564] PM: late suspend of devices complete after 0.823 msecs
[18003.612999] PM: noirq suspend of devices complete after 1.403 msecs
[18003.612999] Disabling non-boot CPUs ...
[18003.613457] msm_pm_enter
[18003.613457] msm_pm_enter: power collapse
[18003.613457] msm_mpm_irqs_detectable: cannot monitor 000000,00000000,00000000,00000000,00000000,00000000,00020000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
[18003.613457] msm_pm_enter: return
[18003.614891] PM: noirq resume of devices complete after 1.312 msecs
[18003.615715] wakeup wake lock: bam_dmux_wakelock
[18003.616753] PM: early resume of devices complete after 0.762 msecs
[18003.618706] [BATT][BMS] cc_uah = 72855uAh, raw->cc = 10499d7, cc = 17078743 after subtracting 0
[18003.618706] [BATT][BMS] pm8921_bms_resume: BMS_TOLERANCES=0x2f
[18003.620079] [USB] OTG PM resume
[18003.620202] [GSNR] Gsensor enable
[18003.620202] [GSNR][BMA250] BMA_set_mode: mode = 0x00
[18003.623864] [COMP][AKM8975] akm8975_resume: (m, a, t, mv) = (0x0, 0x0, 0x0, 0x0)
[18003.623864] [GYRO][PANASONIC] Gyro sys on on:g_status=0 off_status=0
[18003.623864] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=0
[18003.623894] [FLT]TPS tps61310_resume:
[18003.625848] msm_fb_ext_resume: Turning on HPD circuitry
[18003.626092] PM: resume of devices complete after 9.308 msecs
[18003.628900] [BATT] htc_battery_complete: sr_time_period=121949 ms; total passing time=292601 ms.htc_batt_info.state=0x2, batt_temp=355, sensor0_temp=0 at 18003130309446 (2015-05-11 12:08:27.003479085 UTC)
[18003.845656] Restarting tasks ... done.
[18003.866684] PM: suspend exit 2015-05-11 12:08:27.241231020 UTC
[18003.880388] suspend: exit suspend, ret = 0 (2015-05-11 12:08:27.254953790 UTC)
[18004.062350] [COMP][AKM8975] AKECS_GetOpenStatus:
[18004.352935] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:
COMP is for compass and GYRO for the gyroscope.
Would it be possible for someone to build a kernel without the gyro driver so that I can use it during a few days for testing? And maybe also another one without the compass driver ?
kdd998 said:
I just had a reboot while the phone was screen off in my pocket. I had been using Ingress so it might have tried to access GPS data. It was a full reboot with vibration and white HTC statup screen. That's why I guess it's a kernel bug.
Several info:
HBOOT 2.16
CM 12.1 2015-05-06 unofficial nightly built by F-L-Y-E-R
Radio 1.20
ext4 FS
Here are the last lines of /proc/kmesg:
Code:
[18001.475382] wakeup wake lock: bam_dmux_wakelock
[18001.480113] PM: early resume of devices complete after 4.120 msecs
[18001.482310] [BATT][BMS] cc_uah = 72241uAh, raw->cc = 102858d, cc = 16942477 after subtracting 0
[18001.482341] [BATT][BMS] pm8921_bms_resume: BMS_TOLERANCES=0x2f
[18001.484722] [USB] OTG PM resume
[18001.485179] [GSNR] Gsensor enable
[18001.485179] [GSNR][BMA250] BMA_set_mode: mode = 0x00
[18001.488659] [COMP][AKM8975] akm8975_resume: (m, a, t, mv) = (0x0, 0x0, 0x0, 0x0)
[18001.488689] [GYRO][PANASONIC] Gyro sys on on:g_status=0 off_status=0
[18001.488720] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=0
[18001.488750] [FLT]TPS tps61310_resume:
[18001.493054] msm_fb_ext_resume: Turning on HPD circuitry
[18001.493298] PM: resume of devices complete after 13.123 msecs
[18001.496106] [BATT] htc_battery_complete: sr_time_period=32959 ms; total passing time=168592 ms.htc_batt_info.state=0x2, batt_temp=374, sensor0_temp=0 at 18000998147051 (2015-05-11 12:06:23.003784523 UTC)
[18001.712709] Restarting tasks ... done.
[18001.742527] PM: suspend exit 2015-05-11 12:06:23.250197422 UTC
[18001.747746] suspend: exit suspend, ret = 0 (2015-05-11 12:06:23.255412362 UTC)
[18001.957024] [COMP][AKM8975] AKECS_GetOpenStatus:
[18002.228381] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:
[18003.479350] PM: suspend entry 2015-05-11 12:06:24.986408282 UTC
[18003.516188] Freezing user space processes ...
[18003.526138] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:wait OK
[18003.534165] (elapsed 0.009 seconds) done.
[18003.537278] Freezing remaining freezable tasks ... (elapsed 0.002 seconds) done.
[18003.545823] Suspending console(s) (use no_console_suspend to debug)
[18003.553972] [BATT] htc_battery_prepare: passing time:170652 ms, alarm will be triggered after 3430 sec.(suspend_highfreq_check_reason=0x0, htc_batt_info.state=0x6), batt_temp=374, sensor0_temp=0 at 18003055387229 (2015-05-11 12:06:25.060994183 UTC)
[18003.555620] msm_fb_ext_suspend: Turning off HPD circuitry
[18003.559130] [FLT]TPS tps61310_suspend:
[18003.559130] [FLT]TPS flashlight_turn_off
[18003.559741] [GYRO][PANASONIC] Gyro sys off on:g_status=0 off_status=1
[18003.559771] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=1
[18003.559771] [GSNR] Gsensor disable
[18003.559771] [GSNR][BMA250] BMA_set_mode: mode = 0x01
[18003.576344] [USB] OTG PM suspend
[18003.609367] [BATT][BMS] cc_uah = 72410uAh, raw->cc = 1030269, cc = 16974441 after subtracting 0
[18003.609367] [BATT][BMS] pm8921_bms_suspend: BMS_TOLERANCES=0x2f
[18003.610740] PM: suspend of devices complete after 55.360 msecs
[18003.611564] PM: late suspend of devices complete after 0.823 msecs
[18003.612999] PM: noirq suspend of devices complete after 1.403 msecs
[18003.612999] Disabling non-boot CPUs ...
[18003.613457] msm_pm_enter
[18003.613457] msm_pm_enter: power collapse
[18003.613457] msm_mpm_irqs_detectable: cannot monitor 000000,00000000,00000000,00000000,00000000,00000000,00020000,00000000,00000000,00000000,00000000,00000000,00000000,00000000
[18003.613457] msm_pm_enter: return
[18003.614891] PM: noirq resume of devices complete after 1.312 msecs
[18003.615715] wakeup wake lock: bam_dmux_wakelock
[18003.616753] PM: early resume of devices complete after 0.762 msecs
[18003.618706] [BATT][BMS] cc_uah = 72855uAh, raw->cc = 10499d7, cc = 17078743 after subtracting 0
[18003.618706] [BATT][BMS] pm8921_bms_resume: BMS_TOLERANCES=0x2f
[18003.620079] [USB] OTG PM resume
[18003.620202] [GSNR] Gsensor enable
[18003.620202] [GSNR][BMA250] BMA_set_mode: mode = 0x00
[18003.623864] [COMP][AKM8975] akm8975_resume: (m, a, t, mv) = (0x0, 0x0, 0x0, 0x0)
[18003.623864] [GYRO][PANASONIC] Gyro sys on on:g_status=0 off_status=0
[18003.623864] [GYRO][PANASONIC] GyroB sys off on:g_status=0 off_status=0
[18003.623894] [FLT]TPS tps61310_resume:
[18003.625848] msm_fb_ext_resume: Turning on HPD circuitry
[18003.626092] PM: resume of devices complete after 9.308 msecs
[18003.628900] [BATT] htc_battery_complete: sr_time_period=121949 ms; total passing time=292601 ms.htc_batt_info.state=0x2, batt_temp=355, sensor0_temp=0 at 18003130309446 (2015-05-11 12:08:27.003479085 UTC)
[18003.845656] Restarting tasks ... done.
[18003.866684] PM: suspend exit 2015-05-11 12:08:27.241231020 UTC
[18003.880388] suspend: exit suspend, ret = 0 (2015-05-11 12:08:27.254953790 UTC)
[18004.062350] [COMP][AKM8975] AKECS_GetOpenStatus:
[18004.352935] [GYRO][PANASONIC] EWTZMU2_GetOpenStatus:
COMP is for compass and GYRO for the gyroscope.
Would it be possible for someone to build a kernel without the gyro driver so that I can use it during a few days for testing? And maybe also another one without the compass driver ?
Click to expand...
Click to collapse
@intervigil confirmed this is a known CM bug that the Compass/Gyro causes reboots on Ville
This is a separate issue from the ROM side stuff @fatboyslimerr
I'll add this issue to the OP though thanks for reminding me
I'm waiting for @fatboyslimerr to confirm is a minor modification I made might've fixed Compass
javelinanddart said:
@intervigil confirmed this is a known CM bug that the Compass/Gyro causes reboots on Ville
This is a separate issue from the ROM side stuff @fatboyslimerr
I'll add this issue to the OP though thanks for reminding me
I'm waiting for @fatboyslimerr to confirm is a minor modification I made might've fixed Compass
Click to expand...
Click to collapse
Good news then
kdd998 said:
Good news then
Click to expand...
Click to collapse
Not fixed unfortunetely
javelinanddart said:
@intervigil confirmed this is a known CM bug that the Compass/Gyro causes reboots on Ville
This is a separate issue from the ROM side stuff @fatboyslimerr
I'll add this issue to the OP though thanks for reminding me
I'm waiting for @fatboyslimerr to confirm is a minor modification I made might've fixed Compass
Click to expand...
Click to collapse
That is a bug haunting Ville for ages...since long time ago users are reporting reboots while using maps or similar apps (I had it too several times in the past but now I'm not using maps/nav so often)
Sent from nowhere over the air...
Rapier said:
That is a bug haunting Ville for ages...since long time ago users are reporting reboots while using maps or similar apps (I had it too several times in the past but now I'm not using maps/nav so often)
Sent from nowhere over the air...
Click to expand...
Click to collapse
Yeah I heard from @intervigil
It's mostly compass apps
I've used Google Maps with no issues.
Unfortunately that's not the only issue
Phone seems to be rebooting when in deep sleep mode
Yep, still having reboots during sleep. Google maps does work fine, device gets seriously hot but it works fine. 3rd party compass apps cause reboots after awhile.
fatboyslimerr said:
Yep, still having reboots during sleep. Google maps does work fine, device gets seriously hot but it works fine. 3rd party compass apps cause reboots after awhile.
Click to expand...
Click to collapse
Device getting seriously hot is thermald issue
Why I used showp's thermal in a nutshell: Never had my ville not feel cold to the touch
Not that I have ville anymore ofc....
Since 2 days, I've been using cm12.1 nightly from the 15th. Now back on hboot 2.15 and last officially pushed (for international region) radio by HTC: 1.11.
I discovered the quick toggle for the compass and disabled its usage (it must be relatively recent). So far: not one reboot related to GPS
I had 2 reboots while setting up all my apps but didn't take the opportunity to get a logcat or kmesg. It did not occur since.
kdd998 said:
Since 2 days, I've been using cm12.1 nightly from the 15th. Now back on hboot 2.15 and last officially pushed (for international region) radio by HTC: 1.11.
I discovered the quick toggle for the compass and disabled its usage (it must be relatively recent). So far: not one reboot related to GPS
I had 2 reboots while setting up all my apps but didn't take the opportunity to get a logcat or kmesg. It did not occur since.
Click to expand...
Click to collapse
Sweet!
IDK about the apps thing
As it say in title my N5's Screen Randomly Turn off & Flicker in Dark (any ROM..stock 6.0.1/Pure nexus/AOSPA 7.1)
after sceen goes off it doesn't wake by power button or any other means till either i turn on the light in room or force reboot by holding power button.
Important things to consider :
Random (mostly happens on Browsing, Streaming video in chrome, FB , News apps But never happened in YouTube or MX Player while playing video)
Only happens in Dark (it never happened in Day)
Can easily wake the sceen once i turn on light in room but there is no other way to turns it on in Dark once it goes off.
Some times Screen flickers before going off (not always)
from this points i tend to believe it's related to proximity sensor but tried checking it's working via some apps and they shows it's working perfectly.
even tried resting proximity data via EFS backup still no luck.
if you know something about this issue kindly help
Thanks in advance
i have the same problem.
i onlin turn on the image when disconnect the baterry for 2 or 3 minutes, but nothing resolve the problem.
i chainge the lcd but not resolve the problema.
jineshpatel30 said:
As it say in title my N5's Screen Randomly Turn off & Flicker in Dark (any ROM..stock 6.0.1/Pure nexus/AOSPA 7.1)
after sceen goes off it doesn't wake by power button or any other means till either i turn on the light in room or force reboot by holding power button.
Important things to consider :
Random (mostly happens on Browsing, Streaming video in chrome, FB , News apps But never happened in YouTube or MX Player while playing video)
Only happens in Dark (it never happened in Day)
Can easily wake the sceen once i turn on light in room but there is no other way to turns it on in Dark once it goes off.
Some times Screen flickers before going off (not always)
from this points i tend to believe it's related to proximity sensor but tried checking it's working via some apps and they shows it's working perfectly.
even tried resting proximity data via EFS backup still no luck.
if you know something about this issue kindly help
Thanks in advance
Click to expand...
Click to collapse
@devs Kindly check logs in attachment and help me in finding exact culprit for this problem (with possible solution )
this type of entries are present all over the logs (i don't know if it's relevant to this issue or not)
Code:
07-31 00:19:30.312 I/WindowManager( 752): Screen frozen for +223ms due to Window{1c3e4be u0 NavigationBar}
07-31 00:19:31.630 I/ActivityManager( 752): Waited long enough for: ServiceRecord{834a3ca u0 com.whatsapp/.messaging.MessageService}
07-31 00:21:19.461 I/PowerManagerService( 752): Going to sleep due to power button (uid 1000)...
07-31 00:21:20.088 I/DisplayManagerService( 752): Display device changed state: "Built-in Screen", OFF
07-31 00:21:20.363 I/PowerManagerService( 752): Sleeping (uid 1000)...
07-31 00:21:20.493 I/ActivityManager( 752): Config changes=480 {1.0 404mcc57mnc en_IN ldltr sw360dp w360dp h576dp 480dpi nrml port finger -keyb/v/h -nav/h as.1 s.9}
07-31 00:21:20.573 I/PowerManagerService( 752): Waking up from sleep (uid 1000)...
07-31 00:21:20.589 I/DisplayPowerController( 752): Blocking screen on until initial contents have been drawn.
07-31 00:21:20.668 I/DisplayManagerService( 752): Display device changed state: "Built-in Screen", ON
07-31 00:21:20.865 D/PowerManagerService( 752): acquireWakeLock: ignoring request from com.android.nfc
07-31 00:21:21.021 D/PowerManagerService( 752): acquireWakeLock: ignoring request from com.android.nfc
07-31 00:21:21.050 I/DisplayPowerController( 752): Unblocked screen on after 461 ms
07-31 00:21:22.239 I/PowerManagerService( 752): Going to sleep due to power button (uid 1000)...
07-31 00:21:22.826 I/DisplayManagerService( 752): Display device changed state: "Built-in Screen", OFF
07-31 00:21:23.101 I/PowerManagerService( 752): Sleeping (uid 1000)...
07-31 00:21:23.133 D/PowerManagerService( 752): acquireWakeLock: ignoring request from com.android.nfc
07-31 00:21:34.403 I/PowerManagerService( 752): Waking up from sleep (uid 1000)...
07-31 00:21:34.464 I/DisplayPowerController( 752): Blocking screen on until initial contents have been drawn.
07-31 00:21:34.491 D/PowerManagerService( 752): acquireWakeLock: ignoring request from com.android.nfc
07-31 00:21:34.548 I/DisplayManagerService( 752): Display device changed state: "Built-in Screen", ON
07-31 00:21:34.624 I/DisplayPowerController( 752): Unblocked screen on after 160 ms
@marcomarinho i know you are busy with PA but if you get some time please check this and let me know what you find
i have this issue before when I'm watching youtube vids specially when the phone is in landscape mode, happens also 1 time when i was playing.
Edit: The lcd of my device has already been replaced.
Any input from logs ?
@osm0sis if you get some please take a look at logs and let me know if you find cause of issue in OP.
Thanks in advance
Turning OFF "adaptive (auto) brightness" seems to fix the problem.. atleast for now. Not a ideal solution but still..
So i guess issue is related to light sensor.