Hi you can read the framebuffer resolution from the 
/sys/class/graphics/fb0/modes. 
You should be able to get the display resolution as well trough sysfs.



On Thursday, July 19, 2012 3:36:45 AM UTC+2, Denny Harijanto wrote:
>
> Hi all, 
>
> I am trying to make a script that corrects the display density 
> (ro.sf.lcd_density) according to the kind of display that is attached 
> my android development board. 
> So if the attached LCD native res is 1920x1080 I want the display 
> density to be of certain value, and if the LCD res is 1300x1000 I want 
> that value to be different. 
>
> My question is: 
> Can a programmatic detection of LCD native resolution be done at all? 
> If so, how should I do it? I've been researching the framebuffer. (/ 
> dev/graphics/fb0) Am I in the right track? 
>
>
> Thanks a lot! 
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to