yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] brandall:
Thank you, I'll check it out - and I owe you another thank you too for educating me with that shell script - In the next version of this, I've managed to get Tasker to compose a .sh file that's dynamic depending on differing output and when writing the file it populates with variable values within the shell commands too! - Works a treat! Glad I tested your app for you now!! :)

Might have a couple of command questions regarding splitting data and then using the value from the split in a further command.... If think we're talking an awk/split/grep/if combination... :eek:
[Android Apps and Games] nobnut:
I see there is another Tasker Beta version available - 1.1b11
[Android Apps and Games] brandall:
Cheers Nobnut - I'll update the first post and get downloading! :eek:
[Android Apps and Games] nobnut:
Progress sounds extremely interesting! :)
[Android Apps and Games] brandall:
It has been indeed! There's a test version that won't work properly on its way to you soon ;)
[Android Apps and Games] nobnut:
Oooooh you know I love a good test!

Like you, I tested waydownsouth's script this morning. Looking forward to his progress also ;)
[Android Apps and Games] brandall:
I jest, but it's actually very stable despite the uncharted waters of Tasker writing its own scripts... for itself... I'm wondering if betaV11 will end up becoming self aware and starting world 3 - Judgement Day styley... :eek:

I will blame you for not picking it up in your testing ;)

waydownsouth is a book of knowledge - expecting great things
[Android Apps and Games] nobnut:
That's crazy talk. Machines thinking and acting by themselves! Whatever next? Soon you'll be telling me that someone has invented a rechargeable portable device that you can make and receive telephone calls on! Pfffft.

Oh I do... from you both :p
[Android Apps and Games] brandall:
Ha! It's a good job they haven't otherwise I might end up neglecting other things in my life that demand attention they feel they deserve.... Pfffft!

Well I've just had an amazing idea about a rechargeable portable device that you can make and receive telephone calls on! <-- Patent Pending.
[Android Apps and Games] nobnut:
Lolz :D
[Android Apps and Games] brandall:
:D

10 char
[Android Apps and Games] pulser_g2:
I am from apple. We notice you had a good idea before us.

So now we have made our own, after you, and have filed for our own patent, and paid bribes to ensure no prior art is found in the search...

So now I demand you pay me patent licence fees on this portable rechargeable telephony device, as we hold the patent.

Yours,

Steve Turtleneck
[Android Apps and Games] brandall:
Chuckle.... :)

I intend to make a counter claim! Which I will eventually withdraw when discovering you hold the patent 'anything that can be done ever that involves anything, ever, ever, in the world.... ever'. :eek:
[Android Apps and Games] pulser_g2:
But the corrupt kangaroo court won't listen to your counter claim, as the judge was reminded how easily we can remove all his apps remotely, and prevent his phone from working if he won't side with our every move... :p
[Android Apps and Games] brandall:
Removing apps remotely hey.... That gives me an idea.... ! :D
[Android Apps and Games] strictlyrude27:
Too late, I just patented it. Feel free to pay me royalties though.
[Android Apps and Games] nobnut:
Meh! That's kids' stuff. Get the IMEI via a sneaky script and perform a remote brick sequence.

You gotta think bigger! ;)

Sent from my HTC Flyer using vodka
[Android Apps and Games] DirkStorck:
Apple......pffftttt
[Android Apps and Games] nobnut:
Isn't this a typo? I thought his name was Steve Turtlehead.

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
I'm not so sure about the 'Steve' bit....
[Android Apps and Games] chamonix:
That would be samsung-kernel-galaxysii/drivers/power/sec_battery.c

/*

* sec_battery.c

* Samsung Mobile Battery Driver

*

* Copyright (C) 2010 Samsung Electronics

*

* <ms925.kim@samsung.com>

*

* This program is free software; you can redistribute it and/or modify

* it under the terms of the GNU General Public License version 2 as

* published by the Free Software Foundation.

*/
[Android Apps and Games] brandall:
Thanks again chamonix, you're better than Google!!

I found the source code for it from the above and have had a quick glance.

Problem I have now is that if 'sec-battery-monitor' had proved to come from some beta app from the market, I could say "uninstall it!" - "The Deep Sleep Detective strikes again! WHOOP!", but as this relates to a Samsung Driver, my initial thoughts would be that there surely can't be anything wrong with it..?.. and therefore the wakelock count it has must be done in such a way to not use any/minimise any kind of resource; let alone keep the device awake and drain the battery.... Does everyone concur??

So I'm really sure how to approach this further...

