yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Apps and Games] ZuinigeRijder:
Apparently the standard API GetIdleTime() is not supported in your ROM.

Because it shows 100%, it means it is not implemented.....
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, but how long do you want the timespan of the CPU graph? One minute, 1 hour?

I will see if I can add some extra options, like shown in this figure:
[Windows Mobile Apps and Games] paulyang1689:
oops,

but if phone is in change then it show is corrent.

thank you
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, I do nothing different between charging and non-charging.

This is another sign it is something wrong in the ROM.
[Windows Mobile Apps and Games] animalote:
I have the 100% (idle) problem in Acer F900 :(, (original rom, WM 6.1)

When not using the device shows 100%. When I open an application changes as the opening. It only works with the Dotfred's Task Manager showing CPU usage.

battclock.log.txt in .zip attached.

Thanks for your work.

Greetings
[Windows Mobile Apps and Games] ZuinigeRijder:
Nothing strange in the logging.

I use the API GetIdleTime() and as now turns out for some phones this does not give the correct values back. The API documentation also says it does not need to be implemented by all phones.

I learned that some phones have a speedstep technology, so the CPU speed is lowered when the CPU is idle. That would explain why it is at 100% when idle, because the CPU speed is brought back to a level so there is not a real idle anymore (all the lowered CPU speed is spent on non-idle tasks).

I will try to search for alternatives or a fix, but I do not know if I find an alternative which is lightweight.
[Windows Mobile Apps and Games] jaguaralani:
Well, I had to write back again here, I am using a LEO, and until yesterday I was enjoying the accurate CPU readings on me taskbar despite what I have already read here and seen by me eyes on a friend's HD2 that it was always reading 100% and descends down upon starting any application ( which is the reverse of what it is supposed to be ), while on me device it was on 0-5% and raises up during moving around tabs or starting an application.....

Well, today I decided to do a hard reset to install the new MIRI's 5.1 ROM, and the problem started afterwards, me LEO started to be just like what the others are saying, always on 100% CPU !

I tried so much to rememebr what I have done tweaking the previous ROM but i am sure there was nothing specific or special, only installing me regular softwares..............

Waiting eagerly for a solution .......

P.S. 1-I even reverted back to the previous ROm and installed it fresh, and it is the same ( reading 100% always )......... :(

2-I totally agree with the member who said that pluging in the USB cable ( charging ), will make the reading go right.

3-Attached are 3 LOGs

Thanx alot

HINT - AFTER SETTING THE

1-SMS SENT NOTIFICATION TO ON

2-SMS DELIVERY NOTIFY TO ON

(THROUGH A 3RD PARTY SOFTWARE )

THE CPU 5 STARTED TO READ CORRECTLY.

:)
[Windows Mobile Apps and Games] ZuinigeRijder:
Did I understand correctly, you did get the readings back correctly after the HINT settings:confused:

I see something strange in the logging, I get negative CPU figures :eek: And then I make the CPU percentage 100% (if it is above 100% or negative).

This is my code for computing the CPU percentage:

DWORD dwStopTick = GetTickCount();
DWORD dwIdleEd = GetIdleTime();
DWORD delta = dwStopTick - dwStartTick;
if (delta > 0) { // avoid divide by zero
DWORD percentBusy = 100 - ((100 * (dwIdleEd - dwIdleStart)) / delta);
if (percentBusy > 100) {
LOGDEBUG2("percentBusy", percentBusy);
percentBusy = 100;
}
RegSetValueEx(statusKey, _T("CPU"), 0, REG_DWORD, (LPBYTE) &percentBusy, sizeof(DWORD));
_stprintf(g_szCPU, _T("%d%s"), percentBusy, pS->GetCPUIndicator());
}
dwStartTick = dwStopTick;
dwIdleStart = dwIdleEd;

The formula is done as described in the microsoft documentation.

So now is the question, this negative number, what does that mean? Is that the correct CPU usage (after making it positive, just an indication it has lowered the CPU speed?) or is the speedstepping responsible for this negative number and there is something wrong in the formula for CPU's which can lower their frequency :confused:
[Windows Mobile Apps and Games] jaguaralani:
1-I guess it is th speed stepping, since pluging in the USB ( charging=full CPU) gives the correct readings.

2-the HINTS were a flase +, woke up this morning and found that the CPU is back to its false 100% readings :(
[Windows Mobile Apps and Games] ZuinigeRijder:
Version 1.9 with horizontally division and Battery Current/Temperature

23-2-2010 Version 1.9

* Possibly to show the info in columns instead of rows (option Divide Horizontally)

* Added option to show Battery Temperature (updated once per minute)

* Added option to show Battery Current in mA (updated once per second), great to see power consumption

* Show CPU also if it getidletime is greater than 100
[Windows Mobile Apps and Games] aleksandar0475:
Runs great on HTC Touch pro 2 stock.

dear friends and HTC Lovers,

I installed BattClock 1.8.1 on my HTC Touch Pro 2 with stock WM 6.5 ROM.

Everything works without a glitch.

Thanks a lot to the developer. No problems with fake CPU usage percentage whatsoever.

This version complies with my TP2 in total.

Highly recommended.

Gratitude to the developer(s).

Alex,

Serbia.
[Windows Mobile Apps and Games] jug6ernaut:
battery temp and battery current not working on my lg expo
[Windows Mobile Apps and Games] JaCoL_JcL:
this app is great but ... whe need more then 3 content !!

And on my WM 6.1 rom i900 not working new baterry addons in 1.9 :/
[Windows Mobile Apps and Games] ZuinigeRijder:
I use the API:

GetSystemPowerStatusEx2.

The Microsoft documentation says:

There must be support for this implemented in the battery driver, and the implementation of this support varies depending on the hardware platform.

So it looks like the information is available not on all phones.

I have a HTC Touch Diamond and there this information *IS* available.

So sorry, I can only support what is provided by the API :o

Or someone must know an alternative :confused:
[Windows Mobile Apps and Games] phalkon30:
6.5.3 isn't working really for me either. I haven't used this program on anything below 6.5.3, so maybe it's just my inability to set it up correctly.

I attached a picture of what mine is doing, I'll try to describe. I have changed the x/y to make it fit more completely in the box, but that only changes where the box is displayed, not the content in the box. I tried changing the text size, but that keeps the same spacing up and down between the options (just makes the text smaller).

What I need to be able to do is scrunch the the display items in the +/- X, within the box. I think 6.5.3 might be a smaller info bar, so maybe the layout controls need to be updated?

I'll test whatever you need if you want it, this program looks very promising and I'd love to get it working.
[Windows Mobile Apps and Games] ZuinigeRijder:
This is already on the wish list. I am planning to make 2 separate configurable areas, so you have place for 6 items.....and can place those 2 areas on different places, e.g. over the Windows logo and over the battery gauge.
[Windows Mobile Apps and Games] ZuinigeRijder:
This post contains settings for EnergyRom 6.5.x.

And this is on Sprint HTC Touch Pro 2

Windows Mobile 6.5

Sense 2.5.19222911.0.

Looks like the height should be lowered for you. Which phone type do you have? Which resolution? Probably others with Windows Mobile 6.5 can advice......
[Windows Mobile Apps and Games] tsalta:
You ROCK Dude

Everytime when i come here i see a New Version Avalible with more Options.

Now will try 1.9

This Litle app is something that everyone need to have.

Thank you
[Windows Mobile Apps and Games] ephestione:
props, props, props for the addition of battery status info!

It just appears to me tho, that the current is not updated every second, but more or less every 10 seconds, at least that's the delay, for example, from activating the maxmum light intensity in HTC Flashlight, and seeing a 630mA total current (:eek:) from 130mA starting point.

Maybe though, that's just the api that doesn't give back updated results, and even if you poll it every second, it's still giving you back old readings.

Happy to see that adding more space for more total readings is on the todo ;)

A plotting capability for the battery subsystem, as someone else maybe asked, would be "off topic" for the utility, but definitely a killer addition to the whole functions. It would be something that stores current and temperature info in a text file, and by request draws those values with a graph on a temporal scale.

Anyway, thank you!
[Windows Mobile Apps and Games] alnug:
The program is working fine, you just need to adjust the width and height also. I have a HTC Jade (QVGA) running 6.5.3 and here are my settings

x=-61, y=0, w=24 and H=19

you can change these settings in the Location and sizes tab.
[Windows Mobile Apps and Games] Tubgirl:
That sounds like a winner :) We will have more info on the taskbar than the whole Manila screen ;) Wonder what more values that can be read? Outdoor temperature?

