maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Annouce] HealthCheck - Hardware/System checker for the N900 (https://talk.maemo.org/showthread.php?t=45453)

nidO 2010-04-13 09:53

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 608283)
Thinking more about stress testing the device....
I'm not so sure about just opening every app available and watching thins burn...

What i think i'd like to do is get some measured tests.....
(Ie know what processes are running, and judge it on that) - do some tests and score them....

Anyone got any suggestions as to what tests, how to score etc? :D

nbench has been compiled for N900's, maybe you could simply include and execute that (see http://talk.maemo.org/showpost.php?p=604794&postcount=3)
Alternatively, how about getting Mprime running, im sure there must be an arm-compiled copy kicking around somewhere.

Switch_ 2010-04-13 10:17

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 608283)
Thinking more about stress testing the device....
I'm not so sure about just opening every app available and watching thins burn...

What i think i'd like to do is get some measured tests.....
(Ie know what processes are running, and judge it on that) - do some tests and score them....

Anyone got any suggestions as to what tests, how to score etc? :D

Well, based on the recent overclocking phenomenon I believe that you should be stress testing both the CPU and potentially the RAM too - not too sure about the internal architecture of the device itself but I am well into overclocking PC's. If they run on the same premise (ie; unless you de-link the FSB to the CPU then the RAM clocks up as you increase the FSB on the chip) then both would require stress testing, to ensure that they are able to cope with it. I have also seen that the Desktop Command Execution Widget can monitor the temperature of the CPU, meaning you can initiate a stress test and then run the same kind of code to ensure that the CPU is not frying or reaching its Tmax.

If its possible it would require a port of something akin to Prime95 (using Lucas-Lehmer iterations to find higher and higher prime numbers) or SuperPi (calculating pi down to as many decimal places as possible)

Just a suggestion....

Also read elsewhere you might want to give it a facelift - if you want a hand with graphics for that one I'd be happy to lend a hand :D

noobmonkey 2010-04-13 13:25

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by Switch_ (Post 608320)
Well, based on the recent overclocking phenomenon I believe that you should be stress testing both the CPU and potentially the RAM too - not too sure about the internal architecture of the device itself but I am well into overclocking PC's. If they run on the same premise (ie; unless you de-link the FSB to the CPU then the RAM clocks up as you increase the FSB on the chip) then both would require stress testing, to ensure that they are able to cope with it. I have also seen that the Desktop Command Execution Widget can monitor the temperature of the CPU, meaning you can initiate a stress test and then run the same kind of code to ensure that the CPU is not frying or reaching its Tmax.

If its possible it would require a port of something akin to Prime95 (using Lucas-Lehmer iterations to find higher and higher prime numbers) or SuperPi (calculating pi down to as many decimal places as possible)

Just a suggestion....

Also read elsewhere you might want to give it a facelift - if you want a hand with graphics for that one I'd be happy to lend a hand :D

Wow..... Taken a look at the pi example and thats pretty good.... theres quite a few things i could do with that :D
Probably would be useful for the overclockers too :D

In a previous version there was a cpu temperature monitor - but it is very hit and miss :( - so i took it out :(

if i can figure out why, i will re-add it :D

Definitley any help with the fx would be appreciated - i'll have to elarn how to swap buttons for images etc....

I'm thinking of removing the tab and having a main window...

Main window
--> System
--> Comms
--> Tools
--> About (+ eventually information about the commands and lines in H/C, so a mini wiki)

Could have a healthceck symbol (like the logo) in big - each end of the cross is a different button? :D - each loads up their own full screen sub-windows maybe? :D

I also kinda like the idea of the main screen being semi-transparent - apart from the healthcheck cross? - not sure if that makes sense!

edit - completely forgot to add - QT can use CSS i think - will ask mikec ;)

noobmonkey 2010-04-13 13:26

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by nidO (Post 608295)
nbench has been compiled for N900's, maybe you could simply include and execute that (see http://talk.maemo.org/showpost.php?p=604794&postcount=3)
Alternatively, how about getting Mprime running, im sure there must be an arm-compiled copy kicking around somewhere.

Thanks nid0 - not sure on executing othe apps from mine - would rather is was all part of the same package - but will look around at pre-ready python benchmarking if there is any :D (Doesnt need a gui - as i can sort that)

noobmonkey 2010-04-13 13:33

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
With regards to basic benchmarking to begin with..... something like this could work? - it has a completion average time - so can be used as a basic score....

It allows the user to define their own starting point (IE i can count processes active and divide the total score by that to get a final score!) - it actually a python test - but relyss on the device to power it through :D

nidO 2010-04-13 13:43

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey (Post 608542)
With regards to basic benchmarking to begin with..... something like this could work? - it has a completion average time - so can be used as a basic score....

It allows the user to define their own starting point (IE i can count processes active and divide the total score by that to get a final score!) - it actually a python test - but relyss on the device to power it through :D

Largely depends on what you're aiming for with it - As you say, pybench is mostly aimed at benchmarking the python implementation itself, rather than the hardware running it, the tests are very quick and don't hugely reflect on (or particularly stress) the hardware running it (fairly similar to the SunSpider javascript browser tests).
If you're after a pure benchmark of the hardware then pybench might be a starting point (though it's likely to be relatively inaccurate for this purpose) but it'll achieve nothing for a stress-test of the cpu and memory, which is something I imagine all the overclockers would like to see - A proper stress test will need a continuous prime/pi calculation or similar.