Capturing its activity in real time is beyond capability at this current moment (until I work out how to set a receiver for 'I'm awake again!")... So does anyone have any bright ideas in the mean time??
[Android Apps and Games] nobnut:
Possibly not!

The SGSII has a common problem. If you look in the battery usage screen, consistently you will see the Android OS process running at stupidly high percentages. In other ROMs on other phones, you will often not see Android OS running as a process which has used battery at all (or if you do it is very very low) ;)

Here is a pretty long thread about it.
[Android Apps and Games] brandall:
Thanks nobnut, I'll digest the thread later. I guess I have too much faith in the big-boys!! The next release uncovers more info about the wakelocks, so will be interested to see what it throws up about it... It'll be heading your way soon! :eek:

EDIT: 121 pages!!! I best stock up on coffee..
[Android Apps and Games] nobnut:
I wouldn't bother reading it. The truth is that no one knows why the SGSII has this affliction. That is why I was keen when I saw your thread.
[Android Apps and Games] brandall:
Cool. More discovery tools will be on their way soon!
[Android Apps and Games] nobnut:
Excellent news!
[Android Apps and Games] pulser_g2:
qft .
[Android Apps and Games] nobnut:
Oh man, your timing isn't good. He's just gone away on holiday today. I don't know for how long, or whether he will be 'about'.

:(

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
Damn it!!

Damn!

Bugger...

I'm sure Google will be my friend... somewhere out there is the solution of how to transfer those thingys somewhere that everyone can use the thingys.

I'll try that specific search first.

What are you doing here on the weekend? :eek:
[Android Apps and Games] nobnut:
I find vague searches work best. Try not to be so specific in your search terms.

I'm here because, as in the words of Richard 'Gerbil' Gere in An Officer and a Gentleman, "I have no place else to go!"
[Android Apps and Games] brandall:
I was thinking about taking a trip over to the Android Forums... but I got all settled here and now going over there and logging in and everything just seems like too much effort....
[Android Apps and Games] chamonix:
Ok I don't know yet how to interpret this information (or even an idea if this information is in any way relevant) but here are a few things I noticed reading processAppUsage from com.android.settings.fuelgauge.PowerUsageSummary (I understand that's the well known topN list from Gingerbread's battery stats:

- the app usage is not purely based on CPU consumption but weighted depending on different things like time spend at different speeds but also "cost" to having held wakelocks, cost of data traffic etc. This is pretty interesting because the way the cost is calculated may result in what is known as the "Android OS bug" (I will diff the algorithm btwn 2.3.3 and 2.3.4 to see if there was been adjustements (read "fixes" ahem)

- in the part processing the wakelock costs I noticed the comment "Only care about partial wake locks since full wake locks are canceled when the user turns the screen off". Now I haven't followed all the discussions here so I'm not aware how those different wakelocks are processed/recognised.

I have spent the last few days coding a proxy-class to access the stats collected by the non-public BatteryStats API and the "batterystats" (Gingerbread) service and it's working! What I am on now is to re-implement the above mentioned method in a more pure fashion by separating CPU from wakelock (I'm not interested in WIFI/data yet). I'll publish my results here when I get some traces/screens with real data.
[Android Apps and Games] brandall:
It's a project and a half chamonix... looking forward to your results... As far as the wakelocks go, the power management link that pulser_g2 referenced a few pages back is about as informative as it gets out there....

But then again, you've proved you are better than Google a couple of times already! ;)
[Android Apps and Games] pulser_g2:
It's okay I am occasionally about.

You need to bundle toolbox and busybox binaries, I reckon. Nothing more.

Test these commands do as needed :

busybox ps

toolbox uptime

If so, you are sorted, just put them in a folder in $PATH and run them
[Android Apps and Games] pulser_g2:
Failing that, output of 'which xyz', where xyz is the binary command that gives required output.
[Android Apps and Games] nobnut:
Thanks again Pulser :)
[Android Apps and Games] brandall:
I hope I didn't interrupt your sandcastle building time ;)

I will test now!

I'm on it!

And thank you Nobnut!

Sprucing up V7 right now...
[Android Apps and Games] nobnut:
My palms are all sweaty in anticipation ;)

I'm also testing for Waydownsouth at the moment.

Lovely!

EDIT: Another Tasker beta here 1.1b12
[Android Apps and Games] brandall:
Keep them running under the tap until later! Finishing touches being added - Have you been getting a 'bad maths eval' error when opening Tasker? It'll only happen if you have pop up errors/warnings ticked.

Solved why it happens, but it's annoying!

