yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] nobnut:
Result!!

I used another device (Samsung Galaxy Note) instead of the SGSII I had used previously and this time it worked as planned :)

wakelocktest.txt

name count
"svnet" 19
"wlan_rx_wake" 61

wlan_rx_wake increasing > 61 23, 61 26, 61 28, 61 30

I then got bored in terminal and drew a childish image (it is supposed to look like that, right?)
[Android Apps and Games] brandall:
LOL! You're on form today...

WHOOP! It works! Although you've made me realise that reporting the repeating 61,61,61,61,61 doesn't really get more exciting than the first 61 I reported - I shall tweak...

Good work and thank you again :eek:

--------------
[Android Apps and Games] brandall:
V14 - gutted!

Just managed to wipe V14... Accidentally wrote over the backup file and all the changes are gone forever :mad:

Wish I written the change log as I went along...

Anyway - apart from the fact I have to rewrite it, I'm also going to wait until the latest Tasker beta is released as it uses a few functions I want to include.

V14 has (had) automatic updates too! DSD just got (did have) nightlies!

I was so proud of it... :(

Bolloc*s
[Android Apps and Games] shortskoolbus:
keep getting "binary transfer failed" even though i see SU access being granted...

I'm not sure which button is the "test" button, is it the "play" button when i select the task?

Checked the /data/DSD folder and toolkit is in there... Says failed every time though and nothing is getting written to the deepsleepdetective.txt file...
[Android Apps and Games] brandall:
On some ROMs I've seen issues with the permissions for the /data folder. Can you navigate to the folder in a file explorer, long press on the /data folder and select permission - then copy what they are in a reply please. Then, can you reboot and then go to the DSDErrorLog task and press the play (yes, play/test are the same thing) button and send me the email please.
[Android Apps and Games] shortskoolbus:
Hi Brandall,

email sent and attached are the screenshots of the permissions.

Not sure what happened but it looks like it finally wrote to the .txt file and is giving me a report after i kept playing with it for several hours. although it does not do it consistently... a little strange. Nevertheless i do keep getting the binary transfer failed message although SU is approved.

Thanks for your support.
[Android Apps and Games] brandall:
Got the log thanks and it's all fine other than there is a more up-to-date version of Tasker available. The permissions from the image are fine too, so I'm a little baffled as to why the binary 'test' is not being detected...? The main thing is that it's there and is being used, so nothing to worry about - perhaps the latest version of Tasker will confirm it has been transferred...?

To clarify, the file deepsleepdetective.txt will ONLY populate when a problem is detected with your device's sleep pattern. If everything is running as it should the logging remains dormant to save resource.

When your device boots, it will give you a chance to view a different text file of your previous days statistics.

If you don't hear a peep out of DSD, then all is good and you and your device can sleep easy!

That was a bit cheesy! :eek:
[Android Apps and Games] shortskoolbus:
Great, thank you for your help! I also updated tasker today. Can't wait until v14 :)
[Android Apps and Games] Ozonethegreat:
I hope v14 fixes whatever it is that causing it not to work in the updated version of tasker. The update of tasker says everything is there but nothing is showing in the status bar to indicate that the DSD is working, the only time it shows is when I'm charging the phone.
[Android Apps and Games] brandall:
Can you go into the task DSDErrorLog and press the play/task button. Send me the log and I'll take a look. I assume all of the DSD profiles (other than DSD-ShutDTIS) are active in Tasker?

V14 tests all functions on installation, so should identify any issues at outset.
[Android Apps and Games] brandall:
Automatic update

dsdversion13dsdversion

zipdownloadhttp://xdaforums.com/attachment.php?attachmentid=782898&d=1321320431zipdownload
[Android Apps and Games] Ozonethegreat:
Yes, all profiles are on. I sent the log.
[Android Apps and Games] brandall:
The log looks fine apart from the potential sleep time reporting incorrectly. Hopefully just a reboot has solved that?

In Tasker, can you go to the preferences and on the misc tab, tick the box for popup errors/warnings please. That should alert you to any issues.

Are you not getting any notifications when your screen comes back on after a period of being off? DSD can be quite silent if nothing is wrong..

Have you organised all of the DSD profiles and task into their own 'project' - if so, what related variables are showing as populated (swipe up at the bottom of the screen in the variables tab and untick the 'empty' box)
[Android Apps and Games] brandall:
Error Log - Binary Wanted!

I need this more up-to-date binary please! Reply if you see this... Thanks.
[Android Apps and Games] cailloup:
Kill service

How would you kill a service with tasker?

I made a deep search without answer :(

I looked at AutomatIt, without success

I found that, but not being a developer I don't know how to do the solution proposed :confused:

I would like a radar alert app to be launched when bluetooth is connected to my car and to be killed when disconnected (short ride, no need for nav, phone stays in pocket)

However these kind of apps almost always have a service with them, and you can only kill them but pressing menu, and click "Close" (or kill the service in service list)

For this example, app can be "Glob", and service is called "RTService" in android service list

Any idea?

Thanks!
[Android Apps and Games] brandall:
Have a look at this thread for ideas and drop me a post in there if you can't solve what you're after. Good luck!
[Android Apps and Games] cailloup:
that was my first google result ^^

I don't know how to get the full service name :(

I just know "RTService"

And when I type "ps" in terminal emulator I don't see anything related to this

Of course "pkill RTService" (or -9 or killall) does nothing ...
[Android Apps and Games] teh_lorax:
While this thing is really neat, I can't have it making sounds every time I unlock it at work. Which tasks have sound?

edit: n/m I just replaced the .oggs with 0 byte files. Hopefully that should fix it.
[Android Apps and Games] Ozonethegreat:
So, I have done all the above previous to the update of Tasker and before I noticed the issue, but for a day or two, I was not getting any notifications (when I reported the issue), did a reboot, cleared all my tasker profiles and tasks, reninstalled DSD, and it started to show notifications again :)

But now, after turning on the error warnings in tasker, this is what I see every time I open Tasker:

Expr: 12.00.00#Expr: warning: word: Unrecognized variable or constant "word" at offset 0 in expression "word"
Expr: 12.00.00#Expr: warning: math eval: bad LHS expression: word
Expr: 12.00.00#Expr: warning: word: Unrecognized variable or constant "word" at offset 0 in expression "word"
Expr: 12.00.00#Expr: warning: math eval: bad LHS expression: word
Expr: 12.00.00#Expr: warning: word: Unrecognized variable or constant "word" at offset 0 in expression "word"
Expr: 12.00.00#Expr: warning: math eval: bad LHS expression: word
Expr: 13.00.00#Expr: warning: word: Unrecognized variable or constant "word" at offset 0 in expression "word"
Expr: 13.00.00#Expr: warning: math eval: bad LHS expression: word
Expr: 13.00.00#Expr: warning: word: Unrecognized variable or constant "word" at offset 0 in expression "word"
Expr: 13.00.00#Expr: warning: math eval: bad LHS expression: word
Expr: 13.00.00#Expr: warning: word: Unrecognized variable or constant "word" at offset 0 in expression "word"
Expr: 13.00.00#Expr: warning: math eval: bad LHS expression: word
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787
Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787

What's also weird is now my wifi is not working. I think it might be a kernel issue, but that wouldn't be related to your tasks would they?

As for the DSD in it's own project, yes, I did that before the update of tasker, which kept them btw, but, these are what show in the variables tab:

%CALLUPS 5783
%CHRG 1
%CPUSS 2
%DISPOFFT 1092
%FLAGPASS 13
%HTTP1 Weather stuff
%HTTP2 Weather stuff
%HTTP21 Weather stuff
%HTTP22 Weather stuff
%HTTP3 Weather stuff
%HTTP4 Weather stuff
%HTTP5 Weather stuff
%HTTP6 Weather stuff
%HTTP7 Weather stuff
%HTTP8 Weather stuff
%OVRC 1
%POWUPS 2391
%TIME1 2
%TIME2 word
%WEATHER Weather
[Android Apps and Games] brandall:
I'll add in a silent/vibrate check on the next version - Can't believe I overlooked that!
[Android Apps and Games] brandall:
There is a conflict somewhere when the phone is on charge and a call comes in. I cannot for the life of me replicate when it happens, but it leaves the charge variable stuck on, which means the display off variable doesn't record data... It only happens so rarely that I can't identify...

Those errors are relating to a task trying to do a mathematical function to a non numerical variable %TIME2. I don't think that's a variable from my profiles though?? I'll double check! That error will be causing a task to fail, which can have a knock-on effect on other tasks that may be running concurrently, even if they are unrelated. Can you trace it?

Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787

I posted about this error in the google group. It's unrelated to DSD again, but if you have a missing plugin when Tasker is installed the actions remain in a plugin missing state even if you install the plugin... Have to delete them all...

The variables all look fine. I need to update the CPU profiles you're using though! WiFi can't be related - you would have warnings above...
[Android Apps and Games] teh_lorax:
FWIW, it looks like Tasker doesn't like a 0 byte media file. I get an error that it won't play. No big deal tho.
[Android Apps and Games] brandall:
That error will probably be stopping the tasks from completing. I'll include a preferences task in V14 so the options can be changed to 'mute' if required.
[Android Apps and Games] Ozonethegreat:
Ok, the %TIME2 was an speaking clock error in a profile, I cleared that, and more errors starting showing, so I erased everything and started over with just DSD and your CPU profiles. I'm still getting the

Plugin: 13.35.31#{plugin error: non-existing plugin code type Action: 60787

and can't figure out what plugin is missing since I started over fresh. I have noticed that the MTVar, keeps showing the error box and when opened, all of the plugins associated with it are missing. But, when I clear out the task, and the actions associated with it, the error box no longer shows.
[Android Apps and Games] brandall:
I reported this in the google group - the Minimalist Text widget (which that relates to) wasn't installed when I updated Tasker, so I installed it, but still the actions remained in error - I had to delete them all and re-add them... Little annoying...

I mentioned that I need to update the CPU profiles, especially when being used at the same time as DSD - both run high priority tasks at display on/off, so they may be taking it in turns to compete actions...

When I rebuild them I'll make sure CPU runs at at priority of 10 and DSD at 9, to prevent the lagging of tasks running at a restricted frequency/Governor.

You can of course can delete the display on profile in DSD and put a perform task action in the CPU profiles that runs at a lower priority than the CPU task..
[Android Apps and Games] brandall:
V14 Testers Required!

I've designed a more thorough installation process that performs checks to see if the device can use the binary correctly and if the ROM contains the correct CPU files.

Also, I've designed a periodic check to look for a version update and an automatic install process if one is available.

Could do with some testers for it please! I'll upload just particular tasks to test the process. They'll be available in this post sometime tomorrow night!! :eek:
[Android Apps and Games] brandall:
V14 BETA - Installation Process Only

Hi folks, if there's anyone out there who fancies testing the attached for me, it would be much appreciated.

They are the installation tasks only which very thorough to try and catch any errors at outset.

They are all named differently to previous DSD tasks, so it's just a case of importing 9 tasks and 1 scene into a NEW project tab.

There's also an updated dsd.sh script, which needs to replace the current one in the /sdcard/DSD folder.

Before you import, please can you delete Tasker's superuser permission (from the superuser app) and delete the folder /data/DSD [NOT ON THE STORAGE CARD]

Once you've imported the tasks and scene, please DO NOT save out of Tasker, but instead click on the task entitled >>>>>>>DSD_CLICK_HERE<<<<<<<

Please let me know it runs smoothly!!! :eek:

EDIT: Leave you current V13 profiles installed - they will continue to run as normal.
[Android Apps and Games] Ozonethegreat:
I'm willing to test them out but I"m confused as to keep the V13 profiles and just import the V14 tasks, or do I clear out everything associated with V13 before installing V14?
[Android Apps and Games] brandall:
Thanks :) You can just leave V13 installed as it is. The V14 tasks only deal with the installation process - after that, your current V13 setup will continue to run.

