首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Xorg和xrandr检测不存在的连接监视器

Xorg和xrandr检测不存在的连接监视器
EN

Unix & Linux用户
提问于 2021-09-23 19:41:29
回答 2查看 1.4K关注 0票数 2

我在一台没有额外显示器连接的笔记本电脑上,但是当我运行xrandr -q时,输出列出了两个连接的设备。Xfce的“显示设置”对话框还显示了两个监视器,Xorg.0.log也显示了。

下面是xrandr -q输出:

代码语言:javascript
复制
eDP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.00*+  59.97    59.96    59.93    48.00  
   1680x1050     59.95    59.88  
   1600x1024     60.17  
   (omitting many more resolutions)
DP-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   1024x768      60.00*  
   800x600       60.32    56.25  
   848x480       60.00  
   640x480       59.94  
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)

这是正常的吗?如果没有,我能做些什么来移除这个想象中的显示器?重新启动笔记本电脑(在任何时候都没有外部监视器连接)不会改变任何事情。

(我猜是这件事造成了一个奇怪的显示问题-我的登录屏幕从错误的分辨率开始,后来分辨率得到纠正,但虚拟桌面的大小却是错误的。)

下面是相关的Xorg.0.log行- DP-1 (假想的监视器)没有EDID,但它被列为与初始模式1024x768相连接,而且似乎还以某种方式导致eDP-1 (实际的笔记本监视器)使用初始模式1024x768而不是1920x1080;然后,由于某种原因,它被归类为键盘:

代码语言:javascript
复制
[    13.093] (II) modeset(0): Output eDP-1 has no monitor section
[    13.921] (II) modeset(0): Output DP-1 has no monitor section
[    13.921] (II) modeset(0): Output DP-2 has no monitor section
[    13.921] (II) modeset(0): Output DP-3 has no monitor section
[    13.923] (II) modeset(0): EDID for output eDP-1
[    13.923] (II) modeset(0): Manufacturer: BOE  Model: 853  Serial#: 0
[    13.923] (II) modeset(0): Year: 2018  Week: 48
[    13.923] (II) modeset(0): EDID Version: 1.4
(skipping a bunch more EDID information for eDP-1)
[    13.924] (II) modeset(0): Printing probed modes for output eDP-1
[    13.924] (II) modeset(0): Modeline "1920x1080"x60.0  141.72  1920 1968 2000 2124  1080 1083 1089 1112 +hsync -vsync (66.7 kHz eP)
[    13.924] (II) modeset(0): Modeline "1920x1080"x119.9  266.50  1920 1944 1960 2000  1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
[    13.924] (II) modeset(0): Modeline "1920x1080"x60.0  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync (67.2 kHz d)
(skipping a lot more modelines for eDP-1)
[    14.754] (II) modeset(0): EDID for output DP-1
[    14.754] (II) modeset(0): Printing probed modes for output DP-1
[    14.755] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    14.755] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    14.755] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    14.755] (II) modeset(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[    14.755] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)
[    14.755] (II) modeset(0): EDID for output DP-2
[    14.755] (II) modeset(0): EDID for output DP-3
[    14.755] (II) modeset(0): Output eDP-1 connected
[    14.755] (II) modeset(0): Output DP-1 connected
[    14.755] (II) modeset(0): Output DP-2 disconnected
[    14.755] (II) modeset(0): Output DP-3 disconnected
[    14.755] (II) modeset(0): Using fuzzy aspect match for initial modes
[    14.755] (II) modeset(0): Output eDP-1 using initial mode 1024x768 +0+0
[    14.755] (II) modeset(0): Output DP-1 using initial mode 1024x768 +0+0
(skipping a bunch of lines that seem unrelated - let me know if I should paste the whole thing)
[    15.141] (II) config/udev: Adding input device DP-1 (/dev/input/event10)
[    15.142] (**) DP-1: Applying InputClass "libinput keyboard catchall"
[    15.142] (II) Using input driver 'libinput' for 'DP-1'
[    15.142] (**) DP-1: always reports core events
[    15.142] (**) Option "Device" "/dev/input/event10"
[    15.142] (**) Option "_source" "server/udev"
[    15.144] (II) event10 - DP-1: is tagged by udev as: Keyboard Pointingstick
[    15.144] (II) event10 - DP-1: device is a pointer
[    15.144] (II) event10 - DP-1: device is a keyboard
[    15.145] (II) event10 - DP-1: device removed
[    15.161] (II) libinput: DP-1: needs a virtual subdevice
[    15.162] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:02.0/rc/rc0/input11/event10"
[    15.162] (II) XINPUT: Adding extended input device "DP-1" (type: MOUSE, id 9)
[    15.162] (**) Option "AccelerationScheme" "none"
[    15.162] (**) DP-1: (accel) selected scheme none/0
[    15.162] (**) DP-1: (accel) acceleration factor: 2.000
[    15.162] (**) DP-1: (accel) acceleration threshold: 4
[    15.164] (II) event10 - DP-1: is tagged by udev as: Keyboard Pointingstick
[    15.165] (II) event10 - DP-1: device is a pointer
[    15.165] (II) event10 - DP-1: device is a keyboard

