On Sun, Jan 19, 2003 at 03:57:23AM +0200, Alex Suykov wrote: >Hello all, > >I have an i845G running XFree86-4.2.99.3 and faced the following problem. > >My linux console is put in 132x30 mode in the following way: >'vga=291' bootparam (132x60) and then 'setfont UniCyr_8x16' from one of >/etc/init.d/ scripts. > >When I run X and then switch back to console - either by exiting or >by Ctrl+Alt+Fn - I got the same 8x16 font within 8x8 cells (only upper half >of each glyph is visible). Upper 30 lines of the screen contain original >VC contents, while lower lines shows contents of other VC and do not change >when I switch VC. > >Original state can be restored (loosing contents on all VC's) by sequence >'setfont UniCyr_8x8; setfont UniCyr_8x16'; simple 'setfont UniCyr_8x16' >changes nothing while 'setfont UniCyr_8x8' works as expected - puts >console in 132x60 mode with 8x8 font. > >There is no such problem if X is started from 132x60 mode with 8x8 font >(vga=291 / setfont UniCyr_8x8) and from 80x25 with 8x16 font >(no 'vga' bootparam / setfont UniCyr_8x16). > >There is no such problem with S3 ViRGE. The problem was in all X versions >which I installed and which worked with i845G (before 4.2.99.3 I tried >some CVS snapshots from mid-october to mid-november) > >Does anyone know how to fix this? Or where should I look for the roots >of this problem (does last (WW)'s in the log touch the problem or they >can be ignored)?
Those lines can be ignored. The driver normally uses VBE calls to save/restore the initial state. There's a bug in that save/restore mechanism with many 845G BIOSes, so to work around this, it just saves the original mode number, and calls the BIOS to re-program that mode at exit/VT switch. This is setting it to the initial 132x60 state, not the state after your setfont call. If you can to identify what parameters setfont is changing, it would be possible to modify the driver to save/restore them. I haven't looked into what mechanism setfont uses to change the character size. David -- David Dawes Release Engineer/Architect The XFree86 Project www.XFree86.org/~dawes _______________________________________________ XFree86 mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/xfree86

