Bug 16108

Summary: [855GM] minor font corruption on Linux text console
Product: xorg Reporter: danielllano
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: RESOLVED NOTABUG QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: NEEDINFO
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg 1.4.1~git20080517-1 intel 855gm driver 2.3.1-1 minor font corruption none

Description danielllano 2008-05-26 13:13:29 UTC
Created attachment 16745 [details]
xorg 1.4.1~git20080517-1 intel 855gm driver 2.3.1-1 minor font corruption

There is sometimes minor font corruption when I switch to the Linux console.
It may be related to Bug #11305 as it may not be totally fixed.
Take a look at the "b"s at the image attached.
Comment 1 Jesse Barnes 2008-06-06 12:13:08 UTC
Does the font get fixed if you load a new font, e.g. using 'setfont' at the console?  If so, we might be clobbering font memory somehow...
Comment 2 Jesse Barnes 2008-06-06 12:38:42 UTC
I played around a bit with setfont myself, and found that this patch helped a little (it correctly restored the pre-startup font during VT switch, but clobbered any setting I had done during the VT switch):

diff --git a/src/i830_driver.c b/src/i830_driver.c
index b28b4de..44e9b10 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2110,7 +2110,7 @@ SaveHWState(ScrnInfoPtr pScrn)
    }

    vgaHWUnlock(hwp);
-   vgaHWSave(pScrn, vgaReg, VGA_SR_FONTS);
+   vgaHWSave(pScrn, vgaReg, VGA_SR_ALL);

    return TRUE;
 }
@@ -2346,7 +2346,7 @@ RestoreHWState(ScrnInfoPtr pScrn)
    OUTREG(PIPEASTAT, INREG(PIPEASTAT) | FIFO_UNDERRUN);
    OUTREG(PIPEBSTAT, INREG(PIPEBSTAT) | FIFO_UNDERRUN);

-   vgaHWRestore(pScrn, vgaReg, VGA_SR_FONTS);
+   vgaHWRestore(pScrn, vgaReg, VGA_SR_ALL);
    vgaHWLock(hwp);

    return TRUE;

Comment 3 Michael Fu 2008-06-22 19:28:52 UTC
ping response, daniel.
Comment 4 danielllano 2008-06-23 14:17:35 UTC
I do not have an easy way to reproduce this bug.
If you can not reproduce it, close it if you want and I will reopen when I find a way to reproduce it reliably.
Anyway I also saw the same problem, in the past weeks, with the same driver in a modern Intel Graphics Media Accelerator X3100 on X86-64.
Comment 5 Jesse Barnes 2008-06-23 14:19:49 UTC
If you end up reproducing it, can you try using 'setfont' and the patch I posted to see if things behave differently?

Thanks,
Jesse
Comment 6 Michael Fu 2008-06-30 01:20:43 UTC
set as notabug for now and wait for bug reporter to reopen if he can reproduce...

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.