I know I've asked this before but I can't help asking again :rolleyes:

Would it be possible to include the week number as one of the alternatives for the date? Today would be 24/2v8 (I'm only asking because week numbers aren't visible in the Manila calendar on my HD2 and that's really annoying.

Peace... /TubGirl
[Windows Mobile Apps and Games] ZuinigeRijder:
Indeed I ask for the Battery info once per second, I give as parameter to use cached information, so that will likely make the battery driver only to update the info after several seconds. Forcing the readout once per second is a possibility, but that could give a battery drain, so it is only usefull for short time. So I think I stick with the current approach ;)

I will think about writing the values in a text file, so another application can draw the graph. Could be part of TouchLockAction, or another app.
[Windows Mobile Apps and Games] ZuinigeRijder:
There are different definitions of weeknumber, e.g. see here.

Actually, C++ has already some datetime formatting possibilities.

So probably I go make an option to have a free formatted string, like described in strftime. It is a bit technical, but you can exactly specify how you want it then.
[Windows Mobile Apps and Games] Tubgirl:
Well... what can I say? It would be excellent if you would implement that :-)

I can't understand why HTC doesn't include the option to show week numbers in its UI.

Brgds... /TubGirl :)
[Windows Mobile Apps and Games] ephestione:
yes, I had confirmation from another user that the builtin sensor only updates the readings every X seconds, at least having battclock check every second is sure to get the newest readings as soon as possible; I do approve of leaving it the way it is :)

