百度空间 | 百度首页 
 
查看文章
 
ubuntu 刷新率设置
2008年08月29日 星期五 11:34
ubuntu 刷新率设置
2007-10-30 10:59
今天我的gutsy不能完全开启compiz特效,同时显示器的刷新率也只能到55
考虑到可能是显示设置不正确
到网上找来这么一篇文章(作者不可考):


首先确认显卡驱动装没装好,运行
代码:
glxinfo | grep rendering

如果显示direct rendering: Yes,则已安装。
不然的话:
安装nvidia显卡驱动:
代码:
sudo apt-get install nvidia-glx
sudo nvidia-glx-config enable
nvidia-settings
nvidia-xconfig
-----------------------------------------------------------
用命令来看查看显示器的相关参数
代码:
sudo ddcprobe | grep monitorrange


得到两个数值:
31-83 56-76
一个是水平扫描频率 31-83HZ

一个是垂直扫描频率 56-76HZ

-----------------------------------------------------------

/etc/X11/xorg.conf是X服务器的主要配置文件,修改它即可改变分辨率和刷新频率。

先备份,避免不测阿!


代码:

代码:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup


恢复的命令为:
代码:
sudo mv /etc/X11/xorg.conf_backup /etc/X11/xorg.conf


开始修改了
代码:
代码:
gedit /etc/X11/xorg.conf


找到Section "Screen"段

添加两行到Section "Monitor"和EndSection中间,例如:
代码:

Section "Monitor"
    Identifier     "BenQ FP71G"
    Option         "DPMS"
    HorizSync       31-83    (为添加行)
    VertRefresh     56-76    (为添加行)
EndSection

-----------------------------------------------------------

可是在“屏幕分辨率”窗口还是调不了刷新频率,分辨率倒是一堆。解决办法:
在Section "Screen"模块下的常用分辨率后加“_xx”(xx是你想要的刷新频率)。
还要注意一点,Section "Monitor"下的Identifier值要和Section "Screen"下的
Monitor的值一致才行。一般只修改DefaultDepth值的色深后的分辨率即可,下边是例子:
代码:

Section "Screen"
    Identifier     "Default Screen"
    Device         "NVIDIA Corporation NV11DDR [GeForce2 MX 100 DDR/200 DDR]"
    Monitor        "BenQ FP71G"
    DefaultDepth    24
    SubSection     "Display"
        Depth       1
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       4
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       8
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       15
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024_60"
    EndSubSection
EndSection

保存退出,重启X即可;
-----------------------------------------------------------
其他相关命令:
运行xrandr可以看到现在的分辨率和刷新频率等信息.

按住 Ctrl +Alt + Backspace 重启 X

sudo ddcprobe可以查看当前支持的分辨率和刷新频率,你也可以用gtf和sudo ddcprobe | grep monitorrange来对比查看,例如:gtf gtf 1280 1024 60

# 1280x1024 @ 60.00 Hz (GTF) hsync: 63.60 kHz; pclk: 108.88 MHz
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync

看hsync和pclk后的值是否在得出的那两个数值之内即可。


-----------------------------------------------------------

如果想更改登录界面的分辨率可以把每个色深后的不用的分辨率都删掉就ok了:



我自己配置的xorg.conf

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
EndSection

Section "InputDevice"
   Identifier   "Generic Keyboard"
   Driver       "kbd"
   Option       "CoreKeyboard"
   Option       "XkbRules"   "xorg"
   Option       "XkbModel"   "pc105"
   Option       "XkbLayout"   "us"
EndSection

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver       "mouse"
   Option       "CorePointer"
   Option       "Device"   "/dev/input/mice"
   Option       "Protocol"   "ImPS/2"
   Option       "ZAxisMapping"   "4 5"
   Option       "Emulate3Buttons"   "true"
EndSection

Section "InputDevice"
   Driver       "wacom"
   Identifier   "stylus"
   Option       "Device"   "/dev/input/wacom"
   Option       "Type"   "stylus"
   Option       "ForceDevice"   "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
   Driver       "wacom"
   Identifier   "eraser"
   Option       "Device"   "/dev/input/wacom"
   Option       "Type"   "eraser"
   Option       "ForceDevice"   "ISDV4"# Tablet PC ONLY
EndSection

Section "InputDevice"
   Driver       "wacom"
   Identifier   "cursor"
   Option       "Device"   "/dev/input/wacom"
   Option       "Type"   "cursor"
   Option       "ForceDevice"   "ISDV4"# Tablet PC ONLY
EndSection

Section "Device"
   Identifier   "nVidia Corporation G72 [GeForce 7300 LE]"
   Boardname   "nv"
   Busid       "PCI:2:0:0"
   Driver       "nvidia"
   Screen   0
EndSection

Section "Monitor"
   Identifier   "SyncMaster"
   Vendorname   "Samsung"
   Modelname   "Samsung SyncMaster 711N/712N"
   Horizsync   30-81
   Vertrefresh   56-75
Modeline "1280x1024_60.00" 108.88 1280 1360 1496 1712 1024 1025 1028 1060 -HSync +Vsync
Modeline "1024x768_85.00" 94.39 1024 1088 1200 1376 768 769 772 807 -HSync +Vsync

   Gamma   1.0
EndSection

Section "Screen"
   Identifier   "Default Screen"
   Device       "nVidia Corporation G72 [GeForce 7300 LE]"
   Monitor       "SyncMaster"
   Defaultdepth   24
   SubSection "Display"
       Depth   24
       Virtual   1280 1024
       Modes       "1280x1024@60"   "1280x1024@75"   "1024x768@60"   "1024x768@70"   "1024x768@75"   "1024x768@85"
   EndSubSection
EndSection

Section "ServerLayout"
   Identifier   "Default Layout"
screen 0 "Default Screen" 0 0
   Inputdevice   "Generic Keyboard"
   Inputdevice   "Configured Mouse"
  
   # Uncomment if you have a wacom tablet
   #   InputDevice     "stylus"   "SendCoreEvents"
   #   InputDevice     "cursor"   "SendCoreEvents"
   #   InputDevice     "eraser"   "SendCoreEvents"
EndSection
Section "Module"
   Load       "glx"
   Load       "v4l"
EndSection

Section "ServerFlags"
EndSection

结果在 system->preferences->screen resolution 里面的显示器的分辨率还是只有50


后来我重装i386版到我的amd64机子上时发现,如果用ubuntu 自己的linux显卡驱动的话 刷新率是可以在1024x768达到85 1280x1024达到75的 难道是受限驱动太锉了?
不过刚装起来的gutsy还是真的很矬,特别是firefox老卡死真的很让人生气!!


gusty 下解决分辨率过低

(2) # cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
     # gedit /etc/X11/xorg.conf

     在Section "Monitor"的EndSecion前添加如下代码:
     Option       "DynamicTwinView"   "False"

类别:Develop | 添加到搜藏 | 浏览() | 评论 (0)
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     
 
精彩相册
   
     

©2009 Baidu