手机版
你好,游客 登录 注册
背景:
阅读新闻

Ubuntu 8.10控制台启用FrameBuffer模块

[日期:2009-08-21] 来源:gliethttp.cublog.cn   作者:gliethttp [字体:大 中 小]

PS:
通过自己的实践[luther.gliethttp],发现我的笔记本,直接使用上面的第3个步骤,就可以完成控制台之间
framebuffer下切换,但是台式机就出现了死机现象,
台式机下首先且到ctrl+alt+f1文本控制台,然后执行/dev/fb0操作,之后alt+f7切回到Ubuntu的GUI时,GUI就死掉了,很奇怪,后来实验了各种方式,包括安装显卡驱动等[笔记本是安装了nvdia驱动的],
还是一样会死,后来只能切换GUI seesion,重新使用老早之前的wmii,发现一切正常,得了,只能使用wmii了,wmii的操作可以参考我以前的《wmii-3.1操作说明》
对于zhcon来说,比如想显示/vobs下的中文文件,不是
ls /vobs然后回车,而是使用tab,这样中文就可以正常显示了,zhcon总体效果还是很差,不太推荐使用[luther.gliethttp].
在内核Documentation/fb/vesafb.txt文件中,有如下vesa-framebuffer的说明
Switching modes is done using the vga=... boot parameter.  Read
Documentation/svga.txt for details.

You should compile in both vgacon (for text mode) and vesafb (for
graphics mode). Which of them takes over the console depends on
whenever the specified mode is text or graphics.

The graphic modes are NOT in the list which you get if you boot with
vga=ask and hit return. The mode you wish to use is derived from the
VESA mode number. Here are those VESA mode numbers:

    | 640x480  800x600  1024x768 1280x1024
----+-------------------------------------
256 |  0x101    0x103    0x105    0x107      8位色
32k |  0x110    0x113    0x116    0x119     15位色
64k |  0x111    0x114    0x117    0x11A     16位色
16M |  0x112    0x115    0x118    0x11B     24位色

The video mode number of the Linux kernel is the VESA mode number plus
0x200.
 
 Linux_kernel_mode_number = VESA_mode_number + 0x200

So the table for the Kernel mode numbers are:

    | 640x480  800x600  1024x768 1280x1024
----+-------------------------------------
256 |  0x301    0x303    0x305    0x307     8位色
32k |  0x310    0x313    0x316    0x319    15位色
64k |  0x311    0x314    0x317    0x31A    16位色
16M |  0x312    0x315    0x318    0x31B    24位色

To enable one of those modes you have to specify "vga=ask" in the
lilo.conf file and rerun LILO. Then you can type in the desired
mode at the "vga=ask" prompt. For example if you like to use
1024x768x256 colors you have to say "305" at this prompt.

If this does not work, this might be because your BIOS does not support
linear framebuffers or because it does not support this mode at all.
Even if your board does, it might be the BIOS which does not.  VESA BIOS
Extensions v2.0 are required, 1.2 is NOT sufficient.  You will get a
"bad mode number" message if something goes wrong.

1. Note: LILO cannot handle hex, for booting directly with
         "vga=mode-number" you have to transform the numbers to decimal.
2. Note: Some newer versions of LILO appear to work with those hex values,
         if you set the 0x in front of the numbers.

linux
相关资讯       Ubuntu 8.10 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款