I'm going to release V14 in parts - next I'll post the stand-alone automatic updates feature...

Thanks in advance!
[Android Apps and Games] brandall:
V14 BETA

Hi folks

Attached is the V14 full BETA. It has a few minor bugs, but should report flawlessly regardless.

Installation instructions are in the .zip file. Make sure you're running the latest version of Tasker!

Please let me know your feedback and any bugs you may find.

Enjoy!
[Android Apps and Games] Thordim:
Install of V14 went well. once i had everything set up. Will let you know if any issues arise.

Edit: I seem to be having issues writing the reports. It's not happening. I have tasker set admin and accessibility. Any thoughts
[Android Apps and Games] brandall:
Hi Thordim, I didn't see your edit - Can you elaborate on the issue please?
[Android Apps and Games] Thordim:
The reports look like:

Date | %BDATE |

Time | %BTIME |

DS against total uptime | %BCPUDS |

DS against total DSP time | %BCPUDSP |

Total Display off time | 0 minutes |
[Android Apps and Games] brandall:
hmmm.. That's a little odd. The boot report is supposed to reject is if detects an unset variable. Has it continued to do that?
[Android Apps and Games] Spikelangelo:
Anytime I get a notification to view something it doesn't seem to function properly. I press view information, I hear a sound associated to that notification and that's it. It never opens something for me to view. Did I miss a step when setting this up? I didn't see anyone else comment on this.
[Android Apps and Games] brandall:
Unfortunately it's the inbuilt variable %NTITLE playing up... Have you got accessibility selected for Tasker in the android settings? Sometimes it needs a kick to work properly. If you alert, flash %NTITLE in an action of a task it may give you a message about needing to start a monitoring service - after that it should work ok. I've told the dev of tasker about this, but it's hard to replicate the issue...

