From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 846411381F3 for ; Tue, 18 Dec 2012 08:19:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5912221C06A; Tue, 18 Dec 2012 08:19:23 +0000 (UTC) Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 7E64C21C003 for ; Tue, 18 Dec 2012 08:18:04 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwKAG6Zu09FxLGA/2dsb2JhbABEsnYDgRiBCIIVAQEEAScTHCgLCxgcEhQlN4gJBQu5fosIWoQAYgOIQoR8h1yBEIRPiDqBWIMH X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="210154130" Received: from 69-196-177-128.dsl.teksavvy.com (HELO waltdnes.org) ([69.196.177.128]) by ironport2-out.teksavvy.com with SMTP; 18 Dec 2012 03:18:02 -0500 Received: by waltdnes.org (sSMTP sendmail emulation); Tue, 18 Dec 2012 03:17:59 -0500 From: "Walter Dnes" Date: Tue, 18 Dec 2012 03:17:59 -0500 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] xorg.conf tweaks for HTPC machine? Message-ID: <20121218081758.GA13736@waltdnes.org> References: <20121217162311.GA11172@waltdnes.org> <50CF65AE.4020308@coolmail.se> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50CF65AE.4020308@coolmail.se> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: ebb421db-1db1-44e8-a638-c68e181fe2ad X-Archives-Hash: 2aab98e00aebc1dacdebec63ae11028f On Mon, Dec 17, 2012 at 07:34:22PM +0100, pk wrote > On 2012-12-17 17:23, Walter Dnes wrote: > > > > > 1) Despite the TV being native 1366x768, it defaults to 1280x720, which > > is the first mode listed in the EDID. Fixed-pixel displays show best at > > their native resolution So I ran "Xorg -configure" and created an > > xorg.conf file, and forced 1366x768 resolution. And got no picture. I > > tried X again at 128x720. Then I used xrandr to change to 1920x1080, > > and it worked. Used xrandr to change to 1366x768, and it hung. From > > Xorg.0.log ... > > > Any ideas? > > You can perhaps try to find out what the tv is telling X: x11-misc/read-edid > > ... if you haven't already tried it (you can also use "startx -- > -logverbose 6"). The parsing of the EDID is already logged in gory detail in the logfile. > You can also set your preferred resolution in xorg.conf as such: > > In Section "Screen": > > Subsection "Display" > ... > Modes "1366x768" "1280x720" ... > EndSubSection After some spelunking in the X log file, I noticed the following [ 1789.561] (II) intel(0): [DRI2] Setup complete [ 1789.561] (II) intel(0): [DRI2] DRI driver: i965 [ 1789.561] (II) intel(0): direct rendering: DRI2 Enabled [ 1789.561] (--) RandR disabled [ 1789.566] (EE) AIGLX error: dlopen of /usr/lib64/dri/i965_dri.so failed (/usr /lib64/dri/i965_dri.so: cannot open shared object file: No such file or director y) [ 1789.566] (EE) AIGLX: reverting to software rendering [ 1789.566] (II) AIGLX: Screen 0 is not DRI capable [ 1789.671] (II) AIGLX: Loaded and initialized swrast [ 1789.671] (II) GLX: Initialized DRISWRAST GL provider for screen 0 "lspci -v" shows "Kernel driver in use: i915" hmmmm. It wants i965, but it's getting i915. I took a look in /usr/lib64/dri/ to see what was and was not in there... [i3][root][~] ll -og /usr/lib64/dri/ total 30 drwxr-xr-x 2 216 Dec 18 01:57 . drwxr-xr-x 58 31024 Dec 18 01:34 .. -rw-r--r-- 1 0 Dec 14 17:57 .keep_media-libs_mesa-0 lrwxrwxrwx 1 20 Jan 8 2011 i915_dri.so -> ../mesa/i915g_dri.so lrwxrwxrwx 1 20 Dec 14 17:57 i915g_dri.so -> ../mesa/i915g_dri.so lrwxrwxrwx 1 22 Jan 8 2011 swrast_dri.so -> ../mesa/swrastg_dri.so lrwxrwxrwx 1 22 Dec 14 17:57 swrastg_dri.so -> ../mesa/swrastg_dri.so There's the i915g_dri.so driver; what package provides it? [i3][root][~] equery b i915g_dri.so * Searching for i915g_dri.so ... media-libs/mesa-9.0 (/usr/lib64/mesa/i915g_dri.so) media-libs/mesa-9.0 (/usr/lib64/dri/i915g_dri.so -> ../mesa/i915g_dri.so) I ran "emerge -pv mesa", and discovered that mesa had been merged with USE="-xorg". This is what I get for starting USE with "-*"... http://media.comicvine.com/uploads/11/117774/2361934-double_facepalm.jpg I emerged mesa with "xorg" USE flag, and 1366x768 now works fine. One problem down and one to go. I had merged mesa with the "intel" USE flag. It also has "i915" and i965" USE flags. If I can get the i965 driver built, I'd go from "software acceleration" to hardware acceleration. That's my next step. -- Walter Dnes I don't run "desktop environments"; I run useful applications