nanogui: /dev/fb0 Error


Previous by date: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Emmanuel Blot
Next by date: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Sunil Phatak
Previous in thread: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Emmanuel Blot
Next in thread: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Sunil Phatak

Subject: RE: [nanogui] /dev/fb0 Error
From: Nageswari S ####@####.####
Date: 6 Mar 2002 10:12:16 -0000
Message-Id: <4A2BA6A2F12BD511AAFA00606730DE9B0A6EC9@BLREXSR>

Dear Emmanuel,

I tried checking for the frame buffer.
This is the code I ran.

I got the message "The framebuffer device was opened successfully".
and then the error message "Error reading fixed information".

Can u tell me why the ioctl fails?

int main()
{
    int fbfd = 0;
    struct fb_var_screeninfo vinfo;
    struct fb_fix_screeninfo finfo;
    long int screensize = 0;
    char *fbp = 0;
    int x = 0, y = 0;
    long int location = 0;

    // Open the file for reading and writing
    fbfd = open("/dev/fb0", O_RDWR);
    if (!fbfd) {
        printf("Error: cannot open framebuffer device.\n");
        exit(1);
    }
    printf("The framebuffer device was opened successfully.\n");

    // Get fixed screen information
    if (ioctl(fbfd, FBIOGET_FSCREENINFO, &finfo)) {
        printf("Error reading fixed information.\n");
        exit(2);
    }

    // Get variable screen information
    if (ioctl(fbfd, FBIOGET_VSCREENINFO, &vinfo)) {
        printf("Error reading variable information.\n");
        exit(3);
    }
    return 0;
}


Thank you,

Regards,
Nageswari

-----Original Message-----
From: Emmanuel Blot ####@####.####
Sent: Wednesday, March 06, 2002 3:22 PM
To: Nageswari S; ####@####.####
Subject: RE: [nanogui] /dev/fb0 Error



You have configured MicroWindows for the Linux FrameBuffer: /dev/fb0 is the
access point to the kernel framebuffer driver.

Either configure and build for XWindows (in src dir: cp Config/config.x11
config and edit this file to match your requirements), or enable the
FrameBuffer on your machine (this can be done either by using the kernel
vesabg -see Lilo 'vga' option, for example- or by loading a FrameBuffer
module -see Documentation/fb/* in the /usr/src/linux directory)

Emmanuel.

-----Original Message-----
From: Nageswari S ####@####.####
Sent: Wed 2002-03-06 10:48
To: ####@####.####
Cc: 
Subject: [nanogui] /dev/fb0 Error

Dear All,

I am new to Linux environment.
I have linux 2.4.17 kernel.

I have downloaded microwindows-0.89pre8 version.
I tried to "make" and run "mdemo" and "mterm".

I am getting the following error

Error Opening /dev/fb0: No such device check kernel config
Cannot initialise screen.

Can any body tell me what is this error and how do I solve it?

Thank you,

Regards,
Nageswari







---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####



Previous by date: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Emmanuel Blot
Next by date: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Sunil Phatak
Previous in thread: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Emmanuel Blot
Next in thread: 6 Mar 2002 10:12:16 -0000 Re: /dev/fb0 Error, Sunil Phatak


Powered by ezmlm-browse 0.20.