Re: [android-kernel] alert notification from kernel

2011-11-04 Thread Durgadoss Ramanathan
Hi Andria, You can Poll from the User Space using Handlers as Preetam mentioned. But Polling is bad. Instead you can use UEvents. The ideal (Android) way would be: 1. Let your kernel module send an UEvent, whenever the alert raises. This can be done by KOBJ_UEVENT(,,.,,) 2. Create a Simple

Re: [android-kernel] Accelerometer Access at kernel level

2012-04-23 Thread Durgadoss Ramanathan
Hi, I have written a couple of Accelerometer drivers, where the properties are exposed via a Sysfs interface. So, you would want to figure out the sysfs paths and proceed. -Durga On Mon, Apr 23, 2012 at 2:24 PM, DK kanishka...@gmail.com wrote: How to access the accelerometer at the kernel

Re: [android-kernel] Re: Device driver of Linux kernel Vs Android kernel

2012-04-26 Thread Durgadoss Ramanathan
Yeah I agree with Mark. Also, it depends on what kind of drivers you want to write . I write some sensor drivers..For that, as long as the driver follows standard Linux interfaces (on which android relies on) it should work on an android device (of course, with HW support for that sensor) So, I

Re: [android-kernel] Kernel link to framework?

2012-06-07 Thread Durgadoss Ramanathan
You can use kobj_uevent() But if it is an input subsystem, i believe there is already a standard notifier defined there. Something like input_event(...) On Thu, May 31, 2012 at 3:37 AM, Ranjit Somasekharan ranjit...@gmail.comwrote: Hello All, I would like to send some parameters from

Re: [android-kernel] Exploring Android HAL

2012-08-13 Thread Durgadoss Ramanathan
you can start with 'vibrator' HAL. start from VibratorService.java and go down to the kernel layer.. This helped me... On Tue, Aug 14, 2012 at 8:57 AM, Chirag Shah chiragatc...@gmail.com wrote: Hi All, I am new to an Android. I just have compiled android source code and load it. I want to

Re: [android-kernel] Getting battery current read

2012-10-29 Thread Durgadoss Ramanathan
Hi, Yes, looks like it is almost impossible to measure without external h/w. Meanwhile, you can have a look at the sysfs interfaces in your device: cd /sys/class/power_supply/*_battery/ grep . * [it is grep space dot space star] This will give you a list of attributes the kernel driver (for

Re: [android-kernel] Re: How to hook up Linux Device Driver in Android Framework?

2012-10-30 Thread Durgadoss Ramanathan
Hi Parth, Have a look at the system services, and the corresponding JNI's. To be more specific, (for example,) for battery related information and linking, look at BatteryService.java and com_android_server_BatteryService.cpp Thanks, Durga On Thu, Oct 25, 2012 at 3:31 AM, Prerna Gupta

[android-kernel] Behavior of 'UEventd' in Android

2013-05-09 Thread Durgadoss Ramanathan
Hi, I have a driver that sends a UEvent [1] on its resume call back. I want the 'ueventd' to catch this event, and act upon this. My doubt is whether ueventd be already running when my driver's resume method is being invoked . In other words, when exactly does the ueventd start running once the

Re: [android-kernel] Re: Boot my own service as the first one.

2013-06-13 Thread Durgadoss Ramanathan
You can try adding your service in init.rc inside system/core/rootdir/ in the early-init section. May be you can try adding it before 'start ueventd'. On Thu, Jun 13, 2013 at 7:33 PM, biAji biaji...@gmail.com wrote: maybe modify init.c and add your service in front of all others On Thu,

Re: [android-kernel] Android support to communicate between userspace and kernelspace

2013-07-15 Thread Durgadoss Ramanathan
The Linux kernel supports UEvents. Look for function kobject_uevent(...) inside kernel sources. You will have plenty of examples. On Sun, Jul 14, 2013 at 4:16 PM, Kala Ranjani kalaranjani...@gmail.comwrote: Hello All, I am using am335x_sk, i can able to glow the user_leds by

Re: [android-kernel] battery usage information of each application and processes

2014-02-26 Thread Durgadoss Ramanathan
It uses the power_profile.xml in that particular platform. Do godir power_profile.xml and start from there. It's easy to trace it's working. On Wed, Feb 26, 2014 at 1:01 PM, Sagar Gandhi sagargandhi55...@gmail.comwrote: how can i get the information about the battery consumption of each

Re: [android-kernel] It seems CPU hotplug conflicts thermal engine

2015-01-08 Thread Durgadoss Ramanathan
I am not sure if this ThermalEngine is a native daemon or a Java service, part of system server. If it is a native standalone daemon, you can look at init.rc files which will start this daemon on some condition. You can try commenting it out (of course, building, flashing the new image etc..) If

Re: [android-kernel] How to interface with device drivers in an apk

2015-09-11 Thread Durgadoss Ramanathan
I believe you are on the right track. Did your HelloJNI work ? Also, JNI may be a preferred way; but not a must. You should be able to use JAVA APIs (BufferedReader & friends) from your app to interact with these files. Watch out for permission issues etc.. Thanks, Durga On Fri, Sep 11, 2015 at

Re: [android-kernel] DRM display for Android

2016-01-04 Thread Durgadoss Ramanathan
intel-...@lists.freedesktop.org list would be a better place to ask this. On Mon, Jan 4, 2016 at 11:31 AM, vijay kumar wrote: > Hii , > > > down votefavorite > > > I am

Re: [android-kernel] android device not detecting with adb devices after connected and disconnected to ethernet dock

2016-04-06 Thread Durgadoss Ramanathan
What does your /default.prop say ? Usually, the usb.config property will be configured to something like below: persist.sys.usb.config=adb,mtp Thanks, Durga On Wed, Apr 6, 2016 at 4:42 AM, wrote: > we are doing stability test for android device. It means we are just >

Re: [android-kernel] How to trace kernel calls?

2016-12-01 Thread Durgadoss Ramanathan
Android uses wakelocks to control screen animation . So you might also want to take a look at /sys/power/wake_lock .. You may need root permission to change the values in this interface ... On Dec 1, 2016 8:56 AM, "ranchu" wrote: > Hello, > > I'm struglling for some days