Thanks for the beta heads up :)

Tested WDS' beast - pretty damn impressive....
[Android Apps and Games] nobnut:
Indeed gotta love those bad maths muthas. They don't bother me, I figured it'd be better to see them just in case you wanted to know about them.

WDS says he may have another version ready for tomorrow.
[Android Apps and Games] brandall:
They are annoying me now - I'll explain as it may help me solve it...

IF %NUMBER < 50

Set to %NUMBER%

IF %NUMBER < 0 [BAD MATHS EVAL ERROR - because %NUMBER is now set to #% above, so cannot be less than something because it's no longer numerical...]

SOLVED! WHOOP! If it's true I need to use a GoTo to skip the other conditions!

Why didn't I think of that 6 hours ago...

EDIT: That's a sh*t load of extra IF's and END IF's though :(

Thanks for the chat nobnut!

V7 gets a little nearer :eek:

I'm surprised WDS has had time to make an update - he dedicated a few minutes of his time to teach me scripting... I'm sure it was only a few minutes in the end :o
[Android Apps and Games] nobnut:
Ifs, buts and maybes. I'm glad I helped :confused:

I think you should skip v7.0 (it's proving too troublesome) and just go straight for v8.0, it sounds more impressive anyway.

Just for your information, I am getting some annoying licence check issues with the latest Tasker beta. Every so often I have to uninstall it, reinstall from Market and then reinstall the Beta. It's happening on all three devices I have with me today.

Speaking of which, I have just realised (again) that I am a plank. I wondered why I was having trouble getting the flashlight on my Flyer to work... it doesn't have one.

I didn't even think to turn it over and have a look. I've only had it for 8 days. The Googles told me that it didn't have one. I guess I may as well give up trying now... it's obviously never going to happen.

Tool = nobnut
[Android Apps and Games] brandall:
LOL! I'm struggling to feel sorry for you though... I want a flyer... Think it'll be a Thrive for me though. I need a bigger screen when working with Tasker!

You're just going to have to buy a torch ;)

I was have licence checks on the previous version, so I switched to direct download version and entered the key manually... Has the encryption options then too...

Right, V12,065a will be up before midnight!
[Android Apps and Games] nobnut:
No rush. I'm a patient man. Having said that, I can't wait ;)

My licence woes seem to have stopped now.

Sent from my Motorola StarTac using Voodoo
[Android Apps and Games] brandall:
Well I've had enough of it now! Midnight is closing in.... :eek:
[Android Apps and Games] nobnut:
In your own good time.

To quote the film Tremors, "I plan for the future. That way I don't have to do anything now".

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
Ha! Brilliant... That's sorted my epitaph.

Although I suppose it may be a little out of context then...
[Android Apps and Games] brandall:
V8 Up!

[B][U]V8[/U][/B]

* Added preventative for %DSCOFF failing to populate in DSDDO
* Added notification to DSDDisplayOn if DSP was unavailable during screen off time
* Added wakelock capture to DSDDisplayOff
* [strike]Added IF != 0 to %DSCON in set to % action of DSDNotify[/strike]
* Added wakelock hunter to DSDDisplayOff
* Changed multiple locale commands to shell script dynamically composed by Tasker
* Added script to match wakelocks to owner applications/processes - BIG thanks to [URL="http://xdaforums.com/member.php?u=3390610"]waydownsouth[/URL]
* Cut report building time down to under [strike]10[/strike] 5 seconds
* Added IF and GoTo actions to avoid the bad maths eval errors on constants
* Added DSDSetUp task with ReadMe.txt
* DSDSetUp to create directories and files
* Added 'spoiler' preventing to DSDNotify
* Added display off media context
* Added Further test file actions to avoid empty reports
* Changed collision handling and task priorities
* Added additional variable clear actions to avoid possible data corruption
* Too many more to list...

Installation

1) Open the task DSDSetUp - press test and show patience for the two SuperUser requests :eek:

ToDo List

* Make the information in the Detective Report more user friendly and understandable - I just had to get this version up and out of the way though

* Receivers for wakeups during deep-sleep

Please give me your feedback folks! :eek:
[Android Apps and Games] nobnut:
Following a second hour long test, upon screen on I received a notification that a report couldn't be written and a status bar notification that Deep Sleep Prevented was 76%.

Adhoc showed:

UPT||2:33:00||57%

DSP||01:50:00||76%

There doesn't appear to have been anything written to any of the text files following the previous test. Content is identical :confused:

DeepSleepDetective.txt

-

