maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Accelerometer changed on N900 PR1.2 (https://talk.maemo.org/showthread.php?t=54678)

jarmniku 2010-05-31 12:58

Accelerometer changed on N900 PR1.2
 
Hi!
My program reads accelerometer from "/sys/class/i2c-adapter/i2c-3/3-001d/coord". This does not work any more after I updated to PR1.2. How should I read accelerometer now, and how to get future-compatible?

mikkov 2010-05-31 13:29

Re: Accelerometer changed on N900 PR1.2
 
How it does not work? Because it should work exactly as before.

robbie 2010-05-31 13:57

Re: Accelerometer changed on N900 PR1.2
 
It looks to me (with my limited knowledge) that you read the coords from the device directly. My guess it that you need to use an api.

Jussi Litja 2010-05-31 15:56

Re: Accelerometer changed on N900 PR1.2
 
I have also used the file to read the orientation of the device in my application. I truly hope it still works, IŽll have to check...

dart45 2010-05-31 16:33

Re: Accelerometer changed on N900 PR1.2
 
It's still working on mine...

Jussi Litja 2010-05-31 17:38

Re: Accelerometer changed on N900 PR1.2
 
Checked it, still working in my device.

jarmniku 2010-06-01 08:41

Re: Accelerometer changed on N900 PR1.2
 
Quote:

Originally Posted by Jussi Litja (Post 692140)
Checked it, still working in my device.

That is strange. In my device it happens like this:

Nokia-N900:~# cat /sys/class/i2c-adapter/i2c-3/3-001d/coord
cat: can't open '/sys/class/i2c-adapter/i2c-3/3-001d/coord': No such file or directory

What could be the problem?

Joorin 2010-06-01 08:47

Re: Accelerometer changed on N900 PR1.2
 
Is the kernel module loaded?

Robb 2010-06-01 08:55

Re: Accelerometer changed on N900 PR1.2
 
Are you sure your accelerometer is still working?

jarmniku 2010-06-02 06:32

Re: Accelerometer changed on N900 PR1.2
 
The problem was probably wrong flash image. I have relatively old hardware and accidentally flashed an image that was for the latest HW only. Changing to another pr1.2 image (suitable for all HWs) the accelerometer started to work (though not instantly but I needed to reboot another time after flashing, so I am not sure was it really that..).


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

vBulletin® Version 3.8.8