diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1999-05-08 01:15:59 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1999-05-08 01:15:59 +0000 |
commit | e4199f109f80f3458ee10639d59a73dd019ec92e (patch) | |
tree | 87e078b41d6cfe2ad9e63d54a775d01337f1b69a | |
parent | 6f2f923758c66818b4531cbfed939bb56ba63eab (diff) |
Turn off sync when turning off video so that monitors will go into stand-by.
-rw-r--r-- | sys/arch/sparc/dev/cgsix.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/cgsix.c b/sys/arch/sparc/dev/cgsix.c index 6721d9c5761..8ace1e00fcc 100644 --- a/sys/arch/sparc/dev/cgsix.c +++ b/sys/arch/sparc/dev/cgsix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgsix.c,v 1.11 1999/04/22 16:52:47 art Exp $ */ +/* $OpenBSD: cgsix.c,v 1.12 1999/05/08 01:15:58 jason Exp $ */ /* $NetBSD: cgsix.c,v 1.33 1997/08/07 19:12:30 pk Exp $ */ /* @@ -326,7 +326,7 @@ cgsixattach(parent, self, args) ((char *)&sc->sc_cmap)[i] = bt->bt_cmap >> 24; /* enable video */ - sc->sc_thc->thc_misc |= THC_MISC_VIDEN; + sc->sc_thc->thc_misc |= THC_MISC_VIDEN | THC_MISC_SYNCEN; if (isconsole) { printf(" (console)\n"); @@ -429,7 +429,7 @@ cgsixioctl(dev, cmd, data, flags, p) cg6_unblank(&sc->sc_dev); else if (!sc->sc_blanked) { sc->sc_blanked = 1; - sc->sc_thc->thc_misc &= ~THC_MISC_VIDEN; + sc->sc_thc->thc_misc &= ~(THC_MISC_VIDEN|THC_MISC_SYNCEN); } break; @@ -692,7 +692,7 @@ cg6_unblank(dev) if (sc->sc_blanked) { sc->sc_blanked = 0; - sc->sc_thc->thc_misc |= THC_MISC_VIDEN; + sc->sc_thc->thc_misc |= THC_MISC_VIDEN|THC_MISC_SYNCEN; } } |