REPORT START
-------------------------
Tue Jul 12 05:59:14 UTC 2011
up time: 00:55:41, idle time: 00:24:01, sleep time: 00:41:23

Wakelock Holders
-------------------------
com.google.process.gapps

Historic Wakelock Holders
-------------------------
name expire_count wake_count
"alarm_rtc" 8 0
"sec-battery-monitor" 0 85
"event1-2806" 0 2
"svnet-dormancy" 36 0
"svnet" 228 0

Active Applications
-------------------------
com.sec.ccl.csp.app.secretwallpaper.themetwo
com.touchtype.swiftkey.phone.trial
android.process.media
com.sec.pcw.device
android.process.acore
com.google.process.gapps
android.process.acore
com.android.vending
net.dinglisch.android.taskerm
com.smlds
com.levelup.touiteur
com.google.android.apps.maps:NetworkLocationService
com.qs.enhancedemail
com.symantec.mobilesecurity.sku28
com.elnware.ActiveAppsWidget
com.anddoes.fancywidgets
org.koxx.pure_news
com.sanels.tempcpupro
com.Elecont.WeatherClock
de.dbware.circlelauncher
com.android.providers.calendar
net.dinglisch.android.zoom
net.dinglisch.android.ipack.kyotuxfoldershd
net.dinglisch.android.ipack.blueorbhd
net.dinglisch.android.ipack.greenfloralhd
net.dinglisch.android.ipack.ilikebuttonshd
net.dinglisch.android.ipack.kyotuxaeonhd
net.dinglisch.android.ipack.crystalhd
net.dinglisch.android.ipack.glossysilverhd
com.rmgeren.widgets.stockspro
com.carl.tcpro
com.koushikdutta.rommanager
com.android.calendar
com.sec.android.app.clockpackage
com.sec.android.daemonapp.accuweather
net.veierland.aix
com.cooliris.media
com.google.android.apps.maps:LocationFriendService
de.elmicha.app.LocaleExecute
com.google.android.apps.maps
sh
sh
toolbox
/sbin/ext/busybox
/sbin/ext/busybox
/system/xbin/busybox
/system/xbin/busybox

Wakelock Count
-------------------------

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

DSD-Shutdown.txt

06.03
768
%DISPOFFT
12-07-2011
161

There was no wlinf.txt file.

EDIT: I've just rebooted and am running a shorter 20 minute test now.
[Android Apps and Games] brandall:
:) :) :)

Damn it! I meant to put in the ReadMe file that you need to exit out of Tasker to save the profiles before rebooting... I think that may have been the problem

Neither! Well, I'd hoped that the two SuperUser requests would appear before the prompt to open the text file... They did under test conditions :( Damn it!!

Wakelock Count
-------------------------

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

Nothing under wakelock count :mad: If you get a moment, can you open the file /sdcard/dsd/wlapp.sh and scroll down to the bottom until you get to the 'dumpsys alarm' command - paste it into the terminal leaving '>> $log' off the end and see if you get an output please - if not, just try 'dumpsys alarm'. I did wonder if I'd need to include this for SU permissions...

06.03
768
%DISPOFFT
12-07-2011
161

Was this in the DSD folder? It should have been deleted on reboot :(

Thank you thank you! Have a few more improvements to make to it so it isn't just a mass of information and is easier to interpret...

Damn it! I made the decision to leave out diagnostic prompts, such as 'it went wrong here because of this' - I was having so few errors, so overconfidently left them out... Damn it! If it happens again, let me know and I'll supply you with the test version if you don't mind!? Consequently, I don't know why your data was corrupt and the report was abandoned... My error...

Thank you! Did DSDshutdown delete this time? All new files are in the DSD folder - the older ones are on the root of the storage card - I was going to include wiping these in the set-up task, but thought better of it just in case it deleted something else...

Thanks again for your testing skills - appreciated with thanks (up to a maximum of 5 within a 24 hour period) as always!
[Android Apps and Games] nobnut:
I don't know if this maybe has caused some of my issues? (I mean my DSD issues, not my personal ones ;))

Ran this in terminal with su and it gave me a 'cannot create : directory nonexistent' :(

Yes :(

By all means, I will test whatever I am asked to :)

I have always included all file contents following each test.

My pleasure. Did you see my edited/updated previous post? (From Cont'd...)

PS I have to go in to an appraisal meeting shortly. I will be away for quite a while getting my b@lls chewed. These people have no idea how I just cannot and will not conform to anything they ask me to do. The sooner they get to understand this, the sooner they and I can 'work' in 'harmony' ;)
[Android Apps and Games] brandall:
Ha! Some there are no fixes for... ;)

Can you these two commands please and let me know if they give you an output

dumpsys alarm

dumpsys alarm | awk '/Alarm Stats/{i++}{if(i==1)print$0}'

Thank you thank you!

hmmmm - can't understand why the boot task wouldn't delete this file...

Yes, thank you. I think the issue we have is that I've designed the profiles to be as 'silent' as possible, so when there's not much to report, they won't bother.... We need to set up an 'actual' wakelock issue and see what happens... My suggestion would be to have the music playing whilst the screen was off (you'd have to remove the media app from DSD-Media). I think we tried that before though and it didn't pick it up, but perhaps it will be different this time...?

