yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] bgx:
Yeah wakelock missing!
[Android Apps and Games] brandall:
Have good one - thanks for pointing this out! :)
[Android Apps and Games] brandall:
Thanks for letting me know. Just need to check the XML of the tasks/profiles to make sure it's not corrupt again... Download will be up in 5 minutes!

EDIT: Another task was missing too?! I blame the file explorer on my device... I blame anything but me!
[Android Apps and Games] nobnut:
I blame the French.

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
Moi aussi :rolleyes:
[Android Apps and Games] brandall:
V9n Up!

HUGE thanks to waydownsouth who helped me for hours and hours with the shell script - which is a beast. He's a genius.

[B][U]V9n[/U][/B] (named after nobut)

* More notifications of what is going on to update the user and identify error sources
* Error logging and request to email the details included
* Updated reporting tools and information
* Increased intelligence of tasks
* Included 'self-checking' of necessary actions
* Standard binary injection
* Standard file permissions on boot
* Fixed screen off/on/power/on/off entanglement
* Updated aesthetics

Installation Instructions

* Unzip the latest version download

* Place the task files in /sdcard/Tasker/Tasks

* Place the profile files in /sdcard/Tasker/Profiles

* Place the folder dsdbin on the root of your storage card

In Tasker, from the menu options/profile data 'Import One Task':

DSDDO

DSDIntMaths

DSDNotify

DSDAdhoc

DSDAhMathsDST

DSDAhMathsUPS

DSDFileSetUp

DSDSUPOP

DSDSuperUser

DSDWakelock

DSDErrorLog

DSDXDAUN

In menu options/profile data 'Import One Profile':

DSD-DisplayOn

DSD-DisplayOff

DSD-Incall

DSD-EndCall

DSD-Power

DSD-Boot

DSD-Shutdown

DSD-Media

First Run

* Ensure all of the task and profiles imported correctly

* Save out of Tasker to preserve the changes made

* Load Tasker and select the task DSDSuperUser

Thanks to nobnut and his testing (whilst being blind drunk watching opera), I've been able to establish that the SuperUser requests can take up to 30 seconds to appear. There is only one command that needs permission. DSDSuperUser has a 20 second wait time to give the SuperUser application a chance to prompt. If it hasn't appeared by the end of the wait time, there is a pop up asking if you want to run the task again - I hope you'll only need to run it once though!

NOTE! The previous /sdcard/DSD/ folder will be deleted on installation of V9. Please transfer any files you wish to preserve elsewhere.

* Press 'test' in DSDSuperUser and follow the instructions from there!

Let's get detecting... :eek:
[Android Apps and Games] nobnut:
No butt? :eek: Dude!?!?

LOL!
[Android Apps and Games] brandall:
LOL!!! HAHA!! Typoe!
[Android Apps and Games] nobnut:
LOL!

You ain't seen me right?

I wasn't here.
[Android Apps and Games] chamonix:
pour une fois je n'ai rien fait :P
[Android Apps and Games] nobnut:
Je le blâme sur lui. Il m'a fait faire.

Il est un homme mauvais!
[Android Apps and Games] azj:
I still get an error during file setup if the reports folder already exists. Setup terminates at that point. Since I ran into that before I knew enough to manually delete the foldwer and then run the setup again.
[Android Apps and Games] brandall:
There's nothing wrong with your oven ?

I the blame good weather. I am a boy of the rain ?

