ubuntu不能设置高分辨率问题的解决方法

2025-11-03 09:19:50阅读量:15 字体:

在ubuntu12.10上安装gnome切换到经典模式后,分别率最高只有1024*768,以为是没有安装显卡驱动导致的,上网搜索了N多方法,安装了各种nvidia驱动,依然没有搞定。

(转)ubuntu分辨率设置

以下是该文文章的内容:

--------------------------------------------------------------->>>

复制代码代码如下:

设置分辨率1680 * 1050的shell脚本如下:


复制代码代码如下:

#!/bin/bash

# set screen resolution to 1680×1050

# Query current resolution

echo "Current resolution:"

xrandr

echo "-------------------------------------"

# New one modeline for 1680×1050

echo "New one modeline for 1680×1050:"

cvt 1680 1050

echo "-------------------------------------"

# 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 "-------------------------------------"

# Add the resolution to monitor

echo "Add the resolution to monitor:"

xrandr --addmode VGA1 "1680x1050_60.00"

echo "-------------------------------------"

# Apply the resolution

echo "Apply the resolution:"

xrandr --output VGA1 --mode "1680x1050_60.00"

echo "-------------------------------------"

# Query current resolution again to determine the settings valid or not

echo "Current resolution after settings:"

xrandr

echo "-------------------------------------"

推荐阅读