From owner-freebsd-x11@FreeBSD.ORG Fri May 15 13:27:37 2009 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFB42106568C for ; Fri, 15 May 2009 13:27:37 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id 8C8EB8FC17 for ; Fri, 15 May 2009 13:27:36 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from [192.168.1.4] (adsl-19-244-249.bna.bellsouth.net [68.19.244.249]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id n4FDR8Rx048174 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 May 2009 09:27:20 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) From: Robert Noland To: Dmitry Marakasov In-Reply-To: <20090514154452.GA72873@hades.panopticon> References: <20090514154452.GA72873@hades.panopticon> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-ev9Rt5sCKpt+s4PWQ/3l" Organization: FreeBSD Date: Fri, 15 May 2009 08:26:33 -0500 Message-Id: <1242393993.1755.77.camel@balrog.2hip.net> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RDNS_DYNAMIC autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-x11@freebsd.org Subject: Re: xorg input (hald/AllowEmptyInput) confusion among users X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 13:27:39 -0000 --=-ev9Rt5sCKpt+s4PWQ/3l Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2009-05-14 at 19:44 +0400, Dmitry Marakasov wrote: > Hi! >=20 > After 7.2 release, I'm seeng a huge flow of new users trying FreeBSD. > This is great, but also I see a lot of questions regarding input > device configuring in xorg - I believe that really sploils first > FreeBSD experience for many users. >=20 > So, I've got a litte idea on how to improve the situation. >=20 > As I understand, currently user is required to do one of following: > - Make sure hald is running (if xorg is compiled with it) > - Add AllowEmptyInput "0" to xorg config otherwise If xorg-server is built without HAL support then the default is swapped and you don't need to set this. I also have come to prefer Option "AutoAddDevices" "off" to AllowEmptyInput. That disables all hot-plugging. I use gnome normally, so I generally just run moused and let hald do it's thing. > Thus, extra action is ALWAYS required from user. >=20 > The idea is to eliminate those. >=20 > The second case can be easily fixed by patching xorg to generate config > already with AllowEmptyInput included, in case it's built without > HAL support. As stated above... If you de-select the HAL option on the port, the default should get flipped. > The first case is more complicated and only things I can come with are > hacks. For example, something like that: >=20 > xorg-server/Makefile: > pre-isntall: > ${GREP} -q 'hald_enable.*[yY][eE][sS]' /etc/rc.conf || ( ${ECHO_CMD} "Y= ou should ..."; ${FALSE} ) Something like this might be reasonable, patches welcome... > xorg-server/pkg-install: > /usr/local/etc/rc.d/hald start >/dev/null 2>&1 >=20 > if ! ps auxww | grep -v grep | grep -q hald; then > echo "hald is not running..., you should" > fi This might be overkill. I don't like the idea of the port trying to start other daemons... The message is fine though. > Another solution is to make xorg server just run hald itself. People start X in all sorts of ways... via startx, gdm using the rc system, xdm or kdm from /etc/ttys. So the only place to do this would be in the xorg-server code, which isn't going to happen... robert. > Any comments? --=20 Robert Noland FreeBSD --=-ev9Rt5sCKpt+s4PWQ/3l Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEABECAAYFAkoNbYkACgkQM4TrQ4qfROOtrwCfY2rZBRYGpOZn2SyYlNu4Gh4J 4tQAnREboZkfDZprToC1ERIkiqiDYPSC =TNm0 -----END PGP SIGNATURE----- --=-ev9Rt5sCKpt+s4PWQ/3l--