diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-07-17 12:16:17 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-07-17 12:16:17 +0000 |
commit | a139a763773b09a328a051b9c976d617900ad3a1 (patch) | |
tree | 0286f25b722373d0d83e69335abff80f956acab6 /sys/arch/sparc/dev | |
parent | 431bf1dcd1e2add5b99c593096915689a2081c19 (diff) |
Always turn off video when the lid is closed; this behaviour was lost in r1.8.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/tctrl.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc/dev/tctrl.c b/sys/arch/sparc/dev/tctrl.c index 99c654f910e..9f13778b9db 100644 --- a/sys/arch/sparc/dev/tctrl.c +++ b/sys/arch/sparc/dev/tctrl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tctrl.c,v 1.13 2005/07/08 12:50:21 miod Exp $ */ +/* $OpenBSD: tctrl.c,v 1.14 2005/07/17 12:16:16 miod Exp $ */ /* $NetBSD: tctrl.c,v 1.2 1999/08/11 00:46:06 matt Exp $ */ /*- @@ -535,9 +535,8 @@ tctrl_read_event_status(void *arg) } if (v & TS102_EVENT_STATUS_LID_STATUS_CHANGE) { tctrl_read_ext_status(sc); - /* restore video if necessary */ - if ((sc->sc_ext_status & TS102_EXT_STATUS_LID_DOWN) == 0 && - sc->sc_tft_on) + /* blank or restore video if necessary */ + if (sc->sc_tft_on) tctrl_tft(sc); #ifdef TCTRLDEBUG printf("%s: lid %s\n", sc->sc_dev.dv_xname, |