Date: Fri, 24 Feb 2017 17:44:33 +0100 From: Mathias Picker <Mathias.Picker@virtual-earth.de> To: freebsd-x11@freebsd.org Subject: XServer 1.18 on Lenovo T520/SandyBridge: need to load i915kms manually Message-ID: <1487954673.2937.3.camel@virtual-earth.de>
next in thread | raw e-mail | index | archive | help
Thanks for the update, it's working fine on my X230t/IvyBridge using the modesetting driver! I had some troubles on my T520: only the vesa driver worked, so I'm was at a wrong resolution and without my external monitor :( :( :( After some testing I discovered that everything starts to work if I load i915kms before starting X. So it works for me now, too. I'm writing up my configuration so it can be fixed and/or someone else with this problem can find the workaround. I'm running a fresh 11-STABLE: crest2% uname -a FreeBSD crest2 11.0-STABLE FreeBSD 11.0-STABLE #2 r314150M: Thu Feb 23 20:19:45 CET 2017 mathiasp@crest2:/usr/obj/usr/src/sys/GENERIC amd 64 pciconf output for the card: vgapci0@pci0:0:2:0: class=0x030000 card=0x21cf17aa chip=0x01168086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = '2nd Generation Core Processor Family Integrated Graphics Controller' class = display subclass = VGA X doesn't load the card when i915kms is not loaded before: info: [drm] Initialized drm 1.1.0 20060810 (thats it) If I load i915kms manually everything is fine: info: [drm] Initialized drm 1.1.0 20060810 drmn0: <Intel SandyBridge (M)> on vgapci0 info: [drm] Memory usable by graphics device = 2048M info: [drm] MTRR allocation failed. Graphics performance may suffer. intel_iicbb0 on drmn0 --- snip ---- If someone wants to fix this and needs more information or testing just ask. Thanks for your hard work! Mathias P.S.: This is the xorg.0.log up to the driver selection if i915kms is not loaded: [ 4233.618] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 4233.618] X Protocol Version 11, Revision 0 [ 4233.618] Build Operating System: FreeBSD 11.0-RELEASE-p7 amd64 [ 4233.618] Current Operating System: FreeBSD crest2.fritz.box 11.0- STABLE FreeBSD 11.0-STABLE #2 r314150M: Thu Feb 23 20:19:45 CET 2017 mathiasp@crest2.fritz.box:/usr/obj/usr/src/sys/GENERIC amd64 [ 4233.619] Build Date: 19 February 2017 02:08:35AM [ 4233.619] [ 4233.619] Current version of pixman: 0.34.0 [ 4233.619] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 4233.619] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 4233.619] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb 24 16:13:00 2017 [ 4233.619] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 4233.620] (==) No Layout section. Using the first Screen section. [ 4233.620] (==) No screen section available. Using defaults. [ 4233.620] (**) |-->Screen "Default Screen Section" (0) [ 4233.620] (**) | |-->Monitor "<default monitor>" [ 4233.620] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 4233.620] (==) Automatically adding devices [ 4233.620] (==) Automatically enabling devices [ 4233.620] (==) Not automatically adding GPU devices [ 4233.620] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 4233.620] (==) 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/ [ 4233.620] (==) ModulePath set to "/usr/local/lib/xorg/modules" [ 4233.620] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 4233.620] (II) Loader magic: 0x813b60 [ 4233.620] (II) Module ABI versions: [ 4233.620] X.Org ANSI C Emulation: 0.4 [ 4233.620] X.Org Video Driver: 20.0 [ 4233.620] X.Org XInput driver : 22.1 [ 4233.620] X.Org Server Extension : 9.0 [ 4233.620] (--) PCI:*(0:0:2:0) 8086:0116:17aa:21cf rev 9, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536 [ 4233.621] (II) LoadModule: "glx" [ 4233.621] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 4233.623] (II) Module glx: vendor="X.Org Foundation" [ 4233.623] compiled for 1.18.4, module version = 1.0.0 [ 4233.623] ABI class: X.Org Server Extension, version 9.0 [ 4233.623] (==) AIGLX enabled [ 4233.623] (==) Matched intel as autoconfigured driver 0 [ 4233.623] (==) Matched modesetting as autoconfigured driver 1 [ 4233.623] (==) Matched scfb as autoconfigured driver 2 [ 4233.623] (==) Matched vesa as autoconfigured driver 3 [ 4233.623] (==) Assigned the driver to the xf86ConfigLayout [ 4233.623] (II) LoadModule: "intel" [ 4233.623] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so [ 4233.624] (II) Module intel: vendor="X.Org Foundation" [ 4233.624] compiled for 1.18.4, module version = 2.99.917 [ 4233.624] Module class: X.Org Video Driver [ 4233.624] ABI class: X.Org Video Driver, version 20.0 [ 4233.624] (II) LoadModule: "modesetting" [ 4233.624] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so [ 4233.624] (II) Module modesetting: vendor="X.Org Foundation" [ 4233.624] compiled for 1.18.4, module version = 1.18.4 [ 4233.624] Module class: X.Org Video Driver [ 4233.624] ABI class: X.Org Video Driver, version 20.0 [ 4233.624] (II) LoadModule: "scfb" [ 4233.625] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so [ 4233.625] (II) Module scfb: vendor="X.Org Foundation" [ 4233.625] compiled for 1.18.4, module version = 0.0.4 [ 4233.625] ABI class: X.Org Video Driver, version 20.0 [ 4233.625] (II) LoadModule: "vesa" [ 4233.625] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so [ 4233.625] (II) Module vesa: vendor="X.Org Foundation" [ 4233.625] compiled for 1.18.4, module version = 2.3.4 [ 4233.625] Module class: X.Org Video Driver [ 4233.626] ABI class: X.Org Video Driver, version 20.0 [ 4233.626] (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 [ 4233.627] (II) intel: Driver for Intel(R) HD Graphics [ 4233.627] (II) intel: Driver for Intel(R) Iris(TM) Graphics [ 4233.627] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics [ 4233.627] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 4233.627] (II) scfb: driver for wsdisplay framebuffer: scfb [ 4233.627] (II) VESA: driver for VESA chipsets: vesa [ 4233.627] (--) Using syscons driver with X support (version 16777218.0) [ 4233.627] (--) using VT number 9 [ 4233.651] (EE) open /dev/dri/card0: No such file or directory [ 4233.651] (WW) Falling back to old probe method for modesetting [ 4233.651] (EE) open /dev/dri/card0: No such file or directory [ 4233.651] (WW) Falling back to old probe method for scfb [ 4233.651] scfb trace: probe start [ 4233.651] scfb trace: probe done [ 4233.651] (WW) VGA arbiter: cannot open kernel arbiter, no multi- card support [ 4233.651] (EE) Screen 0 deleted because of no matching config section. [ 4233.651] (II) UnloadModule: "modesetting" [ 4233.651] (II) Loading sub module "vbe" [ 4233.651] (II) LoadModule: "vbe" [ 4233.651] (II) Loading /usr/local/lib/xorg/modules/libvbe.so [ 4233.651] (II) Module vbe: vendor="X.Org Foundation" [ 4233.651] compiled for 1.18.4, module version = 1.1.0 [ 4233.652] ABI class: X.Org Video Driver, version 20.0 [ 4233.652] (II) Loading sub module "int10" [ 4233.652] (II) LoadModule: "int10" [ 4233.652] (II) Loading /usr/local/lib/xorg/modules/libint10.so [ 4233.652] (II) Module int10: vendor="X.Org Foundation" [ 4233.652] compiled for 1.18.4, module version = 1.0.0 [ 4233.652] ABI class: X.Org Video Driver, version 20.0 [ 4233.652] (II) VESA(0): initializing int10 [ 4233.652] (II) VESA(0): Bad V_BIOS checksum [ 4233.652] (II) VESA(0): Primary V_BIOS segment is: 0xc000 [ 4233.653] (II) VESA(0): VESA BIOS detected and this if it's loaded: [ 91.983] X.Org X Server 1.18.4 Release Date: 2016-07-19 [ 91.983] X Protocol Version 11, Revision 0 [ 91.983] Build Operating System: FreeBSD 11.0-RELEASE-p7 amd64 [ 91.983] Current Operating System: FreeBSD crest2.fritz.box 11.0- STABLE FreeBSD 11.0-STABLE #1 r312944M: Thu Feb 9 12:08:37 CET 2017 mathiasp@crest2.fritz.box:/usr/obj/usr/src/sys/GENERIC amd64 [ 91.984] Build Date: 19 February 2017 02:08:35AM [ 91.984] [ 91.984] Current version of pixman: 0.34.0 [ 91.984] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 91.984] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 91.984] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Feb 24 17:04:18 2017 [ 91.988] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d" [ 91.988] (==) No Layout section. Using the first Screen section. [ 91.988] (==) No screen section available. Using defaults. [ 91.988] (**) |-->Screen "Default Screen Section" (0) [ 91.988] (**) | |-->Monitor "<default monitor>" [ 91.989] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 91.989] (==) Automatically adding devices [ 91.989] (==) Automatically enabling devices [ 91.989] (==) Not automatically adding GPU devices [ 91.989] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 91.994] (==) 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/ [ 91.994] (==) ModulePath set to "/usr/local/lib/xorg/modules" [ 91.994] (II) The server relies on devd to provide the list of input devices. If no devices become available, reconfigure devd or disable AutoAddDevices. [ 91.994] (II) Loader magic: 0x813b60 [ 91.994] (II) Module ABI versions: [ 91.994] X.Org ANSI C Emulation: 0.4 [ 91.995] X.Org Video Driver: 20.0 [ 91.995] X.Org XInput driver : 22.1 [ 91.995] X.Org Server Extension : 9.0 [ 91.995] (--) PCI:*(0:0:2:0) 8086:0116:17aa:21cf rev 9, Mem @ 0xf0000000/4194304, 0xe0000000/268435456, I/O @ 0x00005000/64, BIOS @ 0x????????/65536 [ 91.995] (II) LoadModule: "glx" [ 91.996] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so [ 92.010] (II) Module glx: vendor="X.Org Foundation" [ 92.010] compiled for 1.18.4, module version = 1.0.0 [ 92.010] ABI class: X.Org Server Extension, version 9.0 [ 92.010] (==) AIGLX enabled [ 92.010] (==) Matched intel as autoconfigured driver 0 [ 92.010] (==) Matched modesetting as autoconfigured driver 1 [ 92.010] (==) Matched scfb as autoconfigured driver 2 [ 92.010] (==) Matched vesa as autoconfigured driver 3 [ 92.010] (==) Assigned the driver to the xf86ConfigLayout [ 92.010] (II) LoadModule: "intel" [ 92.012] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so [ 92.017] (II) Module intel: vendor="X.Org Foundation" [ 92.017] compiled for 1.18.4, module version = 2.99.917 [ 92.017] Module class: X.Org Video Driver [ 92.018] ABI class: X.Org Video Driver, version 20.0 [ 92.018] (II) LoadModule: "modesetting" [ 92.018] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so [ 92.019] (II) Module modesetting: vendor="X.Org Foundation" [ 92.019] compiled for 1.18.4, module version = 1.18.4 [ 92.019] Module class: X.Org Video Driver [ 92.019] ABI class: X.Org Video Driver, version 20.0 [ 92.019] (II) LoadModule: "scfb" [ 92.020] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so [ 92.020] (II) Module scfb: vendor="X.Org Foundation" [ 92.020] compiled for 1.18.4, module version = 0.0.4 [ 92.021] ABI class: X.Org Video Driver, version 20.0 [ 92.021] (II) LoadModule: "vesa" [ 92.021] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so [ 92.022] (II) Module vesa: vendor="X.Org Foundation" [ 92.022] compiled for 1.18.4, module version = 2.3.4 [ 92.022] Module class: X.Org Video Driver [ 92.022] ABI class: X.Org Video Driver, version 20.0 [ 92.022] (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 [ 92.023] (II) intel: Driver for Intel(R) HD Graphics [ 92.023] (II) intel: Driver for Intel(R) Iris(TM) Graphics [ 92.023] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics [ 92.023] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 92.024] (II) scfb: driver for wsdisplay framebuffer: scfb [ 92.024] (II) VESA: driver for VESA chipsets: vesa [ 92.024] (--) Using syscons driver with X support (version 16777218.0) [ 92.024] (--) using VT number 9 [ 92.027] (WW) Falling back to old probe method for modesetting [ 92.028] (WW) Falling back to old probe method for scfb [ 92.028] scfb trace: probe start [ 92.028] scfb trace: probe done [ 92.028] (WW) Falling back to old probe method for vesa [ 92.028] (WW) VGA arbiter: cannot open kernel arbiter, no multi- card support [ 92.028] (II) intel(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 24/32 [ 92.028] (==) intel(0): Depth 24, (--) framebuffer bpp 32 [ 92.028] (==) intel(0): RGB weight 888 [ 92.028] (==) intel(0): Default visual is TrueColor [ 92.028] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 3000 -- "All of this is for nothing if we don't go to the stars" - JMS/B5
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1487954673.2937.3.camel>