Skip to contentSkip to conversation

open messes up the screen

DISCUSSION Benjamin Herrenschmidt 2 participants 2 messages Mar 16, 2005 – Mar 17, 2005 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 7 lines

Well, open is really openvt. It fiddles around with the console to start up a program on a new virtual console. X doesn't always like that, but it should work better than that. The vt change should trigger X to properly cleanup the screen before the switch. I'd say file a bug.

It's not a VT change issue. It's an old bug of the fbcon code that causes opening a VT to reset the palette on the current fb even when not in front.

Ben.

#3 lore raw
Quoted 10 lines · Benjamin Herrenschmidt
Quoted 5 lines

Well, open is really openvt. It fiddles around with the console to start up a program on a new virtual console. X doesn't always like that, but it should work better than that. The vt change should trigger X to properly cleanup the screen before the switch. I'd say file a bug.

It's not a VT change issue. It's an old bug of the fbcon code that causes opening a VT to reset the palette on the current fb even when not in front.

Can you try this patch?

drivers/video/console/fbcon.c +3 -0
diff -Nru a/drivers/video/console/fbcon.c b/drivers/video/console/fbcon.c
@@ -2331,6 +2331,9 @@
 	if (fbcon_is_inactive(vc, info))
 		return -EINVAL;
 
+	if (!CON_IS_VISIBLE(vc))
+		return 0;
+
 	depth = fb_get_color_depth(&info->var);
 	if (depth > 3) {
 		for (i = j = 0; i < 16; i++) {