Page 1 of 1

Where is /dev/graphics/fb0 ?

Posted: Thu Nov 10, 2011 6:59 am
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

Re: Where is /dev/graphics/fb0 ?

Posted: Thu Nov 10, 2011 11:42 pm
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 :)