질문

질문

질문

최근 약 60개의 다른 프로그램을 업데이트 한 후 pkgX 서버가 충돌했습니다.

dwm을 시작했는데 startx다음과 같은 오류 메시지가 표시되었습니다.

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_xauth1중간 으로 설정합니다 /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다시 실행

  1. tty를 변경하세요.
  2. 루트로 로그인하십시오.
  3. 달리기 ps:

    1337 v0 S 1:00:00 /usr/local/bin/X :0 -auth /home/user/.serverauth1323 (Xorg)
    
  4. kill 프로세스를 사용하십시오 kill -9.

  5. tty를 사용자가 로그인한 위치로 다시 변경합니다.

    이제 사용자는 명령 프롬프트를 다시 사용할 수 있습니다.

    그리고 xauth의 또 다른 메시지는 다음과 같습니다.

    xauth: (argv):1:  bad display name "pc-freebsd:0" in "remove" command
    
  6. 달리기 startx.

내 문제를 해결할 수 없습니다.

/home/user/.serverauth.*파일 삭제

이 파일들을 모두 삭제했지만 도움이 되지 않았습니다.

루트로 X 서버에 액세스해 보십시오.

  1. 루트로 로그인하십시오.
  2. 달리기 startx.

    흥미롭게도, 똑같은 오류 메시지가 표시되고 xauth현재 tty가 정지된 이후 tty를 변경해야 했지만 다른 많은 프로세스가 시작되었습니다.

    • 시니트
    • xterm (실제로는 3)
    • 대만
    • 시계

    이 모든 프로세스를 종료하려고 했지만 실행했을 때 pkill xclock전체 시스템이 정지되어 전원 버튼을 눌러야 했습니다.

켜기 enable_xauth로 설정합니다 .0/usr/local/bin/startx

~에 따르면forum.freebsd.org의 이 스레드(링크)해키 솔루션 enable_xauth은 .0/usr/local/bin/startx

그러나 그것은 나를 위해 작동하지 않습니다. xauth 메시지가 사라지지만 dwm시작되지도 않습니다.

모든 패키지를 다시 설치

모든 패키지를 다시 설치해 보기로 결정했습니다 pkg upgrade -f(영감:이 스레드(링크)).

재부팅 후 를 실행하고 startx잠시 후 전체 화면이 공백으로 바뀌고 화면 왼쪽 상단에 다소 큰 커서 블록만 나타납니다(글꼴 크기가 더 커진 것 같습니다).

tty를 전환한 후 즉시 다시 전환하면 usage: sleeps seconds스트림이 인쇄되는 것을 볼 수 있습니다.

원격 화면을 분리하세요

기기는 Dell 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 모드 설정또는 NVidia 드라이버 커널 모듈을 로드하는 방법에 /boot/loader.conf따라 파일을 선택할 수 있습니다./etc/rc.conf

그래서 in nvidia_load="YES"으로 변경한 후 dwm 세션에 들어갈 수 있었습니다.nvidia-modeset_load="YES"/boot/loader.conf

그동안 시스템을 FreeBSD 11.0으로 업그레이드했는데, 이것이 문제를 해결하는 데 필요한 전부인지 잘 모르겠습니다.

관련 정보