歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 如何在Debian 中啟用 fbcon

如何在Debian 中啟用 fbcon

日期:2017/2/28 13:55:51   编辑:Linux教程

如果你使用MinGUI提示的是NEWGAL: Does not find matched engine: qvfb ,請先參照後半部分文章修改 為fbcon ,當修改為fbcon 後, 再根據下面的內容修改cmdline

vi /boot/grub/grub.cfg
打開後, 找到
啟動項菜單中的啟動參數, 加入下面紅色的部分
有些地方是 kernel , 有些是 linux 開頭的行。

menuentry 'Debian GNU/Linux,Linux 3.2.0-4-686-pae' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 00264381-7f4f-4407-82a7-998f8def8aa7
echo '載入 Linux 3.2.0-4-686-pae ...'
linux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=00264381-7f4f-4407-82a7-998f8def8aa7 vga=0x0314 fb:on ro quiet
echo '載入初始化內存盤...'
initrd /boot/initrd.img-3.2.0-4-686-pae


事實上, 在debian 中, 我們應該修改 vi /etc/default/grub 文件中的GRUB_CMDLINE_LINUX_DEFAULT :

GRUB_CMDLINE_LINUX_DEFAULT="vga=0x0314 fb:on quiet"

然後 保存後,
運行 update-grub 來重新生成 /boot/grub/grub.cfg 文件

注意:

NEWGAL: Does not find matched engine: qvfb 你需要啟動qvfb

如果你不想用這個, 那麼設置 mingui.cfg

到目錄 /usr/local/etc# 中 編輯 MiniGUI.cfg

原來是 qvfb 現在修改紅色的部分, 藍色部分是分辨率 和顏色位數, 我這裡是800X600 24位

[system]
# GAL engine and default options
gal_engine=fbcon
defaultmode=800x600-24bpp

# IAL engine
ial_engine=fbcon
mdev=/dev/input/mice
mtype=IMPS2

[fbcon]
defaultmode=800x600-24bpp

Copyright © Linux教程網 All Rights Reserved