![]() |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
great to hear it is working. sorry am on holiday in greece!
if you want more information on the values in future i have started a blog for healthcheck on my website www.greg-roberts.com it has a set of pictures describing the accelerometer positions :) hope that helps! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Thanks man, I've naturally checked your website and read that post about the accelerometer, but since the post assumes there's nothing wrong with the accelerometer, I couldn't figure if mine was really faulty - e.g entirely not working - or just 'stuck' and always returning maximum values to the accelerometer test...
But you're ok man, thank anyways :) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Hi,
healthcheck crashing since a long time. tried this: apt-get install -s mp-fremantle-generic-pr then I get an error about dependencies: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: mp-fremantle-generic-pr: Depends: perl-base (= 5.8.3-3osso11+0m5) but 5.8.3-3osso13+0m5 is to be installed Depends: libsdl-mixer1.2 (= 1:1.2.6-5+0m5) E: Broken packages How can I fix it? Have to reinstall perl or so? Thank you very much for your help. jacks |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
And then stop doing "apt-get dist-upgrade" (which is probably how you got into this situation in the first place). |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
thank you very much rob1n. now it works again!
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Hey, noobmonkey, I have a question: How do you fetch device orientation state in healthcheck? I've been trying to figure out how to make it work in Conky, so I need whatever one would normally be able to run in a shell to fetch the device orientation state.
Or does healthcheck just calculate it using the accelerometer values? (I have no clue how to use DBus, but if you want to teach me the DBus command for it by all means I'm happy to learn, but if there's a non-dbus place I can poll, that would be wonderful. I've been browsing the N900 filesystem, and I found where you can cat the accelerometer values (As http://wiki.maemo.org/N900_accelerometer#sysfs suggests), but no where in the documentation do I find a place that tells you how to fetch the orientation state - barring a few hints about DBus, but that's arcane and impenetrable for me right now.) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Accelerometer co-ords followed by oreientation :)
Code:
f = open("/sys/class/i2c-adapter/i2c-3/3-001d/coord", 'r')Code:
def funcDevOri():I'm sure some clever doul can teach you how to do it in terminal or c++ :) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Well, thank you anyway. I appreciate it. If I understood DBus stuff more, I could probably figure out how to do it from the python code - it's just that I don't even know that. I'll prod some people for it in PM I suppose, if I can't figure it out in the next few days.
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
To be completely honest, this still doesn't make any meaningful sense to me. (And I actually can't fully tell where the part that finds orientation is - there's a part that measures screen geometry - desktop width vs desktop height - but would that even work in Maemo, where the desktop never actually rotates?)
But I appreciate it nonetheless. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
hehehe, qt detects the rotate, so it does it all for you ;)
the dbus example though is the best example :p |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Well, it still doesn't tell me what to stick in the command line to get the device orientation - unless I can run a qt line from the shell? Which means I still don't know what to put into my conky.conf to get the result desired.
On the other hand though, it proves to me, yet again, that Qt is amazing, and I should learn it. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
I figured it out, after what is now a couple days of digging through criptic DBus documentation and wiki.maemo.org (and a bunch of random plug-n-play trial-and-error on the command line):
dbus-send --system --print-reply --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.get_device_orientation In retrospect, the python snippet that I initially found on the wiki and you posted here contains most of that in it. But there's no way I would have gotten it without seeing a bunch of other dbus-send code snippets and reading through dbus documentation. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Would be lovely to actually have a set of DBUS documentation or something like a tree-view list of it all!
Following that demonstrations of how to use them all would be lovely ;) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
This doesn't seem to be running for me in 1.3? Any fix for that?
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Hi Les, yeah i think so (Will hunt for the fix tonight) - is it just not loading?
i'm into a full redesign of healthcheck at the moment! I'm 1 week into a 2 month+ redesign i feel in QT/C++ - more tools, better layout and alot quicker! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
Nice SW! It opens and starts loading and then goes "poof" and closes the Window. I uninstalled and reinstalled and same thing. New version sounds pretty exciting! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
hehehe sounds about right lol!
If you run it from terminal it should give you some feedback :) Code:
python /opt/healthcheck/healthcheck.pyManaged to figure out the basics, and it auto rotates fine, but QTlayouts are being a pain in the ***! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Here's the tail of it:
** Getting orientation** ** Start Function - Device Orientation ** ** Start Function - Bluetooth MAC** ** Finished tab 1 update ** ** Starting tab 2 update** ** Updating GPS Info** Traceback (most recent call last): File "/opt/healthcheck/healthcheck.py", line 1076, in <module> ui.funcUpdateAll() File "/opt/healthcheck/healthcheck.py", line 900, in funcUpdateAll self.updateGPS(MainWindow) File "/opt/healthcheck/healthcheck.py", line 990, in updateGPS control.set_properties(preferred_method=location.M ETHOD_USER_SELECTED,preferred_interval=location.IN TERVAL_DEFAULT) AttributeError: 'location.GPSDControl' object has no attribute 'set_properties' |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Hmmm that sounds like it's struggling to control your gps.... Or its struggling to get permission to use it.
Can you try making sure your gps is online and turned on, then load it? (Might literally just not be allowed to turn it on - badly coded!) edit either that or 1.3 has changed the GPS abilities?! random! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
I ran up the GPS using a GPS program.
No change in the behavior. Crashes at the same place. This problem started after the 1.3 install. Mine was a fresh Flash, not an upgrade. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
will investimagate! :) - sounds like something has changed in PR1.3 :(
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
I ran up the GPS using a GPS program.
No change in the behavior. Crashes at the same place. This problem started after the 1.3 install. Mine was a fresh Flash, not an upgrade. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
for me the app crashes too.
don't get why.have installed the devel update but doesn't work at all. EDIT :ok tried to run it from xterm this is what i get: python /opt/healthcheck/healthcheck.py ***** Start Imports ***** ** Importing qtcore & gui ** ** Importing ui.touchstub - accuracy tool ** ** Importing sys ** ** Importing commands ** ** Importing os ** ** Importing os.path ** ** Importing subprocess ** ** Importing dbus.glib ** ** Importing Start location** ** Importing Cellinfo ** ** Importing Hildon ** ** Importing Functions ** ** Importing Time ** ** Importing GTK ** ** Initialize Threads(GTK) ** ** Importing Gobject ** ***** Finish Imports ***** ** Seting global variables ** ** Starting Main ** ** app = QtGui App** - Running app = QtGui.QApplication(sys.argv) ** /opt/healthcheck/healthcheck.py:1053: GtkWarning: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed app = QtGui.QApplication(sys.argv) ** Setting Main Window** ** Setting tool window #1** ** Starting healthcheckWindow Class ** ** Set basic color on rectangle ** ** Setting window details and loading form** ** Completed healthcheckWindow Class load ** ** Setting tool window #2** ** Setting Video window** ** Set basic color on rectangle ** ** Setting window details and loading form** ** Declare the UI** ** Draw everything and start the main function** ** start SetupUi** Could not parse stylesheet of widget 0x541e50 ** Run retranslateUi ** ** Show tab1 (0) ** ** Show everything** ** Waiting for quit signal - healthcheck loaded ** ** Running Update ALL** ** Running tab1 update ** ** Start Function - rootfs % used ** ** Start Function - rootfs free MB ** ** Start Function - MyDocs % Used ** ** Start Function - myDocs MB Free ** ** Start Function - App Used ** ** Start Function - App Free ** ** Start Function - Memory Card Used ** ** Start Function - Memory Card Free ** ** Start Function - CPU Frequency ** ** Start Function - Backlight Info ** ** Start Function - Backlight Info MAX ** ** Start Function - Kernel Core Info ** ** Start Function - MMC Cover/latch ** ** Start Function - CPU Frequency File ** ** Adding CPUQ Frequencies ** ** Start Function - Processor Information ** ** Start Function - N900 Board Information ** ** Start Function - Board Version ** ** Start Function - System Locale ** ** Start Function - boot count** ** Start Function - FM Transmitter power level ** ** Start Function - Boot Reason** ** Start Function - Cam Shutter State ** ** Start Function - Keyboard Slider State ** ** Start Function - proximity sensor state** ** Start Function - Headphone State ** ** Start Function - Battery Current ** ** Start Function - battery last charge** ** Start Function - Battery Charge ** ** Start Function - system uptime** ** Start Function - load from uptime ** ** Start Function - firmware version ** Traceback (most recent call last): File "/opt/healthcheck/healthcheck.py", line 1076, in <module> ui.funcUpdateAll() File "/opt/healthcheck/healthcheck.py", line 890, in funcUpdateAll self.funcSystemTab() File "/opt/healthcheck/healthcheck.py", line 848, in funcSystemTab g = gn_functions.funcMaemoVersion() File "/opt/healthcheck/gn_functions.py", line 196, in funcMaemoVersion g = s[2].strip() IndexError: list index out of range ~ $ |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Ahhh tthats my crappy coding! - it's because you have a custom package - it's trying to read the maemo version file, sometimes i think a custom asson/file screws it :|
Got a resolution for that but wont be until i do the new app, i think somewhere in this thread it explains that though :) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Yup twas mentioned, somewhere around this post! Venmo sorted it!
http://talk.maemo.org/showpost.php?p...&postcount=643 |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
New App sounds exciting!
Will it just upgrade off of Healthceck or should I uninstall Healthcheck? |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
it will upgrade :) :) -
the screens are getting there, i'm not doing threading or screen swiping yet to spee dup the process, but i'm learning those too! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
thanks for your help but which ones are the debian or sdk repos?
sry but i have no clue;) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Ok well, ignore the mistakes (ie blak borders, gaps not reading etc, but you get an idea of where healthcheck is going :)
The pages are stacked widgets and load up very quickly - so no more sloooooooowness! http://static.pixelpipe.com/03b7324e...69f928d8_m.jpg http://static.pixelpipe.com/79f0acf9...b43b02ee_m.jpg |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Groovy!
I'm bringin' Groovy back.. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Not 100% sold on this look, but I wasn't 100% sold on the last one either. Will the colors change with the theme used? (I'm liking the little icons corresponding to each stat though.)
Either way, great to hear about the speed improvements. Those are always nice. Does it have portrait mode support for everything? |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
yeah the background and button-style icons will most likely change :) - it's more work in progress, but now i have the stacked widgets working it is alot easier to swap and change.
The two big things i want but are slightly out of my level of knowledge at the moment are: Swiping the screens/widgets across instead of buttons (Got the code, just struggling to implement) and then eventually using Qthreads so the values constantly update I also did try using autorotate - it rotates fine, but have 2 colums of 2 - make it nay on impossible to implement so the wrap over / under each other without manually doing it all! edit - i removed portrait support due to the above problem. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Looks really sexy greg :D keep up the good work.
//edit: And could you send me a link to your battery, signal and clock icons ? :D I reflashed my N900 and did not save mine :p |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Can't you look at the way all the other apps implement this in menus, like FileBox and the like - where landscape mode generates two columns of buttons, portrait mode results in just one? Or is that too complicated/convoluted? Or does that just not apply to this version of healthcheck because of the way everything is a separate widget?
|
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
i could use list widgets with icons, but everytime i try it just doesnt look correct. it feels like a battle between functionalty and layout. where i'm at now is ok as i can easily change it. the function calls are getting into place, so once the page is finished i'll test a few different ways of displaying them and pop them up here for you to see :) |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
hehe, thank you very much :) i really do appreciate your feedback :) :) do you mean the status bar? i'just using the black plastic theme. but will be home from the cinema shortly! |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Ah ok. Didn't know the black plastic theme also changes this kind of icons.
I was using the darksky theme for months now. |
Re: [Annouce] HealthCheck - Hardware/System checker for the N900
Quote:
|
| All times are GMT. The time now is 19:07. |
vBulletin® Version 3.8.8