Switch_ 2010-04-13 14:11

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by noobmonkey
In a previous version there was a cpu temperature monitor - but it is very hit and miss - so i took it out

I believe that the desktop command execution widget uses a simple d-bus command to run out the temperature output directly from the sensor on the proc itself - however, in your healthchek this would probably require a periodic update, say 500ms, especially if you are cheking the OC effect on the CPU. I'll find the post and find the command for you.

Quote:

Originally Posted by noobmonkey
Definitley any help with the fx would be appreciated - i'll have to elarn how to swap buttons for images etc....

Be my pleasure - AFAIK, the buttons are simply *.png files stashed into the repo for the app itself - aren't they? All it requires is a re-hash of the PNG using the same pixel constraints and voila, button now becomes pretty and shiny. Although this in itself may well be governed by the THEME rather than the APP.... Hmmm.....


Quote:

Originally Posted by noobmonkey
I'm thinking of removing the tab and having a main window... Could have a healthceck symbol (like the logo) in big - each end of the cross is a different button? - each loads up their own full screen sub-windows maybe?

Sounds good much better GUI, and then to have the main HC cross in there too, with each section relating to an extremity of the cross. Can be done, may require image mapping in html to make it work though....

Quote:

Originally Posted by noobmonkey
also kinda like the idea of the main screen being semi-transparent - apart from the healthcheck cross? - not sure if that makes sense!

Makes perfect sense to me, but I was discussing this very point with someone else earlier - the "semi-transparent" effect that is applied when you move into the menu's from the main hildon desktop is actually a pixel blur effect. The problem is this (I believe, but will stand to be corrected), the coding for the menu is core to the OS whereas the coding for the apps is not interdependent on the same libraries that the OS is. Tying in the app to this parameter might be quite difficult, but I'm not a coder so haven't got a leg to stand on really. Transparency is not possible I don't believe, unless you are talking about widgets, which, to be fair, your app could easily be - as a shortcut to the main app itself....?

Dunno - I'll get cracking on some images for you to play about with. Post up here when I got some done ;)

noobmonkey 2010-04-13 15:30

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Quote:

Originally Posted by Switch_ (Post 608609)
I believe that the desktop command execution widget uses a simple d-bus command to run out the temperature output directly from the sensor on the proc itself - however, in your healthchek this would probably require a periodic update, say 500ms, especially if you are cheking the OC effect on the CPU. I'll find the post and find the command for you.

Ahhh if it just a dbus command i could run a single one - and have it touch refreshable at the moment - like the others.
(Still learning threading to get the whole thing updatable)


Quote:

Be my pleasure - AFAIK, the buttons are simply *.png files stashed into the repo for the app itself - aren't they? All it requires is a re-hash of the PNG using the same pixel constraints and voila, button now becomes pretty and shiny. Although this in itself may well be governed by the THEME rather than the APP.... Hmmm.....
Ahhhh using PYQT - so not sure at the moment - not sure how the gui handles them.... hoping i can just point at them separatley and put them in mydocs or /opt to match with the rest of the app. - will take a look at that though.


Quote:

Sounds good much better GUI, and then to have the main HC cross in there too, with each section relating to an extremity of the cross. Can be done, may require image mapping in html to make it work though....
Hmmm possibly or just careful positioning of the 4 buttons.
5 images
central cross - then 4 buttons at the end, as long as they blend i should be able to position buttons anywhere.

I'm thinking a half top bar(just to the left of the back arrow going about 3/4 of the screen) - could be a faded green colour saying HealthCheck - Version - Screen title. Or something similar as well - can worry about that later


Quote:

Makes perfect sense to me, but I was discussing this very point with someone else earlier - the "semi-transparent" effect that is applied when you move into the menu's from the main hildon desktop is actually a pixel blur effect. The problem is this (I believe, but will stand to be corrected), the coding for the menu is core to the OS whereas the coding for the apps is not interdependent on the same libraries that the OS is. Tying in the app to this parameter might be quite difficult, but I'm not a coder so haven't got a leg to stand on really. Transparency is not possible I don't believe, unless you are talking about widgets, which, to be fair, your app could easily be - as a shortcut to the main app itself....?
there seems to be a trick of snapshotting the desktop before load - and the using it as a background image - i'll see what i can hunt out....
Will stick with an app for the moment, not tried widgets yet :D

Quote:

Dunno - I'll get cracking on some images for you to play about with. Post up here when I got some done ;)
Superb, thank you very much!
Should get some free time at the weekend to give it a proper trial - but obviously whhatever you throw up so to speak, i'll get it on and see what it looks like ;)

Thank you very much for your help and support.
(P.s. i can be found quite often on IRC in #Maemo, if needed)

Robb 2010-04-13 19:55

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
For Sound tests I suggest to also add earspeaker tests.

mikec 2010-04-13 20:11

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
[Quote/]

edit - completely forgot to add - QT can use CSS i think - will ask mikec ;)[/QUOTE]

here is the guide to add your own buttons
http://wiki.maemo.org/Customising_Qt...hon_in_30_Mins

Have a look at the latest version of nclock. I like the tap on main screen to get slide out menu technique ;)


All times are GMT. The time now is 03:55.

vBulletin® Version 3.8.8