Subject: xsrc/30580: sunffb sometimes miss-restores the display when unblanking
To: None <xsrc-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@aprisoft.de>
List: netbsd-bugs
Date: 06/23/2005 09:44:00
>Number:         30580
>Category:       xsrc
>Synopsis:       sunffb sometimes miss-restores the display when unblanking
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jun 23 09:44:00 +0000 2005
>Originator:     Martin Husemann
>Release:        NetBSD 3.99.6
>Organization:
>Environment:
System: NetBSD nelly.aprisoft.de 3.99.6 NetBSD 3.99.6 (NELLY) #10: Wed Jun 22 21:35:40 CEST 2005 martin@nelly.aprisoft.de:/usr/src/sys/arch/sparc64/compile/NELLY sparc64
Architecture: sparc64
Machine: sparc64
>Description:

When I leave my machine idle for some time and the X server turns off the
display, it sometimes does not restore the screen content properly when I
hit a key later. It looks like random pixels have been changed.

>How-To-Repeat:
Not easy, it does not happen allways. I have reseated my ffb, and this is
the only problem with it, i.e. nomatter what graphics I display, it just works
without any visual errors.

I have a minimal X configuration, use startx and twm. No xscreensaver, gnome
or anything more complex. I use 1280x1024 resolution.

Here is some output from XFree86.0.log:

(II) SUNFFB: driver for Creator, Creator 3D and Elite 3D
(II) resource ranges after probing:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0xffffffff - 0xffffffff (0x1) IX[B]
	[4] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
(==) SUNFFB(0): RGB weight 888
(==) SUNFFB(0): Default visual is TrueColor
(==) SUNFFB(0): Using gamma correction (1.0, 1.0, 1.0)
(==) SUNFFB(0): Using HW cursor
(==) SUNFFB(0): DPI set to (75, 75)
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC?  No, I don't.
(II) resource ranges after preInit:
	[0] -1	0	0xffffffff - 0xffffffff (0x1) MX[B]
	[1] -1	0	0x00000000 - 0x00000000 (0x1) MX[B]
	[2] -1	0	0x000c0000 - 0x000effff (0x30000) MX[B]
	[3] -1	0	0xffffffff - 0xffffffff (0x1) IX[B]
	[4] -1	0	0x00000000 - 0x000000ff (0x100) IX[B]
(II) /dev/fb0: Detected FFB1, Z-buffer, Double-buffered.
(II) /dev/fb0: BT9068 (PAC1) ramdac detected (with normal cursor control)
(II) /dev/fb0: Detected Creator/Creator3D
(==) SUNFFB(0): Backing store disabled
(==) SUNFFB(0): Silken mouse enabled
(II) /dev/fb0: Using acceleration
(II) /dev/fb0: DGA support initialized.
(==) SUNFFB(0): DPMS disabled
(==) RandR enabled


>Fix:
workaround: xset s off