diff --git a/src/framebuffer/core.rs b/src/framebuffer/core.rs index deaabc7..ac9bfd2 100644 --- a/src/framebuffer/core.rs +++ b/src/framebuffer/core.rs @@ -50,7 +50,13 @@ impl Framebuffer { let device = &*device::CURRENT_DEVICE; match device.model { Model::Gen1 => Framebuffer::device(device.get_framebuffer_path()), - Model::Gen2 => Framebuffer::rm2fb(device.get_framebuffer_path()), + Model::Gen2 => { + // Auto-select old method still if env LIBREMARKABLE_FB_DISFAVOR_INTERNAL_RM2FB is set affirmatively + match std::env::var("LIBREMARKABLE_FB_DISFAVOR_INTERNAL_RM2FB").ok() { + Some("1") => Framebuffer::device(device.get_framebuffer_path()), + _ => Framebuffer::rm2fb(device.get_framebuffer_path()), + } + } } }