根据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
以这一行结尾:
[SSSSSS.MMM] (II) Server terminated successfully (0). Closing log file.
那么,简而言之,为什么这里有 2 个日志文件?
附件 1)xrandr 输出(按要求):
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)
答案1
xorg.conf 手册页是正确的,另一个 X 服务器已启动。
事实上,我在解锁计算机时意外更改了用户并打开了访客会话。此会话启动了第二个 X 服务器,并创建了该/var/log/Xorg.1.log
文件。