Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4558738
  • 博文数量: 385
  • 博客积分: 21208
  • 博客等级: 上将
  • 技术积分: 4393
  • 用 户 组: 普通用户
  • 注册时间: 2006-09-30 13:40
文章分类

全部博文(385)

文章存档

2015年(1)

2014年(3)

2012年(16)

2011年(42)

2010年(1)

2009年(2)

2008年(34)

2007年(188)

2006年(110)

分类: LINUX

2011-09-20 18:40:28

Accoding suse xen book:

TIP: Graphics Problems

Sometimes it may happen that the graphics system does not work properly. In
this case, add vga=ask to the boot parameters. To activate permanent settings,
use vga=mode-0x??? where ??? is calculated as 0x100 + VESA mode from

e.g.vga=mode-0x361.

从上述链接知道了在suse linux下面查询硬件信息的方法:

hwinfo --all

其中hwinfo --framebuffer 可查在文本界面下的分辨率列表

SLES11:~/Desktop # hwinfo --framebuffer
02: None 00.0: 11001 VESA Framebuffer
[Created at bios.464]
Unique ID: rdCR.fRULN9k9OD4
Hardware Class: framebuffer
Model: "Intel(r)Cantiga Graphics Controller"
Vendor: "Intel Corporation"
Device: "Intel(r)Cantiga Graphics Controller"
SubVendor: "Intel(r)Cantiga Graphics Chip Accelerated VGA BIOS"
SubDevice:
Revision: "Hardware Version 0.0"
Memory Size: 31 MB + 960 kB
Memory Range: 0xd0000000-0xd1feffff (rw)
Mode 0x0360: 768x480 (+768), 8 bits
Mode 0x0361: 768x480 (+1536), 16 bits
Mode 0x0362: 768x480 (+3072), 24 bits
Mode 0x0363: 960x600 (+960), 8 bits
Mode 0x0364: 960x600 (+1920), 16 bits
Mode 0x0365: 960x600 (+3840), 24 bits
Mode 0x0366: 1280x800 (+1280), 8 bits
Mode 0x0367: 1280x800 (+2560), 16 bits
Mode 0x0368: 1280x800 (+5120), 24 bits
Mode 0x0305: 1024x768 (+1024), 8 bits
Mode 0x0317: 1024x768 (+2048), 16 bits
Mode 0x0318: 1024x768 (+4096), 24 bits
Mode 0x0312: 640x480 (+2560), 24 bits
Mode 0x0314: 800x600 (+1600), 16 bits
Mode 0x0315: 800x600 (+3200), 24 bits
Mode 0x0301: 640x480 (+640), 8 bits
Mode 0x0303: 800x600 (+832), 8 bits
Mode 0x0311: 640x480 (+1280), 16 bits
Config Status: cfg=new, avail=yes, need=no, active=unknown



title Xen -- SUSE Linux Enterprise Server 11 - 2.6.27.19-5
root (hd0,7)
kernel /boot/xen.gz crashkernel=128M@16M vga=mode-9
module /boot/vmlinuz-2.6.27.19-5-xen root=/dev/disk/by-id/ata-FUJITSU_MHZ2250BH_G2_K60KT8425MD8-part8 resume=/dev/disk/by-id/ata-FUJITSU_MHZ2250BH_G2_K60KT8425MD8-part9 showopts
module /boot/initrd-2.6.27.19-5-xen

尝试了一下:

1.在第一个module 行末尾处加上 vga=0x368  ,不行

2.在kernel这一行加上vga=0x368,也不行 

3.在kernel 这一行加上vga=ask , 出现一个列表 ,选择第9个, boot后可以了,有效果, 

但不能老是在启动的过程中去选择阿,修改为vga=mode-0x368 ,boot后没效果,修改为vga=mode-0x468,也没效果

4.最后干脆 vga=mode-9 ,boot 有效果 

成功了,纯粹了是碰出来的,事先没有google, 看来解决问题有时候要合理的猜想,尝试!

后来查了一下,也没有vga=mode-N0 的这种方式,奇怪,改天看看xen 源码,先记录一下!

Xen’s graphical video mode codes are different from Linux Kernel’s. This is a list of Xen’s vga option from [1]:
'vga=[,keep]' where is one of:

'vga=ask':
display a vga menu of available modes

'vga=text-80x':
text mode, where is one of {25,28,30,34,43,50,60}

'vga=gfx-xx':
graphics mode, e.g., vga=gfx-1024x768x16

'vga=mode-:
specifies a mode as specified in 'vga=ask' menu
(NB. menu modes are displayed in hex, so mode numbers here must
be prefixed with '0x' (e.g., 'vga=mode-0x0318'))

The option 'keep' causes Xen to continue to print to the VGA console even
after domain 0 starts to boot. The default behaviour is to relinquish
control of the console to domain 0.









阅读(2383) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~