Ticket #1298: xorg_server-X11R7.0_1.0.1-dotclock-1.patch

File xorg_server-X11R7.0_1.0.1-dotclock-1.patch, 2.8 KB (added by alexander@…, 18 years ago)

xorg dotclock patch

  • hw/xfree86/common/xf86Mode.c

    Submitted By: Alexander E. Patrakov
    Date: 2006-02-28
    Initial Package Version: 7.0.0
    Origin: Alexander E. Patrakov
    Upstream status: LiveCD specific
    Description: Makes it an error to exceed the DDC probed maximum dot clock.
    Deletes default modes with refresh rate less than 60 Hz
    
    Should fix "I get 2048x1536@60Hz instead of nice 1600x1200@75Hz" and
    "my LCD monitor gets confused" problems with unconfigured (i.e.,
    no "Modes" line) Xorg.
    
    diff -ur xorg-server-X11R7.0-1.0.1.orig/hw/xfree86/common/xf86Mode.c xorg-server-X11R7.0-1.0.1/hw/xfree86/common/xf86Mode.c
    old new  
    771771                   "(%s,%s) mode clock %gMHz exceeds DDC maximum %dMHz\n",
    772772                   mode->name, monitor->id,
    773773                   mode->Clock/1000.0, mon_range->max_clock);
     774                return MODE_CLOCK_HIGH;
    774775            }
    775776        }
    776777    }
  • hw/xfree86/common/extramodes

    diff -ur xorg-server-X11R7.0-1.0.1.orig/hw/xfree86/common/extramodes xorg-server-X11R7.0-1.0.1/hw/xfree86/common/extramodes
    old new  
    77# 832x624 @ 75Hz (74.55Hz) (fix if the official/Apple spec is different) hsync: 49.725kHz
    88ModeLine "832x624" 57.284 832  864  928 1152  624  625  628  667 -Hsync -Vsync
    99
    10 # 1152x768 @ 54.8Hz (Titanium PowerBook) hsync: 44.2kHz
    11 ModeLine "1152x768"   64.995 1152 1178 1314 1472  768  771  777  806 +hsync +vsync
    12 
    1310# 1400x1050 @ 60Hz (VESA GTF) hsync: 65.5kHz
    1411ModeLine "1400x1050" 122.0 1400 1488 1640 1880   1050 1052 1064 1082 +hsync +vsync
    1512
  • hw/xfree86/common/vesamodes

    diff -ur xorg-server-X11R7.0-1.0.1.orig/hw/xfree86/common/vesamodes xorg-server-X11R7.0-1.0.1/hw/xfree86/common/vesamodes
    old new  
    2727# 640x480 @ 85Hz (VESA) hsync: 43.3kHz
    2828ModeLine "640x480"    36.0  640  696  752  832    480  481  484  509 -hsync -vsync
    2929
    30 # 800x600 @ 56Hz (VESA) hsync: 35.2kHz
    31 ModeLine "800x600"    36.0  800  824  896 1024    600  601  603  625 +hsync +vsync
    32 
    3330# 800x600 @ 60Hz (VESA) hsync: 37.9kHz
    3431ModeLine "800x600"    40.0  800  840  968 1056    600  601  605  628 +hsync +vsync
    3532
     
    4239# 800x600 @ 85Hz (VESA) hsync: 53.7kHz
    4340ModeLine "800x600"    56.3  800  832  896 1048    600  601  604  631 +hsync +vsync
    4441
    45 # 1024x768i @ 43Hz (industry standard) hsync: 35.5kHz
    46 ModeLine "1024x768"   44.9 1024 1032 1208 1264    768  768  776  817 +hsync +vsync Interlace
    47 
    4842# 1024x768 @ 60Hz (VESA) hsync: 48.4kHz
    4943ModeLine "1024x768"   65.0 1024 1048 1184 1344    768  771  777  806 -hsync -vsync
    5044