Date: Sun, 12 Jun 2005 15:27:06 +0400 From: Gleb Smirnoff <glebius@FreeBSD.org> To: delphij@FreeBSD.org Cc: current@FreeBSD.org Subject: Re: consoles broken on Thinkpad T20 Message-ID: <20050612112706.GB74232@cell.sick.ru> In-Reply-To: <20050612110631.GA74232@cell.sick.ru> References: <20050612110631.GA74232@cell.sick.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jun 12, 2005 at 03:06:31PM +0400, Gleb Smirnoff wrote: T> The first console is black. T> T> root@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@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@think:~:|>vidcontrol MODE_279 < /dev/ttyv0 root@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050612112706.GB74232>