Anyway, am I missing something or the mA colour is bound to the H:mm colour?

Log data to text file would be neat indeed, anyway your utility is way too sweet already the way it is :p

much like in PHP, with d,m,Y,H,h,M,s and so on values, that is another really interesting option!
[Windows Mobile Apps and Games] paulyang1689:
Great news.

now it's work for me!(Leo HD2 6.5.3)

thank!
[Windows Mobile Apps and Games] Bib_x:
How often is the current mAh-consumption updated by the device?

BattClock updates it every second, but it seems that my device updates not so often. I have about 10-20 seconds with the same mAh, even if i enable wifi or other great power consumers.

EDIT: Didn´t see the posts above. You explained that issue already.
[Windows Mobile Apps and Games] ZuinigeRijder:
Proof of concept DateTime format string

I implemented a proof of concept for DateTime Format String.

It uses the following API: wcsftime.

The format string can contain the format codes:

Example of a format string I used for testing:

"%A %d %B %Y Week %W %H:%M %p"

which looks like:

Of course you will not put this long string in your taskbar, but you can see that you can format to your likings:

- e.g. show AM/PM

- show weeknumber

- show year (for those who forget this each day ;)

- show day of week

I did think of making it possible to also make it possible to show the other items in a format string like syntax. The problem is that you probably want to configure colors too. So that will more difficult to implement.

So I think of making it possible to configure more then 3 info lines, e.g. 6, which is nice if you want the horizontal division possibilities.

In combination with 2 battclock area's that should be enough ;)
[Windows Mobile Apps and Games] Tubgirl:
I see it's soon time to install a newer version than BattClock 1.6 which I'm currently on :-)

Very flexible indeed!

Brgds... /TubGirl
[Windows Mobile Apps and Games] sxtheone:
Is it possible to show system time in seconds (format: H-MM-SS, clock is updated per second) without causing battery drain?

and, how about making content areas of battclock clickable so as to serve as a program launcher? for instance, it'd be nice if I can access my stopwatch app when I click on time of battclock, and open my PIM app when I click on date area of battclock, ,,,,

thanks.:D
[Windows Mobile Apps and Games] queer~dude:
Nice app

but it's funny, my company Office Scan Anti-virus detected BattClock as "virus"........

cheerz
[Windows Mobile Apps and Games] ZuinigeRijder:
Strange. Did you download BattClock from touchlockpro.sourceforge.net:confused:

And what virus was reported?
[Windows Mobile Apps and Games] ZuinigeRijder:
BattConfig for smartphone users......

I have a test version of BattConfig for Smartphone users. The Button, which is not available for SmartPhone in .NET has been replaced by a SmartButton, a class I made myself. So if people can test and report back if this is working.....

Note that there is also an file dialog (for back image), but it is only triggered when you click the BackImage button. So I hope the other functions can still be used ;)

See attachment. Unzip the attachment and copy BattConfig.exe somewhere on your phone and just start it. Requirement: .NET 2.0 or higher.

fingers crossed :cool:
[Windows Mobile Apps and Games] Maedhros:
This looks great but waiting on 1.2 befor I will use it, since 24h time is not practical for me :)

Need 12h time, im too lazy to add/subtract :P
[Windows Mobile Apps and Games] ZuinigeRijder:
BattClock version 1.2 with many improvements

