summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-01-12 02:10:00 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-01-12 02:10:00 +0100
commit90c1959fc4b0d05a81920edf9caf21f1280305d6 (patch)
treec7d442d9df5b3b6230f3caead496bebfacfa3e6b
parent34f2e1eaf607c577b263f553c465930afbebd10f (diff)
downloadplan9front-90c1959fc4b0d05a81920edf9caf21f1280305d6.tar.xz
igfx: properly turn vga monitor off
-rw-r--r--sys/src/cmd/aux/vga/igfx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/aux/vga/igfx.c b/sys/src/cmd/aux/vga/igfx.c
index ac85ce3fb..9d972b148 100644
--- a/sys/src/cmd/aux/vga/igfx.c
+++ b/sys/src/cmd/aux/vga/igfx.c
@@ -760,6 +760,9 @@ init(Vga* vga, Ctlr* ctlr)
igfx->ppcontrol.v &= ~5;
igfx->lvds.v &= ~(1<<31);
igfx->adpa.v &= ~(1<<31);
+ if(igfx->type == TypeG45)
+ igfx->adpa.v |= (3<<10); /* Monitor DPMS: off */
+
for(x=0; x<igfx->npipe; x++)
igfx->pipe[x].conf.v &= ~(1<<31);
@@ -780,7 +783,7 @@ init(Vga* vga, Ctlr* ctlr)
x = (igfx->adpa.v >> 30) & 1;
igfx->adpa.v |= (1<<31);
if(igfx->type == TypeG45){
- igfx->adpa.v &= ~(3<<10); /* Monitor DPMS */
+ igfx->adpa.v &= ~(3<<10); /* Monitor DPMS: on */
igfx->adpa.v &= ~(1<<15); /* ADPA Polarity Select */
if(m->vsync == '+')