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)

mikec 2010-06-12 09:35

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

Originally Posted by noobmonkey (Post 711766)
mike, got a python version working with threading, will copy the code when i get near a pc. bit laggy, as i am calling so many functions! hehe

Cheers that would be really useful, as I have a reasonably clear weekend for a long time.

Mike C

Venemo 2010-06-12 10:09

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
I'm happy I could help :)

bonsai009 2010-06-12 10:24

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

Originally Posted by Venemo (Post 711749)
If you break some dependencies, the first thing apt-get is going to do is uninstalling the "mp-fremantle-*" package.

Eg. install some apps from the debian repos or the SDK repo, and there you go with it.

Oh sorry, I have installed the origal maemo pr1.2, but the kernel was overclocked and only the mp-fremantle-dependencies are broken...

The following packages have unmet dependencies:
mp-fremantle-generic-pr: Depends: hildon-initscripts (= 1.26-1+0m5) but 1.26-1+dp1 is to be installed

How can I resolv this problem ?

apt-get update, apt-get dist-upgrade and apt-get upgrade do nothing!

Venemo 2010-06-12 12:08

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

Originally Posted by bonsai009 (Post 711798)
Oh sorry, I have installed the origal maemo pr1.2, but the kernel was overclocked and only the mp-fremantle-dependencies are broken...

The following packages have unmet dependencies:
mp-fremantle-generic-pr: Depends: hildon-initscripts (= 1.26-1+0m5) but 1.26-1+dp1 is to be installed

How can I resolv this problem ?

apt-get update, apt-get dist-upgrade and apt-get upgrade do nothing!

Obviously, remove the packages which cause the dependency error and then reinstall mp-fremantle-*

However, HealthCheck shouldn't assume that this package is always there and definitely shouldn't throw an error on it. Instead, it should just say "unknown" in the fw version number.

bonsai009 2010-06-12 12:49

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Thanks for this hint?!

apt-get remove hildon-initscripts
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
sbrshd avahi-daemon x11vnc libavahi-common-data rdesktop-cli usb-network-modules libfuse2 libjson-glib-1.0-0 sshfs
libdaemon0 host fuse-utils libavahi-common3 libavahi-core5 udhcpd unfs3
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
browser-switchboard camelisync camera-ui cell-modem-ui cherry conboy connection-switcher connui-conndlgs
connui-conndlgs-cellular connui-conndlgs-internet connui-conndlgs-wlan connui-iapsettings connui-iapsettings-gprs
connui-iapsettings-wlan hildon-application-manager hildon-control-panel hildon-control-panel-personalisation
hildon-desktop-applet-settings-mr0 hildon-home hildon-initscripts hildon-status-menu hildon-welcome
hildon-welcome-default-logo libicd-network-gprs libmaemosec-certman-applet0 libssoautologin location-ui
maemo-applet-fmtx maemo-applet-profiles maemo-applet-tvout maemo-launcher maemo-pc-connectivity
maemo-statusmenu-fmtx maemosec-certman-applet mediaplayer mediaplayerhomeapplet modest modest-home-applet
modest-nokiamessaging-plugin nokiamessaging osso-abook-home-applet osso-accounts-plugin-skype osso-addressbook
osso-applet-device osso-applet-devicelock osso-applet-display osso-applet-languageregional osso-applet-memory
osso-applet-notificationlight osso-applet-screencalibration osso-applet-textinput osso-backup osso-browser
osso-calculator osso-calculator-ui osso-filemanager osso-filemanager-ui osso-notes osso-pdf-viewer
osso-rss-feed-reader osso-sketch osso-startup-wizard osso-systemui osso-systemui-actingdead osso-systemui-alarm
osso-systemui-devlock osso-systemui-emergency osso-systemui-modechange osso-systemui-powerkeymenu
osso-systemui-splashscreen osso-systemui-tklock pc-connectivity-manager personal-gprs-mon rtcom-accounts-ui
rtcom-accounts-voip-support rtcom-call-ui rtcom-messaging-ui scv-reader shopper tablet-browser-default-plugin
tablet-browser-mediaplayer-plugin tablet-browser-ui tutorial-home-applet
0 upgraded, 0 newly installed, 83 to remove and 0 not upgraded.
After this operation, 25,2MB disk space will be freed.
Do you want to continue [Y/n]? n
Abort.
This solve the problem ?

