昨天我升级到了 Ubuntu 16.04,但它无法与我的任何图形驱动程序兼容。我又降回了 14.04,但屏幕分辨率出现了问题。宽高比卡在 4:3。我进入系统设置并点击显示,唯一的选项是 4:3。我按照教程设置了不同的屏幕分辨率(使用 xrandr 和 cvt)。然而,这只能让我在“显示”菜单中找到选择新分辨率的选项。现在当我尝试应用它时,出现了新的错误。
这是我遵循的教程: https://www.youtube.com/watch?v=LiP-YqtZoNQ
我跟踪到了大约 3:13。
当我进入系统设置下的显示以更改为新分辨率时,弹出窗口中出现此错误:
所需虚拟大小与可用大小不符:请求大小=(1280,720),>最小值=(1152,864),最大值=(1152,864)
这个问题的解决方案应该可以通过在 /etc/X11/ 中添加一个“xorg.conf”文件并添加几行来解决。我运行了
sudo X-configure
生成默认的 xorg.conf 文件。
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "ColorTiling" # [<bool>]
#Option "ColorTiling2D" # [<bool>]
#Option "RenderAccel" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "AccelMethod" # <str>
#Option "ShadowPrimary" # [<bool>]
#Option "EXAVSync" # [<bool>]
#Option "EXAPixmaps" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "SwapbuffersWait" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "TearFree" # [<bool>]
Identifier "Card0"
Driver "radeon"
BusID "PCI:0:1:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
Virtual 1280 720
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
Virtual 1280 720
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
Virtual 1280 720
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
Virtual 1280 720
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
Virtual 1280 720
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Virtual 1280 720
EndSubSection
EndSection
我在屏幕部分添加了“Virtual 1280 720”行(如生成的文件片段所示)。我将其复制到 /etc/X11/ 作为 xorg.conf,每次启动时它都会导致 X11 崩溃。
我真的不知道为什么会出现这个问题。我以前从来没有遇到过这样的问题。这太令人沮丧了。
感谢您的帮助。