Heavenser 发表于 2016-07-20 16:20

startx 失败

本帖最后由 Heavenser 于 2016-07-20 16:31 编辑

引导模式是 UEFI。开启 Legacy Option ROM 或者直接用 Legacy BIOS 引导时 startx 没问题,如果不开启 Legacy Option ROM 就会导致 startx 失败。Xorg.0.log 中显示 libfbdevhw.so 加载失败,下面时完整的 log,希望大家帮我看看:
[    67.278]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[    67.278] X Protocol Version 11, Revision 0
[    67.278] Build Operating System: FreeBSD 10.1-RELEASE-p36 amd64
[    67.278] Current Operating System: FreeBSD heavenser 10.3-RELEASE-p4 FreeBSD 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016   root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
[    67.278] Build Date: 05 July 201604:35:36AM
[    67.278]
[    67.278] Current version of pixman: 0.34.0
[    67.278]         Before reporting problems, check
        to make sure that you have the latest version.
[    67.278] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    67.278] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 20 16:26:29 2016
[    67.279] (II) Loader magic: 0x801510
[    67.279] (II) Module ABI versions:
[    67.279]         X.Org ANSI C Emulation: 0.4
[    67.279]         X.Org Video Driver: 19.0
[    67.279]         X.Org XInput driver : 21.0
[    67.279]         X.Org Server Extension : 9.0
[    67.280] (--) PCI:*(0:0:2:0) 8086:0a16:1028:05ea rev 9, Mem @ 0xc0000000/4194304, 0xb0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536
[    67.280] (--) PCI: (0:3:0:0) 1002:6660:1028:05ea rev 0, Mem @ 0xa0000000/268435456, 0xc0500000/262144, I/O @ 0x00003000/256
[    67.280] (==) Using default built-in configuration (30 lines)
[    67.280] (==) --- Start of built-in configuration ---
[    67.280]         Section "Device"
[    67.280]                 Identifier        "Builtin Default intel Device 0"
[    67.280]                 Driver        "intel"
[    67.280]         EndSection
[    67.280]         Section "Screen"
[    67.280]                 Identifier        "Builtin Default intel Screen 0"
[    67.280]                 Device        "Builtin Default intel Device 0"
[    67.280]         EndSection
[    67.280]         Section "Device"
[    67.280]                 Identifier        "Builtin Default fbdev Device 0"
[    67.280]                 Driver        "fbdev"
[    67.280]         EndSection
[    67.280]         Section "Screen"
[    67.280]                 Identifier        "Builtin Default fbdev Screen 0"
[    67.280]                 Device        "Builtin Default fbdev Device 0"
[    67.280]         EndSection
[    67.280]         Section "Device"
[    67.280]                 Identifier        "Builtin Default vesa Device 0"
[    67.280]                 Driver        "vesa"
[    67.280]         EndSection
[    67.280]         Section "Screen"
[    67.280]                 Identifier        "Builtin Default vesa Screen 0"
[    67.280]                 Device        "Builtin Default vesa Device 0"
[    67.280]         EndSection
[    67.280]         Section "ServerLayout"
[    67.280]                 Identifier        "Builtin Default Layout"
[    67.280]                 Screen        "Builtin Default intel Screen 0"
[    67.280]                 Screen        "Builtin Default fbdev Screen 0"
[    67.280]                 Screen        "Builtin Default vesa Screen 0"
[    67.280]         EndSection
[    67.280] (==) --- End of built-in configuration ---
[    67.280] (==) ServerLayout "Builtin Default Layout"
[    67.280] (**) |-->Screen "Builtin Default intel Screen 0" (0)
[    67.280] (**) |   |-->Monitor "<default monitor>"
[    67.280] (**) |   |-->Device "Builtin Default intel Device 0"
[    67.280] (==) No monitor specified for screen "Builtin Default intel Screen 0".
        Using a default monitor configuration.
[    67.280] (**) |-->Screen "Builtin Default fbdev Screen 0" (1)
[    67.280] (**) |   |-->Monitor "<default monitor>"
[    67.280] (**) |   |-->Device "Builtin Default fbdev Device 0"
[    67.280] (==) No monitor specified for screen "Builtin Default fbdev Screen 0".
        Using a default monitor configuration.
[    67.280] (**) |-->Screen "Builtin Default vesa Screen 0" (2)
[    67.280] (**) |   |-->Monitor "<default monitor>"
[    67.281] (**) |   |-->Device "Builtin Default vesa Device 0"
[    67.281] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
        Using a default monitor configuration.
[    67.281] (==) Automatically adding devices
[    67.281] (==) Automatically enabling devices
[    67.281] (==) Not automatically adding GPU devices
[    67.286] (==) 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/
[    67.286] (==) ModulePath set to "/usr/local/lib/xorg/modules"
[    67.286] (II) The server relies on devd to provide the list of input devices.
        If no devices become available, reconfigure devd or disable AutoAddDevices.
