Package org.jnode.driver.video.spi

Examples of org.jnode.driver.video.spi.DpmsState


        // Save the current state
        oldVgaState.saveFromVGA(vgaIO);

        // Turn off the screen
        final DpmsState dpmsState = getDpms();
        setDpms(DpmsState.OFF);

        try {
            // Set new configuration
View Full Code Here


    final DpmsState getDpms() {
        final int val = vgaIO.getReg32(CRTC_GEN_CNTL);
        final boolean display = ((val & CRTC_DISPLAY_DIS) == 0);
        final boolean hsync = ((val & CRTC_HSYNC_DIS) == 0);
        final boolean vsync = ((val & CRTC_VSYNC_DIS) == 0);
        return new DpmsState(display, hsync, vsync);
    }
View Full Code Here

        // Save the current state
        oldVgaState.saveFromVGA(vgaIO);
        log.debug("oldState:" + oldVgaState);

        // Turn off the screen
        final DpmsState dpmsState = getDpms();
        setDpms(DpmsState.OFF);

        try {
            // Set the new configuration
            currentState.restoreToVGA(vgaIO);
View Full Code Here

     */
    final synchronized void close() {
        hwCursor.close();

        // Save the screen state and turn of the screen
        final DpmsState dpmsState = getDpms();
        setDpms(DpmsState.OFF);
        try {
            oldVgaState.restoreToVGA(vgaIO);
        } finally {
            // Restore the screen
View Full Code Here

        } else {
            display = ((val & CRTC_DISPLAY_DIS) == 0);
            hsync = ((val & CRTC_HSYNC_DIS) == 0);
            vsync = ((val & CRTC_VSYNC_DIS) == 0);
        }
        return new DpmsState(display, hsync, vsync);
    }
View Full Code Here

     * @see org.jnode.driver.video.Surface#close()
     */
    public synchronized void close() {
        log.debug("close");
        hwCursor.closeCursor();
        final DpmsState dpmsState = getDpms();
        log.debug("Old DPMS state: " + dpmsState);
        setDpms(DpmsState.OFF);
        vgaIO.unlock();
        log.debug("restore old VGA state");
        oldVgaState.restoreToVGA(vgaIO);
View Full Code Here

    private DpmsState getDpms() {
        final boolean display = ((vgaIO.getSEQ(NVSEQX_CLKMODE) & 0x20) == 0);
        final int repaint1 = vgaIO.getCRT(NVCRTCX_REPAINT1);
        final boolean hsync = ((repaint1 & 0x80) == 0);
        final boolean vsync = ((repaint1 & 0x40) == 0);
        return new DpmsState(display, hsync, vsync);
    }
View Full Code Here

        // Enabled access to extended registers
        vgaIO.unlock();

        // Turn off the screen
        final DpmsState dpmsState = getDpms();
        // log.debug("Old DPMS state: " + dpmsState);
        setDpms(DpmsState.OFF);

        /* power-up all nvidia hardware function blocks */
        /*
 
View Full Code Here

TOP

Related Classes of org.jnode.driver.video.spi.DpmsState

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.