Linux下得到显示屏参数的方法


先安装一个软件,然后使用权ddcprobe可以查看当前支持的分辨率和刷新频率
#sudo apt-get install xresprobe
运行
#sudo ddcprobe
会得到下面的信息
vbe: VESA 3.0 detected.
oem: Intel(r)Cantiga Graphics Chip Accelerated VGA BIOS
vendor: Intel Corporation
product: Intel(r)Cantiga Graphics Controller Hardware Version 0.0
memory: 32704kb
mode: 1280x1024x256
mode: 1280x1024x64k
mode: 1280x1024x16m
mode: 1024x768x256
mode: 1024x768x64k
mode: 1024x768x16m
mode: 640x480x16m
mode: 800x600x64k
mode: 800x600x16m
mode: 640x480x256
mode: 800x600x256
mode: 640x480x64k
edid:
edid: 1 3
id: 4010
eisa: LEN4010
serial: 00000000
manufacture: 28 2008
input: analog signal.
screensize: 26 16
gamma: 2.200000
dpms: RGB, active off, suspend, standby
dtiming: 1280x800@60
dtiming: 1280x800@50
monitorid: LTD121EWVB
 
还可以使用gtf命令来查看在机器上的分辩率
#gtf 1280 800 60
  # 1280x800 @ 60.00 Hz (GTF) hsync: 49.68 kHz; pclk: 83.46 MHz
  Modeline "1280x800_60.00"  83.46  1280 1344 1480 1680  800 801 804 828  -HSync +Vsync
什么是gtf 。
gtf - calculate VESA GTF mode lines 中文的意思是计算显示设备VESA驱动GTF模式命令行工具。
什么是gtf?gtf(generalized timing formula),一般程序时间,定义了产生画面所需要的时间,包括了诸如画面刷新率等),另外gtf也是显示设备的一个工业标准。通过GTF则可以自动调节屏幕尺寸。
我们通过gtf 工具计算显示器屏幕尺寸、分辨率,然后我们把计算出来的值插入到 xorg.conf配置文件中,就能达到自动调节屏幕的显示尺寸、位置 及分辨率。

相关内容