summaryrefslogtreecommitdiff
path: root/src/radeon_driver.c
diff options
context:
space:
mode:
authorAlex Deucher <alex@t41p.hsd1.va.comcast.net>2008-03-26 18:01:29 -0400
committerAlex Deucher <alex@t41p.hsd1.va.comcast.net>2008-03-26 18:01:29 -0400
commit9b4473c1d830b88866dd22e8174a07195bd6fcf4 (patch)
tree49a573b0082d58e77b33c8801d7d1232c61398d9 /src/radeon_driver.c
parent8b144830fe9b4a0cee4745023de5e7d387070f60 (diff)
RADEON: attempt to fix lid issues
On some laptops the bios attempts to re-program the chip when a lid event comes in. This should hopefully prevent the bios from doing that.
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r--src/radeon_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 3d33d475..c3c7c777 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -2978,7 +2978,8 @@ RADEONInitBIOSRegisters(ScrnInfoPtr pScrn)
/* let the bios control the backlight */
save->bios_2_scratch &= ~ATOM_S2_VRI_BRIGHT_ENABLE;
/* tell the bios not to handle mode switching */
- save->bios_6_scratch |= ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH;
+ save->bios_6_scratch |= (ATOM_S6_ACC_BLOCK_DISPLAY_SWITCH |
+ ATOM_S6_ACC_MODE);
if (info->ChipFamily >= CHIP_FAMILY_R600) {
OUTREG(R600_BIOS_2_SCRATCH, save->bios_2_scratch);
@@ -2991,7 +2992,8 @@ RADEONInitBIOSRegisters(ScrnInfoPtr pScrn)
/* let the bios control the backlight */
save->bios_0_scratch &= ~RADEON_DRIVER_BRIGHTNESS_EN;
/* tell the bios not to handle mode switching */
- save->bios_6_scratch |= RADEON_DISPLAY_SWITCHING_DIS;
+ save->bios_6_scratch |= (RADEON_DISPLAY_SWITCHING_DIS |
+ RADEON_ACC_MODE_CHANGE);
/* tell the bios a driver is loaded */
save->bios_7_scratch |= RADEON_DRV_LOADED;