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)

lcuk 2010-04-08 11:52

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
quick catchup from me:

Quote:

Originally Posted by Venomrush (Post 596131)
Can we add a tab to do:
(checking for updates and install latest packages)

scope moves beyond information into dangerous ground, use console if you are comfortable or HAM if not.

Quote:

Originally Posted by assetburned (Post 597134)
hmm just an idea... but i guess it would be a little security risk if all users would be allowed to use apt-get... so that should be only done in a veeeeery limited time window.

yes, don't make things which need root generally usable by regular user.

Quote:

Originally Posted by MohammadAG (Post 596490)
Not sure about it, you can try though :)
user ALL = NOPASSWD: /usr/bin/apt-get
Put it in healthcheck.sudoers in /etc/sudoers.d/ and update-sudoers.

eep!

Quote:

Originally Posted by noobmonkey (Post 597378)
god only knows the destructive power of healthcheck under root ;)

not only god, think about all the kittens that will be harmed

Quote:

Originally Posted by noobmonkey (Post 599836)
As much as i agree, i do feel that is more for the app designers to assist, when their package is being removed, it should remove everything...

So far i have stopped short of intrusive tools for 2 reasons: (None of my current tools do anything other than show you information)
1) There seems to be some umming and erring over if it is a good idea
2) I need to learn how to do it properly ;)

1) yup lots of it
2) good to know, but not part of generic info lookup tool

showing the information is good practice - telling them how to cure it is also good but until you are sure of mechanisms and issues, stick with a hands off, look only approach.

deed 2010-04-08 13:51

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hi Noobmonkey,

Have been trying few previous releases of your nice app, if they all installed flawlessly, I did de-installed them all because each time I could not get the cam test to work. I thought this one would, but still no go! Everything seems OK but nothing happen when test cam... (I know both work) so I must be missing a dep or something, any idea? maybe something about the gstreamer version?
thanks

noobmonkey 2010-04-09 07:51

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

Originally Posted by deed (Post 600988)
Hi Noobmonkey,

Have been trying few previous releases of your nice app, if they all installed flawlessly, I did de-installed them all because each time I could not get the cam test to work. I thought this one would, but still no go! Everything seems OK but nothing happen when test cam... (I know both work) so I must be missing a dep or something, any idea? maybe something about the gstreamer version?
thanks

Hi Deed, sorry for the slow reply, just got back from hols :D

Very interesting that neither cam's work?
It is important to confirm the front camera that you point it at a bright light, just to double check.

Right.... to test gstreamer go into x-terminal on your device and run these commands

Back Camera
Code:

gst-launch v4l2camsrc device=/dev/video0 num-buffers=10 ! dspjpegenc ! filesink location=/home/user/MyDocs/bcamtest.jpg
Front Camera
Code:

gst-launch v4l2camsrc device=/dev/video1 num-buffers=10 ! dspjpegenc ! filesink location=/home/user/MyDocs/fcamtest.jpg

then check your mydocs folder - you should have two files, one for each camera.
You may get an error back in x-terminal if it is not working, if so, post it back and i'll see what i can do :D

deed 2010-04-09 09:14

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hi Noobmonkey,
So I've been trying few things by myself first:
Tested front cam with mirror app: works
Tested back cam: works (enough light for the 2 tests)
valided my gstreamer install, seems ok, but decided to add gstreamer sdl plugin, and gstreamer ugly plugins (just in case). This had add a lot of (useless...) files but hey, who knows! Then re-test the 2 cams as before, worked.
Then went into terminal and test the two commands above:
for video1: no error messages, file was created but weight 1ko and not able to open...
for video0: same behavior plus 3 lines saying: dsp_thread: failed waiting for events
file was created, but exactly the same of video1 test: 1ko, unreadable.
Went in Healthcheck app: still no go with cam test; 10 second waiting, then go back to cam test menu.
I've tryed to launch your app from xterminal, but could not: no healthcheck command, nor in normal user nor in root.
So it's a mystery to me! One last thing, I'm on PR1.0, but I don't believe it has something to do with.

noobmonkey 2010-04-09 09:21

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

Originally Posted by deed (Post 602421)
One last thing, I'm on PR1.0, but I don't believe it has something to do with.

Ahaaaaaaaaa
I think it may! interesting that mirror works, but it does use a different method to mine.
Its very strange though, as I'm assuming with dependencies everyone should be getting the same version of gstreamer tools downloading?

1.0 is Quite far behind though!

deed 2010-04-09 09:40

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Yes it's true that it's quite far behind, but I've got no prob with it, and what I mean by no prob is that everything I need is working rock solid from day one: WIFI, Vids, live streaming, Microb, Easy Debian and so on. I rely on my device to be my working computer when not at home and I can hook on every wifi spot everywhere, or strong 3.5g cons. To be true, most of the problems people have faced after 1.1 upgrade are just unknown for me!
I'm running now Letho's 950/500 kernel from the day it was out, and same: no prob, just a more responsive device everywhere it was lacking a bit of speed!
But I've to admit that there are now few apps that I can't update anymore, or even new that I can't install...
Healthcheck is still a good testing and informative app though, even if I can't "test" the cams!
Thanks anyway for your work.

mikec 2010-04-11 18:56

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Just tried version 1.0 very nice.
I like the startup . Did you use Qt progress bars for that ?

noobmonkey 2010-04-11 19:17

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

Originally Posted by mikec (Post 605761)
Just tried version 1.0 very nice.
I like the startup . Did you use Qt progress bars for that ?

yup, will post the code when i get near a pc :)
(think it was qprogressbardialog will check tho)
new version will allow 1 click updates in the list boxes :) just working on it this week )..

sorodoros 2010-04-11 21:04

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Shouldn't the LED test check all colors?

noobmonkey 2010-04-11 21:13

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Mike, here is the code that i have used
Code:

                progress = QtGui.QProgressDialog("Please Wait", "Cancel", 0, 100, MainWindow)

                progress.setWindowModality(QtCore.Qt.WindowModal)
                progress.setAutoReset(True)
                progress.setAutoClose(True)
                progress.setMinimum(0)
                progress.setMaximum(100)
                progress.resize(800,100)
                progress.setWindowTitle("Loading Healthcheck")
                progress.show()

Then as the process proceeds i use (repeated with different functions)
Code:

                Self.someFunction()
                QtGui.QApplication.processEvents()
                time.sleep(0.1)
                progress.setValue(15)

and at the end

Code:

progress.hide()


All times are GMT. The time now is 22:51.

vBulletin® Version 3.8.8