Just uploaded BattClock Version 1.2, having this possibility. Have fun :D
[Windows Mobile Apps and Games] onlyreal:
on your web it seems that the same link is for the version 1.1 and 1.2. Could you please check and correct if needed? Thanks for this app.
[Windows Mobile Apps and Games] ZuinigeRijder:
You are right, link corrected. Thanks for pointing out this error.

Otherwise no one understands the improvements :rolleyes:
[Windows Mobile Apps and Games] gadgetluva:
this works great when I'm in Sense/TF3D, but once I go to the start menu or otherwise, the formatting is off. Tried it wiht clock in all programs turned on and off in clock settings.
[Windows Mobile Apps and Games] Maedhros:
THanks! I will try it and report back later!

(btw I can't donate but I clicked on a few adds if that helps :P)
[Windows Mobile Apps and Games] ZuinigeRijder:
BattClock is just an overlay, so it should be shown the same.

Can you post screenshots, so it is for me more clear how it looks and what the problem is?
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, that is an indirect donation, sponsored by the great search guys and the companies paying for it :D
[Windows Mobile Apps and Games] sxtheone:
after device wakes from suspend mode, it still displays the time of the last session, and can't update to the current time until system clock goes into the next minute.
[Windows Mobile Apps and Games] ilordvader:
Is there any Option to chnage Back ground Colour on it ?

Also seems its on top of something under it

Is there anyway we can move it to center or diff position on top

Thanks Like this alot & was long waiting for something like this

Good Woork :)
[Windows Mobile Apps and Games] letsgoflyers81:
This is fantastic, thank you! My only real complaint with 1.1 was no 12 hour time, which we have now. I also like that the % changes to a ~ when charging, that's a nice touch.
[Windows Mobile Apps and Games] ilordvader:
How do u get the 12hr Time

Please
[Windows Mobile Apps and Games] letsgoflyers81:
OK I lied, I do have one minor issue. Would it be possible to not have a leading zero in 12 hour time? For example it's 1:19 right now and it shows 01:19. I'd like to get rid of that if possible, thanks!

The instructions are on ZuinigeRijder, site. You need to edit the registry and change the Dword value of Clock12 from 0 to 1, then soft reset.

http://www.zuinigerijder.com/BattClock.html
[Windows Mobile Apps and Games] ZuinigeRijder:
Ok, I will have a look at it and provide a fix in a next version.
[Windows Mobile Apps and Games] andreatozzi:
great app

After many test the perfect settings for my HTC Polaris (QVGA) are:

ClockWidht 40

Fontsize 9

ClockX 429496723

but i don't know why in every setting appear the ~ symbol instead of %

May you help me ?
[Windows Mobile Apps and Games] ZuinigeRijder:
I will see if I can make an option for it, or just make it fully configurable what is shown, e.g:

- HH for 24 hour clock with leading zero

- H for 24 hour clock without leading zero

- hh for 12 hour clock with leading zero

- h for 12 hour clock without leading zero

etc.

So you can configure something like h:MM or another separator

Same for Date.

Indeed. Soft reset is not really necessary, you can stop the BattClock via Programs and start again. It is of course not user friendly to need a registry editor to configure the BattClock. You can also configure the clock via TouchLockPro program, TouchLockAction BattClock settings screen. Therafter just uninstall TouchLockPro.

But I will work on a separate configuration program.
[Windows Mobile Apps and Games] ZuinigeRijder:
The ~ symbol is shown as indication it is on (USB) power. So if it is showing %, then it is on battery.....
[Windows Mobile Apps and Games] ZuinigeRijder:
All the settings are configurable via registry:

- location: clockx, clocky

- size: clockwidth, clockheight

- fontsize

- relative to the right

- background and foreground colour

- what is shown, time, date and/or battery percentage

- 12 hour clock

see www.zuinigerijder.com for the possibilities.
[Windows Mobile Apps and Games] gadgetluva:
Outside of sense with the clock on in the taskbar:

Outside of sense with the battery on in the taskbar:
[Windows Mobile Apps and Games] ilordvader:
Thankyou so much :)
[Windows Mobile Apps and Games] bh77a:
Awesome work, man. I really love this little app, and your speed of updates is great as well.

Looking forward to the second display location.

With that, I do have a couple of feature requests:

- I second or third the request for the ability to log all collected data to a text file as it is generated.

- It would be great if you would add the value of the raw signal strength for the phone, so that we can watch it. Let me know if you need the registry entry to pull this from!

Thanks again.
[Windows Mobile Apps and Games] tobbbie:
Unfortunately it is not usable for Smartphone:

