Jump to content

How to apply a Patch?


SK_pt
 Share

Recommended Posts

Hi,

 

I duno if someone had the same problem, but the thing is that I bought this laptop, and it seems it have this problem that Mandrake gave a solution.

 

The solution is to apply a patch, and the problem is with ATI Radeon 9000 on Laptops about changing between Tv-Out and PC, it will get black screen not coming back to monitor from OS.

 

So I got the solution but i know nothing what to do with it, I'm newbie in Linux, but advanced in programming, but not in Linux area (where i want to get in now).

 

I presume that I get the patch go to the *.c file of the driver, change the C code, and after that compile it, probably some make /file something... but i duno anything of this...

 

Anyone could put hee the steps for it? The full steps to apply a patch?

 

Anyways for the curious the solution to have my graphic card working correctly is bellow, the all patch solution.

 

Thanks

 

--- radeon_driver.c.orig 2003-09-21 12:39:25.952390342 +0200

+++ radeon_driver.c 2003-09-21 12:27:08.000000000 +0200

@@ -1058,7 +1058,7 @@

info->PanelPwrDly = RADEON_BIOS16(tmp+44);

if (info->PanelPwrDly > 2000 || info->PanelPwrDly < 0)

info->PanelPwrDly = 2000;

- for (i = 0; i < 20; i++) {

+ for (i = 0; i < 21; i++) {

tmp0 = RADEON_BIOS16(tmp+64+i*2);

if (tmp0 == 0) break;

if ((RADEON_BIOS16(tmp0) == info->PanelXRes) &&

Link to comment
Share on other sites

you can apply a patch by running the command

patch orignial patch

 

where orinignal is the filename of the file you want to patch and patch is the file name of the patch you want to apply

 

in your case it'll probably be

patch  radeon_driver.c  radeon_driver.c.patch

 

or something similar

cheers,

Alaa

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...