From owner-freebsd-current@FreeBSD.ORG Thu Aug 23 23:25:40 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6404516A417 for ; Thu, 23 Aug 2007 23:25:40 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.228]) by mx1.freebsd.org (Postfix) with ESMTP id 21F5213C459 for ; Thu, 23 Aug 2007 23:25:40 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so400932nzf for ; Thu, 23 Aug 2007 16:25:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IjVZdEqwi6sAgZF6DSeBkyhjuOJuYTYcdIZ37ZP4fMA3hpryFvlihKz2ZaJyOo9yAkqbXPgFnmb55zN/I+L5nVNvzXD8mKbvreD0Pbyp00RKKIQ5pj2I79Xqwx45uHF5/f4o3lOu+6hTV7KOgtNp4m4WZBUtofXvSZkvU17u6X8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Vh40wL2SoAev+N5hFV9SpDgI9BQRKrE7loKGjR4/+5TRvbLNWVSAcIDAJ7yfUZ/ZyZH6vf9doNYBYGAmXfodgV8B3DcmmrjjreqEr39wewC2+qqyV3f3pYJTb9bBvo7aRLO69qWtLwt1HI+18Cvn8DRsSIN0fQlummoixplpx3s= Received: by 10.143.1.2 with SMTP id d2mr288251wfi.1187911539030; Thu, 23 Aug 2007 16:25:39 -0700 (PDT) Received: by 10.143.10.17 with HTTP; Thu, 23 Aug 2007 16:25:38 -0700 (PDT) Message-ID: <26ddd1750708231625s36ffb874u7863d34654606a3c@mail.gmail.com> Date: Thu, 23 Aug 2007 19:25:38 -0400 From: "Maxim Khitrov" To: freebsd-current@freebsd.org In-Reply-To: <26ddd1750708231249h3666b5cbjf6935cc010ebe40@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26ddd1750708231249h3666b5cbjf6935cc010ebe40@mail.gmail.com> Subject: Re: X Server Problems: 100% CPU usage, no keyboard X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2007 23:25:40 -0000 On 8/23/07, Maxim Khitrov wrote: > Hello, > > I'm not exactly sure how to best proceed in my situation, so thought > I'd ask here. I'm running FreeBSD 7.0-CURRENT on my Fujitsu P7010 > laptop. I installed xorg and gnome2-lite ports, configured the X > server, and am now trying to get gnome to run. > > The problem is this; if I boot using the GENERIC kernel and run > startx, everything works great. I get my gnome desktop and can > continue working there. However, when I switch to my own kernel, > starting the X server causes CPU usage to go to 100% (permanently) and > my keyboard stops working. I can't even do Ctrl-Alt-Backspace to kill > the server. The mouse still works, so I can logout back to the console > at which point CPU goes to idle and keyboard works again. > > I looked through my kernel config and don't see anything wrong there. > The keyboard-related options are the same as GENERIC. My only guess is > that it's something that I've added to the kernel that is causing > these problems, but I don't want to go removing one thing at a time at > random to see if it makes a difference. My config is posted on > pastebin (URL below). Can you please take a look at it and see if you > can spot what could be causing the problem? > > My configuration file: http://pastebin.com/m1a39ace1 > > Thanks, > Maxim Khitrov Well it took a while, but I was able to figure out what was causing the problem. And yes, it was my mistake :) In my configuration I set MAXCONS to 4, but I made an error when editing /etc/ttys and left 4 of the consoles turned on. The original idea was to have three text-mode consoles and one for X. All the allowed consoles were taken, so the X server was starting on ttyv4 instead of ttyv3. I still have no idea why it behaved the way it did (100% CPU and no keyboard), but marking ttyv3 as off in /etc/ttys solved the problem. I would have expected the server to tell me that there are no available consoles to use, but at any rate... Glad I was able to fix it. And it only took 12 kernel recompilations (good thing I use ccache :) - Max