Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-12-2003, 08:20 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Stockholm, Sweden
Distribution: Ubuntu Breezy
Posts: 16

Rep: Reputation: 0
Question HOW to apply an xfree86 patch for a video driver?

Hello all,

When you're new to Linux, sometimes find the solutions only raises more questions; case in point:

I'm fairly certain that I'm being plagued by the following driver bug:

For the bug, there is a driver patch, this one:

What is the proper way to apply this patch?

--Does this new code supersede the old driver?
--Does this new code need to be added to the old driver?
--Is there some kind of compiling involved?
--How do I do this in such a way that it doesn't disrupt my KDE session in progress? Is this even an issue?

Thanks in advance for any help. It's frustrating to have the solution and not know what to do with it.


Last edited by andhar; 12-17-2003 at 05:26 AM.
Old 12-12-2003, 11:08 AM   #2
Registered: Oct 2003
Location: Caracas
Distribution: Knoppix 3.3 (Debian sarge/sid)
Posts: 72

Rep: Reputation: 15
Seems that you will need to compile. It shouldn't disturb your session but in order to get the patch to work you'll probably need to restart the X server (which includes shutting off KDE). I don't think you'll need to 'add' the code to the old driver, it will probably need only a replacing (backup your old driver ) - try to find README or INSTALL textfiles in the packages you download, expect an answer of an expert in this forum and, in last resort, go to the KDE support. Greetings.
Old 12-17-2003, 05:24 AM   #3
LQ Newbie
Registered: Nov 2003
Location: Stockholm, Sweden
Distribution: Ubuntu Breezy
Posts: 16

Original Poster
Rep: Reputation: 0


Okay, but HOW do I recompile? From what source? The whole X? Just a driver?

: - (

- Andrew
Old 01-01-2004, 08:58 AM   #4
LQ Newbie
Registered: Nov 2003
Location: Stockholm, Sweden
Distribution: Ubuntu Breezy
Posts: 16

Original Poster
Rep: Reputation: 0
All the info...still no go!

I still haven't been able to work out how I actually use the information I have on patching my video driver!

Can anyone help?

- Andrew
Old 01-01-2004, 11:53 AM   #5
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
IMO the safest way would be grabbing the source RPM, install it, patch the source tree then rebuild it. Using just the vanilla Xfree86 source is definitely not recommended, since Mandrake uses a number of patches on their XFree86. Obviosuly you'll need a compiler to do this so install GCC if you haven't already.

Grab the SRPM from any of Mandrake mirrors, here's one for you:
install it
rpm -ivh XFree86-4.3-23mdk.src.rpm
The installed files are inside the /usr/src/RPM directory.
At this point switch to one of the virtual consoles then shutdown X (init 3),
also make sure you know where you downloaded the i810_drv patch you mentioned in your original post.

cd into /usr/src/RPM/SOURCES then extract XFree86-4.3.tar.bz2, which contains the vanilla XFree86 source tree.
tar xvjf Xfree86-4.3.tar.bz2
It will be extracted into a directory called 'xc'
Now cd into "/usr/src/RPM/SOURCES/xc/programs/Xserver/hw/xfree86/drivers/i810", which is where the i810 driver source is located, then apply the patch.
patch -p0 < /fullpath/to/the/patch
If it patches successfully you should see something like "Hunk #1 SUCCESS"
Now cd back into /usr/src/RPM/SOURCES, then tar the xc directory, replacing the original XFree86-4.3.tar.bz2
tar cvjf XFree86-4.3.tar.bz2 xc
Lastly rebuild the package using the SPEC file
rpmbuild -bb /usr/src/RPM/SPECS/XFree86.spec
The -bb option implies that a binary package will be built, in addition to the installation. If you don't want to keep a binary package you can use -bi, but I'd say its a good idea to have one, in case you need to reinstall. Note that the binary package will appear in /usr/src/RPM/RPMS. Also you may run into dependency problems when you invoke the rpmbuild command, if that is the case just install the packages it asks for from your Mandrake CDs. The build procedure will probably take more than an hour depending on the speed of your machine, since XFree86 takes a long time to compile.

If that didn't fix your problem(either the patch didnt work as intended or something went wrong), you might want to try the DRI cvs drivers:

Good luck and Happy New Year!

Last edited by Demonbane; 01-01-2004 at 11:59 AM.
Old 03-28-2004, 03:32 PM   #6
LQ Newbie
Registered: Nov 2003
Location: Stockholm, Sweden
Distribution: Ubuntu Breezy
Posts: 16

Original Poster
Rep: Reputation: 0
Unhappy Still can't close this problem!

Hello again,

Since the last time I brought this issue up, I've tried everything to get around having to re-complile my kernel, since it just absolutely scares the b-geezus out of me.

* I switched from Mandrake to MEPIS linux (MEPIS is Debian-based -- and *wonderful*, btw)

* I briefly tried the Mandrake 10 Community release (based on the 2.6 kernal)

I had the same blue bars with these distros!! So, I'm currently back with the latest MEPIS distribution, and still have the same driver problem!!


1. I didn't have this problem with Mandrake 9.1; why is this problem recurring? The fis should be there!

2. Is there some non-scary way to patch my kernel now that I'm using a Debian-based distro?


- Andrew ("I want my DVD!")
Old 05-01-2004, 12:07 AM   #7
Registered: Jan 2004
Location: Gainesville, GA
Distribution: Ubuntu
Posts: 118

Rep: Reputation: 15
I know this may seem a bit odd, but what does your /etc/X11/xdm/Xservers file list?

it should have a line like the following:

:0 local /bin/nice -n -10 /usr/X11R6/bin/X -deferglyphs 16 -depth 16 -nolisten tcp

If yours is missing anything from the list, (like -depth 16, for example) then try to see if this fixes your movie player(s)

hope this helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to apply a patch? amwink Programming 2 11-25-2005 08:14 PM
Ho Do I Apply The CK Patch? AFI_Flame Linux - Software 1 11-14-2004 11:49 PM
How to apply PATCH? aurelio26 *BSD 3 10-07-2004 02:23 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-21-2004 12:14 AM
how do I apply a patch or a new driver blurhappy Linux - Laptop and Netbook 0 10-26-2003 01:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration