Re: alpha hangs switching VC -- 2.1.115

Martin Mares (mj@ucw.cz)
Sat, 15 Aug 1998 10:34:36 +0200


> When running X, I try to switch out of it with Ctl-Atl-F1 and my machine
> hangs, completely. I have enabled SysRq support, and even that doesn't
> unjam (or even reboot) my machine. I had the same problem with 2.1.111
> as well.

I probably already have a fix in my tree:

--- /usr/src/linux-2.1/drivers/video/vgacon.c Mon Aug 3 19:47:23 1998
+++ drivers/video/vgacon.c Mon Aug 10 15:55:05 1998
@@ -454,7 +453,8 @@
*/
vga_video_num_columns = c->vc_cols;
vga_video_num_lines = c->vc_rows;
- scr_memcpyw_to((u16 *) c->vc_origin, (u16 *) c->vc_screenbuf, c->vc_screenbuf_size);
+ if (!vga_is_gfx)
+ scr_memcpyw_to((u16 *) c->vc_origin, (u16 *) c->vc_screenbuf, c->vc_screenbuf_size);
return 0; /* Redrawing not needed */
}

@@ -934,7 +934,8 @@
c->vc_x = ORIG_X;
c->vc_y = ORIG_Y;
}
- scr_memcpyw_from((u16 *) c->vc_screenbuf, (u16 *) c->vc_origin, c->vc_screenbuf_size);
+ if (!vga_is_gfx)
+ scr_memcpyw_from((u16 *) c->vc_screenbuf, (u16 *) c->vc_origin, c->vc_screenbuf_size);
}

static int vgacon_scroll(struct vc_data *c, int t, int b, int dir, int lines)

Have a nice fortnight

-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"DOS never says "EXCELLENT command or filename"..."

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html