Date: Sun, 17 Feb 2008 18:50:29 +0100 From: Jeremie Le Hen <jeremie@le-hen.org> To: freebsd-current@FreeBSD.org Cc: Jeremie Le Hen <jeremie@le-hen.org> Subject: Fiddling psm(4) config flags Message-ID: <20080217175029.GD92006@obiwan.tataz.chchile.org>
next in thread | raw e-mail | index | archive | help
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 >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080217175029.GD92006>