Index: uspace/srv/console/gcons.c
===================================================================
--- uspace/srv/console/gcons.c	(revision f15cb3c4c93269014a096d5c5a41bc60f0808fb9)
+++ uspace/srv/console/gcons.c	(revision 6e71a9d850aa09eec22b6f079fae6deae5f8cd51)
@@ -82,5 +82,5 @@
 static void vp_switch(int vp)
 {
-	async_msg_1(fbphone,FB_VIEWPORT_SWITCH, vp);
+	async_msg_1(fbphone, FB_VIEWPORT_SWITCH, vp);
 }
 
@@ -106,5 +106,5 @@
 static void tran_putch(char c, int row, int col)
 {
-	async_msg_3(fbphone, FB_TRANS_PUTCHAR, c, row, col);
+	async_msg_3(fbphone, FB_PUTCHAR, c, row, col);
 }
 
@@ -190,8 +190,8 @@
 	else
 		console_state[consnum] = CONS_DISCONNECTED;
-
+	
 	if (active_console == KERNEL_CONSOLE)
 		return;
-
+	
 	redraw_state(consnum);
 	vp_switch(console_vp);
@@ -218,14 +218,8 @@
 void gcons_in_kernel(void)
 {
-	if (console_state[active_console] == CONS_DISCONNECTED_SEL)
-		console_state[active_console] = CONS_DISCONNECTED;
-	else
-		console_state[active_console] = CONS_IDLE;
-	redraw_state(active_console);
-
 	if (animation != -1)
 		async_msg_1(fbphone, FB_ANIM_STOP, animation);
-
-	active_console = KERNEL_CONSOLE; /* Set to kernel console */
+	
+	active_console = KERNEL_CONSOLE;
 	vp_switch(0);
 }
@@ -343,9 +337,10 @@
 extern char _binary_nameic_ppm_start[0];
 extern int _binary_nameic_ppm_size;
-/** Redraws console graphics  */
-static void gcons_redraw_console(void)
+
+/** Redraws console graphics */
+void gcons_redraw_console(void)
 {
 	int i;
-
+	
 	if (!use_gcons)
 		return;
@@ -358,5 +353,5 @@
 	draw_pixmap(_binary_nameic_ppm_start,
 	    (size_t) &_binary_nameic_ppm_size, 5, 17);
-
+	
 	for (i = 0; i < CONSOLE_COUNT; i++)
 		redraw_state(i);
@@ -460,14 +455,14 @@
 	int i;
 	int status_start = STATUS_START;
-
+	
 	fbphone = phone;
-
+	
 	rc = async_req_0_2(phone, FB_GET_RESOLUTION, &xres, &yres);
 	if (rc)
 		return;
 	
-	if (xres < 800 || yres < 600)
-		return;
-
+	if ((xres < 800) || (yres < 600))
+		return;
+	
 	/* create console viewport */
 	/* Align width & height to character size */
@@ -507,5 +502,5 @@
 	
 	make_anim();
-
+	
 	use_gcons = 1;
 	console_state[0] = CONS_DISCONNECTED_SEL;
@@ -513,6 +508,5 @@
 	gcons_redraw_console();
 }
- 
+
 /** @}
  */
-
