Subject: xsrc/10488: Corrupt cursor on apm resume
To: None <gnats-bugs@gnats.netbsd.org>
From: John Hawkinson <jhawk@mit.edu>
List: netbsd-bugs
Date: 06/30/2000 08:24:15
>Number:         10488
>Category:       xsrc
>Synopsis:       Corrupt cursor on apm resume
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 30 08:25:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     John Hawkinson
>Release:        netbsd-1-5 from 29 June 2000
>Organization:
MIT
>Environment:
	
System: NetBSD zorkmid.mit.edu 1.5_ALPHA NetBSD 1.5_ALPHA (ZORKMID-$Revision: 1.15 $) #211: Fri Jun 30 10:30:39 EDT 2000 jhawk@zorkmid.mit.edu:/usr/local/current-src/src/sys/arch/i386/compile/ZORKMID i386


>Description:
	On a Sony VAIO PCG-Z505HE running the default X serer from NetBSD 1.4.2,
viz. 3.3.6, after resuming from an apm suspend or hibernation, the X pointer
is corrupt (looks like random garbage). Moving the cursor such that the server
would change the pointer (e.g. from an xterm to the root window) fixes the
problem.

	I don't know what is broken here (hardware?), or what should be done
about it. As far as I know, there is no mechanism for the kernel to signal
the X server about power events so that cleanup can happen. Is there some way
the X server should be able to detect this condition and fix it? It seems like
it's probably trivial to workaround, but I dont'; know at what layer to apply
a workaround...

THe video device probes as:

vga1 at pci1 dev 0 function 0: Neomagic MagicMedia 256AV VGA (rev. 0x20)

And the X server (SVGA server) IDs it as:

(--) SVGA: PCI: NeoMagic NM2200 rev 32, Memory @ 0xfd000000, 0xfe400000
(--) SVGA: chipset:  NM2200
(--) SVGA: videoram: 2560k
(**) SVGA: Using 8 bpp, Depth 8, Color weight: 666


>How-To-Repeat:
	See above.
>Fix:
	Move the cursor ;-)
>Release-Note:
>Audit-Trail:
>Unformatted: