From nobody@FreeBSD.org  Mon May 15 03:41:20 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 55DB916A403
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 May 2006 03:41:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 16CB343D46
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 May 2006 03:41:20 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k4F3fJVq060482
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 May 2006 03:41:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k4F3fJ2g060481;
	Mon, 15 May 2006 03:41:19 GMT
	(envelope-from nobody)
Message-Id: <200605150341.k4F3fJ2g060481@www.freebsd.org>
Date: Mon, 15 May 2006 03:41:19 GMT
From: Jeff Molofee <nehe@cruzinternet.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Screen Corruption In FreeBSD 6.X When Apps Started In rc.conf
X-Send-Pr-Version: www-2.3

>Number:         97287
>Category:       i386
>Synopsis:       Screen Corruption In FreeBSD 6.X When Apps Started In rc.conf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-i386
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 15 03:50:15 GMT 2006
>Closed-Date:    Sun Mar 06 07:29:30 UTC 2011
>Last-Modified:  Sun Mar 06 07:29:30 UTC 2011
>Originator:     Jeff Molofee
>Release:        RELENG_6_1 (6.1 Release #2)
>Organization:
NeHe Productions
>Environment:
FreeBSD nehe.divine 6.1-RELEASE FreeBSD 6.1-RELEASE #2: Sun May 14 01:52:47 MDT 2006     jeffm@nehe.divine:/usr/obj/usr/src/sys/NeHe  i386

>Description:
I have an Nvidia 5900fx video card.  It has ran fine from FreeBSD 4.x
through 5.x.

I am using the Nvidia AGP, agp is disable in my kernel, I have no real
tweaks other than hardware cursor.  My machine is an Intel P4 3.0Ghz w/
HT enabled.  HT is also enabled in my kernel.

If I start my machine with just:

compat5x_enable="YES"
dbus_enable="YES"
gdm_enable="YES"

My machine boots fine, runs fine, etc.

If I add any of the following to /etc/rc.conf:

mysql_enable="YES"
samba_enable="YES"
cupsd_enable="YES"
squid_enable="YES"
apache22_enable="YES"
webmin_enable="YES"

Not all of them, but any one of them on it's own, I get a bar of random
pixels at the top of my screen (about 10-20 lines of pixels).  This bar
changes as I move the mouse.  The color of each pixels changes as I move
up / down / left / right with the mouse.

When I upgraded from 6.0 to 6.1 the problem became MUCH worse.  After
logging in (the gnome 2.14 login looks fine), my screen goes completely
black, then reappears with stripes of random pixels down the screen.  I
can then see my desktop loading, in a video mode that does not look
correct (wrong bit depth, horribly stretched).  when I press CTRL-F1,
I see the console, but I can not type in it.  When I press CTRL-F9 to go
back to Gnome 2.14 I then see my screen correctly, but with the 10-20
lines of random pixels.

I have asked about this problem many times on the FreeBSD Questions Digest,
and have had many suggestions on things to try.  I have tried the following:

Disable the nvidia-driver (x11/nvidia-driver) and boot with freebsd's
driver.  I still saw the 10-20 lines of random data.

Remove any cards in your machine that may conflict with the video card.
I removed my ATI TV Wonder Pro Card (and thought the problem had left,
but it's back).

Change resolutions (lower the resolution).  I see the problem in 640x480
up to 1280x1024 (flat panel monitor, dvi connection).

Disable Hyper Threading.  I recompiled without it, disabled it, and still
had the problem.

I even went as far as reinstalling from scratch (format, reinstall using
new ISO).

I have had a few people say it could be my video card, but I dual boot to
Windows XP, and have no problems at all in XP ... nor do I have any
problems in BSD if I disable everything in rc.conf (like squid, samba, etc).

If I disable everything, boot into freebsd (which will allow it to work
fine), and THEN load squid, etc, my system runs fine, without any of the
random pixels.

It appears as if data is being pushed onto my screen buffer.  Although
I am not an expert, it's the same effect you would have gotten on an old
Atari computer if you wrote random pixels to video ram.

I would be more than happy to supply more information, screenshots, dmesg,
rc.conf, etc.
>How-To-Repeat:
I have asked people to reproduce the problem, and they have said they can
not.  However on my machine, I do the following:

RELENG_6_1
Nvidia 5900fx
Install Gnome 2.12 - 2.14
In rc.conf enable cupsd, squid, webmin, etc (any larger app)
Boot the machine, and you will see random pixels.

>Fix:

>Release-Note:
>Audit-Trail:

From: Jaroslav Benkovsky <jaroslav.benkovsky@gtsnovera.cz>
To: bug-followup@FreeBSD.org, nehe@cruzinternet.com
Cc:  
Subject: Re: i386/97287: Screen Corruption In FreeBSD 6.X When Apps Started
	In rc.conf
Date: Mon, 19 Jun 2006 09:44:11 +0200

 Hi,
 I have noticed a slightly similar problem in FreeBSD 6x:
 When I run some OpenGL(*) hack with XScreensaver, the screen either
 remains black or gets corrupted. Sometimes the screen contains garbled
 and legible remains of already closed windows :(((. 
 
 (*) I did not verify the OpenGL hack is running at the moment of
 corrupted display, but since they stopped working in xscreensaver-demo's
 preview window,  I saw a garbage there too, and 2D hacks work OK, I
 strongly suspect so.
 
 
 
 System 1: (FreeBSD 6.1-BETA1)
 Gnome 2.12
 xorg.conf:
         Driver      "nv"
         VendorName  "nVidia Corporation"
         BoardName   "NV34 [GeForce FX 5200]"
         BusID       "PCI:1:0:0"
 
 
 System 2: (FreeBSD 6.1-STABLE)
 Gnome 2.14
 xorg.conf:
         Driver      "radeon"
         VendorName  "ATI Technologies Inc"
         BoardName   "Radeon R250 Lf [Radeon Mobility 9000 M9]"
         BusID       "PCI:1:0:0"
 
 
 Edheldil
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Jul 14 06:01:01 UTC 2010 
State-Changed-Why:  
Hello, is that still a problem in todays world? AGP had seen a lot 
of updates throughout the time you reported this and todays date. 
Please confirm whether or not this is still relevant. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97287 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Sun Mar 6 07:29:29 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97287 
>Unformatted:
