ubnutu设置设置屏幕分辨率

简介:

当然我知道ubnutu有图形用户界面可以设置分辨率,但是此文将的是自己手动设置。

Ubuntu 9.04 did not detect the native resolution of my new LCD monitor which was 1440 x 900.

Fix :

1. Get the modeline for the required resolution + refresh rate using the gtf command.

1 desktop:~$ gtf 1440 900 75
2  
3   # 1440x900 @ 75.00 Hz (GTF) hsync: 70.50 kHz; pclk: 136.49 MHz
4   Modeline "1440x900_75.00"  136.49  1440 1536 1688 1936  900 901 904940  -HSync +Vsync

The modeline is to be added to the xorg.conf file at /etc/X11/xorg.conf
Take a backup of the file before editing it.

On a fresh Ubuntu installation the file may look small like this :

1 #Some comments on top
2 Section "Monitor"
3  Identifier "Configured Monitor"
4 EndSection
5  
6 Section "Screen"
7  Identifier "Default Screen"
8  Monitor  "Configured Monitor"
9  Device  "Configured Video Device"
10 EndSection
11  
12 Section "Device"
13  Identifier "Configured Video Device"
14 EndSection
15  
16 Section "ServerFlags"
17  Option "DontZap" "True"
18 EndSection

Simply add the modeline to the monitor section like this :

1 Section "Monitor"
2  Identifier "Configured Monitor"
3  Modeline "1440x900_75.00"  136.49  1440 1536 1688 1936  900 901 904 940  -HSync +Vsync
4  Option          "PreferredMode" "1440x900_75.00"
5 EndSection
6  
7 Section "Screen"
8  Identifier "Default Screen"
9  Monitor  "Configured Monitor"
10  Device  "Configured Video Device"
11 EndSection
12  
13 Section "Device"
14  Identifier "Configured Video Device"
15 EndSection
16  
17 Section "ServerFlags"
18  Option "DontZap" "True"
19 EndSection

The option “PreferredMode” “1440x900_75.00″ is used so that it becomes the default resolution on gnome, KDE desktops and GDM and KDM i.e. the login screen. If this option is not used then there may be issues such that resolution after reboot or relogin reverts to a default like 1280 x 1200 as discussed here Bug.

Another fix could to be reconfigure X like : sudo dpkg-reconfigure xserver-xorg.

References :
1. Ubuntu Resolution Configuration
2. Forum

目录
相关文章
|
Windows
关于 Qt设置置顶窗口,透明部分显示黑色底色(已设置透明窗口) 的解决方法
关于 Qt设置置顶窗口,透明部分显示黑色底色(已设置透明窗口) 的解决方法
关于 Qt设置置顶窗口,透明部分显示黑色底色(已设置透明窗口) 的解决方法
火狐浏览器设置默认缩放比例
火狐浏览器设置默认缩放比例
121 0
|
编解码 前端开发
前端设置页面字体尺寸跟随屏幕大小而进行变化
前端设置页面字体尺寸跟随屏幕大小而进行变化
617 0
前端设置页面字体尺寸跟随屏幕大小而进行变化
|
iOS开发
iOS - 设置图片为背景色,且拉伸到指定大小
iOS - 设置图片为背景色,且拉伸到指定大小
292 0
|
XML 数据格式 Android开发
BottomSheetDialog 使用详解,设置圆角、固定高度、默认全屏等
BottomSheetDialog 使用详解,设置圆角、固定高度、默认全屏等
1180 0
BottomSheetDialog 使用详解,设置圆角、固定高度、默认全屏等
PyQt5 技术篇-设置窗口启用默认桌面位置,按屏幕比例
PyQt5 技术篇-设置窗口启用默认桌面位置,按屏幕比例
368 0
PyQt5 技术篇-设置窗口启用默认桌面位置,按屏幕比例
Qt 解决窗口在多个显示器上显示位置设置问题
参考链接:https://blog.csdn.net/x85371169/article/details/79351999
626 0
uwp - 禁用屏幕翻转/禁用屏幕旋转/禁用横屏模式
原文:uwp - 禁用屏幕翻转/禁用屏幕旋转/禁用横屏模式 解决方案目录 > Package.appxmanifest 双击打开,把支持的旋转:纵向勾上,只勾这一个其他不勾,就可以了。同理,想让用户一直保持横向时将“横向翻转”打钩,其他选项不选即可。
986 0
|
编解码
修改自定义大小的桌面屏幕分辨率
在ubuntu14.04虚拟机上修改自定义大小的桌面屏幕分辨率,使用的命令:cvt,xrandr 0、首先查看下当前已经提供的分辨率设置:xrandr -q root@xxx:/home/xxx/Desktop# xrandr -qScreen 0: minimum 1 x 1, current...
1458 0