进图形界面黑屏的解决办法


RHEL AS4 直接init 3卡住了,google了之后发现只是分辨率的问题导致黑屏,搜索到解决办法:

  1. 拷贝FC3的/usr/X11R6/lib/modules/libvgahw.a文件覆盖fc4的同名文件即可。

    文件下载地址:http://www.cs.cornell.edu/~scs49/libvgahw.a

  1. 如果文件覆盖了还是没有效果,请在/etc/grub.conf里加上vga=791(或者其他的分辨率)
  2. 参考代码:
  1. default=0
  2. timeout=5
  3. splashimage=(hd0,5)/boot/grub/splash.xpm.gz
  4. hiddenmenu
  5. title Fedora Core (2.6.11-1.1369_FC4)
  6. root (hd0,5)
  7. kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/1 rhgb quiet vga=791
  8. initrd /boot/initrd-2.6.11-1.1369_FC4.img

附上VGA代码和分辨率的对照表:

depth 640X480 800X600 1024X768 1280X1024
256 769 771 773 775
32000 784 787 790 793
65000 785 788 791 794
16.7 Mill. 786 789 792 795



« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3