我刚刚从头安装了 12.10。Unity 也开始正常,但分辨率很差。我找到了一个设置(我认为它在“软件源”中)将显示驱动程序更改为 Nvidia,然后我重新启动。
当 Ubuntu 现在启动时,它进入桌面(我看到一个我保存到桌面的文件)但没有其他屏幕元素——没有 Unity,顶部没有菜单栏,没有窗口装饰,什么都没有。
Ctrl-Alt-T 和 Ctrl-Alt-F2 可以正常工作,但它有点限制......
回到 ubuntu 9,支持的最大分辨率是 960x600,通过编辑 xorg.conf,我能够获得 1024x768 的分辨率。我最近安装了 ubuntu 11.10 .. 现在我可以在显示面板中获得的最大分辨率再次是 960x600 .. 我尝试编辑 xorg 但没有 xorg 并且当我尝试创建一个访问时被拒绝。
我是 linux 命令的新手,因此,将不胜感激分步帮助。
我添加了/etc/X11/xorg.conf包含:
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 30.0-62.0
VertRefresh 50.0-70.0
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1024x768" "800x600"
EndSubSection
EndSection
Run Code Online (Sandbox Code Playgroud) 我正在尝试让我的计算机使用正确的分辨率。为此,我需要在配置文件 ( xorg.conf) 中指定水平和垂直同步值:
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "CRT-0"
HorizSync 31.0 - 81.0
VertRefresh 56.0 - 76.0
Option "DPMS"
EndSection
Run Code Online (Sandbox Code Playgroud)
我们先来说说这些价值HorizSync和VertRefresh在某种程度上错了我的显示器。
我在哪里可以找到正确的值?
注意:这是一个“虚拟”问题——在聊天的帮助下,我已经找到了部分答案,现在我要添加我自己的答案来记录一个希望通用的解决方案。
我的GPU是GTX870M。我全新安装了 Ubuntu 18.04。我所做的只是:
sudo apt-get update
sudo apt-get upgrade
sudo ubuntu-drivers autoinstall
nvidia-xconfig
reboot
Run Code Online (Sandbox Code Playgroud)
它安装了 nvidia-390 驱动程序。现在每当我尝试启动 X 服务器时都会startx失败。我仍然可以使用 Wayland。这是我尝试过的(在恢复模式下):
startx
输出:
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-140-generic x86_64 Ubuntu
Current Operating System: Linux <censored>-PC 4.18.0-22-generic #23~18.04.1-Ubuntu SMP Thu Jun 6 08:37:25 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-22-generic root=UUID=0d1d9304-4cd6-41f6-80b2-3562578a252e ro recovery nomodeset
Build Date: 27 November 2018 05:27:12PM
xorg-server-hwe-18.04 2:1.20.1-3ubuntu2.1~18.04.1 (For technical support please see http://www.ubuntu.com/support)
Current version …Run Code Online (Sandbox Code Playgroud)