Venemo 2010-06-13 00:19

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

Originally Posted by bonsai009 (Post 711908)
Thanks for this hint?!

[...]

This solve the problem ?

Huh, no!
That would create even more problems...!

Code:

apt-get install mp-fremantle-*
And then see what dependencies are broken.

noobmonkey 2010-06-13 08:48

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

Originally Posted by Venemo (Post 712649)
Huh, no!
That would create even more problems...!

Code:

apt-get instal mp-fremantle-*
And then see what dependencies are broken.


possible typo?

Code:

apt-get install mp-fremantle-*

noobmonkey 2010-06-13 11:46

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
1 Attachment(s)
was just playing with the new menu's, quite a lot of tweaking, but here was the first run on the device.

noobmonkey 2010-06-13 16:33

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
1 Attachment(s)
ok, that was too messy!
Version 2

mikec 2010-06-13 16:41

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

Originally Posted by noobmonkey (Post 713356)
ok, that was too messy!
Version 2

Nice Icons, did you make?

noobmonkey 2010-06-13 16:47

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

Originally Posted by mikec (Post 713363)
Nice Icons, did you make?

Adapted from a free online set to fit :) - my graphics skills are very limited :)

Right, got to start designing the rest of the windows, should make it easier to multithread and have lots of updates now - less per screen too - so less intensive on the phone.

Venemo 2010-06-13 20:35

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

Originally Posted by noobmonkey (Post 712892)
possible typo?

Yeah, a typo it was. Thanks!

Quote:

Originally Posted by noobmonkey (Post 713367)
Adapted from a free online set to fit :) - my graphics skills are very limited :)

Right, got to start designing the rest of the windows

Good idea.
The only thing that doesn't look well on "version 2" is the green text saying "HealthCheck". Either adapt it to the rest of the app. (change the font to plain white) - or just get rid of it.
The app already has a header, anyways.

(I worked as a UI designer at my previous job, by the way. :p )

Quote:

Originally Posted by noobmonkey (Post 713367)
should make it easier to multithread and have lots of updates now - less per screen too - so less intensive on the phone.

Huh, by the way, multithreading just came to my app today, too... :D
It seems that I couldn't achieve some most needed snappiness without it - and actually more of it is coming! :p

doksng 2010-06-14 07:40

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
I agree with Venomo, The green header does not go with the rest of the icons and background.

I would also prefer a lighter background (probably a gradient) than just black
Quote:

Originally Posted by Venemo (Post 713592)

Good idea.
The only thing that doesn't look well on "version 2" is the green text saying "HealthCheck". Either adapt it to the rest of the app. (change the font to plain white) - or just get rid of it.
The app already has a header, anyways.

(I worked as a UI designer at my previous job, by the way. :p )



Huh, by the way, multithreading just came to my app today, too... :D
It seems that I couldn't achieve some most needed snappiness without it - and actually more of it is coming! :p


bonsai009 2010-06-14 09:20

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
@noobmonkey, @Venemo

Okay, thanks for your answer. So, I have try the command

Nokia-N900:~# apt-get install mp-fremantle-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting mp-fremantle-002-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-203-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-003-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-generic-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-004-pr for regex 'mp-fremantle-*'
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: hildon-initscripts (= 1.26-1+0m5) but 1.26-1+dp1 is to be installed
E: Broken packages
Nokia-N900:~#

Venemo 2010-06-14 09:32

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

Originally Posted by bonsai009 (Post 714182)
Nokia-N900:~# apt-get install mp-fremantle-*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting mp-fremantle-002-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-203-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-003-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-generic-pr for regex 'mp-fremantle-*'
Note, selecting mp-fremantle-004-pr for regex 'mp-fremantle-*'
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.