Let me know if that doesn't fix it after a reboot.
[Android Apps and Games] Spikelangelo:
Yes, this has resolved the issue. I did not have the accessibility checked for tasker. thank you!
[Android Apps and Games] brandall:
Great. New Tasker beta is out, so the next version is coming soon.
[Android Apps and Games] atb001:
Hi

I'm a bit confused about whether DSD is working or not. If it's working, I'm not sure exactly what I should be getting from the reports. Here's a sample from my DeepSleepDetective.txt file:

-------------DSD-------------
UPT || 07:50:00 || 0%
DSP || 22:09:00 || 0%
-------------DSD-------------

REPORT START
-------------------------
Mon Feb 20 08:37:22 GMT 2012

up time: 07:50:56, idle time: 13:40:17, sleep time: 00:00:00

Wakelock Holders
-------------------------
net.dinglisch.android.taskerm

Historic Wakelock Holders
-------------------------
name count sleep_time last_change
"alarm" 3202 30435339141 26084896716255
"alarm_rtc" 123 42728831076 26082295581034
"KeyEvents" 9688 1978812271 26071261950663
"gpio_input" 24 69715822 26071237811259
"rpcrotuer_smd_xprt" 5418 383792716 25867064195544
"proximity" 40 13709412267 26060427995731
"DATA5" 49 20026349056 26067133258036
"DS" 537 35768583356 26071443103007

