QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 898|回复: 6

请问如何能在纯SHELL下实现1027*768的显示质量?

[复制链接]
发表于 2005-2-4 20:21:32 | 显示全部楼层 |阅读模式
请问如何能在纯Shell下实现1027*768的显示质量?
谢谢!
发表于 2005-2-4 20:55:55 | 显示全部楼层
看精华
vga=0x318
回复

使用道具 举报

发表于 2005-2-4 21:11:42 | 显示全部楼层
[code:1]
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   
32k |  0x110    0x113    0x116    0x119   
64k |  0x111    0x114    0x117    0x11A   
16M |  0x112    0x115    0x118    0x11B   

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   
32k |  0x310    0x313    0x316    0x319   
64k |  0x311    0x314    0x317    0x31A   
16M |  0x312    0x315    0x318    0x31B   

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.
[/code:1]
回复

使用道具 举报

发表于 2005-2-4 23:26:54 | 显示全部楼层
zhcon好像就可以支持高分辨率,能上1280x1024
回复

使用道具 举报

发表于 2005-2-5 13:59:46 | 显示全部楼层
直接在/boot/grub/menu.lst中修改(添加下面红色部分):
title           Debian GNU/Linux, kernel 2.6.10-1-686
root            (hd0,2)
kernel          /boot/vmlinuz-2.6.10-1-686 root=/dev/hda3 ro vga=791
initrd          /boot/initrd.img-2.6.10-1-686
savedefault
boot

其中vga=788表示800×600   vga=791表示1024×768
回复

使用道具 举报

发表于 2005-2-5 14:03:06 | 显示全部楼层
如果你用lilo可以修改lilo:
参照:http://www.donews.net/zhy2111314/archive/2005/02/05/268983.aspx
回复

使用道具 举报

 楼主| 发表于 2005-2-6 19:41:29 | 显示全部楼层
谢谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-5 11:33 , Processed in 0.046409 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表