Lid suspend has been reported to be broken under the current 4.2.
If the screen goes dark after resume, probably it's just because the backlight is turned off. Run a simple script with wsconsctl display.backlight=100 will bring the view back.
The lid suspend function works if you update your sources via cvs and rebuild your system. It might appear that the Z is down for the count after doing a lid suspend, but as ZDevil stated it's just do to the fact that the backlight isn't turned back on after the resume. This could easily be corrected by making apmd run a /etc/rc.resume script after it resumes. However, this functionally doesn't seem to work as advertised. I've reported it but never received a response. Hopefully it will be corrected this release. Here's an example of what I've included in the /etc/rc.resume script.
#!/bin/sh
wsconsctl display.backlight=100Here's some info from the man page:
Actions can be configured for the following five transitions: suspend,
standby, resume, powerup and powerdown. The suspend and standby actions
are run prior to apmd performing any other actions (such as disk syncs)
and entering the new state. The resume program is run after resuming
from a stand-by or suspended state. The powerup and powerdown programs
are run after the power status (AC connected or not) changes, as well as
after a resume (if the power status changed in the mean time).
/etc/apm/suspend
/etc/apm/standby
/etc/apm/resume
/etc/apm/powerup
/etc/apm/powerdown These files contain the host's customized actions.
Each file must be an executable binary or shell
script suitable for execution by the execve(2)
function. If you wish to have the same program or
script control all transitions, it may determine
which transition is in progress by examining its
argv[0], which is set to one of suspend, standby,
resume, powerup, or powerdown.