mardi 30 décembre 2014

How to get DeepSleep Info in Zooper topic

02:38






I´ve searched for a way to display DeepSleep Information in a ZooperWidget, cause my phone sometimes wont go to DeepSleep and I want to proove that from time to time.
I´ve made 2 scripts, one gets the DeepSleep value from system files and the other one is for saving a snapshot of actual values. With saving of these values. you can "reset" your Observation period for DeepSleep value, cause Script1 subtract these values from overall values (if old values are present), so you can have the DeepSleep value since last reset !!!

First script "deepsleep.sh" creates the DeepSleep Value in format "xxx%" as return value.
Second script "dsreset.sh" writes or overwrites a file named "DSOld" in /storage/emulated/0. (You can change to path to your own value in both scripts)

How to:
- Copy both scripts to your SD-Card, may be at /storage/emulated/0 or a Subfolder.
- Install / Use an App, which can run a scripts by shortcut (for example Terminal Shortcut and create a shortcut for script "dsreset.sh". You can also assign such a shortcut to a zooper item in Option Module OnTap. Every time you start this shortcut or tap the assigned item in ZooperWidget, your DeepSleep values will be "resetted", you will observe your new value since this reset...
- Assign a system command to a Zooper-Textitem, for example write "DeepSleep #SEX /storage/emulated/0/deepsleep.sh#" (if script is at /storage/emulated/0) and you get a text like "DeepSleep xxx%" as output... (see ScreenShot)

May be it will work only with Root, I have only rooted phones, so I cant say if it will work on not rooted phones, please try and report it....
May be it will work only installed Busybox, I dont know if all commands are present without Busybox, please try and report it...

If you have some hints or proposals, please give feedback!

Enjoy...








Attached Thumbnails


Click image for larger version<br/><br/>Name:	2014-12-30-10-43-29.jpg<br/>Views:	N/A<br/>Size:	97.5 KB<br/>ID:	3089002
 











Attached Files





File Type: zip DS.zip -
[Click for QR Code]
(899 Bytes)










Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 commentaires:

Enregistrer un commentaire

 

© 2013 Mobile Probleme. All rights resevered. Designed by Templateism

Back To Top