在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
在ubuntu12.10上安装gnome切换到经典模式后,分别率最高只有1024*768,以为是没有安装显卡驱动导致的,上网搜索了N多方法,安装了各种nvidia驱动,依然没有搞定。 以下是本篇文章的内容: --------------------------------------------------------------->>> 特此感谢!终于搞定了浪费了大半天的问题。 不过,关机重新开机后此设置有时候就没有了,又恢复到原来的分辨率了。 现在把设置新分辨率的命令写到一个sh脚本中,如果分辨率恢复到原来的自动执行此shell文件就可以了。 代码如下: 复制代码 代码如下:#!/bin/bash</p> <p># set screen resolution to 1400 * 900</p> <p># Query current resolution echo "Current resolution:" xrandr echo "-------------------------------------"</p> <p># New one modeline for 1440 * 900 echo "New one modeline for 1440 * 900:" cvt 1440 900 echo "-------------------------------------"</p> <p># Create resolution using "xrandr --newmode" command echo "Create resolution 1400 * 900:" xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync echo "-------------------------------------"</p> <p># Add the resolution to monitor echo "Add the resolution to monitor:" xrandr --addmode VGA1 "1440x900_60.00" echo "-------------------------------------"</p> <p># Apply the resolution echo "Apply the resolution:" xrandr --output VGA1 --mode "1440x900_60.00" echo "-------------------------------------"</p> <p># Query current resolution again to determine the settings valid or not echo "Current resolution after settings:" xrandr echo "-------------------------------------"
复制代码 代码如下:#!/bin/bash</p> <p># set screen resolution to 1680×1050</p> <p># Query current resolution echo "Current resolution:" xrandr echo "-------------------------------------"</p> <p># New one modeline for 1680×1050 echo "New one modeline for 1680×1050:" cvt 1680 1050 echo "-------------------------------------"</p> <p># Create resolution using "xrandr --newmode" command echo "Create resolution 1680×1050:" xrandr --newmode "1680x1050_60.00" 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync echo "-------------------------------------"</p> <p># Add the resolution to monitor echo "Add the resolution to monitor:" xrandr --addmode VGA1 "1680x1050_60.00" echo "-------------------------------------"</p> <p># Apply the resolution echo "Apply the resolution:" xrandr --output VGA1 --mode "1680x1050_60.00" echo "-------------------------------------"</p> <p># Query current resolution again to determine the settings valid or not echo "Current resolution after settings:" xrandr echo "-------------------------------------" |
请发表评论