#1 i915 support patch

open
nobody
None
5
2005-05-31
2005-05-31
No

I have successfully patched i855crt to function on
recent i915 graphics controllers (specifically, a Dell
Latitude D410).

This patch also makes for some minor cleanups,
including a speling error, and mistaken use of ; rather
than || in a block if statement.

Mode support with the i915 appears to be uncooperative,
I was only able to get a stable (but very solid) image
with 1024x768@70 on a Belinea 17" TFT

Discussion

  • Stefan Ott
    Stefan Ott
    2005-09-17

    Logged In: YES
    user_id=1316502

    Hi

    On my thinkpad x41 (i915GM), if I enable the video port
    using the patched i855crt I get a picture with very
    messed-up colors. If I first initialize the port using the
    built-in video switch (Fn-F5 or echo video_switch >
    /proc/acpi/ibm/video), switching with i855crt works
    perfectly well afterwards. It seems something is not
    correctly initialized there.

     
  • lik
    lik
    2005-10-12

    Logged In: YES
    user_id=1106424

    I also have the same problem of stefan_ott using my Sony
    vaio VGN-FS550 with an i915GM chipset.
    If i link a CRT monitor and type
    > ./i855crt on 1024x768@70
    on the crt screen, i get an image moved on the left by about
    200 px and with very wrong colors.

    if i
    > ./i855crt on rawpipe
    i get correct colors but lines move strangely making the
    image unclear

     
  • Logged In: NO

    Hm, I'd love to poke this further, but

    1) WorksForMe (tm)
    2) I don't really understand the code, I just tried a
    trivial little patch to force it onto my Dell, and it
    happened to work.

    It'd be nice if this were still in development, but the CVS
    has gone a little stale

     
  • Dino E. Risso
    Dino E. Risso
    2006-04-18

    Logged In: YES
    user_id=1503983

    I try the patched i855crt in my Sony Vaio VGN-TX650FP.
    The resolution in the LCD is 1366x768@70hz (widescreen).
    When I switch on the CRT I obtain correct colors but lines
    that move strangely making the image unclear similar to
    reported by
    "lik"

    However if first I switch the resolution to 1024x768@71hz
    using the comand "xrandr" and next switch on the CRT, I
    obtain correct colors and correct image, except for: (1) a
    small
    square block at left-top of the CRT with some garbage. (2)
    The 1/5 right size portion of the image is out of display in
    both LCD and CRT.

     
  • Dino E. Risso
    Dino E. Risso
    2006-04-18

    Logged In: YES
    user_id=1503983

    I modify the /etc/X11/XF86Config-4
    to set 1024x768 instead of 1377x768 reported below, next
    I switch on the CRT (with patched command: i855crt on
    1024x768@70). Now the CRT display contains exactly all the
    image, with the correct colors. Still the small garbage
    block (about 1/10 x 1/10) at left top remains.

    Any suggestion?

     
  • Dino E. Risso
    Dino E. Risso
    2006-04-18

    Logged In: YES
    user_id=1503983

    Finally the small left-top block garbage dissapears if
    I use the command:

    i855crt swcursor on 1024x768@70

     
  • Johan
    Johan
    2007-03-17

    Logged In: YES
    user_id=1744531
    Originator: NO

    Could someone please post a short howto for this? I don't know how to use .diff files. Thanks!

     
  • Stefan Ott
    Stefan Ott
    2007-03-18

    Logged In: YES
    user_id=1316502
    Originator: NO

    Hi!

    To use this diff file, enter the unpacked source directory, then type

    patch -p1 < /path/to/the/diff/file

    For details on how to use patch, see http://www.linuxmanpages.com/man1/patch.1.php

     
  • Johan
    Johan
    2007-03-18

    Logged In: YES
    user_id=1744531
    Originator: NO

    Hi again!

    Patching seemed to work:
    patch -p1 < ../i855-crt-i915support.diff
    patching file dumpreg.c
    patching file i855crt.c
    patching file i855crt.h

    But not the compiling:
    make
    gcc -c i855crt.c
    i855crt.c:22:22: error: X11/Xlib.h: The file or catalog does not exist
    i855crt.c:23:23: error: X11/Xutil.h: The file or catalog does not exist
    i855crt.c:24:28: error: X11/cursorfont.h: The file or catalog does not exist
    i855crt.c:25:31: error: X11/extensions/Xv.h: The file or catalog does not exist
    i855crt.c:26:34: error: X11/extensions/Xvlib.h: The file or catalog does not exist
    i855crt.c: In function ‘overlay_select_pipe’:
    i855crt.c:40: error: ‘Atom’ undeclared (first use in this function)
    i855crt.c:40: error: (Each undeclared identifier is reported only once
    i855crt.c:40: error: for each function it appears in.)
    i855crt.c:40: error: expected ‘;’ before ‘AtomPipe’
    i855crt.c:41: error: ‘XvAdaptorInfo’ undeclared (first use in this function)
    i855crt.c:41: error: ‘info’ undeclared (first use in this function)
    i855crt.c:42: error: ‘XvAttribute’ undeclared (first use in this function)
    i855crt.c:42: error: ‘xvattr’ undeclared (first use in this function)
    i855crt.c:43: error: ‘Display’ undeclared (first use in this function)
    i855crt.c:43: error: ‘d’ undeclared (first use in this function)
    i855crt.c:48: error: ‘AtomPipe’ undeclared (first use in this function)
    i855crt.c:48: error: ‘False’ undeclared (first use in this function)
    i855crt.c:51: error: ‘Success’ undeclared (first use in this function)
    make: *** [i855crt.o] Error 1

     
  • noamik
    noamik
    2008-04-08

    Logged In: YES
    user_id=1982170
    Originator: NO

    @re-jeep:
    Install libxv-dev to get the needed header files. i855crt will than compile.