免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 16447 | 回复: 7
打印 上一主题 下一主题

[FreeBSD] startx 失败 [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-08-10 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2016-07-20 16:20 |只看该作者 |倒序浏览
本帖最后由 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 2016  04: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.

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
2 [报告]
发表于 2016-07-22 01:24 |只看该作者
[    67.421] (EE) no screens found(EE)

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
3 [报告]
发表于 2016-07-22 01:25 |只看该作者
[    67.416] (EE) LoadModule: Module fbdevhw does not have a fbdevhwModuleData data object.

论坛徽章:
223
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-05-10 19:22:58操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:10操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
4 [报告]
发表于 2016-07-22 01:25 |只看该作者
请问你是不是在终端下执行statx指令,期望启动图形服务器??

论坛徽章:
0
5 [报告]
发表于 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

评分

参与人数 1可用积分 +8 信誉积分 +2 收起 理由
lsstarboy + 8 + 2 赞一个!

查看全部评分

论坛徽章:
54
2017金鸡报晓
日期:2017-02-08 10:39:42操作系统版块每日发帖之星
日期:2016-03-08 06:20:00操作系统版块每日发帖之星
日期:2016-03-07 06:20:00操作系统版块每日发帖之星
日期:2016-02-22 06:20:00操作系统版块每日发帖之星
日期:2016-01-29 06:20:00操作系统版块每日发帖之星
日期:2016-01-27 06:20:00操作系统版块每日发帖之星
日期:2016-01-20 06:20:00操作系统版块每日发帖之星
日期:2016-01-06 06:20:0015-16赛季CBA联赛之江苏
日期:2015-12-21 20:00:24操作系统版块每日发帖之星
日期:2015-12-21 06:20:00IT运维版块每日发帖之星
日期:2015-11-17 06:20:002015亚冠之广州恒大
日期:2015-11-12 10:58:02
6 [报告]
发表于 2016-07-23 15:20 |只看该作者
回复 5# zeissoctopus


看来vt还带来不少问题。   

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-08-10 06:20:00
7 [报告]
发表于 2016-07-23 17:50 |只看该作者
嗯嗯,是的回复 4# action08


   

论坛徽章:
1
操作系统版块每日发帖之星
日期:2016-08-10 06:20:00
8 [报告]
发表于 2016-07-23 17:51 |只看该作者
本帖最后由 Heavenser 于 2016-07-23 18:10 编辑

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


   
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP