> > > Do you mean something other than the vga= command line option?
> > > Which actually just sets a 16bit mode in the kernel parameter structure.
> >
> > In case of vga=ask, it is kernel that gets number from the user,
> > right?
>
> Right.
>
> > I'd need to know what mode was actually selected, so I can restore it
> > after S3 resume.
>
> I guess that works. In this case it makes sense for the kernel to
> store it in the same variable the video mode is specified in. This
> may require an extra store but it should be trivial to implement.
>
> How are you handling the case of X and friends? Are you making
> certain to switch to kernel controlled vt?
Switch to kernel-controlled-console with messages about suspend is how
I'm handling this in S4 (suspend-to-disk).
> My hunch is that this is a decent argument for real framebuffer drivers
> in the kernel. But that is a separate problem.
Well, not neccessary since I can switch consoles back and forth in
kernel just fine.
Pavel
-- Casualities in World Trade Center: ~3k dead inside the building, cryptography in U.S.A. and free speech in Czech Republic. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/