diff --git a/lib/framebuffer.c b/lib/framebuffer.c index 44c4f09..49eada9 100644 --- a/lib/framebuffer.c +++ b/lib/framebuffer.c @@ -86,19 +86,6 @@ static inline void fb_rotate_90deg(px_type *dst, px_type *src); static inline void fb_rotate_270deg(px_type *dst, px_type *src); static inline void fb_rotate_180deg(px_type *dst, px_type *src); -int vt_set_mode(int graphics) -{ - int fd, r; - mknod("/dev/tty0", (0600 | S_IFCHR), makedev(4, 0)); - fd = open("/dev/tty0", O_RDWR | O_SYNC | O_CLOEXEC); - if (fd < 0) - return -1; - r = ioctl(fd, KDSETMODE, (void*) (graphics ? KD_GRAPHICS : KD_TEXT)); - close(fd); - unlink("/dev/tty0"); - return r; -} - int fb_open_impl(void) { struct fb_impl **itr; diff --git a/main.c b/main.c index 298c8b2..7339cc2 100644 --- a/main.c +++ b/main.c @@ -110,7 +110,5 @@ int main(int argc, const char *argv[]) close(open(KEEP_REALDATA, O_WRONLY | O_CREAT, 0000)); } - vt_set_mode(0); - return 0; } diff --git a/multirom.c b/multirom.c index 5b94481..a5d93dd 100644 --- a/multirom.c +++ b/multirom.c @@ -234,8 +234,6 @@ finish: int multirom_init_fb(int rotation) { - vt_set_mode(1); - if(fb_open(rotation) < 0) { ERROR("Failed to open framebuffer!\n");