Ubuntu 16.04
的输出uname -a
:
Linux HOST 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
桌面级:
我想要的是:
我的问题:
nvidia-smi
也不nvidia-settings
工作,我无法控制我的 nvidia GPU(错误被进一步引用)我的故事:
在对我的问题进行简短总结之后,我想深入探讨这个话题;自 Ubuntu 16.04 发布以来,我正在修补并未能实现以下目标:
我的初始状态的简短摘要:
我通过 apt-get 安装了 nvidia 和 intel(intel-microcode 和 nvidia-361.42)的专有驱动程序,并通过 mokutul --disable-validation …
我刚刚安装了 Ubuntu 18.04。我有一台带有两个 gpu 和 5 个显示器的机器。在过去,使用以前版本的 Ubuntu,让他们每周工作一直是一项挑战。最后我手动创建了一个 xorg.conf 文件并且运行良好。从那以后,每次我安装新的 Ubuntu 时,我都会将该文件粘贴到 /etc/X11/ 中,然后重新启动,这样就好了。
安装 Ubuntu 18.04 后,该策略无效。我找不到 xorg.conf 文件所在的位置。你能告诉我在哪里吗?Ubuntu 是否发生了变化,不再使用 xorg?
谢谢,
我有最后一个 nvidia-352 驱动程序,重新启动后我的显示器返回到auto
60Hz 而不是 144Hz。
我尝试sudo nvidia-settings
并保存配置,/etc/X11/xorg.conf
但它不起作用。
我在 Kubuntu 中尝试过同样的事情,我的配置在重新启动后保存。
我的显示器的原始分辨率为 1680x1050,但未检测到该显示器,因此无法通过 nvidia 驱动程序进行设置。我尝试过使用 xrandr 强制分辨率,但没有结果,正如官方 ubuntu 文档中所建议的那样: https ://wiki.ubuntu.com/X/Config/Resolution#Adding_unDetected_resolution#Adding_unDetected_resolutions 所以我试图获取由 a 设置的分辨率按照同一官方页面末尾的建议,在 /etc/X11 中手动生成 xorg.conf 文件。
我设法创建一个自定义 xorg.conf 来设置本机分辨率,正如我在 xorg 日志 (/var/log/xorg.0.log) 中看到的那样,正在加载 xorg.conf 配置文件,但正在加载自定义分辨率 1680x1050由于未按“EDID”列出而被丢弃: https://en.wikipedia.org/wiki/Extended_Display_Identification_Data
如何覆盖 Xorg 步骤,将自定义分辨率与 EDID 列出的配置进行比较,并丢弃未列出的本机分辨率?有任何想法吗?
这是 xorg.0.log 的相关部分:
**[ 3448.936] (==) Using config file: "/etc/X11/xorg.conf"**
[ 3448.936] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 3448.936] (==) ServerLayout "Layout0"
[ 3448.936] (**) |-->Screen "Screen0" (0)
[ 3448.936] (**) | |-->Monitor "Monitor0"
[ 3448.936] (**) | |-->Device "Device0"
[ 3448.936] (**) |-->Input Device "Keyboard0" …
Run Code Online (Sandbox Code Playgroud) 我正在尝试旋转连接到笔记本电脑 VGA 输出的双显示器。我的系统是 Ubuntu 15.10。
但是,这是我使用 xrandr 时得到的结果:
xrandr --output VGA-1-0 --rotate right
xrandr: output VGA-1-0 cannot use rotation "right" reflection "none"
Run Code Online (Sandbox Code Playgroud)
我看过其他关于这个主题的帖子,都推荐编辑 xorg.conf。我也试过了。这是我当前的 xorg.conf 文件:
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection
Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0@0:2:0"
Option "AccelMethod" "None"
Option "RandRRotation" "True"
EndSection
Section "Screen"
Identifier "intel"
Device "intel"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1@0:0:0"
Option "ConstrainCursor" "off"
Option "RandRRotation" "True"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option …
Run Code Online (Sandbox Code Playgroud) 我是 Linux 新手,一直在使用 TTY。我的 Linux 发行版是 Lubuntu 14.04.4 LTS。
我已经阅读了一些主题,提出的解决方案对我不起作用。Ctrl+ Alt+F7返回一个带有文本条目的黑屏,但是,我不能写任何内容。Ctrl+ Alt+ F1-F6带我进入正常的 TTY。
startx
返回:
/etc/X11/xinit/service: 3: exec: /usr/bin/X not found
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Run Code Online (Sandbox Code Playgroud)
sudo service lightdm start
返回:
start: job failed to start
Run Code Online (Sandbox Code Playgroud)
更新:我已经研究了我目前的情况,我认为问题在于缺少“xorg.conf”文件或某种类似的文件。我按照“如何恢复 xserver? ”的说明进行操作,但仍无法恢复。
这是去年 8 月 16 日星期四安装的 Ubuntu 18.04.1LTS
apt-cache policy gdm3
gdm3:
Installed: 3.28.2-0ubuntu1.4
Candidate: 3.28.2-0ubuntu1.4
Run Code Online (Sandbox Code Playgroud)
该输出与我从 16.04LTS 升级到 18.04LTS 的同时开始。
Aug 23 14:58:52 localhost /usr/lib/gdm3/gdm-x-session[2309]: (II) modeset(0): EDID vendor "ACR", prod id 22
Aug 23 14:58:53 localhost /usr/lib/gdm3/gdm-x-session[2309]: (II) modeset(0): Using hsync ranges from config file
Aug 23 14:58:53 localhost /usr/lib/gdm3/gdm-x-session[2309]: (II) modeset(0): Using vrefresh ranges from config file
Aug 23 14:58:53 localhost /usr/lib/gdm3/gdm-x-session[2309]: (II) modeset(0): Printing DDC gathered Modelines:
Aug 23 14:58:53 localhost /usr/lib/gdm3/gdm-x-session[2309]: (II) modeset(0): Modeline "1680x1050"x0.0 119.00 …
Run Code Online (Sandbox Code Playgroud) xorg.conf
我的每个双显示器用作单独的 X 屏幕需要哪些配置。xorg.conf
配置启动 X。xeyes
或其他 X11 应用程序时,该脚本指定它们出现在我的哪个显示器上。nvidia-dkms-470-server
. 我使用的连接是 HDMI 和 DVI。startx &
,X 应该正常启动,然后我应该能够分别xeyes
使用DISPLAY=:0.0
或在屏幕 0 或 1 上打开DISPLAY=:0.1
。我无法启动 X,并显示“未找到屏幕”。
从日志来看,xf86OpenConsole
可能与问题有关,但我不知道那是什么。
这是Xorg.0.log
我尝试之后的sudo startx &
。
[ 3083.851] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 3083.851] compiled for 1.6.99.901, module version = 1.0.0
[ …
Run Code Online (Sandbox Code Playgroud) 我从 17.04 切换到 Ubuntu 17.10,其中相同的 xorg.conf 在 /etc/xorg.conf 中工作,而 Ubuntu 似乎忽略了该文件。我的解决方法与以前在 Ubuntu 17.04 中相同,我将 xorg.conf 复制到 /etc。但它没有加载。我使用 xorg.conf 来设置正确的分辨率和驱动程序。xorg.conf 将加载 radeon 驱动程序并lshw -c video
表示该驱动程序已经加载。我尝试了 xorg.conf 的其他位置,如联机帮助页建议但没有运气。
我希望你们中有人能帮助我。
xorg.conf ×9
xorg ×5
nvidia ×3
17.10 ×1
cuda ×1
gpu-driver ×1
gui ×1
nvidia-prime ×1
tty ×1
xrandr ×1