在7.10里面不能直接在内核参数上加vga=xxx来启用framebuffer.
首先,编辑/etc/initramfs-tools/modules文件sudonano/etc/initramfs-tools/modules加入如下三行内容
fbcon
vesafb
vga16fb
最重要的一步,要把文件/etc/modprobe.d/blacklist-framebuffer里面的vesafb和vga16fb这两行给注释掉。sudonano/etc/modprobe.d/blacklist-framebuffer这样就可以在内核后面加入vga=xxx这样的启动参数。
不过,最好用hwinfo--framebuffer先看一下你显卡支持的vga数值,我的如下:
QUOTE: |
sudohwinfo--framebuffer02:None00.0:11001VESAFramebuffer
[Createdatbios.447]
UniqueID:rdCR.il6towt04X5
HardwareClass:framebuffer
Model:"Intel(r)82945GMChipsetFamilyGraphicsChipAcceleratedVGABIOSIntel(r)82945GMChipsetFamilyGraphicsController"
Vendor:"IntelCorporation"
Device:"Intel(r)82945GMChipsetFamilyGraphicsController"
SubVendor:"Intel(r)82945GMChipsetFamilyGraphicsChipAcceleratedVGABIOS"
SubDevice:
Revision:"HardwareVersion0.0"
MemorySize:7MB 704kB
MemoryRange:0xd0000000-0xd07affff(rw)
Mode0x0305:1024x768( 1024),8bits
Mode0x0317:1024x768( 2048),16bits
Mode0x0318:1024x768( 4096),24bits
Mode0x0312:640x480( 2560),24bits
Mode0x0314:800x600( 1600),16bits
Mode0x0315:800x600( 3200),24bits
Mode0x0301:640x480( 640),8bits
Mode0x0303:800x600( 832),8bits
Mode0x0311:640x480( 1280),16bits
ConfigStatus:cfg=new,avail=yes,need=no,active=unknown
所以我在内核后面加入了vga=0x0318,是1024x768的24位色。
最后刷新一下并重启。
sudoupdate-initramfs-u
下载本文示例代码
阅读(188) | 评论(0) | 转发(0) |