From owner-freebsd-current@FreeBSD.ORG Sun Feb 17 17:55:30 2008 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 5185F16A41B for ; Sun, 17 Feb 2008 17:55:30 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id E6AC813C467 for ; Sun, 17 Feb 2008 17:55:29 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp5-g19.free.fr (Postfix) with ESMTP id 03C643F61CD for ; Sun, 17 Feb 2008 18:55:27 +0100 (CET) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id CEE5F3F61C5 for ; Sun, 17 Feb 2008 18:55:26 +0100 (CET) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id C57AA9BF12; Sun, 17 Feb 2008 17:50:29 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id AE97D405D; Sun, 17 Feb 2008 18:50:29 +0100 (CET) Date: Sun, 17 Feb 2008 18:50:29 +0100 From: Jeremie Le Hen To: freebsd-current@FreeBSD.org Message-ID: <20080217175029.GD92006@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Jeremie Le Hen Subject: Fiddling psm(4) config flags 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: Sun, 17 Feb 2008 17:55:30 -0000 Hi list, When I enabled ACPI on my laptop, my mouse doesn't work anymore. I've enabled PSM_DEBUG and it seems the drivers fails here in psmprobe(): % if (sc->config & PSM_CONFIG_NORESET) { % /* % * Don't try to reset the pointing device. It may possibly be % * left in the unknown state, though... % */ % } else { % /* % * NOTE: some controllers appears to hang the `keyboard' when the aux % * port doesn't exist and `PSMC_RESET_DEV' is issued. % * % * Attempt to reset the controller twice -- this helps % * pierce through some KVM switches. The second reset % * is non-fatal. % */ % if (!reset_aux_dev(sc->kbdc)) { % recover_from_error(sc->kbdc); % restore_controller(sc->kbdc, command_byte); % if (verbose) % ==> printf("psm%d: failed to reset the aux device.\n", unit); % endprobe(ENXIO); % } else if (!reset_aux_dev(sc->kbdc)) { % recover_from_error(sc->kbdc); % if (verbose >= 2) % printf("psm%d: failed to reset the aux device (2).\n", % unit); % } % } If anyone understands what's the problem, please let me know. If I fiddle the source code to do as if PSM_CONFIG_NORESET was set, my mouse works. ``sc->config'' is set with device_get_flags(): % sc->config = device_get_flags(dev) & PSM_CONFIG_FLAGS; device_get_flags() returns ``dev->devflags'', but I don't know how to set this. I would say I should do this from /boot/device.hints or something like this, but I couldn't find any documentation about it. Any pointer please? Thanks. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >