[android-kernel] Re: obtaining screen resolution in a device driver

2012-04-12 Thread terry
you can use fb sysfs /kernel/drivers/video/fbsysfs.c static ssize_t show_virtual(struct device *device, struct device_attribute *attr, char *buf) { struct fb_info *fb_info = dev_get_drvdata(device); return snprintf(buf, PAGE_SIZE, "%d,%d\n", fb_info->var.xres_virtual, fb_info->var.yres_virtual

[android-kernel] Re: RFC: a new binder driver implementation

2012-04-12 Thread Brooke
Hi, This may seem naive, but what exactly does /dev/binder do? I have some Android code that I'm compiling off target that used to complain about /dev/binder and now it fails since there is no /dev/binder on teh Linux PC. Question I have is whats it doing, why is it needed, and why just Android

[android-kernel] Re: android goes back to suspend

2012-04-12 Thread Ventanas
I have a good news: I think that now I am on the right track, but I need a little suggestions about how to proceed: IF I touch the screen (my device has a touch-screen driver working fine with ANDROID) when ANDROID system is resuming due to the pressure of the "on/off" physical-hardware button (th