GCSE Grade C - I was robbed...
[Android Apps and Games] brandall:
Thanks azj - Did it say which folder?? I've added permissions so I hope your file reading issues will be fixed...
[Android Apps and Games] azj:
sdcard/DSD/Reports The problem is if the folder already exists I get the error and the task appears to abort at that point. If the folder does not exist (ie I deleted it prior to running DSDFileSetup, it gets created and the task appears to complete successfully.

And I'm still getting a file not found error for the time_in_state file. :(

Motorola Droid 1, rooted but otherwise stock 2.2.2
[Android Apps and Games] brandall:
Damn it! x 2 :mad:

I'll have to put the folder deleting/creating inside the script then - I thought Tasker could handle it, but obviously not...

Can you go to the task DSDDeviceBoot and press test for me please - do you get a 'detective on duty' notification?

If so, can you leave the screen off on the device for a couple of minutes and then run the ADhoc task and let me know if you get an output??

Fingers crossed...
[Android Apps and Games] mynameisjon:
works beautifully now.. though i'm having trouble reading the reports now. the new format is a little confusing. The wakelock times don't have an attached app.
[Android Apps and Games] azj:
DSDDeviceBoot: I get a missing shutdown file popup, then the detective on duty notification which then goes away by itself.

Screen off (but still plugged in): DSDAdhoc I get the file not found for time_in_state followed by a Data Read Error popup.

After another reboot:

DSDDeviceBoot: Same result so it appears the shutdown file is not being written. I am using a Tasker task to do the reboot. I'll try a full power down later and see what happens.

Screen off and unplugged after full power down and up:

DSDDevice Boot: same result

DSDAdhoc: same result

Screen off and not plugged in:
[Android Apps and Games] :
Hi brandall,

I'm on SGS1, I wonder why detector always detect my DSP >200% hence it never created any report since I use it yesterday....

I've imported everything correctly and DSDAdhoc also working correctly, just no report generated and while DSD reported my phone "had" deep slept (after screen off/on), but cpu spy (an app from market) reports my phone was on 100Mhz all the while, weird ><
[Android Apps and Games] chrysochire:
Total tasker noob question

First off, thank you all for your amazing work on Tasker.

I just tried to install the detective for the first time. Whilst trying to import the tasks from v9, two files tasks didn't seem to agree.

DSDFileSetUp and DSDXDAUN give me an "error: bad packet data format"...

When trying to set up, without much surprise, install fails because the task DSDFileSetUp can't be found...

Any pointers toward a solution??

I downloaded the zip file twice and copied it back over to my sd, in case the file got corrupted on my part. Didn't help...

(I run oxygen 2.1.6 on my HTC desire...)

(search function on the thread didn't help either...;-))
[Android Apps and Games] nobnut:
Are you using the Beta version of Tasker as mentioned in the first few posts? If not, you need to install it over the Market version :)
[Android Apps and Games] chrysochire:
Thus title of my post... Thanks a lot.

A sorry noob. ;-)
[Android Apps and Games] nobnut:
Also, in case you haven't already, make sure Tasker has Administrator and Accessibility permissions in your phone's settings.

Administrator can be found in Setings > Location & Security (might be just Security)

Accessibility is found under Settings > Accessibility
[Android Apps and Games] brandall:
Thanks for the feedback - could you post the results in code quotes so I can take a look please?

Thanks for the results - I'll post a V10 fix for you in a few hours - before I do, can you go to this post and run the speed test for me please - let me know how many seconds your device needs.

Also, in the terminal, can you type

/data/DSD/./toolbox uptime

and let me know the output.

Hi truemagic, thanks for the feedback - does it request to email an error log?? If so, could you please forward it so I can view the problem. Also, can you get me the contents of this from the terminal

cat sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

or navigate to it in your file explorer and copy and paste it.

Really appreciate all this feedback nobnut, it's all looking pretty much as it should! The behaviour of DSD is to update as little as possible if there is no DSP - so nothing being written to anything when the usb is connected is correct, as DSD will just detect power is connected and chill until it's disconnected and we enter the DSP zone again :eek:

If you get a chance, could you test the error reporting for me please :) In DSDNotify, if you change the IF statement on the IF action #4 from %DSCON < -5 to < 99999 instead.

That way, it'll always think an error has occurred! Thanks in advance!

I best get my ass in gear for V10... :eek:

EDIT: Sorry everyone - but I've run out of my 5 'thanks' per day - but BIG thank you for all the feedback!
[Android Apps and Games] nobnut:
I have done that. Nothing written yet, I have rebooted (nothing written on reboot) and am running a Media test at the moment...

What exactly should trigger the report? Should I just run (test) the task?
[Android Apps and Games] :
Right away Sir ;)

No it does not request to email error_log, and the error_log.txt inside /sdcard/DSD contains a "+" only
[Android Apps and Games] nobnut:
Try the test that is in my post above yours ^^^.
[Android Apps and Games] :
# cat sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

cat sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state

1600000 0

1500000 0

1440000 0

1400000 0

1300000 0

1200000 0

1000000 32819

800000 510

400000 1424

200000 86

100000 1395

#

p/s: FYI, I'm on MIUI for SGS and zach's kernel (you may not know if not using SGS) ;)
[Android Apps and Games] nobnut:
OK, got the file to write by running a Media test.

I received a tasker popup upon screen on but it wasn't displayed for long enough to read it. It said something about a file not existing perhaps.

