[ltp] Re: LCD plus DVI on T30 under Ubuntu feisty

Thomas Hood linux-thinkpad@linux-thinkpad.org
Thu, 31 May 2007 19:02:34 +0200


Dear Xperts,

I already had installed:

    xserver-xorg-dev
    x11proto-xf86misc-dev
    x11proto-gl-dev

along with:

    xutils-dev

which replaces xorg-build-macros.  I did:

    cg-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
    cd xf86-video-ati
    ./autogen.sh prefix=/usr

Then I had to edit ./config.h to add three macro definitions:

    #define PACKAGE_VERSION_MAJOR 6
    #define PACKAGE_VERSION_MINOR 6
    #define PACKAGE_VERSION_PATCHLEVEL 192

Then:

    make

and to install:

    sudo mv /usr/lib/xorg/modules/drivers/radeon_drv.so /usr/lib/xorg/modules/drivers/radeon_drv.so_FEISTY
    sudo mv /usr/lib/xorg/modules/drivers/ati_drv.so /usr/lib/xorg/modules/drivers/ati_drv.so_FEISTY
    sudo cp src/.libs/radeon_drv.so /usr/lib/xorg/modules/drivers/radeon_drv.so
    sudo cp src/.libs/ati_drv.so /usr/lib/xorg/modules/drivers/ati_drv.so
    sudo chmod ugo-x /usr/lib/xorg/modules/drivers/radeon_drv.so
    sudo chmod ugo-x /usr/lib/xorg/modules/drivers/ati_drv.so

I edited xorg.conf to look like this:

    Section "Device"
        Identifier      "Radeon Mobility 7500"
        Driver          "radeon"
        BusID           "PCI:1:0:0"
        Option          "MergedFB"              "True"
        Option          "MonitorLayout"         "LVDS, TMDS"
        Option          "CRT2Position"          "RightOf"
        Option          "MetaModes"             "1400x1050-1280x1024 1400x1050"
        Option          "MergedNonRectangular"  "True"
    EndSection

    Section "Monitor"
        Identifier      "Generic Monitor"
    EndSection

    Section "Screen"
        Identifier      "Default Screen"
        Device          "Radeon Mobility 7500"
        Monitor         "Generic Monitor"
        DefaultDepth    16
        #JDTH: For DRI can only use laptop display and only at 16 bit depth
        SubSection "Display"
                Depth           16
                Modes           "1400x1050 1280x1024 2680x1024"
        EndSubSection
    EndSection

