[android-kernel] Re: suspend/resume in Sensor drivers.

2010-12-22 Thread ip332
uld call onStop().What > I'm not sure is , when the device goes in early suspend , does the onStop() > is called for the application automatically? If it is so, fault may be on > the sensor apps I'm using. (as they might not have implemented OnStop() ). > > -regards >

[android-kernel] Re: suspend/resume in Sensor drivers.

2010-12-21 Thread ip332
Sorry, it is not clear what what does your driver do in the first case (error). BTW: why do you need the early suspend at all? Android is not a pure Linux so you better start from the application level. The application should disable sensors event listener, Sensor Manager will call your data_close

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread ip332
mydev.ko before dalvik boot. > and also want to make wait until device initialized before dalvik > boot. > > by the way, Which is earlier init.rc or init..rc ? > > Thanks. > > On 9月3日, 午前5:20, ip332 wrote: > > > > > Problem solved. Here is the final change in

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread ip332
oot. > and also want to make wait until device initialized before dalvik > boot. > > by the way, Which is earlier init.rc or init..rc ? > > Thanks. > > On 9月3日, 午前5:20, ip332 wrote: > > > > > Problem solved. Here is the final change in theinit.rc: > > > se

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-10-25 Thread ip332
oot. > and also want to make wait until device initialized before dalvik > boot. > > by the way, Which is earlier init.rc or init..rc ? > > Thanks. > > On 9月3日, 午前5:20, ip332 wrote: > > > > > Problem solved. Here is the final change in theinit.rc: > > > se

[android-kernel] Re: developing a driver on beagle board

2010-10-25 Thread ip332
You need to clarify your goal: is it about drivers development or about Android HAL? Typical HAL implementation (senors.c for example) is not a Linux kernel driver. It is part of the user space programming in according with Android sensors interface requirements and limitations. There are few reso

[android-kernel] Re: What is meant by "init: untracked pid 2194 exited"? init.rc does not work?

2010-09-21 Thread ip332
First of all: check if the problem is in your app or init.rc is not updated. I would start from something trivial - hello world should be enough. If it a simple app works then check all system calls if they are really supported in bionic, run your app from the command line, use gdb, etc. If it stil

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-09-02 Thread ip332
Problem solved. Here is the final change in the init.rc: serivice change_permissions /system/bin/chmod 777 /dev/mydev oneshot Thanks. On Sep 2, 11:29 am, ip332 wrote: > Unfortunately there is a certain limit how early you can call insmod > and how late you can do chown. > I ad

[android-kernel] Re: /dev/mydev permissions after insmod from init.rc

2010-09-02 Thread ip332
restart zygote onrestart restart media But it still doesn't work There should be some other way of doing it :( On Sep 2, 11:03 am, "Sven Killig" wrote: > > -Original Message- > > From: android-kernel@googlegroups.com [mailto:android- > > ker...@goo

[android-kernel] /dev/mydev permissions after insmod from init.rc

2010-09-02 Thread ip332
s are included into kernel therefore it looks like loadable module has some special rules there. Can anybody tell me how to change permissions on loadable device driver from init.rc ? Thanks ip332 -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel