CVS Update: xc (branch: trunk)

Egbert Eich xorg-commit at cvs.freedesktop.org
Fri Jan 14 20:42:26 EET 2005


CVSROOT:	/cvs/xorg
Module name:	xc
Changes by:	eich at gabe.freedesktop.org	05/01/14 10:42:26

Log message:
  2005-01-14  Egbert Eich  <eich-at-freedesktop-dot-org>
  
  	* config/cf/linux.cf:
  	* programs/Xserver/hw/xfree86/os-support/linux/Imakefile:
  	* programs/Xserver/hw/xfree86/os-support/linux/lnx.h:
  	* programs/Xserver/hw/xfree86/os-support/linux/lnx_font.c:
  	(getfont), (lnx_savefont), (setfont), (lnx_restorefont),
  	(lnx_switchaway), (lnx_freefontdata):
  	* programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c:
  	(xf86OpenConsole), (xf86CloseConsole):
  	* programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c:
  	* programs/Xserver/hw/xfree86/os-support/shared/VTsw_usl.c:
  	(xf86VTSwitchAway):
  	* programs/Xserver/hw/xfree86/vgahw/Imakefile:
  	* programs/Xserver/hw/xfree86/vgahw/vgaHW.c: (vgaHWRestoreFonts),
  	(vgaHWSaveFonts):
  	Let the OS instead of X save/restore text console fonts on Linux.
  	So far we relied on the generic VGA layer to restore text console
  	fonts for us when shutting down the server or VT switching back
  	to the text console.
  	This has worked rather well but it has some downsides on Linux:
  	a. Many people use fbdev as console text mode. In this case it is
  	   not necessary to save/restore console fonts as the console is
  	   running in graphics mode anyway.
  	b. Some architectures don't have a fbdev console but require a
  	   full POST of even the primary card (ie. IA64). This posting
  	   has to take place before we even have a chance to save
  	   anything. Therefore the fonts we save are the once written to
  	   the chip by POST, not what has been programmed by the user.
  	c. Certain chipsets utilize the BIOS to perform mode setting. This
  	   may interfer with the vga save/restore font function in a
  	   strange way.
  	It would therefore be preferrable to let the OS - which has been
  	used to set up the font in the first place - take care of
  	saving/restoring the data.
  	I will attach a patch which will do so for Linux.
  	To make this fully functional a small patch needs to be applied to
  	the Linux kernel.
          To disable this feature add:
  	#define DoOSFontRestore NO
  	to your host.def. (Bugzilla #2277)

Modified files:
      ./:
        ChangeLog 
      xc/config/cf/:
        linux.cf 
      xc/programs/Xserver/hw/xfree86/os-support/linux/:
        Imakefile lnx.h lnx_init.c lnx_kbd.c 
      xc/programs/Xserver/hw/xfree86/os-support/shared/:
        VTsw_usl.c 
      xc/programs/Xserver/hw/xfree86/vgahw/:
        Imakefile vgaHW.c 
Added files:
      xc/programs/Xserver/hw/xfree86/os-support/linux/:
        lnx_font.c 
  
  Revision      Changes    Path
  1.685         +43 -1     xc/ChangeLog
  1.20          +10 -1     xc/config/cf/linux.cf
  1.5           +13 -3     xc/programs/Xserver/hw/xfree86/os-support/linux/Imakefile
  1.3           +7 -0      xc/programs/Xserver/hw/xfree86/os-support/linux/lnx.h
  1.3           +17 -1     xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_init.c
  1.4           +3 -0      xc/programs/Xserver/hw/xfree86/os-support/linux/lnx_kbd.c
  1.3           +7 -0      xc/programs/Xserver/hw/xfree86/os-support/shared/VTsw_usl.c
  1.3           +5 -1      xc/programs/Xserver/hw/xfree86/vgahw/Imakefile
  1.5           +16 -18    xc/programs/Xserver/hw/xfree86/vgahw/vgaHW.c




More information about the xorg-commit mailing list