Notices


Reply
Thread Tools
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#681
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!
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 
efekt's Avatar
Posts: 422 | Thanked: 320 times | Joined on Oct 2009 @ Israel
#682
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
__________________
As long as people will accept crap, it will be financially profitable to dispense it...
 

The Following User Says Thank You to efekt For This Useful Post:
Posts: 38 | Thanked: 8 times | Joined on Apr 2010
#683
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
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#684
Originally Posted by jackspost View Post
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
Yes, you'll need to downgrade to the stable perl (apt-get install perl-base=5.8.3-3osso11+0m5) and, from the looks of it, libsdl-mixer1.2 (apt-get install libsdl-mixer1.2=1:1.2.6-5+0m5) releases.

And then stop doing "apt-get dist-upgrade" (which is probably how you got into this situation in the first place).
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 38 | Thanked: 8 times | Joined on Apr 2010
#685
thank you very much rob1n. now it works again!
 

The Following User Says Thank You to jackspost For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#686
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.)
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#687
Accelerometer co-ords followed by oreientation
Code:
 f = open("/sys/class/i2c-adapter/i2c-3/3-001d/coord", 'r')
        coords = [int(w) for w in f.readline().split()]
        f.close()

Code:
def funcDevOri():
        print "** Start Function - Device Orientation **"
        bus = dbus.SystemBus()             
        accel = bus.get_object('com.nokia.mce','/com/nokia/mce/request','com.nokia.mce.request') 
        orientation , stand , face , x , y , z = accel.get_device_orientation()
        return orientation
edit - sorry it's in python :| :| :|
I'm sure some clever doul can teach you how to do it in terminal or c++
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following User Says Thank You to noobmonkey For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#688
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.
 
noobmonkey's Avatar
Posts: 3,203 | Thanked: 1,391 times | Joined on Nov 2009 @ Worthing, England
#689
ahhaaaa, found a decent Qt example

http://qt.gitorious.org/+qt-develope...ation/main.cpp
__________________
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -
 

The Following User Says Thank You to noobmonkey For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#690
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.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Reply

Tags
check, faulty, front camera, gps, hardware, healthcheck, test


 
Forum Jump


All times are GMT. The time now is 02:52.