From owner-freebsd-stable@FreeBSD.ORG Fri Jul 27 03:15:23 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C93D106564A for ; Fri, 27 Jul 2012 03:15:23 +0000 (UTC) (envelope-from dani@dpwright.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id E2EDD8FC12 for ; Fri, 27 Jul 2012 03:15:22 +0000 (UTC) Received: by yenl8 with SMTP id l8so3257948yen.13 for ; Thu, 26 Jul 2012 20:15:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=NJ6Z3fRgjGFfVNG0Nm/ReVS5FNWWhW75gsdnq5qm03w=; b=XxGLXq+KuIy8lGHgSXk7gagRII0UcDzbyHjREGlBqpLFZ5oIU++LzYKz5RR3LnGGn5 LlhNSaZNWqz3I3gz82tpfXG11rM7B9NtW74H8xxwsaHHgsovNdxzNVWvZAj+W/SvwaWz jWGbgwxZxIw2lCPMktdjJw7Pl5nEfWhK4aNVi09mTIJ+TOWDEVP9iLlYDDegib41pPav bIoR87nBsYOm9CTSHDbyHtxcGm0HwQH9kMVQ4DfevZ6+QDeAbxlqx3nMFn4UCj43R9/i Z1hJB6sH025Rgcfc9ZqFyuPEhnTJ/Jf+eDyeR2iXnqInQsYbkjLnjFAUbxYaDsre0dq6 qcGw== Received: by 10.66.83.161 with SMTP id r1mr1997291pay.69.1343358921928; Thu, 26 Jul 2012 20:15:21 -0700 (PDT) Received: from localhost (y033118.ppp.asahi-net.or.jp. [118.243.33.118]) by mx.google.com with ESMTPS id gf3sm938512pbc.74.2012.07.26.20.15.20 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 Jul 2012 20:15:21 -0700 (PDT) Date: Fri, 27 Jul 2012 12:21:19 +0900 From: "Daniel P. Wright" To: freebsd-stable@freebsd.org Message-ID: <20120727032119.GB2021@vitei.com> References: <20120726215802.02dfbbcf@AMD620.ovitrap.com> <20120727011001.68e15c51@AMD620.ovitrap.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2011-07-01) X-Gm-Message-State: ALoCoQmXsIAIzWWTYOcJ0025oZSot1nAeTvlrgh+w4sK8Xhr/bBd/ddX+Bo39QelqFocv98oHLEk Subject: Re: Keyboard cutting off soon after launching X X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2012 03:15:23 -0000 Hello, Thank you all for your replies. I have finally managed to get the machine up and running again -- the problem was not what I expected! Following advice in this thread and around the internet, I tried: 1) Setting AutoAddDevices, etc in xorg.conf 2) Disabling HAL before starting X 3) Recompiling the X server without HAL support and removing hald_enable from rc.conf 4) Running X without an xorg.conf All to no avail. By the time point 3 hadn't worked, I was starting to feel pretty suspicious of my theory that this was a problem with HAL... Which is when I noticed a log message appearing sometimes, "Last message repeated 20 times" I scrolled back up to see which message was being repeated so often, and realised my error. I had a script (taken from somewhere on the internet), which was automatically logging me in on tty7 and launching X. It basically worked by adding the following into my .bash_profile: tty=$(tty) if [ "$tty" = "/dev/ttyv7" ] then startx logout fi I had disabled that briefly in order to do some configuration which required me to close X, but stupidly all I did was comment out the call to "startx" rather than the whole if statement. As a result tty7 was constantly logging me in and out in the background. Why this should cause the keyboard to cut out as described I'm not sure (I would have expected the whole system just to run slowly), but commenting out the entire if statement, or restoring the call to "startx", solved the problem. Many thanks again to everyone who replied. -Dani.