summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-05-12 16:11:29 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-05-12 16:11:29 -0700
commita115c4b872a385530dcf94b7e7f2fa9b3b7e3155 (patch)
treea72251af1250ca0445b0eae85457a9807705c89b /src/i830_driver.c
parent0cb251fadca1cbb3d4c5b97982cd0d8c2fc3e840 (diff)
Remove the code that changes our behavior based on whether a magic file exists
with magic contents in /tmp (created by some install script).
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index ca76a68c..d36ff3ea 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3112,47 +3112,6 @@ I830BIOSPreInit(ScrnInfoPtr pScrn, int flags)
SetPipeAccess(pScrn);
- /*
- * Using the installation script we need to find out if we've just been
- * installed, and if so, default to the native panel resolutions, otherwise
- * we'll default to whatever existed or the default monitor settings
- * that's inbuilt into the Xserver.
- */
- {
- FILE *f;
- if ((f = fopen("/tmp/.newinstallation", "r"))) {
- char data[2];
- fgets(data, 2, f);
- if (data[0] == 48) { /* First time */
- /* Ignore our monitors horizsync and vertrefresh
- * settings when we've detected a new installation
- * and we're on a flat panel, therefore we should
- * start with the native panels resolution
- */
-#if 0
- if ((pI830->pipe == 1) &&
- (pI830->operatingDevices & (PIPE_LFP << 8))) {
-#else
- /* Changed this to only work on LFP only systems
- * as the other devices may not support the LFP's
- * resolution.
- */
- if ((pI830->pipe == 1) &&
- (pI830->operatingDevices == (PIPE_LFP << 8))) {
-#endif
- pScrn->monitor->nHsync = 0;
- pScrn->monitor->nVrefresh = 0;
- xf86DrvMsg(pScrn->scrnIndex, X_INFO,
- "Detected new installation of driver, defaulting to LFP panel size.\n");
- }
- }
- fclose(f);
- f = fopen("/tmp/.newinstallation", "w");
- fputc(49, f);
- fclose(f);
- }
- }
-
/* Check we have an LFP connected, before trying to
* read PanelID information. */
if ( (pI830->pipe == 1 && pI830->operatingDevices & (PIPE_LFP << 8)) ||