vt_suspend / vt_resume

Andriy Gapon avg at FreeBSD.org
Tue Sep 30 05:48:20 UTC 2014


I think that currently vt_suspend / vt_resume are called at quite unsuitable
times.  For example, vt_suspend performs a vt switch which requires cooperation
from an X server, but that could be problematic given that some devices may
already be suspended.
I believe that it is better to do what sc(4) does and use power_suspend /
power_resume event handlers instead of device_suspend / device_resume methods.
power_suspend event is posted when a kernel has not entered any special state yet.

What do you think?
-- 
Andriy Gapon


More information about the freebsd-current mailing list