Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix major bug (black screen after VT switch) that became prominent in newer Linux kernels #62

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions fb/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -474,4 +474,16 @@ void refresh(struct framebuffer_t *fb, struct terminal_t *term)
draw_line(fb, term, line);
}
}

struct fb_var_screeninfo vinfo;

if (ioctl(fb->fd, FBIOGET_VSCREENINFO, &vinfo)) {
logging(ERROR, "ioctl: FBIOGET_VSCREENINFO failed\n");
}

/* Linux needs this every time the VT switches. */
vinfo.activate = FB_ACTIVATE_NOW | FB_ACTIVATE_FORCE;
if (ioctl(fb->fd, FBIOPUT_VSCREENINFO, &vinfo)) {
logging(WARN, "ioctl: FBIOPUT_VSCREENINFO failed: could not activate framebuffer\n");
}
}
Loading