Display Driver: framebuffer, libggi, VGA graphics driver

Source: Internet
Author: User

Display Driver: framebuffer (fastest), VGA (slow), libggi (slow ).

Framebuffer, Can be translated as "frame buffering", sometimes referred to as fbdrv. The fbdrv-based console is also called fbcon. This is an abstract graphical device independent of hardware. FrameBuffer features high portability, usability, and stability. With the FrameBuffer Driver (vesafb) of the Linux kernel, you can easily support resolution up to 1024X768X32bpp. In addition, the most available linux versions have pre-compiled FrameBuffer support in the kernel, which can be used without re-compiling the kernel. Therefore, FrameBuffer is also the recommended driver for zhcon.

To access FrameBuffer, you can simply send the vga = mode-number parameter to the kernel at system startup to activate the FrameBuffer device, for example:

Code: lilo: Linux VGA = 305



The 1024x768x8bpp mode is enabled.

[Table = 98%] [tr] [td]

Color

[/Td] [td]

640x400

[/Td] [td]

640x480

[/Td] [td]

800x600

[/Td] [td]

1024x768

[/Td] [td]

1280x1024

[/Td] [td]

1600x1200

[/Td] [/tr] [tr] [td]

4 bits

[/Td] [td]

?

[/Td] [td]

?

[/Td] [td]

Zero X 302

[/Td] [td]

?

[/Td] [td]

?

[/Td] [td]

?

[/Td] [/tr] [tr] [td]

8 bits

[/Td] [td]

Zero X 300

[/Td] [td]

Zero X 301

[/Td] [td]

Zero X 303

[/Td] [td]

Zero X 305

[/Td] [td]

Zero X 307

[/Td] [td]

0x31c

[/Td] [/tr] [tr] [td]

15 bits

[/Td] [td]

?

[/Td] [td]

Zero X 310

[/Td] [td]

Zero X 313

[/Td] [td]

Zero X 316

[/Td] [td]

Zero X 319

[/Td] [td]

0x31d

[/Td] [/tr] [tr] [td]

16 bits

[/Td] [td]

?

[/Td] [td]

Zero x 311

[/Td] [td]

Zero x 314

[/Td] [td]

Zero x 317

[/Td] [td]

0x31A

[/Td] [td]

0x31E

[/Td] [/tr] [tr] [td]

24 bits

[/Td] [td]

?

[/Td] [td]

Zero x 312

[/Td] [td]

Zero x 315

[/Td] [td]

[S0x318

[/Td] [td]

0x31B

[/Td] [td]

0x31F

[/Td] [/tr] [tr] [td]

32 bits

[/Td] [td]

?

[/Td] [td]

?

[/Td] [td]

?

[/Td] [td]

?

[/Td] [td]

?

[/Td] [td]

?

[/Td] [/tr] [/table]
To enable framebuffer for Linux by default, modify/etc/Lilo. conf and add the following statement:

Code: VGA = 0x303



Exit editing and execute:

Code: lilo-V



Restart linux to enter the 256 color mode of 800x600.

LibggiLibggi is a cross-platform Drawing Library. In Linux, libggi performs graphic operations by calling framebuffer or svgalib, which may be slow. However, using libggi on systems that do not support framebuffer or VGA is still a good choice.
To use libggi, you need to set the ggi_display environment variable, for example:
Add export ggi_display = display-fbdev:-noinput to. bash_profile.
The interface provided by libggi will be used for graphic output (using framebuffer ). For more information, see the libggi documentation.

VGAIf your kernel does not support framebuffer compilation, you can use the built-in VGA driver to make the Display Work in the 640x480x16 mode. The VGA driver operates the registers on the video card directly, so the portability of this method is poor and the speed is also slow.

When the system starts, the image driver will be selected in the following order: libggi (if the environment variable ggi_display is set), framebuffer, VGA.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.