RE: Framebuffer(/dev/fb0) is not opening in Redhat Linux and Lepton Floppy linux
"Jenkins, Clive" <[email protected]> Wed, 1 Feb 2006 12:02:08 -0000
| Newsgroups | gmane.linux.fbdev.user |
|---|---|
| Message-ID | <[email protected]> |
> /* Open the file for reading and writing */
> fbfd = open("/dev/fb0", O_RDWR);
> printf("\nfbfd = %d",fbfd);
> Return Values of
>
> fbfd = -1
I suggest you change your code to give you more information
about the type of error occurring.
When a system call such as open() returns a negative value,
the global value "errno" also gets set. You can use "perror()"
to print it.
Use the "man" command to find out all about open, errno, perror
etc.
Read all the FB documentation in the kernel Documentation directory.
Use search engines.
One possibility is that there is no "/dev/fb0" device node in
the filesystem.
Clive
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642