我以前用“-opengl”选项启动游戏,冰封王座(使用wine)。当我进入游戏时,分辨率会改变,退出游戏后会恢复。
但这一次出现了问题。虽然我重新启动了几次计算机,但分辨率无法恢复。Ubuntu 窗格和登录窗口都非常出色。
nvidia-settings
还检测到分辨率是“1024 x 768”,但是用这个工具好像没用。截图-NVIDIA X 服务器设置:
xrandr的结果:
Screen 0: minimum 320 x 240, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
1024x768 50.0*
800x600 51.0 52.0 53.0
680x384 54.0 55.0
640x480 56.0
576x432 57.0
512x384 58.0
400x300 59.0 60.0 61.0
320x240 62.0
/etc/X11/xorg.conf 的配置:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 1.0 (buildd@yellow) Fri Apr 9 11:51:21 UTC 2010
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: builtin, VertRefresh source: builtin
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 28.0 - 55.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "Entry Graphics"
EndSection
Section "Screen"
# Removed Option "metamodes" "1024x768 +0+0"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "0"
Option "TwinViewXineramaInfoOrder" "CRT-0"
Option "metamodes" "1024x768_60 +0+0"
SubSection "Display"
Depth 24
EndSubSection
EndSection
您的 xorg.conf 文件包含“元模式”选项。删除该行,如果您注销并重新登录,它应该会恢复正常。
要获得最佳结果(或者如果这不起作用),请删除您的 xorg.conf,重新启动计算机(在启动之前按 ESC 以获取启动菜单),进入恢复模式,选择 root 终端,然后键入
nvidia-xconfig
并按 enter . 那应该重置您的 xorg.conf 文件。现在键入reboot 并输入以重新启动系统,一切都应该很好。