igfx: properly turn vga monitor off

This commit is contained in:
cinap_lenrek 2015-01-12 02:10:00 +01:00
parent 34f2e1eaf6
commit 90c1959fc4

View file

@ -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 == '+')