You can see that there is more than one kind of this package. What you should install depends on what firmware region you have installed.
The suffix equals the firmware file name's suffix in this page. (Or at least, that is my guess.)
Eg. if you have the global firmware, you should use "mp-fremantle-generic-pr", etc.

Quote:

Originally Posted by bonsai009 (Post 714182)
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mp-fremantle-generic-pr: Depends: hildon-initscripts (= 1.26-1+0m5) but 1.26-1+dp1 is to be installed
E: Broken packages
Nokia-N900:~#

In this case (for global firmware):
Code:

apt-get install hildon-initscripts=1.26-1+0m5
apt-get install mp-fremantle-generic-pr


bonsai009 2010-06-14 13:08

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Many thanks for your help. I have flash my n900, healthcheck and all other programs running now.

noobmonkey 2010-06-14 13:26

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

Originally Posted by bonsai009 (Post 714404)
Many thanks for your help. I have flash my n900, healthcheck and all other programs running now.

Superb! :) - great to hear it is working, and big thanks to Venemo for your assistance and patience.

Mentalist Traceur 2010-06-14 15:32

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
I just want to say I really appreciate this program being made. It's saved me a lot of headache when I was having a random accelerometer problem, and it helped tremendously that popping open this let me know what was going on. otherwise I would've spent quite a while frustratedly trying to figure out why portrait mode doesn't work.

noobmonkey 2010-06-14 15:37

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

Originally Posted by Mentalist Traceur (Post 714664)
I just want to say I really appreciate this program being made. It's saved me a lot of headache when I was having a random accelerometer problem, and it helped tremendously that popping open this let me know what was going on. otherwise I would've spent quite a while frustratedly trying to figure out why portrait mode doesn't work.

Superb! and thank you so much for taking the time to let me know.
I'm working on the auto-updating version at the moment, which will be a few weeks in development. That should remove the need to "click/touch" to update the values.

The whole idea came about when a few of us had similar issues, and every time needing to use x-terminal to do anything! (Nothing wrong with x-terminal, but a lot easier to have it all in one place)

The question is, have you managed to fix your accelerometer issues? hehe :)

gabby131 2010-06-16 23:08

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

i had a bug with my n900 just this past 3 hours. my status bar wont show up until i slightly slide the dektop or switch panes when i unlock the phone using the side lock. i was used to it but eventually i got pissed. i tried everything that in my understanding, will fix it, until i cam up with re-flashing.

i feel so lazy that moment and i dont want any hassle. so to make it easier, i re-install the firmware via NSU instead of re-flashing via flasher. and the other reason for this is to find out what fw version will be installed on my device based on my location. my suspision is the Global but im also in north america so us verion will likely be installed......after 5 mins, the fw was re-installed. i re-install all my apps and set aside health check for last (im gonna use this app for checking fw version).

so everything went well, the bug on the stats bar was gone and when i opened healthcheck, i saw this on the FW section:

10.2010.19-1.002 USA Version

awesome! superior! :D

pantera1989 2010-06-21 07:26

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hi. Thanks a lot for this great application. Lately I've been having errors on startup and I don't know why. I am using the latest version. This also happens with the version in extras (don't know if they're the same). This is the output:

Code:

Nokia-N900:~# 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 0x706c30
** 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

This happens as root and not as root. Same output.

Rob1n 2010-06-21 08:28

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

Originally Posted by pantera1989 (Post 723309)
Hi. Thanks a lot for this great application. Lately I've been having errors on startup and I don't know why. I am using the latest version. This also happens with the version in extras (don't know if they're the same). This is the output:

Code:

Nokia-N900:~# 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 0x706c30
** 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

This happens as root and not as root. Same output.

What firmware version is shown in Settings/About product?

pantera1989 2010-06-21 10:02

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
I am on 10.2010.19-1.

I haven't got around to test this much. Can you name other python apps to see if it's because of python?

Rob1n 2010-06-21 10:13

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

Originally Posted by pantera1989 (Post 723412)
I am on 10.2010.19-1.

I haven't got around to test this much. Can you name other python apps to see if it's because of python?

