From owner-freebsd-questions@freebsd.org Thu Oct 19 03:59:13 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F858E50332 for ; Thu, 19 Oct 2017 03:59:13 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 5A78F7C238 for ; Thu, 19 Oct 2017 03:59:13 +0000 (UTC) (envelope-from chris@monochrome.org) Received: by mailman.ysv.freebsd.org (Postfix) id 59D4BE50331; Thu, 19 Oct 2017 03:59:13 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 597C0E50330 for ; Thu, 19 Oct 2017 03:59:13 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from mail.monochrome.org (host-209-190-254-14.client.atlantech.net [209.190.254.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail", Issuer "mail" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B5747C233 for ; Thu, 19 Oct 2017 03:59:12 +0000 (UTC) (envelope-from chris@monochrome.org) Received: from [192.168.1.11] (tripel [192.168.1.11]) by mail.monochrome.org (8.14.9/8.14.9) with ESMTP id v9J3wxUO051980; Wed, 18 Oct 2017 23:59:00 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Wed, 18 Oct 2017 23:58:39 -0400 (EDT) From: Chris Hill To: Frank Shute cc: FreeBSD Questions List Subject: Re: Slow xorg after upgrade In-Reply-To: <20171018111612.GA1070@woodcruft.co.uk> Message-ID: References: <20171018111612.GA1070@woodcruft.co.uk> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Oct 2017 03:59:13 -0000 On Wed, 18 Oct 2017, Frank Shute wrote: > On Tue, Oct 17, 2017 at 09:09:05PM -0400, Chris Hill wrote: >> >> Two days ago I had to upgrade xorg (long story). Since then, it seems >> that text entry is laggy [ ... ] > You saying "...I had to upgrade xorg (long story)" gets my antennae > twitching. > > Perhaps you could expand on that a bit. Thank you for the reply. This all started when I decided to upgrade firefox; it was at 40.0.3,1, which is quite long in the tooth by now. I did a `pkg upgrade firefox`; the process eventually completed with no problems evident. But trying to run the newly-upgraded firefox gave this: $ firefox & $ /usr/local/lib/libGL.so.1: Undefined symbol "drmGetDevice2" ...and `gnumeric` produced the same output. Like an idiot, I figured I would try to build firefox in the ports system. That in turn became a rabbit hole of dependency issues (which the ports system used to take care of for you). After hours of building and failing, I finally did what I should have done in the first place: # pkg delete firefox # pkg install firefox ...and it started, albeit with some errors, which were fixable. gnumeric started working again as well. But when I exited X, it (X) wouldn't start again. (I use startx rather than a graphical login.) This is where the xorg upgrade happened. I did a `pkg delete` and `pkg install` on xorg, which got it working, which is when I saw the slow typing. > My first place to look would be: /var/log/Xorg.0.log and see if > anything goes awry when X starts. Good point. There are some font-related complaints; it's looking for /usr/local/share/fonts/Type1 and some others (TTF et al), but I'm not sure why it's looking there. The correct FontPath comes up later, because I put it in xorg.conf, which I hadn't needed to do before. One thing that caught my eye was '(EE) Failed to load module "intel" (module does not exist, 0)'. It jumps out because my video controller is Intel, but maybe that's coincidence. > I updated xorg the other day with zero problems but there again I > rebuilt all my ports (using poudriere). Is it necessary to rebuild / reinstall ports after an xorg upgrade? I wouldn't have thought so, and did not do so. I also did not reboot. > You're barking up the wrong tree suggesting software bloat in the case > of X is the problem. A regression? Maybe. But X becoming incredibly > slow due to bloat in a point-release? No. Just idle speculation on my part. And I wouldn't call it incredibly slow, just annoyingly slow. Enough to be irritating. > You don't mention how you go about rebuilding your ports or what your > video hardware (and associated driver) is. I used to use ports back when that's all there was, but eventually I got aboard the pkg_* (now pkg) train. pkg being orders of magnitude faster is pretty compelling. Video hardware, from /var/run/dmesg.boot: vgapci0: port 0xec90-0xec97 mem 0xfe800000-0xfebfffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: aperture size is 256M, detected 32764k stolen memory The machine is a Dell GX960 with integrated everything; not the latest and greatest, but reasonably modern. -- Chris Hill chris@monochrome.org ** [ Busy Expunging ]