首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >为什么我的系统中同时存在/var/log/Xorg.0.log和/var/log/Xorg.1.log?

为什么我的系统中同时存在/var/log/Xorg.0.log和/var/log/Xorg.1.log?
EN

Ask Ubuntu用户
提问于 2017-08-30 12:06:19
回答 1查看 5.6K关注 0票数 5

根据xorg.conf手册页,日志文件应该是The default log file is /var/log/Xorg.n.log on most platforms, where n is the display number of the Xorg server.

因为我只运行一个X实例,所以我希望显示号为0。

但是今天这两个文件都被修改了,他的/var/log/Xorg.0.log似乎是当前的日志文件,因为/var/log/Xorg.1.log以行结尾:

代码语言:javascript
运行
复制
[SSSSSS.MMM] (II) Server terminated successfully (0). Closing log file.

那么,简单地说,为什么这里有2个日志文件?

(应要求)

代码语言:javascript
运行
复制
Screen 0: minimum 320 x 200, current 3200 x 1200, maximum 8192 x 8192
HDMI1 disconnected (normal left inverted right x axis y axis)
DP1 disconnected (normal left inverted right x axis y axis)
HDMI2 connected 1600x1200+1600+0 (normal left inverted right x axis y axis) 367mm x 275mm
   1600x1200     60.00*+
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
DP2 disconnected (normal left inverted right x axis y axis)
HDMI3 connected primary 1600x1200+0+0 (normal left inverted right x axis y axis) 367mm x 275mm
   1600x1200     60.00*+
   1280x1024     75.02    60.02  
   1152x864      75.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   640x480       75.00    59.94  
   720x400       70.08  
DP3 disconnected (normal left inverted right x axis y axis)
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2017-10-24 14:39:55

xorg.conf手册页是正确的,另一个X服务器已经启动。

实际上,我在打开计算机时意外地更改了用户,并打开了一个来宾会话。这个会话启动了第二个X服务器,创建了/var/log/Xorg.1.log文件。

票数 2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/951260

复制
相关文章

相似问题

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