设置分辨率xrandr --addmode

问题描述 投票:1回答:1

我无法在virtualbox中使用xrandr设置屏幕分辨率。这是运行ubuntu 12.04的VM,驱动程序支持此解析,因为来自同一iso的VM在同一台机器上运行它。为什么失败请求的X错误:BadMatch(无效的参数属性)发生?

第0步

xrandr
Screen 0: minimum 64 x 64, current 1024 x 768, maximum 32000 x 32000
VBOX0 connected 1024x768+0+0 0mm x 0mm
   1024x768       60.0*+
   800x600        60.0  
   640x480        60.0 

步骤1

cvt 1920 1080
1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

第2步

xrandr --newmode "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

第3步

~$ xrandr --addmode VBOX0  1920x1080_60.00
   X Error of failed request:  BadMatch (invalid parameter attributes)
   Major opcode of failed request:  150 (RANDR)
   Minor opcode of failed request:  18 (RRAddOutputMode)
   Serial number of failed request:  20
   Current serial number in output stream:  21
ubuntu-12.04 screen-resolution xrandr
1个回答
0
投票

如果您之前已完成此过程,则在尝试使用相同名称时会发生某些情况。将模式命名为其​​他内容,然后重试。

© www.soinside.com 2019 - 2024. All rights reserved.