RedHat修改分辨率

今天在虚拟机上安装了RedHat5.6操作系统,在调分辨率是出了错误。一般来说,通过两步来完成分辨率的调整。

1、调显示器的大小。这一般有两种方式:(1)使用root用户,在命令行中输入system-config-display,出现显示器的对话框,配置自己的显示器;(2)使用vi命令编辑/etc/X11/xorg.conf文件。

Section "Monitor"

 

 ###Comment all HorizSync and VertSync values to use DDC:

 ### Commentall HorizSync and VertSync values to use DDC:

       Identifier   "Monitor0"

       ModelName    "LCD Panel 800×600"

 ###Comment all HorizSync and VertSync values to use DDC:

       HorizSync    31.5 - 60.0

       VertRefresh  50.0 - 80.0

       Option      "dpms"

EndSection

"改为

 

Section "Monitor"

 

 ###Comment all HorizSync and VertSync values to use DDC:

 ###Comment all HorizSync and VertSync values to use DDC:

       Identifier   "Monitor0"

       ModelName    "LCD Panel1024x768"

 ###Comment all HorizSync and VertSync values to use DDC:

       HorizSync    31.5 - 60.0

       VertRefresh  50.0 - 80.0

       Option      "dpms"

EndSection

 

 

Section "Screen"

       Identifier "Screen0"

       Device     "Videocard0"

       Monitor    "Monitor0"

       DefaultDepth     16

       SubSection "Display"

                Viewport   0 0

                Depth     16

                Modes   "800x600"

       EndSubSection

       SubSection "Display"

                Viewport   0 0

                Depth     16

                Modes    "800x600" "640x480"

       EndSubSection

EndSection

 

改为

Section "Screen"

       Identifier "Screen0"

       Device     "Videocard0"

       Monitor    "Monitor0"

       DefaultDepth     16

       SubSection "Display"

                Viewport   0 0

                Depth     16

                Modes    "1024x768"

       EndSubSection

       SubSection "Display"

                Viewport   0 0

                Depth     16

                Modes    "1024x768"

       EndSubSection

EndSection

保存、退出。

说明:此处只是制定显示器的分辨率的大小为1024*768.

 

2、在桌面System – perfences-ScreenResolution,此时会发现多了许多分辨率的选择,找到符合自己的即可。


  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值