It's not a general python problem. The error is because healthcheck is trying to parse the firmware version number, but it's apparently not getting the correct details.

Can you run the following in X Terminal - this is what healthcheck is doing internally, so the answer should point to where the issue is (I suspect you don't have the mp-fremantle-*-pr package installed):
Code:

dpkg -l "mp-fremantle-*" | grep ii

pantera1989 2010-06-21 11:36

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

Originally Posted by Rob1n (Post 723423)
It's not a general python problem. The error is because healthcheck is trying to parse the firmware version number, but it's apparently not getting the correct details.

Can you run the following in X Terminal - this is what healthcheck is doing internally, so the answer should point to where the issue is (I suspect you don't have the mp-fremantle-*-pr package installed):
Code:

dpkg -l "mp-fremantle-*" | grep ii

Thanks for helping me. Yes I realize now it's not because of python. I had a problem with python before though, so I thought maybe it's the same. But I tried vertsms and it is opening well.

Anyway I did as you asked. What was supposed to happen? When I press enter the phone just goes to the next line. And after trying that command, I tried to open the app. Same output.

Rob1n 2010-06-21 12:03

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

Originally Posted by pantera1989 (Post 723507)
Thanks for helping me. Yes I realize now it's not because of python. I had a problem with python before though, so I thought maybe it's the same. But I tried vertsms and it is opening well.

Anyway I did as you asked. What was supposed to happen? When I press enter the phone just goes to the next line. And after trying that command, I tried to open the app. Same output.

That indicates that you don't have the package installed. The mp-fremantle-*-pr package is the meta-package which pulls together all of the packages forming a specific Maemo version. Presumably you've installed a non-standard version of one of these packages, which has forced the removal of the meta-package. This means you will not get any further OS update notifications (as these are triggered by updates of the meta-package).

Try running (as root) in X Terminal:
Code:

apt-get install -s mp-fremantle-generic-pr
That should indicate what packages would need to be installed/removed in order to re-install the meta-package.

pantera1989 2010-06-21 13:45

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Ok fixed thanks. I ran apt-get autoremove after that. Then I reinstalled healthcheck and everything worked. Thanks once again :)

doksng 2010-07-14 09:07

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

Originally Posted by noobmonkey (Post 714668)
Superb! and thank you so much for taking the time to let me know.
I'm working on the auto-updating version at the moment, which will be a few weeks in development. That should remove the need to "click/touch" to update the values.

The whole idea came about when a few of us had similar issues, and every time needing to use x-terminal to do anything! (Nothing wrong with x-terminal, but a lot easier to have it all in one place)

The question is, have you managed to fix your accelerometer issues? hehe :)

any update on the newest version :D. Seems everything has been quiet here for a while.

noobmonkey 2010-07-15 16:17

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

Originally Posted by doksng (Post 751285)
any update on the newest version :D. Seems everything has been quiet here for a while.

hehe, new version works on my phone, hehehe!
had to take a few months off from a personal life due to moving home and having no pc!

almost got it all up and running again, so should be back developing in a few weeks :)

m750 2010-08-19 21:45

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Hi,
sorry, for my little english.

A possible solution for the problem:

Quote:

File "/opt/healthcheck/gn_functions.py", line 196, in funcMaemoVersion
g = s[2].strip()
IndexError: list index out of range
is to replace in file: /opt/healthcheck/gn_functions.py

these lines (red writed)

Quote:

]# This one reads fremantle version number (Firmware)
g = os.popen('dpkg -l "mp-fremantle-*" | grep ii').read()
g = g.strip()
s = g.split()
g = s[2].strip()


if g.strip() == "3.2010.02-8":
with these (green writed)

Quote:


# This one reads fremantle version number (Firmware)
g = os.popen('set | grep RELEASE_VERSION').read()
g = g.strip("OSSO_PRODUCT_RELEASE_VERSION=")
s = g.split("'")
g = s[1].strip()


if g.strip() == "3.2010.02-8":
This solution also works for n900 with Titan Kernel

