![问题](https://linux22.com/image/95984/%E9%97%AE%E9%A2%98.png)
问题
最近更新了pkg
大约 60 个其他程序后,我的 X 服务器崩溃了。
我曾经用 启动 dwmstartx
但收到以下错误消息:
xauth: file /home/user/.serverauth.1323 does not exists xauth: (argv):1: bad display name "pc-freebsd:0" in "list" command xauth: (stdin):1: bad display name "pc-freebsd:0" in "add" command
信息
之后我不能在这个终端中做任何事情。
我知道这
startx
已经达到了,.xinitrc
因为我的~/.xinitrc
配置是当它被处理时会发出蜂鸣声。enable_xauth
设置为1
中/usr/local/bin/startx
.
Xorg.0.log
[ 131.714] X.Org X Server 1.17.4 Release Date: 2015-10-28 [ 131.714] X Protocol Version 11, Revision 0 [ 131.714] Build Operating System: FreeBSD 10.1-RELEASE-p39 amd64 [ 131.714] Current Operating System: FreeBSD pc-freebsd 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 [ 131.715] Build Date: 04 October 2016 06:28:38AM [ 131.715] [ 131.715] Current version of pixman: 0.34.0 [ 131.715] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 131.715] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 131.715] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Oct 10 23:11:24 2016 [ 131.759] (==) Using config file: "/etc/X11/xorg.conf" [ 131.760] (==) ServerLayout "X.org Configured" [ 131.760] (**) |-->Screen "Screen0" (0) [ 131.760] (**) | |-->Monitor "Monitor0" [ 131.760] (**) | |-->Device "Card0" [ 131.761] (**) |-->Input Device "Mouse0" [ 131.761] (**) |-->Input Device "Keyboard0" [ 131.761] (==) Automatically adding devices [ 131.761] (==) Automatically enabling devices [ 131.761] (==) Not automatically adding GPU devices [ 131.851] (**) FontPath set to: /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/, /usr/local/share/fonts/misc/, /usr/local/share/fonts/TTF/, /usr/local/share/fonts/OTF/, /usr/local/share/fonts/Type1/, /usr/local/share/fonts/100dpi/, /usr/local/share/fonts/75dpi/ [ 131.851] (**) ModulePath set to "/usr/local/lib/xorg/modules" [ 131.851] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled. [ 131.851] (WW) Disabling Mouse0 [ 131.851] (WW) Disabling Keyboard0 [ 131.851] (II) Loader magic: 0x801510 [ 131.851] (II) Module ABI versions: [ 131.851] X.Org ANSI C Emulation: 0.4 [ 131.851] X.Org Video Driver: 19.0 [ 131.851] X.Org XInput driver : 21.0 [ 131.851] X.Org Server Extension : 9.0 [ 131.852] (--) PCI:*(0:1:0:0) 10de:0dd6:1028:04b7 rev 161, Mem @ 0xd4000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x00004000/128, BIOS @ 0x????????/65536 [ 131.852] (II) "glx" will be loaded. This was enabled by default and also specified in the config file. [ 131.852] (II) LoadModule: "glx" [ 131.885] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 132.263] (II) Module glx: vendor="NVIDIA Corporation" [ 132.264] compiled for 4.0.2, module version = 1.0.0 [ 132.264] Module class: X.Org Server Extension [ 132.264] (II) NVIDIA GLX Module 367.44 Wed Aug 17 22:01:17 PDT 2016 [ 132.273] (II) LoadModule: "nvidia" [ 132.273] (II) Loading /usr/local/lib/xorg/modules/drivers/nvidia_drv.so [ 132.329] (II) Module nvidia: vendor="NVIDIA Corporation" [ 132.329] compiled for 4.0.2, module version = 1.0.0 [ 132.329] Module class: X.Org Video Driver [ 132.336] (II) NVIDIA dlloader X Driver 367.44 Wed Aug 17 21:41:06 PDT 2016 [ 132.336] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs [ 132.337] (--) Using syscons driver with X support (version 0.x) [ 132.337] (--) using VT number 9 [ 132.359] (II) Loading sub module "fb" [ 132.359] (II) LoadModule: "fb" [ 132.359] (II) Loading /usr/local/lib/xorg/modules/libfb.so [ 132.374] (II) Module fb: vendor="X.Org Foundation" [ 132.374] compiled for 1.17.4, module version = 1.0.0 [ 132.374] ABI class: X.Org ANSI C Emulation, version 0.4 [ 132.374] (II) Loading sub module "wfb" [ 132.374] (II) LoadModule: "wfb" [ 132.374] (II) Loading /usr/local/lib/xorg/modules/libwfb.so [ 132.380] (II) Module wfb: vendor="X.Org Foundation" [ 132.380] compiled for 1.17.4, module version = 1.0.0 [ 132.380] ABI class: X.Org ANSI C Emulation, version 0.4 [ 132.381] (II) Loading sub module "ramdac" [ 132.381] (II) LoadModule: "ramdac" [ 132.381] (II) Module "ramdac" already built-in [ 132.383] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 132.383] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32 [ 132.383] (==) NVIDIA(0): RGB weight 888 [ 132.383] (==) NVIDIA(0): Default visual is TrueColor [ 132.383] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0) [ 132.385] (**) NVIDIA(0): Enabling 2D acceleration [ 133.170] (II) NVIDIA(0): NVIDIA GPU GeForce GT 550M (GF106) at PCI:1:0:0 (GPU-0) [ 133.170] (--) NVIDIA(0): Memory: 1048576 kBytes [ 133.170] (--) NVIDIA(0): VideoBIOS: 70.06.32.00.04 [ 133.170] (II) NVIDIA(0): Detected PCI Express Link width: 16X [ 133.182] (II) NVIDIA(0): Validated MetaModes: [ 133.182] (II) NVIDIA(0): "NULL" [ 133.182] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480 [ 133.182] (WW) NVIDIA(0): Unable to get display device for DPI computation. [ 133.182] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default [ 133.182] (--) Depth 24 pixmap format is 32 bpp [ 133.182] (II) NVIDIA: Reserving 12288.00 MB of virtual memory for indirect memory [ 133.182] (II) NVIDIA: access. [ 133.322] (II) NVIDIA(0): Built-in logo is bigger than the screen. [ 133.323] (II) NVIDIA(0): Setting mode "NULL" [ 133.375] (==) NVIDIA(0): Disabling shared memory pixmaps [ 133.375] (==) NVIDIA(0): Backing store enabled [ 133.375] (==) NVIDIA(0): Silken mouse enabled [ 133.389] (==) NVIDIA(0): DPMS enabled [ 133.389] (II) Loading sub module "dri2" [ 133.389] (II) LoadModule: "dri2" [ 133.389] (II) Module "dri2" already built-in [ 133.389] (II) NVIDIA(0): [DRI2] Setup complete [ 133.389] (II) NVIDIA(0): [DRI2] VDPAU driver: nvidia [ 133.390] (--) RandR disabled [ 133.406] (II) Initializing extension GLX [ 133.406] (II) Indirect GLX disabled. [ 134.137] (II) config/devd: probing input devices... [ 134.137] (II) config/devd: adding input device (null) (/dev/kbdmux) [ 134.137] (II) LoadModule: "kbd" [ 134.149] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so [ 134.154] (II) Module kbd: vendor="X.Org Foundation" [ 134.154] compiled for 1.17.4, module version = 1.8.1 [ 134.154] Module class: X.Org XInput Driver [ 134.154] ABI class: X.Org XInput driver, version 21.0 [ 134.154] (II) Using input driver 'kbd' for 'kbdmux' [ 134.154] (**) kbdmux: always reports core events [ 134.154] (**) kbdmux: always reports core events [ 134.154] (**) Option "Protocol" "standard" [ 134.154] (**) Option "XkbRules" "base" [ 134.154] (**) Option "XkbModel" "pc105" [ 134.154] (**) Option "XkbLayout" "us" [ 134.154] (**) Option "config_info" "devd:kbdmux" [ 134.154] (II) XINPUT: Adding extended input device "kbdmux" (type: KEYBOARD, id 6) [ 134.161] (II) config/devd: kbdmux is enabled, ignoring device ukbd0 [ 134.161] (II) config/devd: kbdmux is enabled, ignoring device ukbd1 [ 134.161] (II) config/devd: kbdmux is enabled, ignoring device atkbd0 [ 134.161] (II) config/devd: adding input device (null) (/dev/sysmouse) [ 134.161] (II) LoadModule: "mouse" [ 134.161] (II) Loading /usr/local/lib/xorg/modules/input/mouse_drv.so [ 134.162] (II) Module mouse: vendor="X.Org Foundation" [ 134.162] compiled for 1.17.4, module version = 1.9.1 [ 134.162] Module class: X.Org XInput Driver [ 134.162] ABI class: X.Org XInput driver, version 21.0 [ 134.162] (II) Using input driver 'mouse' for 'sysmouse' [ 134.162] (**) sysmouse: always reports core events [ 134.162] (**) Option "Device" "/dev/sysmouse" [ 134.162] (==) sysmouse: Protocol: "Auto" [ 134.162] (**) sysmouse: always reports core events [ 134.162] (==) sysmouse: Emulate3Buttons, Emulate3Timeout: 50 [ 134.162] (**) sysmouse: ZAxisMapping: buttons 4 and 5 [ 134.162] (**) sysmouse: Buttons: 5 [ 134.162] (**) Option "config_info" "devd:sysmouse" [ 134.162] (II) XINPUT: Adding extended input device "sysmouse" (type: MOUSE, id 7) [ 134.162] (**) sysmouse: (accel) keeping acceleration scheme 1 [ 134.162] (**) sysmouse: (accel) acceleration profile 0 [ 134.162] (**) sysmouse: (accel) acceleration factor: 2.000 [ 134.162] (**) sysmouse: (accel) acceleration threshold: 4 [ 134.162] (II) sysmouse: SetupAuto: hw.iftype is 4, hw.model is 0 [ 134.162] (II) sysmouse: SetupAuto: protocol is SysMouse [ 134.163] (II) config/devd: device /dev/ums0 already opened [ 134.163] (II) config/devd: device /dev/ums1 already opened [ 134.163] (II) config/devd: device /dev/ums2 already opened [ 134.163] (II) config/devd: device /dev/psm0 already opened
我已经尝试过的
杀死进程并startx
再次运行
- 更改 tty.
- 以 root 身份登录。
跑步
ps
:1337 v0 S 1:00:00 /usr/local/bin/X :0 -auth /home/user/.serverauth1323 (Xorg)
使用 终止进程
kill -9
。将 tty 更改回用户登录的位置。
用户现在可以再次使用命令提示符。
还有来自 xauth 的另一条消息:
xauth: (argv):1: bad display name "pc-freebsd:0" in "remove" command
跑步
startx
。
不能解决我的问题。
删除/home/user/.serverauth.*
文件
我删除了所有这些文件,但没有帮助。
尝试以 root 身份访问 X 服务器
- 以 root 身份登录。
跑步
startx
。有趣的是,虽然我收到了完全相同的错误消息,
xauth
并且自从当前的 tty 冻结以来我不得不更改 tty,但许多其他进程启动了:- xinit
- xterm(实际上是 3 个)
- 台湾
- 时钟
我试图杀死所有这些进程,但是当我运行时,
pkill xclock
整个机器冻结了,我不得不使用电源按钮。
设置enable_xauth
为0
在/usr/local/bin/startx
.
根据forum.freebsd.org 上的此主题(链接)一个 hacky 解决方案可能是设置enable_xauth
为0
in /usr/local/bin/startx
。
然而它对我不起作用。 xauth 消息消失但dwm
也没有启动。
重新安装所有软件包
我决定尝试重新安装所有软件包pkg upgrade -f
(灵感:这个线程(链接))。
重新启动后,我运行startx
,一秒钟后整个屏幕变成空白,屏幕左上角只有一个相当大的光标块(看起来字体变大了)。
当我切换 tty 然后立即切换回来时,我可以看到usage: sleeps seconds
一直在打印的流。
拔掉远程屏幕插头
该机器是戴尔L702X。我使用外接显示器而不是笔记本电脑的默认屏幕。 My~/.xinitrc
包含以下几行,这些行禁用默认屏幕并将视频流传输到外部显示器(通过 HDMI 连接)。
xrandr --output DP-1 --off --output HDMI-0 --auto
xrandr --output HDMI-0 --rotate left
不幸的是,拔掉显示器的插头或注释掉这些行都无法解决问题。
答案1
显然,这与此事无关xauth
。
我应该/usr/ports/UPDATING
在更新之前阅读。
该问题与以下消息相关Xorg.0.log
:
[ 133.182] (II) NVIDIA(0): Validated MetaModes: [ 133.182] (II) NVIDIA(0): "NULL"
正如我们可以读到的/usr/ports/UPDATING
:
20160829:影响:x11/nvidia-driver 用户作者: [电子邮件受保护]
NVidia 驱动程序已更新至版本 367.35。从版本 358.09 开始,添加了新的内核模块 nvidia-modeset.ko。这个新的驱动程序组件与 nvidia.ko 内核模块结合使用,对 GPU 的显示引擎进行编程。
启动 X11 服务器时遇到挂起的用户,或观察
(II) NVIDIA(0): Validated MetaModes: (II) NVIDIA(0): "NULL"
文件中的消息
/var/log/Xorg.0.log
应替换英伟达 和Nvidia 模式集或文件,/boot/loader.conf
具体/etc/rc.conf
取决于他们喜欢如何加载 NVidia 驱动程序内核模块。
因此,在我更改nvidia_load="YES"
为nvidia-modeset_load="YES"
in后/boot/loader.conf
,我能够进入 dwm 会话。
同时,我将系统升级到 FreeBSD 11.0,所以我不确定这是否是解决问题所需的一切。