how to apply a patch

Hi All
I have been using Dell 1535 with VESA driver till now as INTEL gave me WSoD. Now this problem has been resolved - Recently a patch was released to fix the bug - but due to my limited knowledge in this field I have no clue how to apply this patch I really want to enjoy the pleasure of eye-candy graphics on my laptop using my graphics card.

Following is the freedesktop.org link for the patch (look at the second last post by Jesse Barnes)

Bug 18342 – [GM965] White screen that fades to stripes with “intel” driver

Sorry for my noobish and naive question

Thx
B.

place the patch inside the source directory
open terminal and ‘cd’ to there
run: patch -p1 --dry-run < patch_name

if you don’t get any errors, remove --dry-run to apply the patch. If you do get some errors, try
patch -p0 --dry-run < patch_name

if not errors pop up here, remove --dry-run to apply the patch

suncoolsu wrote:
> Hi All
> I have been using Dell 1535 with VESA driver till now as INTEL gave me
> WSoD. Now this problem has been resolved - Recently a patch was released
> to fix the bug - but due to my limited knowledge in this field I have no
> clue how to apply this patch I really want to enjoy the pleasure of
> eye-candy graphics on my laptop using my graphics card.
>
> Following is the freedesktop.org link for the patch (look at the second
> last post by Jesse Barnes)
>
> ‘Bug 18342 – [GM965] White screen that fades to stripes with
> “intel” driver’ (http://bugs.freedesktop.org/show_bug.cgi?id=18342)
>
> Sorry for my noobish and naive question

You should download the patch file and put it into the “src”
directory. To test it, issue the command

patch -p1 --dry-run < patch_file_name

That will test the patch to see if it applies cleanly without
modifying the original files. If that goes OK, you can do it for real with

patch -p1 < <patch_file_name>

To back it out later, use

patch -p1 -R < <patch_file_name>

For further usage of patch, see ‘man patch’.

Larry

hi all,
I tried what you said and something worked - but it gave me errors in the first 4 lines after I tried to apply this patch

http://bugs.freedesktop.org/attachment.cgi?id=21911

diff --git a/src/i830_bios.c b/src/i830_bios.c
index 72408f0…f727cdd 100644
— a/src/i830_bios.c
+++ b/src/i830_bios.c
@@ -124,13 +124,13 @@ parse_panel_data(I830Ptr pI830, struct bdb_header *bdb)
_H_SYNC_OFF(timing_ptr);
fixed_mode->HSyncEnd = fixed_mode->HSyncStart +
_H_SYNC_WIDTH(timing_ptr);

  • fixed_mode->HTotal = fixed_mode->HDisplay +
  • fixed_mode->HTotal = fixed_mode->HSyncEnd +
    _H_BLANK(timing_ptr);
    fixed_mode->VSyncStart = fixed_mode->VDisplay +
    _V_SYNC_OFF(timing_ptr);
    fixed_mode->VSyncEnd = fixed_mode->VSyncStart +
    _V_SYNC_WIDTH(timing_ptr);
  • fixed_mode->VTotal = fixed_mode->VDisplay +
  • fixed_mode->VTotal = fixed_mode->VSyncEnd +
    _V_BLANK(timing_ptr);
    fixed_mode->Clock = _PIXEL_CLOCK(timing_ptr) / 1000;
    fixed_mode->type = M_T_PREFERRED;

i understand - means to remove the lines and + means to add lines to the file i830_bios.c file in the /src/ directory.

Can anyone tell me what does this a b mean? I am not able to find the src directory :-(.

I downloaded the fresh xf86-video-intel-2.6.0 (2008Q4 release) from the Intel Linux Graphics. I could see the i830_bias.c file in the src folder after i extracted the tar file. I tried to install the -intel drivers.

I went to the folder xf86-video-intel-2.6.0 and tried to configure by -

~/xf86-video-intel-2.6.0$ ./configure

At the very end I get this** error**. (Everything else was fine)

checking for XORG… configure: error: Packge requirements (xorg-server xproto fontsproto ) were not met:

No package ‘xorg-server’ found
No package ‘xproto’ found
No package ‘fontsproto’ found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

How do i install these packages? or what do i need to do to solve this problem?