Re: consoles broken on Thinkpad T20

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Sun, 12 Jun 2005 15:27:06 +0400
On Sun, Jun 12, 2005 at 03:06:31PM +0400, Gleb Smirnoff wrote:
T> The first console is black.
T> 
T> root_at_think:~:|>gdb `which vidcontrol` vidcontrol.core 
T> #0  0x08049365 in video_mode (argc=0, argv=0xbfbfe930, mode_index=0x804dca4)
T>     at /usr/src/usr.sbin/vidcontrol/vidcontrol.c:659
T> 659                                     size[1] = new_mode_info.vi_height /
T> (gdb) bt
T> #0  0x08049365 in video_mode (argc=0, argv=0xbfbfe930, mode_index=0x804dca4)
T>     at /usr/src/usr.sbin/vidcontrol/vidcontrol.c:659
T> #1  0x080499d8 in main (argc=2, argv=0xbfbfe930)
T>     at /usr/src/usr.sbin/vidcontrol/vidcontrol.c:1253
T> (gdb) 

Some more info:

(gdb) p new_mode_info.vi_height
$1 = 768
(gdb) p font_height
$2 = 0
(gdb) p cur_info.console_info.font_size
$3 = 0
(gdb) 

Seems like the problem is that vidcontrol can't determine current font
height. Ok, I've tried to force non raster mode on /dev/ttyv0:

root_at_think:~:|>vidcontrol VGA_80x25  < /dev/ttyv0

It works. My first ttys is alive again. I see cursor, and I can see
log messages here. No login prompt, since it is truned off in /etc/ttys.

After that I can even set raster mode on it:

root_at_think:~:|>vidcontrol MODE_279  < /dev/ttyv0
root_at_think:~:|>

So, it looks like on startup vidcontrol can't determine font height and
leaves ttyv0 in inconsistent state.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE
Received on Sun Jun 12 2005 - 09:27:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:36 UTC