But X would not start.  Here is the relevant part of the log:

    (II) Setting vga for screen 0.
    (II) RADEON(0): MMIO registers at 0xd0100000: size 64KB
    (II) RADEON(0): PCI bus 1 card 0 func 0
    (**) RADEON(0): Depth 16, (--) framebuffer bpp 16
    (II) RADEON(0): Pixel depth = 16 bits stored in 2 bytes (16 bpp pixmaps)
    (==) RADEON(0): Default visual is TrueColor
    (**) RADEON(0): Option "MonitorLayout" "LVDS, TMDS"
    (**) RADEON(0): Option "MergedFB" "True"
    (**) RADEON(0): Option "CRT2Position" "RightOf"
    (**) RADEON(0): Option "MetaModes" "1400x1050-1280x1024 1400x1050"
    (**) RADEON(0): Option "MergedNonRectangular" "True"
    (II) Loading sub module "vgahw"
    (II) LoadModule: "vgahw"
    (II) Loading /usr/lib/xorg/modules//libvgahw.so
    (II) Module vgahw: vendor="X.Org Foundation"
    	compiled for 7.2.0, module version = 0.1.0
    	ABI class: X.Org Video Driver, version 1.1
    (II) RADEON(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
    (==) RADEON(0): RGB weight 565
    (II) RADEON(0): Using 6 bits per RGB (8 bit DAC)
    (==) RADEON(0): X server will not keep DPI constant for all screen sizes
    (II) Loading sub module "int10"
    (II) LoadModule: "int10"
    (II) Reloading /usr/lib/xorg/modules//libint10.so
    (II) RADEON(0): initializing int10
    (II) Loading sub module "vm86"
    (II) LoadModule: "vm86"
    (II) Loading /usr/lib/xorg/modules//libvm86.so
    (II) Module vm86: vendor="X.Org Foundation"
    	compiled for 7.2.0, module version = 1.0.0
    	ABI class: X.Org Video Driver, version 1.1
    (II) RADEON(0): Primary V_BIOS segment is: 0xc000
    (--) RADEON(0): Chipset: "ATI Radeon Mobility M7 LW (AGP)" (ChipID = 0x4c57)
    (--) RADEON(0): Linear framebuffer at 0xe8000000
    (II) RADEON(0): AGP card detected
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenByBusid: Searching for BusID pci:0000:01:00.0
    drmOpenDevice: node name is /dev/dri/card0
    drmOpenDevice: open result is 7, (OK)
    drmOpenByBusid: drmOpenMinor returns 7
    drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
    (II) RADEON(0): [dri] Found DRI library version 1.3.0 and kernel module version 1.25.0
    (==) RADEON(0): Page Flipping disabled
    (II) RADEON(0): Will try to use DMA for Xv image transfers
    (II) RADEON(0): Detected total video RAM=16384K, accessible=65536K (PCI BAR=131072K)
    (--) RADEON(0): Mapped VideoRAM: 16384 kByte (64 bit DDR SDRAM)
    (II) RADEON(0): Color tiling enabled by default
    (II) Loading sub module "ddc"
    (II) LoadModule: "ddc"
    (II) Reloading /usr/lib/xorg/modules//libddc.so
    (II) Loading sub module "i2c"
    (II) LoadModule: "i2c"
    (II) Loading /usr/lib/xorg/modules//libi2c.so
    (II) Module i2c: vendor="X.Org Foundation"
    	compiled for 7.2.0, module version = 1.2.0
    	ABI class: X.Org Video Driver, version 1.1
    (II) RADEON(0): I2C bus "DDC" initialized.
    (II) RADEON(0): Legacy BIOS detected
    (II) RADEON(0): Connector0: DDCType-2, DACType-1, TMDSType-0, ConnectorType-4
    (II) RADEON(0): Connector1: DDCType-3, DACType-0, TMDSType--1, ConnectorType-2
    (**) RADEON(0): MonitorLayout Option:
    	Monitor1--Type LVDS, Monitor2--Type TMDS

    (II) RADEON(0): DDC Type: 1, Detected Type: 0
    (II) RADEON(0): I2C device "DDC:ddc2" registered at address 0xA0.
    (II) RADEON(0): I2C device "DDC:ddc2" removed.
    (II) RADEON(0): DDC Type: 2, Detected Type: 3
    (II) RADEON(0): EDID data from the display on 2nd port -----------------------
    (II) RADEON(0): Manufacturer: DEL  Model: 3011  Serial#: 1096107610
    (II) RADEON(0): Year: 2004  Week: 15
    (II) RADEON(0): EDID Version: 1.3
    (II) RADEON(0): Digital Display Input
    (II) RADEON(0): Max H-Image Size [cm]: horiz.: 34  vert.: 27
    (II) RADEON(0): Gamma: 2.20
    (II) RADEON(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
    (II) RADEON(0): Default color space is primary color space
    (II) RADEON(0): First detailed timing is preferred mode
    (II) RADEON(0): redX: 0.634 redY: 0.354   greenX: 0.304 greenY: 0.581
    (II) RADEON(0): blueX: 0.143 blueY: 0.102   whiteX: 0.310 whiteY: 0.330
    (II) RADEON(0): Supported VESA Video Modes:
    (II) RADEON(0): 720x400@70Hz
    (II) RADEON(0): 640x480@60Hz
    (II) RADEON(0): 640x480@75Hz
    (II) RADEON(0): 800x600@60Hz
    (II) RADEON(0): 800x600@75Hz
    (II) RADEON(0): 1024x768@60Hz
    (II) RADEON(0): 1024x768@75Hz
    (II) RADEON(0): 1280x1024@75Hz
    (II) RADEON(0): Manufacturer's mask: 0
    (II) RADEON(0): Supported Future Video Modes:
    (II) RADEON(0): #0: hsize: 1152  vsize 864  refresh: 75  vid: 20337
    (II) RADEON(0): #1: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
    (II) RADEON(0): Supported additional Video Mode:
    (II) RADEON(0): clock: 108.0 MHz   Image Size:  338 x 270 mm
    (II) RADEON(0): h_active: 1280  h_sync: 1328  h_sync_end 1440 h_blank_end 1688 h_border: 0
    (II) RADEON(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 1066 v_border: 0
    (II) RADEON(0): Serial No: 4Y279447AUFZ
    (II) RADEON(0): Monitor name: DELL 1703FP
    (II) RADEON(0): Ranges: V min: 56  V max: 76 Hz, H min: 30  H max: 80 kHz, PixClock max 140 MHz
    (II) RADEON(0): EDID (in hex):
    (II) RADEON(0): 	00ffffffffffff0010ac11305a465541
    (II) RADEON(0): 	0f0e010380221b78ee6f86a25a4d9424
    (II) RADEON(0): 	1a4f54a54b00714f8180010101010101
    (II) RADEON(0): 	010101010101302a009851002a403070
    (II) RADEON(0): 	1300520e1100001e000000ff00345932
    (II) RADEON(0): 	37393434374155465a0a000000fc0044
    (II) RADEON(0): 	454c4c203137303346500a20000000fd
    (II) RADEON(0): 	00384c1e500e000a2020202020200094
    (II) RADEON(0):
    (II) RADEON(0): Port1:
     Monitor   -- LVDS
     Connector -- DVI-D
     DAC Type  -- TVDAC/ExtDAC
     TMDS Type -- NONE
     DDC Type  -- MONID
    (II) RADEON(0): Port2:
     Monitor   -- TMDS
     Connector -- DVI-I
     DAC Type  -- Primary
     TMDS Type -- Internal
     DDC Type  -- DVI_DDC
    (II) RADEON(0): ---- Primary Head:   Port1 ----
    (II) RADEON(0): ---- Secondary Head: Port2 ----
    (II) RADEON(0): PLL parameters: rf=2700 rd=12 min=12000 max=35000; xclk=18300
    (II) RADEON(0): Panel ID string: SXGA+ Single (85MHz)
    (II) RADEON(0): Panel Size from BIOS: 1400x1050
    (II) RADEON(0): BIOS provided dividers will be used.
    (II) RADEON(0): DFP table revision: 2
    (II) RADEON(0): MergedFB mode forced on.
    (==) RADEON(0): Using gamma correction (1.0, 1.0, 1.0)
    (II) RADEON(0): Validating modes on Primary head ---------
    (II) RADEON(0): Panel ID string: SXGA+ Single (85MHz)
    (II) RADEON(0): Panel Size from BIOS: 1400x1050
    (II) RADEON(0): BIOS provided dividers will be used.
    (II) RADEON(0): DFP table revision: 2
    (II) RADEON(0): Total number of valid DDC mode(s) found: 0
    (EE) RADEON(0): No valid mode found for this DFP/LCD
    (II) UnloadModule: "ati"
    (II) UnloadModule: "i2c"
    (II) Unloading /usr/lib/xorg/modules//libi2c.so
    (II) UnloadModule: "ddc"
    (II) UnloadModule: "vm86"
    (II) Unloading /usr/lib/xorg/modules//libvm86.so
    (II) UnloadModule: "int10"
    (II) UnloadModule: "vgahw"
    (II) Unloading /usr/lib/xorg/modules//libvgahw.so
    (II) UnloadModule: "radeon"
    (EE) Screen(s) found, but none have a usable configuration.

    Fatal server error:
    no screens found

If I comment out the "Option   MonitorLayout" line then X starts
with only one screen.

Does anyone know what I am doing wrong?
-- 
Thomas