如何在debian 中启用 fbcon

如果你使用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

转载于:https://my.oschina.net/mysticboy/blog/541373

猜你喜欢

转载自blog.csdn.net/weixin_33763244/article/details/92064633