diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-03-30 17:40:56 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-03-30 17:40:56 +0000 |
commit | 17f79ce6ab989e13c40b1b05780f81a5d5f2fe05 (patch) | |
tree | dd13f9c70165296d96946a2c3d66f8b4709ae64c /usr.sbin/sliplogin | |
parent | f5972d809904e97326ca314c087612469e208db2 (diff) |
Prevent the apmd/x races for good.
When we hit suspend time, go through all wsdisplays on the system. if
they are in mode MAPPED, but not MODE_DUMBFB then if possible do a full
vt switch to a !mapped vt, and prevent switching back until resume time.
This has to be called from MD code because this involves userland
running so that X can run the vt switch signal handler. This way, any
case where we are using the "poke registers from userland" model, we
will not be on the hardware when we go down, so the kernel can actually
handle thing properly.
Tested on several acpi laptops (by kettenis@ and ian@), x40 (me and
beck@ at LEAST) and zaurus (me). Maybe others, but if so I forgot who at
this time..
Idea from deraadt somewhere over the Faroe Islands (I thought of a
similar thing myself a while ago). Much prompting from him. Ok and
comments miod@
Diffstat (limited to 'usr.sbin/sliplogin')
0 files changed, 0 insertions, 0 deletions