From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NZamm-0004Jx-IB for garchives@archives.gentoo.org; Tue, 26 Jan 2010 02:04:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC0AEE0CB4 for ; Tue, 26 Jan 2010 02:04:07 +0000 (UTC) Received: from mail-pw0-f47.google.com (mail-pw0-f47.google.com [209.85.160.47]) by pigeon.gentoo.org (Postfix) with ESMTP id 53903E0A43 for ; Tue, 26 Jan 2010 01:03:36 +0000 (UTC) Received: by pwj10 with SMTP id 10so2934081pwj.26 for ; Mon, 25 Jan 2010 17:03:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ZZJabBPmMVgfcxPvz5K0blzFtGlrspPlDdJ7ArJU/aY=; b=pfs3OD+KZMwxsHXZexzNBgtT83fHQ6X+6i4SoFyDqkQ+7PBnzdXpcdThipg717OL7L 9AA9nsU3qhESnOye2BlEU9LFJ1YQNBJgRdcXlBdYr5B/EG2Ut8XXoe36hxdicu5wI/MK 5SwtFKKhKFq2iAzJFWo/8Vv4cz+uRJaAcuN4k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ujP8eJ0lhv37TcdfEmD1HN8RdQCMhlgMVgDUtt36DdribV4JKaD2muaHXJsJSFByxQ onno+CCyt0wiJx0QXfx/I7VTm7zQ4A29Hue4iQ1CArSJGIw0NcJ883mZlF963ATL96U+ gAdkl2TjYCSJXlCTqZUA0T84xnIFWjCfw9AKA= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@lists.gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Received: by 10.142.201.14 with SMTP id y14mr424950wff.95.1264467815726; Mon, 25 Jan 2010 17:03:35 -0800 (PST) In-Reply-To: References: <5bdc1c8b1001251520x3aae67b6ld7ba028d365eb757@mail.gmail.com> Date: Mon, 25 Jan 2010 17:03:35 -0800 Message-ID: <5bdc1c8b1001251703u53085a6bj94c1fc6f2a05efca@mail.gmail.com> Subject: Re: [gentoo-amd64] Re: video driver / system state question From: Mark Knecht To: gentoo-amd64@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 37a1a7e0-05bc-4bdf-8093-31999f35541f X-Archives-Hash: b0cc6e0f8e9810a71ea52a922e84739c On Mon, Jan 25, 2010 at 4:10 PM, Nikos Chantziaras wrote: > On 01/26/2010 01:20 AM, Mark Knecht wrote: >> >> Hi, >> =C2=A0 =C2=A0I've been working on trying to get this new machine to run = X. So >> far no luck but I'm learning so it's interesting. >> >> =C2=A0 =C2=A0My quick question goes like this - if I boot with no driver= s I get >> a VGA console. If I modprobe a frame buffer driver at boot time then I >> get a nice looking but slow frame buffer console. All good so far. >> However my graphics adapter is supposed to use the i915 driver and >> when I modprobe that - either in auto-load or at the command like >> after logging in - my screen goes 'black'. I'm wondering what I do - >> other than look at what's in dmesg - to figure out what state the >> machine is in. Is the screen turned off? Is the driver running and >> putting out 'black'? > > I might be wrong, but it sounds like the driver tries to use KMS (kernel > mode setting) which conflicts with other framebuffer drivers (KMS provide= s a > fast framebuffer console on its own). > > So two things to try here: > > A. Completely disable the vesafb driver. > B. Disable KMS in the i915 driver: > =C2=A0 . When built as a module, use the "modeset=3D0" parameter > =C2=A0 . When built in the kernel, use "i915.modeset=3D0" in Grub > > Of course this assumes that KMS is indeed the problem. First - answering Bob - I don't *think* the monitor is being driven beyond spec because at least in the past when I did that the monitor pops up a display that says the input is out of spec. Still, I'll keep it in mind. OK, so for A I think the frame buffer is turned off, but if there something more I need to do let me know. IIRC the few that are modular are GPL stuff being selected by either the Intel DRM or i915 driver, but I'll double check. firefly linux # cat .config | grep FRAMEBUFFER # CONFIG_FRAMEBUFFER_CONSOLE is not set firefly linux # cat .config | grep FB CONFIG_FB=3Dm # CONFIG_FB_DDC is not set # CONFIG_FB_BOOT_VESA_SUPPORT is not set CONFIG_FB_CFB_FILLRECT=3Dm CONFIG_FB_CFB_COPYAREA=3Dm CONFIG_FB_CFB_IMAGEBLIT=3Dm # CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set # CONFIG_FB_SYS_FILLRECT is not set # CONFIG_FB_SYS_COPYAREA is not set # CONFIG_FB_SYS_IMAGEBLIT is not set # CONFIG_FB_FOREIGN_ENDIAN is not set # CONFIG_FB_SYS_FOPS is not set # CONFIG_FB_SVGALIB is not set # CONFIG_FB_MACMODES is not set # CONFIG_FB_BACKLIGHT is not set CONFIG_FB_MODE_HELPERS=3Dy # CONFIG_FB_TILEBLITTING is not set # CONFIG_FB_CIRRUS is not set # CONFIG_FB_PM2 is not set # CONFIG_FB_CYBER2000 is not set # CONFIG_FB_ARC is not set # CONFIG_FB_VGA16 is not set # CONFIG_FB_N411 is not set # CONFIG_FB_HGA is not set # CONFIG_FB_S1D13XXX is not set # CONFIG_FB_NVIDIA is not set # CONFIG_FB_RIVA is not set # CONFIG_FB_LE80578 is not set # CONFIG_FB_INTEL is not set # CONFIG_FB_MATROX is not set # CONFIG_FB_RADEON is not set # CONFIG_FB_ATY128 is not set # CONFIG_FB_ATY is not set # CONFIG_FB_S3 is not set # CONFIG_FB_SAVAGE is not set # CONFIG_FB_SIS is not set # CONFIG_FB_VIA is not set # CONFIG_FB_NEOMAGIC is not set # CONFIG_FB_KYRO is not set # CONFIG_FB_3DFX is not set # CONFIG_FB_VOODOO1 is not set # CONFIG_FB_VT8623 is not set # CONFIG_FB_TRIDENT is not set # CONFIG_FB_ARK is not set # CONFIG_FB_PM3 is not set # CONFIG_FB_CARMINE is not set # CONFIG_FB_GEODE is not set # CONFIG_FB_VIRTUAL is not set # CONFIG_FB_METRONOME is not set # CONFIG_FB_MB862XX is not set # CONFIG_FB_BROADSHEET is not set firefly linux # cat .config | grep VESAFB firefly linux # cat .config | grep VESA # CONFIG_FB_BOOT_VESA_SUPPORT is not set firefly linux # As for B, it's modular overall but already turned off for the i915: firefly linux # cat .config | grep KMS CONFIG_DRM_KMS_HELPER=3Dm # CONFIG_DRM_I915_KMS is not set firefly linux # Is there an app that can query what resolution and frequency the system thinks it's driving the monitor? Again, this isn't X - it's just the driver getting loaded. None the less I have LOTS of data from running drm.debug=3D0x06. If there's a way to use it more intelligently I'd love to learn. I'll go back and check whether this was with frame buffer turned on. See the very last couple of lines as to why. But mostly the modeline suff is interesting as I think those really are the two monitors that are attached. I've got a 17" 1280x1024 on the VGA port and a 1680x1050 on the digital port. I'm not using HDMI is the part that concerns me unless the HDMI and the new, rectangular digital VGA are really one in the same. Anyway, there's lots of data there, and as I said earlier, I can run console mode frame buffer which may be where some of this data came from. i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 i915 0000:00:02.0: setting latency timer to 64 mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combin= ing [drm] MTRR allocation failed. Graphics performance may suffer. [drm] set up 31M of stolen space [drm:intel_dp_i2c_init], i2c_init DPDDC-C [drm:intel_dp_i2c_init], i2c_init DPDDC-D [drm:drm_helper_probe_single_connector_modes], VGA-1 [drm:drm_helper_probe_single_connector_modes], Probed modes for VGA-1 [drm:drm_mode_debug_printmodeline], Modeline 39:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x48 0x5 [drm:drm_mode_debug_printmodeline], Modeline 35:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 30:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 24:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 36:"1024x768" 75 78750 1024 1040 1136 1312 768 769 772 800 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 25:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 32:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 27:"832x624" 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 29:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 37:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 33:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 17:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 38:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 19:"640x480" 73 31500 640 664 704 832 480 489 491 520 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 20:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 21:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 34:"640x480" 60 25175 640 656 752 800 480 489 492 525 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 22:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6 [drm:drm_helper_probe_single_connector_modes], HDMI Type A-1 [drm:drm_helper_probe_single_connector_modes], HDMI Type A-1 is disconnecte= d [drm:drm_helper_probe_single_connector_modes], HDMI Type A-2 usb 1-1: new high speed USB device using ehci_hcd and address 2 [drm:drm_helper_probe_single_connector_modes], Probed modes for HDMI Type A= -2 [drm:drm_mode_debug_printmodeline], Modeline 54:"1680x1050" 60 119000 1680 1728 1760 1840 1050 1053 1059 1080 0x48 0x9 [drm:drm_mode_debug_printmodeline], Modeline 50:"1680x1050" 60 146250 1680 1784 1960 2240 1050 1053 1059 1089 0x40 0x6 [drm:drm_mode_debug_printmodeline], Modeline 42:"1280x1024" 75 135000 1280 1296 1440 1688 1024 1025 1028 1066 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 51:"1280x1024" 60 108000 1280 1328 1440 1688 1024 1025 1028 1066 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 52:"1280x960" 60 108000 1280 1376 1488 1800 960 961 964 1000 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 53:"1152x864" 75 108000 1152 1216 1344 1600 864 865 868 900 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 43:"1024x768" 75 78800 1024 1040 1136 1312 768 769 772 800 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 44:"1024x768" 70 75000 1024 1048 1184 1328 768 771 777 806 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 45:"1024x768" 60 65000 1024 1048 1184 1344 768 771 777 806 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 46:"832x624" 75 57284 832 864 928 1152 624 625 628 667 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 48:"800x600" 72 50000 800 856 976 1040 600 637 643 666 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 47:"800x600" 75 49500 800 816 896 1056 600 601 604 625 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 18:"800x600" 60 40000 800 840 968 1056 600 601 605 628 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 23:"800x600" 56 36000 800 824 896 1024 600 601 603 625 0x40 0x5 [drm:drm_mode_debug_printmodeline], Modeline 28:"640x480" 73 31500 640 664 704 832 480 489 491 520 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 26:"640x480" 75 31500 640 656 720 840 480 481 484 500 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 31:"640x480" 67 30240 640 704 768 864 480 483 486 525 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 40:"640x480" 60 25200 640 656 752 800 480 490 492 525 0x40 0xa [drm:drm_mode_debug_printmodeline], Modeline 41:"720x400" 70 28320 720 738 846 900 400 412 414 449 0x40 0x6 [drm:drm_helper_probe_single_connector_modes], DisplayPort-1 [drm:drm_helper_probe_single_connector_modes], DisplayPort-1 is disconnecte= d [drm:drm_helper_probe_single_connector_modes], DisplayPort-2 [drm:drm_helper_probe_single_connector_modes], DisplayPort-2 is disconnecte= d [drm:drm_setup_crtcs], [drm:drm_enable_connectors], connector 5 enabled? yes [drm:drm_enable_connectors], connector 7 enabled? no [drm:drm_enable_connectors], connector 9 enabled? yes [drm:drm_enable_connectors], connector 11 enabled? no [drm:drm_enable_connectors], connector 13 enabled? no [drm:drm_target_preferred], looking for cmdline mode on connector 5 [drm:drm_target_preferred], looking for preferred mode on connector 5 [drm:drm_target_preferred], found mode 1280x1024 [drm:drm_target_preferred], looking for cmdline mode on connector 9 [drm:drm_target_preferred], looking for preferred mode on connector 9 [drm:drm_target_preferred], found mode 1680x1050 [drm:drm_setup_crtcs], picking CRTCs for 8192x8192 config [drm:drm_setup_crtcs], desired mode 1280x1024 set on crtc 3 [drm:drm_setup_crtcs], desired mode 1680x1050 set on crtc 4 fb0: inteldrmfb frame buffer device registered panic notifier [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0 Thanks! Cheers, Mark