Where is /dev/graphics/fb0 ?

Trying to further the development of the Android on the Revue? Talk about it hear and document it on the wiki: http://www.wiki.gtvhacker.com

Moderator: Revue Mod

Post Reply
ReubenS
Android 1.0
Posts: 8
Joined: Mon Aug 15, 2011 5:10 am

Where is /dev/graphics/fb0 ?

Post by ReubenS »

Hi,

I need to get access to the framebuffer on the Revue. I have root (via latest HC3.1 ROM) but looking under /dev shows no 'graphics' node underneath it.

Is it renamed or accessible some other way?

Thanks,


Reuben
M1cha
Android 1.0
Posts: 39
Joined: Sat Oct 08, 2011 8:42 am

Re: Where is /dev/graphics/fb0 ?

Post by M1cha »

You could take a look at the file /proc/devices.
If a FrameBuffer is provided by the kernel there should be line like "29 fb" under character devices.
If there is no entry "fb"(the number could be different although it shouldn't) there is no chance to read the framebuffer in this way.

But if this entry exists you can look at the files in /dev (and the many subfolders) with the command "ls -l"
This could look like this:
crw-rw---- 1 root graphics 29, 0 Nov 5 08:32 /dev/graphics/fb0
Where 29 is the major-number and 0 the minor-number.

If you can't find the device-node or you don't want to search where it's located you can manually create the node with this commands:
mkdir -p /dev/graphics
mknod /dev/graphics/fb0 c 29 0
Please note to put in the correct major/minor-numbers if they are different.

I hope this will help you :)
Post Reply