Package org.jnode.driver.system.acpi

Examples of org.jnode.driver.system.acpi.AcpiAPI


        if (acpiDevs.isEmpty()) {
            out.println("No ACPI devices are registered");
            exit(1);
        } else {
            for (Device dev : acpiDevs) {
                final AcpiAPI api = dev.getAPI(AcpiAPI.class);

                if (FLAG_DUMP.isSet()) {
                    api.dump(new PrintWriter(out));
                } else if (FLAG_BATTERY.isSet()) {
                    // TODO fix this
                    out.println("The '--battery' option is temporary disabled");
                    //api.dumpBattery();
                } else {
                    out.println(api.toDetailedString());
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jnode.driver.system.acpi.AcpiAPI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.