我遇到了 xrandr 问题,我成功执行了以下命令:
#cvt 1900 1080
#xrandr 1900x1080 170.75 1904 2024 2224 2544 1080 1083 1093 1120 -hsync +vsync
但不幸的是以下命令:
#xrandr --addmode VGA-0 1900x1080
返回以下错误:
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 153 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 29
Current serial number in output stream: 30
以下命令输出可能有助于识别问题:
#glxinfo |grep -i opengl
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 310M/PCIe/SSE2
OpenGL version string: 3.3.0 NVIDIA 310.14
OpenGL shading language version string: 3.30 NVIDIA via Cg compiler
OpenGL extensions:
#lspci |grep -i vga
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 310M] (rev a2)
有什么想法会是什么问题吗?
答案1
您想使用 nvidia 实现全尺寸屏幕吗?可以这样做:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.old
sudo rm /etc/X11/xorg.conf
sudo dpkg-reconfigure -phigh xserver-xorg
sudo 重启