hello,

any reason for evaluating  _STA before _PSR for getting AC status?

        if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_STA", 0, NULL, NULL)) {
                dnprintf(10, "%s: no _STA\n",
                    DEVNAME(sc));
        }

        if (aml_evalname(sc->sc_acpi, sc->sc_devnode, "_PSR", 0, NULL, &res)) {
                dnprintf(10, "%s: no _PSR\n",
                    DEVNAME(sc));
                return (1);

-- 
see ya,
giovanni

Reply via email to