I don't know if this is related but inside Tasker, the error log listed "file not found: /mnt/sdcard/../../data/data/com.quord.tapatalkxdapre.activity/shared_prefs/com.quoord.tapatalkxdapre.activity.ForumNavigationActivity.xml."

Anyway, it looks as if there was a problem writing the report as this was all that was written:

[2.3.4]
[GT-I9100]
2.6.35.7

I just ran DSDNotify manually and it was written (I receive the same error message as above however). I selected to send you the email. It went from my default email address (work). From my email sent items, it looks like it was sent ok. I will let you ponder the contents.

EDIT: I don't get the error message when I return the 99999 value to -5.
[Android Apps and Games] brandall:
That's a lot of frequencies! And not many of them being used... Right, the issue here (until V10 later) is Tasker is not adding up all of the information - In the Task DSDDO actions #25-28 make allowances for how many available scaling frequencies you have - it's set up for a maximum of 7 - you have 11!

In action #25 in the 'to' box, continue to type + %CPUTIS 16 + %CPUTIS18 + %CPUTIS20 + %CPUTIS22 (make sure you have spaces as with the current format) and then change the IF statement to %CPUTIS24 (is not set)

That should get you up and running for now!

If you give it a bit of normal screen off time, enough to generate a report (it's set to 600 seconds as standard, but I imagine you've adjusted that as usual) then ANY DSP percentage should trigger the error log... Should....

Can't understand why it wasn't triggering the log if it was reporting 200%.... Anything over 105 should divert... :confused: DOH! Do you have pop up errors and warnings ticked in the Tasker preferences? If not, could you tick it please.
[Android Apps and Games] nobnut:
Just in case you missed it brandall, check out post 501 above^^^.
[Android Apps and Games] :
Run that file DSDNotify, got "Data Corrupt | Logging Activated" from notification bar drop down.

Then I screw down to errorlog.txt

[2.3.4]
[GT-I9000]
2.6.35.13_platypus-revolutions_NEO_11-headset-galaxys+
[Android Apps and Games] nobnut:
Try running the task manually. Do you get the same error notification as me with the 99999 setting? It isn't written properly to the txt file it appears. You can also send an email which has the full report attached when you run the report manually. I have copied the text of mine below:

XDA Username | %XDAUND21

| 18-07-2011 | 11.51 |

UPT || 00:26:00 || 2%
DSP || 00:16:00 || 4%

Uptime | 1604
Display Off Interval | %DISPOFFINT
Display Off Total | 1005
Display Off Constant | %DSCON
Display On Constant | %DSCOFF
Notify Percentage | 0
DSP Time |%DSMN
Last Media | %MEDUPS
Last Call | %CALLUPS
Last Power | 1293

Device Information | [GT-I9100]
Android Version | [2.3.4]
Kernel Version | 2.6.35.7
[Android Apps and Games] brandall:
Thanks + 1 nobut :D, got the email cheers and all is well with the data apart from a permission failure issue we have... Can you press 'test' in the boot task and then go and press 'test' in the errolog task please and let me know if it picks up your XDA username....

I would have probably spotted it tomorrow... :eek: I'm tired!

Thanks truemagic - same for you as nobnut please - I think this is a permissions error not being set correctly....

DAMN IT!
[Android Apps and Games] :
After i changed to 99999 in action #4 of DSDNotify, I still got "Data Corrupt | Logging Activated" in notification bar. And errorlog.txt has the same thing as posted above.

And yeah now only I ticked "pop up errors and warnings" in the Tasker preferences, I think it should kick into effect immediately without a reboot or somethg...
[Android Apps and Games] nobnut:
Did the two tests. I am still getting the tasker error as mentioned above and no, the username isn't being picked up.

I am getting a Tasker error in the log reading "E: 12.07.47#E: warning: can't split unset variable %XDAUND"
[Android Apps and Games] :
By This do you mean the file permission? If so I can set it manually by root explorer, just let me know so I can try :D

Thanks for your prompt support as always! :D
[Android Apps and Games] brandall:
Thanks for the feedback chaps - it's appreciated.

Again, Tasker is letting me down on file checks, I don't know if this is a beta bug, but there's a preventative in there to prevent this from happening which isn't working...

In DSDErrorLog can you delete actions 11-16. #11 being the perform task DSDXDUAN and 16 being the wait 1 second.

Can you then save out of Tasker, load back up, go back in to the error log task and press test please - hopefully an email template will load up - no need to send, just want to confirm doing the above will stop the log task from failing...

Thanks in advance - another V10 fix to the list!

EDIT - just to clarify - delete actions, 11,12,13,14,15 and 16 please
[Android Apps and Games] nobnut:
Confirmed, email template loads without error. Obviously XDA name is still not populated.
[Android Apps and Games] :
it just says loading error (118/459) then "reports ready in 9 minutes" (something like that), maybe I don't know how to test it as I'm new to Tasker :p

No email template loads (or is it load with Gmail....??) I do not have default email client anyways...

P/s: I pressed the play button for DSDErrorLog
[Android Apps and Games] brandall:
Thanks + 1 Nobut :D It's not the end of the world having to leave that out, but annoying that DSDXDAUN failing was set up not to make the rest of the task fail - but that failed! :mad:

XDA username is thankfully low on the priority list though... Working on V10 fixes now...
[Android Apps and Games] nobnut:
I use EnhancedEmail, but I suspect it will use your default mail client. Yes, it is the DSDErrorLog task play button that I clicked.
[Android Apps and Games] :
ok finally got it working (I mean email). I just sent out an error report to u brandall :D

Sent from my GT-I9000
[Android Apps and Games] brandall:
Received thank you :)

Indeed, default, email client and address.

Right - good work chaps. V10 is being produced to fix all of this - appreciate you letting me know these errors.

Thanks meters will increase when I get my five a day back!

That's made me fancy an apple...
[Android Apps and Games] :
Also did I mention I do not have any report generated?

I'm so excited/expect to see DeepSleepDetective.txt but in /sdcard/DSD/ and /sdcard/DSD/Reports, it's no where to be seen :S
[Android Apps and Games] nobnut:
There is a joke or two in there about fruit fetishes but I will not bother as I am very mature.

Ar$emonkey bottomface
[Android Apps and Games] nobnut:
If you reboot, you will see the historic reports zipped up. I have a bunch of them in there as I have rebooted a few times. EDIT: I mean in the reports folder.
[Android Apps and Games] :
so cool, as I never seen any of them (DeepSleepDetective.txt).

worth mentioning my DSP was :380% from the DSDAdHoc :eek:

Maybe I need to change threshold here and there to get it working? Hmm!:confused:
[Android Apps and Games] nobnut:
380% seems strange. Let's wait for v10 and see if that helps.

Just to be sure, when you installed DSD, was your DSD binary copied successfully? I mean did you place the original folder on the root of your SD card?
[Android Apps and Games] :
Yup, I placed dsdbin on /sdcard (inside contains a "toolbox" file if I'm not mistaken), then upon installing, it copies/transferred the "toolbox" binary to /data/DSD folder.

Sorry if there is anythg wrong with it that I did not notice, as I'm a noob to Tasker :D:D:D

But I DOoooo wish to get this working becoz 1) it's cool 2) I wanna know what prevents my phone from deep sleep...zzz
[Android Apps and Games] nobnut:
No need to apologise. I am in the same situation as you.

I was just checking regarding the binary as in earlier verisons of DSD, I had a similar problem (% reporting) and at the time, the difference in toolbox versions was a possible cause.
[Android Apps and Games] :
yeah I just know in v8, the dsdbin is missing from the attachment :p

I just ignored it since it was the first time installing, was like flashing a ROM trying to get it to work :/
[Android Apps and Games] brandall:
Chuckle <- I would have 'lol'd', but that's difficult with a whole apple in your mouth...

Did you update the DSDDO task from the instructions here ? Whist the results are 100% no detective file will be written.

V10 is going to be an hour to 2... having to rewrite quite a bit of the logic... :mad:
[Android Apps and Games] nobnut:
I'm clean out of thanks presses.

As always, we all appreciate your efforts. Thank you.

Good luck!
[Android Apps and Games] :
yup, made the changes according to your post, still reporting 380% of DSP when DSDAdhoc is played...hence no detective file is written?

EDIT: patiently awaiting v10 :D
[Android Apps and Games] brandall:
Pleasure - and thank you :)

Good news - getting time in state data via a script is instant - FU local plugin! The most time consuming part for me now is dragging the new actions up 30 places in Tasker......... zzzzz.... Roll on the desktop xml editor!!

Right, best get back to it!
[Android Apps and Games] nobnut:
I use Notepad++ amongst other things.
[Android Apps and Games] brandall:
Me too - but codes and orders are too confusing with the layout for me.... :mad:
[Android Apps and Games] nobnut:
Indeed :(
[Android Apps and Games] brandall:
Not going to be done until about 6 - have to bomb out for a bit and then finish it off - having issues with files/directories...

Hmmm... may just get the user to create these... I shall ponder...
[Android Apps and Games] nobnut:
No worries. You go and drop your 'bombs'.

Catch you later.

EDIT: I take it that bombing out is a little bit like 'dropping your kids off at the pool'?.. speaking euphemistically.
[Android Apps and Games] azj:
Speed Test: Takes 4-5 sec to display the popup

command: up time: 11:31:53, idle time: 09:27:37, sleep time: 00:00:00
[Android Apps and Games] brandall:
Mondays are swimming lessons!

Thanks for posting. V10 will fix the issue

On the subject of V10 - It's finished, but ironing out some errors... will be up when I discover the cause of them... An hour... ish... maybe two...
[Android Apps and Games] :
im back from dinner n supper, lolx

hopefully v10 works for me :D

Sent from my GT-I9000
[Android Apps and Games] nobnut:
I hope it works for everybody :)

Dinner AND supper?! You must be a big lad ;)

Sent from my HTC Flyer using vodka
[Android Apps and Games] :
No I'm only 143 lbs :p
[Android Apps and Games] nobnut:
Have another supper. You'll need your strength for testing ;)

Sent from my Motorola StarTac using Voodoo
[Android Apps and Games] brandall:
Here you go chaps, just for you:

A replacement DSDAdhoc and DSDDO and also a replacement script to put in the DSD folder on the storage card.

I'm still testing the whole thing, but thought you might want an early try...

I'll be back shortly!

EDIT: Should work for you too azj
[Android Apps and Games] nobnut:
Thank you boss,

I'm en route to a hotel in the smoke for an early morning meeting tomorrow. I've got to meet some chap when I arrive and I've a nasty suspicion he's going to ask me if I want to have some dinner. I'd rather pillage the hotel minibar and get frisky with a slinky poll-dancer later on but will probably have to say yes. Damn professional etiquette.

If so, I'll pick this up tomorrow and report.

Yours sincerely

Mr Bojangles

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
Ha! Well maybe you should go for minibar, dinner, bar, lapdancers, then testing! And then oversleep for your meeting...

I think that would be the best plan...

Have a good one..
[Android Apps and Games] azj:
DSDAdhoc: still get file not found error for time_in_state followed by Data Read Error

DSDDO: runs without error.

DSDDeviceBoot: still gives missing shutdown file error.

Also UPDATE.zip file opens with 7zip but I can't extract any files. It works OK with WinRAR.
[Android Apps and Games] brandall:
Can you double check you installed it correctly as the new version doesn't use the file anymore...

The shutdown task still uses the file - have sorted that for upload shortly :)

I zip them up on my phone, before exporting them, so must be the apps limitations...

1 hour max until V10 - sorted almost everything
[Android Apps and Games] azj:
The new version (from UPDATE.zip) most certainly does still use the time_in_state file:

<class cl="Action" sr="act11">
<class cl="StringArg" sr="arg2">
<val>%CPUTIS</val>
</class>
<code>416</code>
<class cl="StringArg" sr="arg1">
<val>1</val>
</class>
<class cl="StringArg" sr="arg0">
[B]<val>/../../sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state</val>[/B]
</class>
</class>
[Android Apps and Games] nobnut:
Hi Guys,

I've imbibed a few snifters following my enforced hospitality and am not in a state of mental preparedness to test but I just had a thought brandall.

The XDA username issue from earlier... the error message related to the SD card! What about devices like mine with both an internal and external SD card? Could the failure to read have resulted from DSD not reading the correct path (correct card) and therefore failing to find the file?

I've got to go now as I have to be up early.

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
Thanks meter +1 azj

There must be an issue with Tasker exporting to my sdcard, as that is clearly the old version - sorry I doubted you... The same happened in V9 (prior to V9n) too...

Looks like I need to inspect all the xml before I upload too!!! :mad:

Anyway - I checked here just before I was about to upload it, so I'll check the xml and then it will be released.....

I didn't realise the SGSII has both!? (you bloody show off ;) )

Well that does certainly highlight that I've no idea where your apps will be installed, but it doesn't excuse Tasker's new 'Test file' IF file doesn't exist ~ 'don't do anything else because you'll make everything else f*ck up' <- that is actually a real option in b14.... Honest.

Right, Notepad++ and a fresh beer here I come! Only 8 hours behind schedule...
[Android Apps and Games] nobnut:
Language Timothy!

LOL Goodnight.

Sent from my HTC Flyer using vodka