changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: igfx: properly turn vga monitor off

changeset 4202: 4ab066e1b5b2
parent 4201: 6e74137cd05c
child 4203: 0ee5a9547efd
author: cinap_lenrek@felloff.net
date: Mon, 12 Jan 2015 02:10:00 +0100
files: sys/src/cmd/aux/vga/igfx.c
description: igfx: properly turn vga monitor off
     1.1--- a/sys/src/cmd/aux/vga/igfx.c
     1.2+++ b/sys/src/cmd/aux/vga/igfx.c
     1.3@@ -760,6 +760,9 @@ init(Vga* vga, Ctlr* ctlr)
     1.4 	igfx->ppcontrol.v &= ~5;
     1.5 	igfx->lvds.v &= ~(1<<31);
     1.6 	igfx->adpa.v &= ~(1<<31);
     1.7+	if(igfx->type == TypeG45)
     1.8+		igfx->adpa.v |= (3<<10);	/* Monitor DPMS: off */
     1.9+
    1.10 	for(x=0; x<igfx->npipe; x++)
    1.11 		igfx->pipe[x].conf.v &= ~(1<<31);
    1.12 
    1.13@@ -780,7 +783,7 @@ init(Vga* vga, Ctlr* ctlr)
    1.14 			x = (igfx->adpa.v >> 30) & 1;
    1.15 		igfx->adpa.v |= (1<<31);
    1.16 		if(igfx->type == TypeG45){
    1.17-			igfx->adpa.v &= ~(3<<10);	/* Monitor DPMS */
    1.18+			igfx->adpa.v &= ~(3<<10);	/* Monitor DPMS: on */
    1.19 
    1.20 			igfx->adpa.v &= ~(1<<15);	/* ADPA Polarity Select */
    1.21 			if(m->vsync == '+')