歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> RedHat下怎樣設置Framebuffer

RedHat下怎樣設置Framebuffer

日期:2017/2/28 15:59:07   编辑:Linux教程

環境:RedHat9.02

啟動級別:3


配置內核:

首先要再編譯內核是選中如下幾項:

[plain]
  1. Code maturity level options --->[*] Prompt for development and/or incomplete code/drivers
  2. Processor type and features --->[*] MTRR (Memory Type Range Register) support
  3. Block Devices ->[*] Loopback device support[*] RAM disk support
  4. (4096) Default RAM disk size[*] Initial RAM disk (initrd) support
  5. Console Drivers ->[*] VGA text console[*] Videomode selection support
  6. Console Drivers -> Frame-buffer support ->[*] Support for frame buffer devices[*] VESA VGA graphics console[*] Use splash screen instead of boot logo

配置Bootloader

Grub

修改/etc/grub.conf,在kernel項的最後添加vga參數和fb,例如:

[plain]
  1. kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ vga=0x311 fb:on
LILO

修改/etc/lilo.conf,添加vga參數,例如:

[plain]
  1. vga=0x311
修改後執行lilo命令,寫入bootloader。


vga參數的可選值如下:

Depth

640x400

640x480

800x600

1024x768

1152x864

1280x1024

1600x1200

4 bits

?

?

0x302

?

?

?

?

8 bits

0x300

0x301

0x303

0x305

0x161

0x307

0x31C

15 bits

?

0x310

0x313

0x316

0x162

0x319

0x31D

16 bits

?

0x311

0x314

0x317

0x163

0x31A

0x31E

24 bits

?

0x312

0x315

0x318

?

0x31B

0x31F

32 bits

?

?

?

?

0x164

?

?

修改後重啟系統,會在右上角看到一個Linux的企鵝Logo。

Copyright © Linux教程網 All Rights Reserved