Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Edit: This first post's problem has been solved- please read to the second post for the real problem. Thanks.
I have recently tried to install the ATI drivers on two computers, and gotten the same error each time. Following the ATI Driver Install Tutorial (http://www.linuxquestions.org/questi...icle&artid=212), I come to installing the drivers after converting them to *.deb format with alien. Then, this occurs:
Code:
LLJK:/home/gamezace# dpkg -i fglrx-4-3-0_8.8.25-2_i386.deb
Selecting previously deselected package fglrx-4-3-0.
(Reading database ... 62070 files and directories currently installed.)
Unpacking fglrx-4-3-0 (from fglrx-4-3-0_8.8.25-2_i386.deb) ...
dpkg: error processing fglrx-4-3-0_8.8.25-2_i386.deb (--install):
trying to overwrite `/usr/X11R6/lib/libGL.so.1.2', which is also in package xlibmesa-gl
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
fglrx-4-3-0_8.8.25-2_i386.deb
LLJK:/home/gamezace#
This exact error happened on both machines I tried to install the drivers on.
I tried fooling around the files a bit, but nothing I did seemed to work.
I searched around the forums...but could not find another instance of this exact error - perhaps I just missed it though. Any help you could give would be greatly appreciated.
Okay, well, I fixed the first problem - all it needed was to do the following:
Code:
dpkg -i --force-all fglrx*.deb
However, I have found another problem in patching the agpgart_be.c and agpgart.h files, as listed in the tutorial.
As discussed here, http://forums.gentoo.org/viewtopic.php?t=173239, some of the patch lines, specifically patch->flags, has been deprecated and no longer works - as is visible by the following error:
Code:
LLJK:/lib/modules/fglrx/build_mod# patch -p1 < fglrx.patch
patching file agpgart_be.c
patch: **** malformed patch at line 17: set_bit(PG_locked,&page->flags);
Someone in the link above made a patch to fix this problem:
LLJK:/lib/modules/fglrx/build_mod# patch -p0 < newpatch.patch
patching file agpgart_be.c
Hunk #2 FAILED at 4413.
1 out of 2 hunks FAILED -- saving rejects to file agpgart_be.c.rej
patching file firegl_public.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 2114 (offset 62 lines).
I was curious as to if someone could host their patched apggart_be.c and agpgart.h files so I could simply replace mine with the correct, patched ones - I have been through numerous options for getting around the above error. Does anyone have any other ideas? Thanks in advance.
As it turns out, I was running myself in circles, as the page->count error was one of the patches included in the install described in the tutorial...but when that didn't work, I ended up with a patch for the patch...and then a patch for another...and then got totally lost.
Sorry for all the confusion - haha, I'm about to give up I think. I currently have 6 different patches, all of which fail - haha. If anyone could post their patched apggart_be.c and agpgart.h files, that would be great - because I'm done with the patches - none of them work - :-P
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
downloading the above script to /usr/local/bin
chmod it
leave x (ctrl+alt+F1)
log in
do,
install-radeon-debian.sh
when done ctrl+alt+F7 to return to x
Everything should be fine and installed and patched for you...if fonts are screwy do; http://kanotix.com/files/fix-fonts.sh
download to /usr/local/bin
chmod
execute done
run gxlinfo to see info and make sure glrender is on
I know its Kanotix website and Kano's scripts but I have asked in #Kanotix if I can use the scripts for a pure debian box I have and he said yes.
downloading the above script to /usr/local/bin
chmod it
leave x (ctrl+alt+F1)
log in
do,
install-radeon-debian.sh
when done ctrl+alt+F7 to return to x
Everything should be fine and installed and patched for you...if fonts are screwy do; http://kanotix.com/files/fix-fonts.sh
download to /usr/local/bin
chmod
execute done
run gxlinfo to see info and make sure glrender is on
I know its Kanotix website and Kano's scripts but I have asked in #Kanotix if I can use the scripts for a pure debian box I have and he said yes.
Unfortunatly when I run install-radeon-debian.sh it spits out "Error: Bad /etc/X11/XF86Config-4 file."
Thinking it didn't like some of my modifications for some reason, I reran XFree86Config and xserver-xfree86 config - generating new config files - this didn't seem to work though...I still got the same error.
Any ideas?
I tried replacing pci_find_class with pci_get_class as described several posts above...but I still got the same error while patching:
Code:
LLJK:/lib/modules/fglrx/build_mod# patch -p1 <kernelpatch.patch
patching file agpgart_be.c
patch: **** malformed patch at line 17: set_bit(PG_locked, &page->flags);
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.