安装Nvidia驱动后使用控制台使用FrameBuffer

 

 

首先,编辑你的 /etc/initramfs-tools/modules 文件

代码:
sudo nano /etc/initramfs-tools/modules


加入如下内容
fbcon
vesafb
vga16fb

nvidiafb

最重要的一 步,要把文件/etc/modprobe.d/blacklist-framebuffer里面的vesafb和vga16fb,nvidiafb这几行给注释掉。

代码:
sudo nano /etc/modprobe.d/blacklist-framebuffer



这样你就可以在内核后面加入vga=xxx这 样的启动参数了

Colours   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      ?

Key: 8 bits = 256 colours, 15 bits = 32,768 colours, 16 bits = 65,536 colours, 24 bits = 16.8 million colours, 32 bits - same as 24 bits, but the extra 8 bits can be used for other things, and fits perfectly with a 32 bit PCI/VLB/EISA bus.

Additional modes are at the discretion of the manufacturer, as the VESA 2.0 document only defines modes up to 0x31F. You may need to do some fiddling around to find these extra modes.

像我的

kernel        /boot/vmlinuz-2.6.24-28-generic root=UUID=644b0ff2-f91d-4705-a91f-ba7c708dd65b ro quiet vga=0x31B video=vesafb

也可以使用video=nvidiafb这样可以Nvidia原生的硬件加速还可以支持宽屏分辨率,不过nvidiafb与nvidia X驱动不能同时启用,加载 nvidiafb 后就进不了X了,nvidiafb用的vga参数也是厂商自定义的

你可能感兴趣的:(UP)