不幸的是,我的Xorg.0.log.old来自同一天,有相同的问题,但我找到了去年的Xorg.1.log.old,它没有列出相同的eDP-1,但没有列出DP-1的任何信息,也没有将其归类为键盘或将其列为已连接的,最初的显示模式是1920x1080 (这是应该的):

代码语言:javascript
复制
    [   942.577] (II) modeset(0): EDID for output DP-1
    [   942.577] (II) modeset(0): EDID for output DP-2
    [   942.577] (II) modeset(0): EDID for output DP-3
    [   942.577] (II) modeset(0): Output eDP-1 connected
    [   942.577] (II) modeset(0): Output DP-1 disconnected
    [   942.577] (II) modeset(0): Output DP-2 disconnected
    [   942.577] (II) modeset(0): Output DP-3 disconnected
    [   942.577] (II) modeset(0): Using exact sizes for initial modes
    [   942.577] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0

我正在使用Xubuntu20.04和Xfce 4.14的ThinkPad P1。

EN

回答 2

Unix & Linux用户

发布于 2021-09-26 02:47:29

这不是一个很好的答案,因为在我花了几个小时研究解决方案之后,这个问题似乎已经解决了,但在我实现了一个新的解决方案之后就没有了,所以我不能确定到底是什么起了作用。但是,如果有人最终遇到了类似的问题,下面是我在重新启动、仍然存在问题的重启和修复问题的重启之间所做的最有意义的事情:

  • 我进入grub命令行并尝试了videoinfo命令(这给了我“错误:安全启动禁止加载模块”)。
  • 我进入了BIOS设置实用程序,并查看了周围的显示设置-我留给他们相同的设置,他们开始(“笔记本液晶显示器”),但可能只是进入该菜单导致了一些重新检查?

所以,有可能其中一件事情解决了问题--如果你有同样的问题的话,也许是值得去做的。或者是与我所做的一切完全无关的事情。

在任何情况下,我的Xorg.0.log和xrandr -q现在只显示一个连接的监视器,一切看起来都很正常,我奇怪的显示问题消失了。

代码语言:javascript
复制
[     7.927] (II) modeset(0): Output eDP-1 connected
[     7.927] (II) modeset(0): Output DP-1 disconnected
[     7.927] (II) modeset(0): Output DP-2 disconnected
[     7.927] (II) modeset(0): Output DP-3 disconnected
[     7.927] (II) modeset(0): Using exact sizes for initial modes
[     7.927] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0

另外:第二次出现这个问题时,当我的笔记本电脑用完电池时,它就修好了。(我不知道那次正常重启是否也会修复它--我没有尝试,因为我第一次遇到这个问题时,重新启动只会使它更糟。)

票数 0
EN

Unix & Linux用户

发布于 2022-06-08 20:04:30

来自ArchWiki:

在某些情况下,系统可以检测到不存在的监视器。若要禁用它,请查找幻影输出的名称,例如VGA1,然后用

代码语言:javascript
复制
$ xrandr --output VGA1 --off

要使其永久化,请在/etc/x11/xorg.conf.d/中的条目中添加以下内容:

代码语言:javascript
复制
/etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor"
    Identifier "VGA1"
    Option "Ignore" "true"
EndSection
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/670359

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档