Active Topics

 


Reply
Thread Tools
Posts: 4 | Thanked: 0 times | Joined on Dec 2009
#1
Hi all,

I got my N900 today. Having a great time with it at this stage, but there is one problem that I've noticed.

I downloaded the 'Attitude' application, but when I go into it the world just rotates randomly not related at all to the position of the phone. I've also tried playing Bounce Evolution, but the ball just sits there no matter how much i move the phone. I can make it jump with the space bar but that's it. Even the camera - I took a portrait photo and when I viewed it back it hadn't auto-rotated.

Is there some way I can check on the data that is being received by the accelerometer? It seems like I might have a problem.

Thanks,

Ben
 
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#2
There's a package called accdisplay, (see http://talk.maemo.org/showthread.php...247#post426247 ) which shows the accelerometer data pretty directly (it might still be in extras-devel - see this big warning: http://talk.maemo.org/showthread.php?p=343619 )

But from what you say, it does seem like you have a problem as you say. Both the apps you've mentioned are known to work.
 
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#3
you can do

Code:
cat /sys/devices/platform/gpio-switch/proximity/state
which gives you raw data.
You may want to hit your phone a bit, accelerometer might have got stuck (I don't take responsibility for you hitting it with a hammer )
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post:
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#4
Useful to know, hopbeat, but isn't that for the proximity sensor, whereas the question is about the accelerometer?

Or did I miss something? (not unlikely!)

Edit: you can read the accelerometer data directly with (in x-terminal)

cat /sys/class/i2c-adapter/i2c-3/3-001d/coord
(from http://wiki.maemo.org/Accelerometers )

or to view it polled continuously with a 1 second interval:

watch -n 1 "cat /sys/class/i2c-adapter/i2c-3/3-001d/coord"

Last edited by kwotski; 2009-12-18 at 12:19.
 

The Following 2 Users Say Thank You to kwotski For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#5
@kwotski, of course, that's what you get when you are doing something for too long
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 
Posts: 4 | Thanked: 0 times | Joined on Dec 2009
#6
Originally Posted by kwotski View Post
Edit: you can read the accelerometer data directly with (in x-terminal)

:cat /sys/class/i2c-adapter/i2c-3/3-001d/coord
Thanks for the help everyone. I typed that directly into x-terminal and got the message "No such file or directory". I've installed rootsh and run sudo gainroot as well - not sure if it was needed.

I know nothing about linux or x-terminal. Is typing that in just like that all I need to do?
 
Posts: 127 | Thanked: 41 times | Joined on Dec 2007 @ Aspen Colorado
#7
Originally Posted by kwotski View Post
or to view it polled continuously with a 1 second interval:
So I'm sitting on my couch with a terminal open on my laptop watching the numbers change while I slowly rotate my N900, laughing to myself.

If all the youtube videos of the latest gadget can be called geek p0rn, call this one "geek pot."
 

The Following User Says Thank You to Eric G For This Useful Post:
Posts: 236 | Thanked: 223 times | Joined on Oct 2009 @ NE UK
#8
Originally Posted by benjo View Post
Thanks for the help everyone. I typed that directly into x-terminal and got the message "No such file or directory". I've installed rootsh and run sudo gainroot as well - not sure if it was needed.

I know nothing about linux or x-terminal. Is typing that in just like that all I need to do?
Yeah, if you typed it correctly it should work. It's not being there might indicate the driver didn't load properly.

What you might try is restart the N900 and then run the command

dmesg | grep lis302

from x-teminal (you might need to be root) This might show startup messages to do with that driver. Alternatively

dmesg | more

and visually inspect to see if you can see any messages related to the lis302dl driver (that's the name of the accelerometer chip I think)

Or before restart, try

lsmod | grep lis302

lsmod lists the loaded kernel modules (=drivers).

(in the terminal, you can get the | character from the symbol thing (blue-arrow-key+ctrl))
 
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#9
have a look in extras-testing
there is a package called liqacceltests and it includes the tools I wrote to get myself familiar with the accelerometer on the n900
it includes methods to show normal and smoothed values and has a graphing tool too
quite useful and informative little toys I have played with for a few months
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#10

screenshot of one of the tools
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:17.