Active Applications
-------------------------
com.htc.idlescreen.shortcut
com.swype.android.inputmethod
android.process.acore
com.swype.android.inputmethod:SwypeConnect
net.dinglisch.android.taskerm
com.vito.lux
nextapp.systempanel.r1
com.google.android.tts
com.htc.smartnetwork
com.facebook.katana
com.android.htccontacts
com.noshufou.android.su
android.process.media
com.htc.htcMessageUploader
com.google.android.apps.uploader
com.htc.bg
com.dropbox.android
net.dinglisch.android.ipack.glossysilverhd
com.htc.android.worldclock
com.htc.Weather
com.google.android.apps.maps
ccc71.bmw.pro
com.google.process.gapps
com.speaktoit.assistant
com.htc.bgp
com.google.android.apps.maps:NetworkLocationService
ch.amana.android.cputuner
com.bluetornadosf.smartypants

Wakelock Information
-------------------------
system_server wake time: +2m45s801ms
com.android.settings wake time: +1s948ms
com.android.phone wake time: +2m10s578ms
/system/bin/mediaserver wake time: +27s333ms
com.htc.bgp wake time: +22s509ms
com.google.process.gapps wake time: +1m12s854ms
com.htc.idlescreen.shortcut wake time: +8s763ms
com.facebook.katana wake time: +13s676ms
com.google.android.apps.maps:NetworkLocationService wake time: +13s498ms
ch.amana.android.cputuner wake time: +11s390ms
net.dinglisch.android.taskerm wake time: +55s665ms
system_server wake time: +233ms
-------------
Total partial waklock time: 11m 31s 984ms

Battery Consumption
-------------------------
Amount discharged while screen on: 0
Amount discharged while screen off: 0

END OF REPORT
-------------------------