[    67.286] (II) LoadModule: "glx"
[    67.287] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[    67.301] (II) Module glx: vendor="X.Org Foundation"
[    67.301]         compiled for 1.17.4, module version = 1.0.0
[    67.301]         ABI class: X.Org Server Extension, version 9.0
[    67.301] (==) AIGLX enabled
[    67.301] (II) LoadModule: "intel"
[    67.302] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[    67.305] (II) Module intel: vendor="X.Org Foundation"
[    67.305]         compiled for 1.17.4, module version = 2.21.15
[    67.305]         Module class: X.Org Video Driver
[    67.305]         ABI class: X.Org Video Driver, version 19.0
[    67.305] (II) LoadModule: "fbdev"
[    67.305] (II) Loading /usr/local/lib/xorg/modules/drivers/fbdev_drv.so
[    67.306] (II) Module fbdev: vendor="X.Org Foundation"
[    67.306]         compiled for 1.17.4, module version = 0.4.4
[    67.306]         Module class: X.Org Video Driver
[    67.306]         ABI class: X.Org Video Driver, version 19.0
[    67.306] (II) LoadModule: "vesa"
[    67.306] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[    67.306] (II) Module vesa: vendor="X.Org Foundation"
[    67.306]         compiled for 1.17.4, module version = 2.3.4
[    67.306]         Module class: X.Org Video Driver
[    67.306]         ABI class: X.Org Video Driver, version 19.0
[    67.306] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
        HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
        HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
        HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
        HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[    67.307] (II) FBDEV: driver for framebuffer: fbdev
[    67.307] (II) VESA: driver for VESA chipsets: vesa
[    67.307] (--) Using syscons driver with X support (version 0.x)
[    67.307] (--) using VT number 9

[    67.415] (II) Loading sub module "fbdevhw"
[    67.415] (II) LoadModule: "fbdevhw"
[    67.416] (II) Loading /usr/local/lib/xorg/modules/libfbdevhw.so
[    67.416] (EE) LoadModule: Module fbdevhw does not have a fbdevhwModuleData data object.
[    67.416] (II) UnloadModule: "fbdevhw"
[    67.416] (II) Unloading fbdevhw
[    67.416] (EE) Failed to load module "fbdevhw" (invalid module, 0)
[    67.416] (WW) Falling back to old probe method for fbdev
[    67.416] (II) Loading sub module "fbdevhw"
[    67.416] (II) LoadModule: "fbdevhw"
[    67.416] (II) Loading /usr/local/lib/xorg/modules/libfbdevhw.so
[    67.416] (EE) LoadModule: Module fbdevhw does not have a fbdevhwModuleData data object.
[    67.416] (II) UnloadModule: "fbdevhw"
[    67.416] (II) Unloading fbdevhw
[    67.416] (EE) Failed to load module "fbdevhw" (invalid module, 0)
[    67.417] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    67.417] (II) Loading sub module "vbe"
[    67.417] (II) LoadModule: "vbe"
[    67.417] (II) Loading /usr/local/lib/xorg/modules/libvbe.so
[    67.417] (II) Module vbe: vendor="X.Org Foundation"
[    67.417]         compiled for 1.17.4, module version = 1.1.0
[    67.417]         ABI class: X.Org Video Driver, version 19.0
[    67.417] (II) Loading sub module "int10"
[    67.417] (II) LoadModule: "int10"
[    67.418] (II) Loading /usr/local/lib/xorg/modules/libint10.so
[    67.420] (II) Module int10: vendor="X.Org Foundation"
[    67.420]         compiled for 1.17.4, module version = 1.0.0
[    67.420]         ABI class: X.Org Video Driver, version 19.0
[    67.420] (II) VESA(0): initializing int10
[    67.420] (EE) VESA(0): V_BIOS address 0x0 out of range
[    67.421] (II) UnloadModule: "vesa"
[    67.421] (II) UnloadSubModule: "int10"
[    67.421] (II) Unloading int10
[    67.421] (II) UnloadSubModule: "vbe"
[    67.421] (II) Unloading vbe
[    67.421] (EE) Screen(s) found, but none have a usable configuration.
[    67.421] (EE)
Fatal server error:
[    67.421] (EE) no screens found(EE)
[    67.421] (EE)
Please consult the The X.Org Foundation support
       at
for help.
[    67.421] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    67.421] (EE)
[    67.434] (EE) Server terminated with error (1). Closing log file.

action08 发表于 2016-07-22 01:24

[    67.421] (EE) no screens found(EE)

action08 发表于 2016-07-22 01:25

[    67.416] (EE) LoadModule: Module fbdevhw does not have a fbdevhwModuleData data object.

action08 发表于 2016-07-22 01:25

请问你是不是在终端下执行statx指令,期望启动图形服务器??

zeissoctopus 发表于 2016-07-22 18:29

现时 GENERIC 核心包含 syscon 和 vt 两种驱动

若以纯 UEFI 引导FreeBSD,预置用新 vt 驱动。
若以兼容 BIOS 模式引导 FreeBSD 则会用旧 syscon 驱动。

在 vt 环境内,是不兼容 Xorg VESA 驱动,详情看
https://wiki.freebsd.org/Newcons

所以楼主在 vt 环境内以 VESA 驱动 Xorg 是会失败

vt 环境内,当然使用 intel,radon 加速驱动最理想,若楼主的图型卡未受支援,
那么可以安装 x11-drivers/xf86-video-scfb 这是个兼容 vt 环境内非加速Xorg驱动,详情看
https://wiki.freebsd.org/Graphics/SCFB
http://www.freshports.org/x11-drivers/xf86-video-scfb/

简单答案

1. 安装 x11-drivers/xf86-video-scfb
2. 产生 /usr/local/etc/X11/xorg.conf.d/driver-scfb.conf
3. 确保 /boot/loader.conf 没有加载 i915 , i915kms
4. reboot
5. UEFI 内把Legancy Option ROM 关掉
6. 进入FreeBSD vt 环境执行 startx

lsstarboy 发表于 2016-07-23 15:20

回复 5# zeissoctopus


看来vt还带来不少问题。   

Heavenser 发表于 2016-07-23 17:50

嗯嗯,是的回复 4# action08


   

Heavenser 发表于 2016-07-23 17:51

本帖最后由 Heavenser 于 2016-07-23 18:10 编辑

谢谢!我去试一下回复 5# zeissoctopus


   
页: [1]
查看完整版本: startx 失败