noobmonkey 2010-08-20 14:46

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
wohoooo! thankyou very much! as soon as i get to a pc, i'll update it!

thank you again.

Rob1n 2010-08-20 15:00

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

Originally Posted by m750 (Post 792375)
with these (green writed)
Quote:

# This one reads fremantle version number (Firmware)
g = os.popen('set | grep RELEASE_VERSION').read()
g = g.strip("OSSO_PRODUCT_RELEASE_VERSION=")
s = g.split("'")
g = s[1].strip()

if g.strip() == "3.2010.02-8":

Or even simpler:
Code:

g = os.environ.get("OSSO_PRODUCT_RELEASE_VERSION")

if g.strip() == "3.2010.02-8":


m750 2010-08-20 16:25

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

Originally Posted by Rob1n (Post 793095)
Or even simpler:
Code:

g = os.environ.get("OSSO_PRODUCT_RELEASE_VERSION")

if g.strip() == "3.2010.02-8":


Very nice, but i retrive this error:
Quote:

g = os.environ.get("OSSO_PRODUCT_RELEASE_VERSION")
^
IdentationError: unexpected indent
Do you know a solution?

Rob1n 2010-08-20 17:41

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

Originally Posted by m750 (Post 793196)
Very nice, but i retrive this error:

Quote:

g = os.environ.get("OSSO_PRODUCT_RELEASE_VERSION")
^
IdentationError: unexpected indent
Do you know a solution?

From the error, you've not indented the new code properly. Python is sensitive to indentation, so you'll need to make sure it's aligned with the code above it.

m750 2010-08-20 17:54

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

Originally Posted by Rob1n (Post 793261)
From the error, you've not indented the new code properly. Python is sensitive to indentation, so you'll need to make sure it's aligned with the code above it.

Sorry! I'm a newbie with python! :( I had forgotten. thanks for the explanation!

Mentalist Traceur 2010-09-28 23:30

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
noobmonkey, a few months ago you asked me if I had managed to fix my accelerometer issues - I did - It's just that there wasn't much fixing involved. Basically, it's something that happens at random after dropping the N900 - most drops it takes without a hitch, sometimes the accelerometer gets screwy. However, so far, I have not had the problem ever persist through a reboot.

(This came up on Pg. 66 of this thread, btw, in case you're curious.)

efekt 2010-10-03 22:19

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
noobmonkey, what are the default values of the Accelerometer in HealthCheck?
I think my accelerometer is screwed, it won't work in any application, and in HealthCheck it ALWAYS showing the same values: 2286, 2286, -2304 respectively...
(Btw, restarting the phone did not solve this)

Mentalist Traceur 2010-10-03 22:38

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Ouch. Honestly, I think you may just have had your accelerometer break at the hardware level.

In my experience, HealthCheck accelerometer values are within the -1000 to 1000 range. Anything smaller/bigger than -/+ 1200 and I typically assume it's malfunctioning.

efekt 2010-10-03 22:47

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

Originally Posted by Mentalist Traceur (Post 832609)
Ouch. Honestly, I think you may just have had your accelerometer break at the hardware level.

In my experience, HealthCheck accelerometer values are within the -1000 to 1000 range. Anything smaller/bigger than -/+ 1200 and I typically assume it's malfunctioning.

You know what - ITS FIXED NOW! :D
I tried something: I took the battery off for 10 minutes, and then re-inserted it and turn the phone on, and viola! The accelerometer works just fine now :)
I've noticed that doing that (removing the battery for more than 5 minutes) usually fixes melfunctions which one would otherwise think can be fixed only with flashing the device or sending it to be repaired...
I love my robust N900, it can take so much sh*t and still recover by merely removing its battery for a few minutes :)

Mentalist Traceur 2010-10-03 22:52

Re: [Annouce] HealthCheck - Hardware/System checker for the N900
 
Glad to hear that worked out. And this is another thing to file away in my memory in case I have an issue that doesn't go away with merely rebooting - remove the battery and let it sit for a bit. Honestly, I almost never think of that one myself.


All times are GMT. The time now is 01:08.

vBulletin® Version 3.8.8