From owner-freebsd-x11@FreeBSD.ORG Fri Jul 19 19:38:24 2013 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A26F79B8 for ; Fri, 19 Jul 2013 19:38:24 +0000 (UTC) (envelope-from johnjen@reynoldsnet.org) Received: from fed1rmfepo102.cox.net (fed1rmfepo102.cox.net [68.230.241.144]) by mx1.freebsd.org (Postfix) with ESMTP id 7ECD9D9D for ; Fri, 19 Jul 2013 19:38:24 +0000 (UTC) Received: from fed1rmimpo210 ([68.230.241.161]) by fed1rmfepo102.cox.net (InterMail vM.8.01.05.09 201-2260-151-124-20120717) with ESMTP id <20130719193818.TAZI3896.fed1rmfepo102.cox.net@fed1rmimpo210> for ; Fri, 19 Jul 2013 15:38:18 -0400 Received: from ip70-162-30-130.ph.ph.cox.net ([70.162.30.130]) by fed1rmimpo210 with cox id 2Ke71m00U2oShb201Ke7Ej; Fri, 19 Jul 2013 15:38:07 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020204.51E995AA.001D,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.0 cv=drIF/Sc4 c=1 sm=1 a=niybPLZ33vM10MUkQ8CgDg==:17 a=WIJ4OnAGe2cA:10 a=_Vc96qyPkJ0A:10 a=ktNfuVtv0skA:10 a=05pWP5ZVAAAA:8 a=NPKQ2mfQzCYA:10 a=6I5d2MoRAAAA:8 a=ST7H3LAl3_pkQsJCHZoA:9 a=wPNLvfGTeEIA:10 a=FAmZjCL_OdQA:10 a=AK1cinnxW4KeWk7HE-sA:9 a=_W_S_7VecoQA:10 a=v31ffaCC7ePPNMZR:21 a=niybPLZ33vM10MUkQ8CgDg==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from [192.168.1.16] (mussel.home-net [192.168.1.16]) by ip70-162-30-130.ph.ph.cox.net (8.14.6/8.14.6) with ESMTP id r6JCRRUj097716 for ; Fri, 19 Jul 2013 12:27:28 GMT (envelope-from johnjen@reynoldsnet.org) Message-ID: <51E99691.1090808@reynoldsnet.org> Date: Fri, 19 Jul 2013 12:42:09 -0700 From: John Reynolds User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: x11@freebsd.org Subject: Need help untangling Xorg behavior on Haswell board, KMS, etc. etc. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jul 2013 19:38:24 -0000 Hello all, I recently put together a new box with very new hardware--an ASRock Z87 "haswell" board with i-4770k proc. I've successfully installed 9.2-PRERELEASE (amd64) on it with the help of some folks on -stable, but am having a heck of a time trying to get Xorg working. I've used FreeBSD for years and years but have always used Nvidia cards and their config tool always just barfed out an xorg.conf file that worked no fuss no muss. I'm trying like crazy to get this integrated GPU to work. I did some research and found out that I needed WITH_NEW_XORG=1 in /etc/make.conf and I've got that all compiled now with a ports tree freshly updated via portsnap. I have xorg 7.7 port and all of things it pulls in including version 2.21.9 of the xf86-video-intel port. Could some kind soul out there give me some pointers on what the "preferred" method for setting up X should be at this point using the "new" Xorg and this very new H/W? If I do what the handbook and other tutorials say to do and run Xorg -configure that creates me a file that defines two screens/monitors, etc. That's great and all, but I don't use a dual-head setup. yes, I can hack the file and take out the other monitor stuff. But my buddy who lives in the Linux world asked me "why are you creating a xorg.conf file? I haven't used one in YEARS. You don't hardly need one for 'modern' hardware where everything is probable and works nicely with each other." So that got me to wondering "yeah, why am i creating it?" So, in the expert opinion of people working actively with Xorg on this list, what should "most people" do (most people buying 'modern' hardware these days and not using CRT monitors from the 1980's anymore :)? I have fired up "xinit" (using just a simplistic .xinitrc and a tmp non-root user for testing) with the setup file created from above AND without any setup file at all. Both seem to work. xdpyinfo shows that the resolution is 1920x1200 which I want by default, color depth seems fine, etc. What is the "preferred" setup style? Now onto the problems / questions: No matter what I do whether firing up with the xorg.conf file or without anything, if I exit the window manager and expect to come back to the console it doesn't do it. It just locks the machine HARD. I searched quite a bit about this and on this list's archives (here ) I see some mention that something called KMS is now being used in the Intel driver/Xorg and that something doesn't react well with our newcons console driver. What exactly is KMS and why is it important? Also if I look at my Xorg.0.log file as it's firing up I get tons of messages about dri devices not being found, etc. [ 41.710] drmOpenDevice: node name is /dev/dri/card0 [ 41.710] Failed to change owner or group for file /dev/dri! 2: No such file or directory [ 41.710] Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory [ 41.710] drmOpenDevice: open result is -1, (No such file or directory) [ 41.710] Failed to change owner or group for file /dev/dri/card0! 2: No such file or directory [ 41.710] drmOpenDevice: open result is -1, (No such file or directory) [ 41.710] drmOpenDevice: Open failed [ 41.710] drmOpenByBusid: Searching for BusID pci:0000:00:02.0 Is there something that must be done in a custom kernel or something to remedy this? I have dri-8.0.5_3,2 installed and right now I am just running the GENERIC kernel from the install. Thanks in advance to any/all who respond! -Jr