欢迎来到CentOS问吧,从这里您能进入CentOS世界!

CentOS问吧

当前位置: 主页 > CentOS教程 >

CentOS系统如何解决鼠标花屏的问题

时间:2011-06-22 14:24来源:未知 作者:admin 点击:
因为有次在安装CentOS系统后,突然出现了花屏的现象,还有,就是鼠标也不能用管理。所以,我找了很多关于这个问题的资料,也找到了很多解决这个问题的办法,但是很多的方法不知

因为有次在安装CentOS系统后,突然出现了花屏的现象,还有,就是鼠标也不能用管理。所以,我找了很多关于这个问题的资料,也找到了很多解决这个问题的办法,但是很多的方法不知道什么原因都不是很完整,或是根本不能解决这个问题,所以我在这里,为大家介绍个好的方法来解决这个问题。

(1)CentOS系统在vpc中安装完成后,启动进入Gnome桌面环境时出现花屏。原因:由于VPC不支持Linux的24色,只用16色,而Linux默认的是24色。因此需要手动改"/etc/X11/xorg.conf"文件。将EndSection 修改完成后,重启后,在命令行输入startx即可进入图形界面。

    Java代码   
    Section "Screen"    
    Identifier "Screen0"    
    Device "Videocard0"    
    DefaultDepth  24    
    SubSection "Display"    
    Viewport   0 0    
    Depth  24    
    EndSubSection     
    EndSection    
     
    Section "Screen"  
    Identifier "Screen0"  
    Device "Videocard0"  
    DefaultDepth  24  
    SubSection "Display"  
    Viewport   0 0  
    Depth  24  
    EndSubSection  
    EndSection 修改为  
     
    Java代码   
    Section "Screen"    
    Identifier "Screen0"    
    Device "Videocard0"    
    DefaultDepth  16    
    SubSection "Display"    
    Viewport   0 0    
    Depth  16    
    EndSubSection     
    EndSection    
     
    Section "Screen"  
    Identifier "Screen0"  
    Device "Videocard0"  
    DefaultDepth  16  
    SubSection "Display"  
    Viewport   0 0  
    Depth  16  
    EndSubSection  
     

(2)Vistual PC 2007中安装的Cent OS 5.3不能使用鼠标。这个不是vpc本身的问题,而是linux内核的一个bug。这个需要通过修改"/boot/grub/grub.conf"来完成,需要说明的是Cent OS 5.3的linux内核版本为2.6.18-128.el5。Cent OS中默认安装的grub.conf内容为:

    Java代码   
    title CentOS (2.6.18-128.el5)     
    root (hd0,0)     
    kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet     
    initrd /initrd-2.6.18-128.el5.img    
     
    title CentOS (2.6.18-128.el5)  
    root (hd0,0)  
    kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet  
    initrd /initrd-2.6.18-128.el5.img修改后的内容为:  
     
    Java代码   
    title CentOS (2.6.18-128.el5)     
root (hd0,0)     
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet i8042.noloop     
initrd /initrd-2.6.18-128.el5.img    
 
title CentOS (2.6.18-128.el5)  
root (hd0,0)  
kernel /vmlinuz-2.6.18-128.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet i8042.noloop  

initrd /initrd-2.6.18-128.el5.img这样保存后重启,进入系统后,鼠标移动至vpc的屏幕上,按空格右边的alt键就可以在虚拟机和xp之间进行切换了。这两个问题在fedora和CentOS系统都有出现,ubuntu中还没有发现类似的问题,都可以使用上述两种方法来解决。顺便说下,在vista中vpc也可以很好的工作(这个我在修改这两个问题时是在vista中进行测试的,修改后和xp一样可以正常运行)。
CentOS系统中这个鼠标和花屏的问题就这样的被我们解决了。希望大家能够把自己的方法和大家一起分享。

(责任编辑:admin)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片
栏目列表
推荐内容