I sometimes see an error message along the lines of "DSD failed to rename XXX.zip" (sorry, it didn't stick around long enough for me to copy down).

Also I'm not sure if this is significant or not: I have no sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state file, apparently due to the kernel I'm running (CPU Spy will not work, for this reason).

Please can someone give me advice on this? Thanks
[Android Apps and Games] brandall:
Sorry for the delayed reply, had my hands full. It's ok that the cpu files are missing as the binary will be used to calculate the sleep time instead.

In Tasker, if you select preferences, Misc and tick pop up errors then you can catch the error. Otherwise, as soon as the latest version of Tasker is released I've got V14 waiting with loads of bug fixes including an alternative binary to use in case the first is incompatible with your device. It'll be posted soon.
[Android Apps and Games] atb001:
Here is the error report:

E: 14.54.30#E: error: Failed to rename /mnt/sdcard/DSD/DeepSleepDetective.txt.zip to /mnt/sdcard/DSD/Reports/DeepSleepDetective_28-02-2012_14.54.zip
[Android Apps and Games] Roland_SGN:
Install - problems....

I have downloaded V13 from the main-page, imported all tasks and profiles, run the DSDSuperUser...

The first starts fails, since I guess with my Superuser Lite there are some problems, namely I do NOT get a confirmation request. Anyway, I enable the option to grant superuser-rights without query, then I get the toast 'Binary files successfully transferred'.

But when I look in my memory, there is the folder /data/ but no items at all. But according to the docu at least a folder with DSD should be created. So, I guess, something went wrong....

Installing RootLogger Free does not really help, cause I see only the list of statements are granted with su-permissions, but the folder remains empty....

Since I guess the creation of the folder itself fails, is there a *simple* way to check it? I tried it with Tasker+Locale-Execution plugin, but no folder after mkdir....:confused:
[Android Apps and Games] brandall:
Hi, I'm sat on the next release for this, but just too busy at the moment with other projects! The issue you describe is most likely a custom ROM problem with /data not having the correct permissions. I would suggest switching to another ROM or posting in your ROM thread to confirm that others can't achieve the same.

Even if you 'force' a folder into /data you'll probably find it gets wiped. I could replicate this with a few ROMs I used, so you'll be pleased to know you are doing nothing wrong!
[Android Apps and Games] Roland_SGN:
Thx for the reply. At least it is good to know, nothing wrong on my side :rolleyes: make a little bit of relieve:o although it doesn't solve the issue itself...
[Android Apps and Games] GTurn:
Did you ever get this to work for you?
[Android Apps and Games] azj:
Any plans on releasing this as .apk using the Tasker app factory?
[Android Apps and Games] brandall:
Sorry, but I'm so busy on other projects, I just haven't had time to complete the update... I will at some point..

I'm working on an apk release that doesn't require root permissions, it's a much more simple implementation. No time frame for release as yet...
[Android Apps and Games] azj:
wrong hardcoded paths on Galaxy Nexus

Finally got around to installing DSD on my stock but rooted Samsung Galaxy Nexus. A number of tasks and profiles had Tasker errors and I got a number of file not found type errors. The errors relate to not finding files in /mnt/sdcard/Tasker/something. This makes sense since the Nexus doesn't have an SD card to mount. The correct path is /sdcard/Tasker. This should also apply to any device that doesn't use a separate SD card.

When I get a chance I can update the files in the zip file and re-import them to see how it works then. This should probably be handled during the install somehow.
[Android Apps and Games] zetsui:
...so does YouPorn really kill battery life?
[Android Apps and Games] mrcarlos:
I cannot import any tasks or profiles, any help are welcome.

Thanks
[Android Apps and Games] nobnut:
Hmmm... Just done this and rebooted. I still got the DS Data Failure on reboot but also

lost the shutdown text file during reboot

. I only have the DeepSleepDetective.txt and DSD_Uptime.txt. The latter doesn't seem to be updated either. The times relate to an hour ago.

EDIT: I deleted the original DeepSleepDetective.txt before I reinstalled everything. It is as if the time isn't being reported correctly (GMT/BST?).
[Android Apps and Games] brandall:
This is not making sense... If %DSBOOT is set to 1 then it shouldn't trigger a failure...

Right, what I'm going to do now is write some instructions so we can see where everything is failing.

Firstly. If you turn the screen off on your device and leave it for 10 seconds, are you getting a + appear on the screen?

I'll be back shortly

EDIT: The shutdown file is cleared at reboot after it has read the data from it - it only tries to read the data and build a report from it, if %DSBOOT = 1 (or is set) which is applied on shutdown...

I honestly only have an issue when I'm on the phone with mine! Honestly! Honest...