They just need to leave you to your testing!! I hope you are going to tell them this and they are actually causing you inconvenience by wanting to 'talk shop'... ;)
[Android Apps and Games] brandall:
Thank you!

Chuckle... you were gone a while, I was getting a little concerned! They sound like the type of employer that doesn't recognise potential in someone... They should realise that not allowing you most of the working day to do testing, is actually counter-productive for them in the end. Pffft... These Corporates hey...

Anyway, back to real work - It looks like I should have put the below command in the Set-up task. Bugger. Could you 'run an action' and paste the below into Locale and hopefully after SU prompt you'll get the dumpsys alarm info in the detective report from then on...

dumpsys alarm | awk '/Alarm Stats/{i++}{if(i==1)print$0}' >> $log

Yours appreciatively
[Android Apps and Games] nobnut:
Will do boss.

I have just run two tests with Media playing and Poweramp deselected from DSD Media... same results each time...

Sleep prevented reported as 0% in statusbar after screen on.

DeepSleepDetective.txt not written to :confused: it stil has data from 8.00ish this morning.

DSD-BootLog.txt:

---------------------
---------------------
Date | 12-07-2011 |
Time | 13.39 |
DS against total uptime | 10% |
DS against total DSP time | 79% |
Total Display off time | 39 minutes |
---------------------
---------------------

Adhoc reports:

UPT 26 minutes 0%

DSP 15 minutes 1%

I'll add the dumpsys alarm stuff now and report back.

EDIT: I added the dumpsys alarm run action and couldn't get a su request. Then tried from scratch, uninstalling all of the su permissions, deleting the profiles and tasks and starting over. Still couldn't get any love from it.

Is there another way for me to try and include the dumpsys alarm su permission?

EDIT 2: When I was reinstalling DSD, there was something else I noticed but didn't pick up on before. When I clicked DSD Setup test, you have kindly included the prompts. By the time it says something to the effect of 'Now doing it one more time'... I still haven't seen my

first

SU request. I then get my first SU request

after

the process finishes. I don't get the

second

SU request until I click test a

second

time. #justsaying:)
[Android Apps and Games] brandall:
Thanks nobnut - it would really help if I gave you the right instructions... I meant

@! dumpsys alarm | awk '/Alarm Stats/{i++}{if(i==1)print$0}' >> $log

The '!' would actually request using root then... Oops!

I hope this will solve the detective report being written correctly - Might be an idea to drag the zip and move actions in DSDWakeLock below the stop action so they are not messing with the detective file too soon.

Thanks for the heads-up on the set-up task - I assumed 15 seconds would be enough to get the prompt, especially on your speed demon of a device! Perhaps I should up the wait times to 30 seconds each just to make sure - bit annoying for the user, but clearly saves time going forward!

Fingers crossed that sorts it.... :eek:
[Android Apps and Games] brandall:
Thanks for all of this - still nothing under wakelock count though and we know it's working for you because you tested it in the terminal... grrr :( have to dash out for 15, will have a ponder..........
[Android Apps and Games] nobnut:
I've been playing around with this and can't get anything more to appear in reports etc than we have had previously.

I have to go now and will be back tomorrow morning if you have any requests or instructions for me.

Thank you again for your impressive work.
[Android Apps and Games] brandall:
Well that was the longest 15 minutes in history... Just had to put out a fire... as you do...

Right... I shall have a good ponder as to what could be causing the issue and think of some things for you to try in the morning - today appreciated as always. I trust you shall have a pleasant evening...
[Android Apps and Games] nobnut:
I'm surprised you didn't make Tasker do it for you.

You too. Pip pip!

Sent from my HTC Flyer using vodka
[Android Apps and Games] brandall:
There's a profile for that! *Apple prick up their ears*

Erm, pop pop?