On Saturday 24 June 2006 08:30, Benjamin Herrenschmidt wrote: > On Fri, 2006-06-23 at 22:18 -0700, Linus Torvalds wrote: [-- snip --] > Well, console switch is generic way of dealing with X and other things > that may use directfb etc... as long as they are sane enough to honor > the console switch requests. So yes, in that sense, it's not a special > case. Now, where the console switch however doesn't quite "fit" in the > model at this point is that I don't think there is any relationship > currently between the VT subsystem and the driver model. Thus there is > no struct device/driver to attach a suspend_prepare and a resume_finish > hook. I'm not sure where we would hook one... If you have fbdev's, we > could have something on fbcon itself, though even how to do that isn't > obvious in the details. > > Any idea there ? In ususpend we switch the console from the userland using some ioctls, so we don't need pm_prepare/resume_console() (or any other in-kernel mechanism) for that. Greetings, Rafael