+ it starts up and does not crash

- layout is wider than QVGA screen (large buttons)

- cannot navigate with D-pad keys

- cannot (hardly) see which button is selected

- screen is sticky (cannot get it to background)

BattClock:

Registry options under \HKCU\....\Status only list the "Battery" property no others (Tornado under WM6). would like to see current drain and voltage there :-)
[Windows Mobile Apps and Games] dobrin.dobrev:
Settings for HTC Touch Diamond2

Settings for HTC Touch Diamond2

BattClockInfo1 = 1
BattClockInfo2 = 5
BattClockInfo3 = 11
BatteryCurrentIndicator = "mA"
BatteryTemperatureIndicator = "C"
ClockBackground = 0
ClockBackImage = ""
ClockBackImageLandscape = ""
ClockForeground = 16777215
ClockForegroundCPU = 16777215
ClockForegroundDate = 16777215
ClockForegroundTime = 16777215
ClockHeight = 48
ClockHeightLandscape = 48
ClockWidth = 48
ClockWidthLandscape = 48
ClockX = -92
ClockXLandscape = -92
ClockY = 0
ClockYLandscape = 0
CPUIndicator = "%"
DateSeparator = "-"
DivideHorizontally = 0
FontSize = 16
FontSize2 = 16
FontSize3 = 16
FontSizeLandscape = 16
FontSizeLandscape2 = 16
FontSizeLandscape3 = 16
HighColor = 16777215
LogDebug = 0
LowColor = 16777215
LowThreshold = 30
LowThresholdMemory = 30
MediumColor = 16777215
MediumThreshold = 60
MediumThresholdMemory = 60
MemoryIndicator = "M"
OnBatteryIndicator = "%"
OnPowerIndicator = "~"
TimeSeparator = ":"
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, Smartphone UI should be designed very differently, because you only have the D-pad. That is also why there was also not support for Button :mad: And when there are more items on a page, those you cannot reach.

The only way to support the Smartphone is to make a special version, for Smartphone only. Looks like that one will be low on the wish list, especially because I can not test well.

The registry keys BatteryTemp and BatteryCurrent are written when they are shown. There is not a setting to write those values when those are not shown, because I do want BattClock lean and mean and do not consume resources when not used by someone. The only option would be a separate log option, where you can configure (independently from what is shown) what to log.
[Windows Mobile Apps and Games] ZuinigeRijder:
Yes, it is on the wish list. Probably you want to configure which values to log and what interval.

Glad to hear which registry key gives the phone strength. Better is to add an option to show a configurable registry key (or even more than 1), because maybe there are other interesting registry keys to show ;) And this is more generic.....
[Windows Mobile Apps and Games] Jokes On You:
I would like to say that I love this application. I upgraded from 1.6 and found the CPU% to be an excellent addition. One thing I would really like to see if possible(if would make this bloatware then ignore this request) is a bubble when BattClock is tapped. That way we could have info on the taskbar and tap BattClock to get additional info.
[Windows Mobile Apps and Games] bh77a:
phone signal reg key info

Thanks for considering this. Here's the reg key to determine phone signal strength:

HKEY_LOCAL_MACHINE\System\State\Phone\Signal Strength Raw

It would be awesome to see support for one or more custom reg values.

Thanks!
[Windows Mobile Apps and Games] tobbbie:
Could you please add the Battery-Voltage to the items for display/registry-log? Frequency of updating could vary with the current drain: low drain = low frequency, useful range = 5 seconds to 5 minutes.
[Windows Mobile Apps and Games] bh77a:
Here's a little love for BattClock on JAMM:

http://justanothermobilemonday.com/Wordpress/2010/03/01/free-for-all-battclock-for-windows-mobile/

Hope you enjoy!
[Windows Mobile Apps and Games] ephestione:
yup, just the way the first image isw cut in the articles summary in the home page doesn't show anything of battclock itself but just the BT icon :D

Anyway this utility deserves all the publicity it can get!
[Windows Mobile Apps and Games] Mauro.c:
Hi,

version 1.8.1 works fine on my xperia X1 with stock rom.

The only problem I found is that position is fixed and therefore sometimes is overlapped by the name of the running application.

My current settings are:

Content:

- CPU% (font 21)

- Free% (font 21)

- Empty

Location and size:

- X165

- Y 9

- W48

- H 45

Just one question (apologies if it has been already asked): to install a later version, should I uninstall this first or can I just overwrite it ?

Thanks for the good work