ubuntu设置分辨率时Error of failed request: BadName (named color or font does not exist)
按照网上的教程设置ubuntu自定义分辨率:
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.输入:$sudo xrandr –newmode “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
3.查看显示器的名称
输入: $xrandr
显示 xxx connected primary…..
这里的xxx即为你的机器名,比如我的为 Virtual1
4.输入:$sudo xrandr –addmode Virtual1 “1920x1080_60.00”
其中,第2步时出现错误,提示:
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 35
Current serial number in output stream: 35
上网搜解决办法为: