package ev3dev.hardware.display;

import ev3dev.utils.io.ILibc;
import ev3dev.utils.io.NativeFramebuffer;
import lombok.NonNull;
import lombok.extern.slf4j.Slf4j;

/**
 * Class to allow running programs over SSH
 *
 * @author Jakub Vaněk
 * @since 2.4.7
 */
@Slf4j
class StolenDisplay extends DisplayInterface {
    private ILibc libc;

    /**
     * noop
     */
    public StolenDisplay(@NonNull ILibc libc) {
        this.libc = libc;
    }

    /**
     * noop, graphics goes to the display
     */
    @Override
    public void switchToGraphicsMode() {
        LOGGER.trace("Switch to graphics mode");
    }

    /**
     * noop, text goes to SSH host
     */
    @Override
    public void switchToTextMode() {
        LOGGER.trace("Switch to text mode");
    }

    /**
     * noop, we do not have any resources
     */
    @Override
    public void close() {
        LOGGER.trace("Display close");
        // free objects
        closeFramebuffer();
        libc = null;
    }

    @Override
    public synchronized JavaFramebuffer openFramebuffer() {
        if (fbInstance == null) {
            LOGGER.debug("Initialing framebuffer in fake console");
            initializeFramebuffer(new NativeFramebuffer("/dev/fb0", libc), true);
        }
        return fbInstance;
    }
}

@@ -99,16 +99,46 @@
 buffer;%0A
+import ev3dev.utils.Brickman;%0A
 import l
@@ -462,16 +462,44 @@
 = libc;%0A
+        Brickman.disable();%0A
     %7D%0A%0A 

Put back Brickman.disable() in StolenDisplay constructor