Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/dev/wscons



Module Name:    src
Committed By:   drochner
Date:           Wed Feb 20 22:33:18 UTC 2008

Modified Files:
        src/sys/dev/wscons: wsdisplay.c wsdisplayvar.h

Log Message:
-Don't detach/attach the X server in the pmf suspend/resume functions
 which are called somewhere in the middle of system suspend. Since the
 X server accesses hardware directly it is outside our control whether
 the devices it accesses are already/still suspended or not, so the only
 way is to detach it before any device suspends and re-attach after
 everything is awake again.
-For that, export a function ("wsdisplay_handlex" for now) which is
 to be called from central suspend/resume code.
-The right way to handle the (normally impossible) case that the X
 server is not detached on suspend is to return an error which should
 abort the suspend process. pmf doesn't yet handle errors of device
 suspend handlers, so as a temporary measure try to suspend anyway,
 to get at least a text console.
-Improve error handling of X server attach/detach and maintain a flag
 which tracks whether the X server is really active.


To generate a diff of this commit:
cvs rdiff -r1.116 -r1.117 src/sys/dev/wscons/wsdisplay.c
cvs rdiff -r1.45 -r1.46 src/sys/dev/wscons/wsdisplayvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



Home | Main Index | Thread Index | Old Index