diff options
author | Alex Deucher <alex@botch2.(none)> | 2007-12-23 17:18:42 -0500 |
---|---|---|
committer | Alex Deucher <alex@botch2.(none)> | 2007-12-23 17:18:42 -0500 |
commit | ad3325f672a241449ca239c8ee3a24b6d7703d76 (patch) | |
tree | 2245584d391d3ddcb5f5c87cd8265d97324be48e /src/radeon_output.c | |
parent | 20eedf348a527e1e0a5450bc22d7564895034a66 (diff) |
RADEON: Add "IgnoreLidStatus" option
Generally, users that start X with the laptop lid closed
want to use one or more external monitors rather than the
internal panel and do not want the internal panel to be on
by default. Others, it seems, want to always have the
internal panel on, regardless of the lid. I can't win.
Enable this option to force the latter.
Diffstat (limited to 'src/radeon_output.c')
-rw-r--r-- | src/radeon_output.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/radeon_output.c b/src/radeon_output.c index 10369d9e..814c766f 100644 --- a/src/radeon_output.c +++ b/src/radeon_output.c @@ -437,14 +437,18 @@ RADEONDetectLidStatus(ScrnInfoPtr pScrn) static RADEONMonitorType RADEONPortCheckNonDDC(ScrnInfoPtr pScrn, xf86OutputPtr output) { + RADEONInfoPtr info = RADEONPTR(output->scrn); RADEONOutputPrivatePtr radeon_output = output->driver_private; RADEONMonitorType MonType = MT_NONE; if (radeon_output->type == OUTPUT_LVDS) { + if (xf86ReturnOptValBool(info->Options, OPTION_IGNORE_LID_STATUS, FALSE)) + MonType = MT_LCD; + else #if defined(__powerpc__) - MonType = MT_LCD; + MonType = MT_LCD; #else - MonType = RADEONDetectLidStatus(pScrn); + MonType = RADEONDetectLidStatus(pScrn); #endif } /*else if (radeon_output->type == OUTPUT_DVI) { if (radeon_output->TMDSType == TMDS_INT) { |