Hi,

Def. Quota William Zheng <loveheaven_zheng...@hotmail.com>:

I don't think the other changes are wrong. I debugged your source code. I
found that the function sensors_poll always entered into FDISSET and always
returned EWOULDBLOCK.  I compare your source code with koolu beta7's
This is what I rembember:

- the sensor_poll is called only when the sensor is activate
- the control channel is used to deactivate/activate sensor

The EWOULDBLOCK is correct when you are on select and waiting for an event
but you want to deactivate sensor. So the select pass and the system return
EWOULDBLOCK. The sensor is deactivated and I think that the system does't call
again the sensor_poll.

Can you check this?

Michael


sensors_moko.c because Koo beta7's sensors work fine. Koolu beta7's
sensors_moko.c dose not use any control fd and only use data fd. So I
commented FDISSET, and the sensors worked on my phone.

Michael,
        Would you please answer the question below ? Thank you very much.
    Last month, I use these commands below to modify the init.rc
successfully.
   ./adb shell mount -o remount,rw rootfs /
   ./adb push init.rc /
   ./adb shell sync
   After rebooting FR, the modification in init.rc still exists.

    But today, I cannot modify the init.rc any longer using those commands
above. After rebooting, the modification in init.rc does not exists.
   Is there any approach to modify the init.rc?


-----Original Message-----
From: trimar...@retis.sssup.it [mailto:trimar...@retis.sssup.it]
Sent: Tuesday, August 25, 2009 2:16 AM
To: Android on Freerunner Development; William Zheng
Cc: 'Android on Freerunner Development'
Subject: Re: [android-freerunner] [PATCH] Got sensors worked on cupcake 1.5
alpha-1

Def. Quota William Zheng <loveheaven_zheng...@hotmail.com>:

Really? I don't think you changed the init.rc.
Have you modified the init.rc and rebooted FR again? If you did not change
the init.rc, the sensors cannot change the threshold of the sensors. You
can
change the threshold manually: cat 18 >
/sys/bus/spi/drivers/lis302dl/spi3.1/threshold. Then open your application
and try again.
And what application do you use? Please do not use any 3D application. If
you use 3D, The speed is slow because of the UI not sensors. You can test
the sensors using Amazed.
The patch runs well on my FR.

Yes it is possible to slow the threshold and it is correct to change the
chown of the file. I have that modified in my version, but the others change
are wrong. 3d on android?

Michael



-----Original Message-----
From: android-freerunner-boun...@android.koolu.org
[mailto:android-freerunner-boun...@android.koolu.org] On Behalf Of Serdar
Dere
Sent: Monday, August 24, 2009 5:36 PM
To: Android on Freerunner Development
Subject: Re: [android-freerunner] [PATCH] Got sensors worked on cupcake
1.5
alpha-1

I've tested them on cupcake trunk.
no change, the sensors are as slow as ever.

William Zheng wrote:

Hi All,

   Attachment are the patches.





------------------------------------------------------------------------

_______________________________________________
android-freerunner mailing list
android-freerunner@android.koolu.org
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org


_______________________________________________
android-freerunner mailing list
android-freerunner@android.koolu.org
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

_______________________________________________
android-freerunner mailing list
android-freerunner@android.koolu.org
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.






----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

_______________________________________________
android-freerunner mailing list
android-freerunner@android.koolu.org
http://android.koolu.org/listinfo.cgi/android-freerunner-koolu.org

Reply via email to