You are not logged in.
Mee too, i'm gonna ask him later..
Ah, i've updated the wiki page, let me know if it's comprensible and, as usual, feel free to change anything as u need.
http://wiki2.archlinux.org/index.php/At … rnel%202.6
grtz
Offline
Just thought it may be woth mentioning that it seems to work without disabling locked user pages, at least on my box.
[omri@Dean ~]$ cat /etc/X11/xorg.conf | grep KernelModuleParm
[omri@Dean ~]$ glxinfo | grep direct
direct rendering: Yes
Offline
Write it at the end of the howto on the wiki page mate
Offline
Thanks for the update Qwerty and DibbletheWrecker. I'll try them out and post back my outcome later tonite. Have to work now.
Skeeter
Rule #1: There are NO RULES!
Offline
Just to say that i have tried both packages and it works without any problems.
A good friend will come and bail you out of jail...BUT a true friend will be sitting next to you saying, "Damn...that was fun!"
Offline
I saw Ati-Drivers made it to Community.
Ok lets all vote for the kernel package too.
Powered by Arch Linux
Offline
[root@myhost giorgos]# pacman -Sy ati-drivers
:: Synchronizing package databases...
:: current is up to date
:: extra is up to date
:: community is up to date
Targets: ati-drivers-8.14.13-3
Total Package Size: 8.1 MB
Proceed with upgrade? [Y/n] y
checking package integrity... done.
loading package data... done.
checking for file conflicts...
error: the following file conflicts were found:
ati-drivers: /usr/X11R6/lib/libGL.so.1.2: exists in filesystem
errors occurred, no packages were upgraded.
I have installed before kernel2612-cko2-swsusp2 2.6.12-2
What is wrong?
Powered by Arch Linux
Offline
When you reinstalled xorg, it added the file /usr/X11R6/lib/libGL.so.1.2 which the ATI drivers want to overwrite. From my experience, this is fine, and you can use pacman -Sf ati-drivers to force the overwrite.
Offline
My xorg version is 11R6.8.2-2
[root@myhost giorgos]# pacman -Sf ati-drivers
Targets: ati-drivers-8.14.13-3
Total Package Size: 8.1 MB
Proceed with upgrade? [Y/n] y
checking package integrity... done.
loading package data... done.
installing ati-drivers... done.
PLEASE NOTE:
ATI drivers do not function with the stock Arch Linux kernel.
To function the drivers require agp support build as a module.
for more information please see
http://wiki2.archlinux.org/index.php/Ati Radeon & Kernel 2.6
--------------------------------------------------------------
You can use the tool 'fglrxconfig' to generate an xorg.conf file.
Remember to add fglrx to the MODULES list in /etc/rc.conf.
[root@myhost giorgos]# modprobe fglrx
FATAL: Module fglrx not found.
:?:
Powered by Arch Linux
Offline
If you're currently booted into kernel2612-cko2-swsusp2 then type
depmod
then try modprobing it again.
You still may have permissions problems on the folders that ati-drivers installed to though. After you do this, please re-run the command
ls -lad `pacman -Ql ati-drivers` 2>/dev/null
and post it here.
Offline
Could you please tell me how to solve the permission problems and I will install again the ati-drivers and post the results you ask me for?
Powered by Arch Linux
Offline
I've mailed dibble to make him know about the permission problem after installing the ati-drivers package (he has changed a few things in the PKGBUILD, now it's more elegant but it's needed to fix something)... anyway, the easyest way to do it is to run a:
chmod -R a+rx /usr/X11R6/*
Because all the files from the new ati drivers package are now in /usr/X11R6/[bin, include, lib]... it's better to have everything in the same place and now it's not needed to add anything to /etc/profile.d.... anyway there is also another problem i've noticed. When you try to load kernel module, also if u have kernel2612-cko2-swsusp2 if it's a different build from the one used to make ati drivers you'll have an error instead of having fglrx module loaded... so, waiting for the kernel2612-cko2-swsusp2 package being avaliable for downlod from the community repository i think it's better to download the PKGBUILD and the other file from the CVS and build ati drivers on your machine (you just need to run makepkg )
c ya
Offline
On my system, I also had to do:
chmod a+rw /usr /usr/include/ /usr/include/GL/ /usr/share/ /usr/share/applnk/ /usr/share/gnome/ /usr/share/gnome/apps/ /usr/share/icons/
because the permissions there had been messed up as well
-=edit=- Here's the full list of folders that get borked by ati-drivers:
chmod a+rw /usr/ /usr/X11R6/ /usr/X11R6/bin/ /usr/X11R6/include/ /usr/X11R6/include/X11/ /usr/X11R6/include/X11/extensions/ /usr/X11R6/lib/ /usr/X11R6/lib/modules/ /usr/X11R6/lib/modules/dri/ /usr/X11R6/lib/modules/drivers/ /usr/X11R6/lib/modules/linux/ /usr/include/ /usr/include/GL/ /usr/share/ /usr/share/applnk/ /usr/share/gnome/ /usr/share/gnome/apps/ /usr/share/icons/
Offline
I will wait until both packages work without the problems posted ...
No 3d acceleration till then...
Powered by Arch Linux
Offline
Ok, untill everything will be fixed you may use this other PKGBUILD instead of the dibble's one...
I've just tried it on my pc and everything is working fine.
(as always, if you are not using dibble's kernel you have to change the _kernel variable)
pkgname=ati-drivers
pkgver=8.14.13
pkgrel=4
pkgdesc="ATI precompiled drivers for r350, r300, r250 and r200 chipsets. Built for the kernel2612-cko2-swsusp2 pkg in [community]"
url="http://www.ati.com"
license=""
depends=('xorg>=6.8.0')
makedepends=('rpmunpack' 'cpio')
conflicts=('ati-drivers-module')
install=ati-drivers.install
source=(http://www2.ati.com/drivers/linux/fglrx_6_8_0-$pkgver-1.i386.rpm
http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6-agpgart.patch
http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6.12-inter_module_get.patch
http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6.12-new-agpgart.patch
http://www.tux3d.org/fglrx/Patches/Kernel-2.6.12/good-tested/fglrx-2.6.12-x86-64.patch)
md5sums=('5187698cee2edf3dee89bc3eee5729c1' '9fd0520f6b25f672f9c1410c013415d5'
'5b86791c3dad330791b7615ea205fe3e' '275238baa6d2db2b96bc8b98275a7928'
'3211f58d9d30355207ff2fe49c1dc945')
_kernel=2.6.12-cko2-swsusp2
build() {
cd $startdir/src
rpmunpack < $startdir/src/fglrx_6_8_0-$pkgver-1.i386.rpm | gzip -d | cpio -idmuv
rm -rf $startdir/src/usr/X11R6/bin/*.bz2
cd $startdir/src/lib/modules/fglrx/build_mod
# Patching the drivers to make em works with kernel 2.6.12
patch -p0 < $startdir/src/fglrx-2.6.12-inter_module_get.patch
patch -p1 < $startdir/src/fglrx-2.6.12-new-agpgart.patch
patch -p0 < $startdir/src/fglrx-2.6-agpgart.patch
### For 64 Bit System you must use an this patch too!!
# patch -p0 < $startdir/src/fglrx-2.6.12-x86-64.patch
# Build the kernel module
cp 2.6.x/Makefile .
make -C /usr/src/linux-${_kernel} SUBDIRS="`pwd`" modules || return 1
# Install the kernel module
install -m 644 -D $startdir/src/lib/modules/fglrx/build_mod/fglrx.ko
$startdir/pkg/lib/modules/${_kernel}/video/fglrx.ko
# Begin installing things...
install -d $startdir/pkg/usr/X11R6/bin/
install -m 755 -D $startdir/src/usr/X11R6/bin/*
$startdir/pkg/usr/X11R6/bin/ || return 1
install -m 755 -D $startdir/src/usr/X11R6/lib/libGL.so.1.2
$startdir/pkg/usr/X11R6/lib/libGL.so.1.2 || return 1
install -m 644 -D $startdir/src/usr/X11R6/lib/modules/drivers/fglrx_drv.o
$startdir/pkg/usr/X11R6/lib/modules/drivers/fglrx_drv.o || return 1
install -m 755 -D $startdir/src/usr/X11R6/lib/modules/dri/fglrx_dri.so
$startdir/pkg/usr/X11R6/lib/modules/dri/fglrx_dri.so || return 1
install -m 755 -D $startdir/src/opt/kde3/share/applnk/fireglcontrol_kde3.desktop
$startdir/pkg/opt/kde/share/applnk/fireglcontrol.desktop
install -m 755 -D $startdir/src/usr/share/gnome/apps/fireglcontrol.desktop
$startdir/pkg/opt/gnome/share/application/fireglcontrol.desktop
install -m 644 -D $startdir/src/usr/share/icons/ati.xpm
$startdir/pkg/usr/share/icons/ati.xpm
# Remove stuff that we've put elsewhere
rm -f $startdir/src/usr/X11R6/lib/modules/drivers/fglrx_drv.o
$startdir/src/usr/X11R6/lib/modules/dri/fglrx_dri.so
$startdir/src/usr/X11R6/lib/libGL.so.1.2
$startdir/src/usr/X11R6/bin/*
rm -rf $startdir/src/usr/{src,share,opt} $startdir/src/usr/X11R6/bin
# Install all the rest
cp -R $startdir/src/usr $startdir/pkg
}
Offline
New ATI-drivers in [community] with fixed permissions (I hope)
I quite happily admit if fucked the permissions up on the other one so sorry about that but it should be all fixed and very Arch like now, with all the kde/gnome files in the correct place and everything.
The new pkg also backs up the xorg libGL file and will restore it when you remove the ati-drivers - this should prevent the file conflict issues (i hope)
I don't even have an ati card myself so this is quite a big favour on my part
From what qwerty has said my ati-driver pkg will only work with my kernel build - can everyone else confirm that please?
the kernel2612-cko2-swsusp2 kernel will also be added to [community] shortly as kernel26cko so there will be another update of the ati-drivers then but after that it should be easy to maintain them
Offline
Namcap returns no permission warnings for a change, so I think that's fixed, but there is still the file conflict thing. This is probably impossible to avoid as pre_install() is run AFTER the file conflict check, so moving libGL doesn't solve it, because it is simply run too late.
Offline
bugger - i was not sure but couldn't be arsed to check!
I think it could be beaten by using
backup="thefile"
pre_install
mv thefile.pacsave xorg.thefile
post_remove
mv xorg.thefile thefile
Offline
yeah - that'll work - it's a bit of a hack tho! shall i do it?!
Offline
I installed the most recent ati-drivers and kernel26cko from [community], and my Xorg.0.log shows this:
(II) fglrx(0): Kernel Module Version Information:
(II) fglrx(0): Name: radeon
(II) fglrx(0): Version: 1.16.0
(II) fglrx(0): Date: 20050311
(II) fglrx(0): Desc: ATI Radeon
(WW) fglrx(0): Kernel Module version does *not* match driver.
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe8b30000 at 0xb7c93000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
The radeon driver is loading instead of the fglrx? I don't get it...I have fglrx in my xorg.conf and rc.conf....
Offline
(WW) fglrx(0): Kernel Module version does *not* match driver.
(EE) fglrx(0): incompatible kernel module detected - HW accelerated OpenGL will not work]
That'd be it then - i need to rebuld the ati-drivers against the new kernel
Offline
Hmm...I restarted and now it sees fglrx, however I'm getting an error with agp
(II) fglrx(0): [agp] Mode=0x00000000 bridge: 0x8086/0x2560
(II) fglrx(0): [agp] AGP v1/2 disable mask 0x00000000
(II) fglrx(0): [agp] AGP v3 disable mask 0x00000000
(EE) fglrx(0): [agp] could not determine AGP since mode=0x00000000
(EE) fglrx(0): cannot init AGP
(II) fglrx(0): [drm] removed 1 reserved context for kernel
(II) fglrx(0): [drm] unmapping 8192 bytes of SAREA 0xe8b30000 at 0xb7c56000
(WW) fglrx(0): ***********************************************
(WW) fglrx(0): * DRI initialization failed! *
(WW) fglrx(0): * (maybe driver kernel module missing or bad) *
(WW) fglrx(0): * 2D acceleraton available (MMIO) *
(WW) fglrx(0): * no 3D acceleration available *
(WW) fglrx(0): ********************************************* *
could not determine AGP since mode=0x00000000 What exactly does that mean?
Offline
I believe you posted in the other thread that your card is PCI and that you have a different card taking up the AGP slot. I think this is probably the source of your problem, but I'm not sure and have no idea how to solve this. Perhaps someone smarter than me (qwerty?) holds the answer, in the mean time, maybe you should look into disabling your builtin card from the BIOS again. I know you've already said you can't, but perhaps it's worth another shot as it seems to be the sole source of your problems right now.
Offline
Hello.
Here what I did:
pacman -S kernel26cko
reboot
pacman -S ati-drivers
nano /etc/rc.conf and added fglrx to modules
fglrxconfig
reboot
Now I have 3d acceleration !!!
Great work guys.
Thank you very much.
One think I want to ask is that I do
[root@myhost giorgos]# glxinfo | grep "direct rendering"
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Error: unable to open display (null)
I don't think it is ati related but can someone tell me how to fix it?
Powered by Arch Linux
Offline