From owner-freebsd-questions@FreeBSD.ORG Tue Jul 22 04:04:44 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 12C55AEC for ; Tue, 22 Jul 2014 04:04:44 +0000 (UTC) Received: from mail.parts-unknown.org (unknown [IPv6:2a02:c200:0:10::404:501]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C76B425C5 for ; Tue, 22 Jul 2014 04:04:43 +0000 (UTC) Received: from mail.parts-unknown.org (unknown [127.0.0.1]) by mail.parts-unknown.org (Postfix) with ESMTP id CE2A112C10C1; Mon, 21 Jul 2014 21:04:41 -0700 (PDT) Received: by mail.parts-unknown.org (Postfix, from userid 1000) id 4E7B512C10C5; Mon, 21 Jul 2014 21:04:41 -0700 (PDT) Date: Mon, 21 Jul 2014 21:04:40 -0700 From: David Benfell To: Polytropon Subject: Re: All of a sudden, problems with X Message-ID: <20140722040440.GA16353@munich.parts-unknown.org> References: <20140722024643.GA29536@munich.parts-unknown.org> <20140722051423.0cf369b9.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GvXjxJ+pjyke8COw" Content-Disposition: inline In-Reply-To: <20140722051423.0cf369b9.freebsd@edvax.de> User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 04:04:44 -0000 --GvXjxJ+pjyke8COw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 22, 2014 at 05:14:23AM +0200, Polytropon wrote: > On Mon, 21 Jul 2014 19:46:43 -0700, David Benfell wrote: > > Now I've rebooted and I can't get Xorg working properly at all. >=20 > Did you perform any updates? >=20 Yes, having pondered the situation since my original message, it occurs to me there may be a mismatch between Xorg compiled from a port (I think it may have been rebuilt) and a driver installed via pkg. How would I check? >=20 > > Xorg -configure yields only a black (apparently not blank) screen. I > > tried adding the magic to allow CTRL/ALT/BACKSPACE but it doesn't > > work (yes, I rebooted after adding the magic). >=20 > There currently are two magics for that: The "magic in xorg.conf" > when using X without HAL, and the "magic with XML" involving the > configuration files scattered across /usr/local/ when using HAL. > Do you use X with or without HAL? If with, is everything running? >=20 Yes, I'm running HAL. I understand this is what makes detecting a USB keyboard (I have a *full size* keyboard this way) and a USB mouse (my precious trackball) possible. service reports that hal is running. ps doesn't indicate anything amiss (at least as far as I know): hald is running as pid 1331. haldaemon 1331 0.0 0.2 60652 8528 - Is 7:27PM 0:35.85 /usr/loca= l/sb root 1332 0.0 0.1 46216 5792 - I 7:27PM 0:00.08 hald-runn= er root 1338 0.0 0.1 31860 3964 - I 7:27PM 0:00.03 hald-addo= n-mo root 1377 0.0 0.1 31860 3968 - I 7:27PM 0:00.03 hald-addo= n-mo root 1392 0.0 0.1 23260 2672 - S 7:27PM 0:06.47 hald-addo= n-st root 1539 0.0 0.1 18732 2148 v3 S+ 8:51PM 0:00.01 grep hal >=20 >=20 > > The only way out of the > > black screen is CTRL/ALT/DEL, which reboots the system. >=20 > This key combination usually does _nothing_ when within X, so if > it works, it seems to suggest that you have exited X, you're back > at the text mode console, but you can't see it (blank screen). >=20 So how would I get a prompt back in this situation? >=20 >=20 > > If I use startx, I get a correct display, but the mouse doesn't work. >=20 > Often a problem related to HAL. Make sure you exactly follow the > handbook in getting the input working. In case you have updated X, > also update its "input" components. >=20 Okay, so see above. When installing the system (it's a fairly fresh installation), I really didn't have to do anything to make all this work. One of the very first things I installed was gnome2 and I set the relevant variables for HAL, dbus, and gnome. But I wouldn't be the least bit surprised if an input component hasn't been updated properly. Is there a sane way of making sure all this is done right? >=20 >=20 > > I actually have two of them. This is a notebook system, so one is the > > touchpad and the second is a Kensington trackball. >=20 > The touchpad is probably represented as a PS/2 mouse (check "dmesg" > output for "psm0"), and I assume the trackball is connected to USB, > so it should be detected automatically. >=20 >=20 >=20 > > psm0: irq 12 on atkbdc0 > > psm0: [GIANT-LOCKED] > > psm0: model Generic PS/2 mouse, device ID 0 >=20 > This probably is your laptop's glidepad. >=20 >=20 >=20 > > ums0: on usbus0 > > ums0: 4 buttons and [XYZ] coordinates ID=3D0 >=20 > And this is the trackball. >=20 >=20 >=20 > From the X log, those are disappointing: >=20 > > [ 544.688] (**) ModulePath set to "/usr/local/lib/xorg/modules" > > [ 544.688] (WW) Hotplugging is on, devices using drivers 'kbd', 'mous= e' or 'vmmouse' will be disabled. > > [ 544.688] (WW) Disabling Mouse0 > > [ 544.688] (WW) Disabling Keyboard0 > > [ 546.330]=20 > > [ 546.330]=20 > > Xorg detected your mouse at device /dev/sysmouse. > > Please check your config if the mouse is still not > > operational, as by default Xorg tries to autodetect > > the protocol. > > [ 546.330]=20 >=20 > Again, check with the handbook's section about X configuration. > You probably have a problem with HAL. Many people seem to have. :-) >=20 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html >=20 > http://www.wonkity.com/~wblock/docs/html/aei.html These seem to assume I have an xorg.conf. I was getting by without. And Xorg -configure doesn't work. So now what? thanks! --=20 David Benfell See https://parts-unknown.org/node/2 if you don't understand the attachment. --GvXjxJ+pjyke8COw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTzeLYAAoJEBV64x4SNmArcXsP/3v04xCgg9KRGqtOswRuSgDP WHIyyIyk3sNgb7/DdwV4M4yuUDLZLB0X5SFBL3yYuGGFs7kY5YqAC3mZYOdOI+6r UH8oXOdGSC679lB0H2Gf9ftfKIInYbyWWoqmFxwv2y1MVXf/dik0RaWAmYEgH4ZB E1Qd8edXEQE37uzMOVA0Gc+81z7uPymiJq83Pusa4IHKmdBwP/kTjOyZ16j/Fdrj eqOgEJW7pgOndcZzZgEUFdC9C5n2Rs+e8eNqI7pntCGj6WgZk6tygZKKsM3cq9oL 845ojZ5JI88cCTRBB77KCDZ/zHFHBsp7XsRBlwYJYb/IG9pnkZjJmNxrpslCqYvu +Vy4t5uhafmdi2N4/kfKeoUV1+5BY+7BB5Tfq2h+uC0l/Ey/MqT7uSx+ss+hFM5D MkWWbpynltW+ub4dQUKHaLe8aN8dxq7VNOVIAitMt0wC54AojtTE29hmTlo7pK+z TUFGb1GP3W1X0OI7mJ0ZoDl1bRAJgCgWRwoTVPGPOpkM6TEr15TfhcLParycWOn/ KHIof3zHi6ACzJDf5jtrHNh5ppG1vy9MnQOQGWR0PmHi7kliP5FdfcohfycM67QS 1E01FyR1jeSOhOLGXuvasgbIB7Y1Pvbw1TtxsJxM3o4u4GB3f4XnQNZwoUdjwjw0 G2OLw+VOl8IPE9b4pENC =Xs0W -----END PGP SIGNATURE----- --GvXjxJ+pjyke8COw--