LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-27-2006, 03:43 PM   #1
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 57
Trying ATI drivers on xorg 7.0. Seems like it's almost there.


After hearing that ATIs drivers were ready for xorg 7, I couldn't resist taking a crack at it. AMD64 has it's own problems which we'll ignore for now, but after a bit of messing around, the 32-bit drivers (8.26.18)seemed poised to work. Everything compiled and seemed to get in it's proper place...until the modprobe.

From the install.log:
Code:
.
.
.
  Building modules, stage 2.
  MODPOST
  CC      /lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
  LD [M]  /lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.16-2-k7'
build succeeded with return value 0
duplicating results into driver repository...
done.
==============================
- recreating module dependency list
- trying a sample load of the kernel modules
failed.
[Error] Kernel Module : Failed to install compiled kernel module
I went to single user mode to try to modprobe it myself, and got...
Code:
# modprobe -v fglrx
insmod /lib/modules/2.6.16-2-k7/misc/fglrx.ko
[fglrx]Maximum main memory to use for locked DMA buffers: 369 Mbytes
[fglrx: firegl_init_module] *error* firegl_stub_register failed
FATAL: Error inserting fglrx (/lib/modules/2.6.16-2-k7/misc/fglrx.ko): Operation not permitted
Is that enough information to give anybody a clue of what's still wrong?
 
Old 06-29-2006, 05:10 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
An update.
Code:
@debian32:~$ lsmod
Module                  Size  Used by
radeon                 96032  0
drm                    62228  1 radeon
.
.
.
I have discovered that if I "rmmod radeon" and "rmmod drm" ... I can successfully "modprobe fglrx"

I did it, then changed my video driver in xorg.conf to "fglrx" and rebooted. As soon as it began to start X, it hung ... black screen, blank, totally unresponsive. I switched to a terminal session, and ran lsmod. None of the 3 modules showed up ... fglrx, radeon, or drm.

I think when I boot, there is still some confusion to the kernel about which modules should be loaded, but I couldn't find the list of modules. I suspect that it might include all three, and there is a conflict. How do I tell the boot process not to load "radeon", but rather "fglrx"?
 
Old 08-15-2006, 09:53 AM   #3
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
There is a current thread related to ati in etch, but that problem seems to be different than mine, so I guess I'll resurrect this one since it already has my error messages laid out.

I have now got the AMD64 version to the exact same point as the 32-bit ... and I think I lack just a little piece of basic Debian knowledge to get it running. This is what I think I need to do ...

1. Disable the xorg ati modules from loading at boot, and
2. Enable the fglrx module, then
3. Edit xorg.conf to use the fglrx driver.

Steps one and two are what I don't know how to do. If you have another suggestion, I'm open.
 
Old 08-29-2006, 05:05 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
Yippee! I got the proprietary drivers working on the 64-bit, and I know how to do it on the 32-bit side, as well. The key was getting the xorg ati drivers completely off the system before trying to install the proprietary ones.
 
Old 08-29-2006, 11:04 PM   #5
JackieBrown
Member
 
Registered: Dec 2004
Location: San Antonio, TX
Distribution: Debian-AMD64 Sid
Posts: 481

Rep: Reputation: 31
You must have been excited. I noticed you added ATI to your distro
 
Old 09-07-2006, 11:45 AM   #6
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
How did you get the xorg ati drivers off your system?

I'm trying to get my X600 working with FC5, and have gotten as far as [fglrx:firegl_init_module] *ERROR* firegl_stub_register failed from dmesg when I try to modprobe fglrx.
 
Old 09-07-2006, 12:01 PM   #7
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
I removed xserver-xorg-video-ati, which took a metapackage named xserver-xorg-video-all with it. Changed xorg.conf to use vesa drivers ... rebooted to make sure the xorg modules didn't reload. Switched to single user mode, and I was then able to modprobe fglrx.
 
Old 09-07-2006, 12:10 PM   #8
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
D'Oh! All I had to do was reboot, and the right module loaded fine.

Anyway, a saga in retrospect:
On Fedora Core 5, I basically just ran sudo ./ati-driver-installer-8.28.8.run. But:

I had some problems with the symlink at /lib/modules/$(version)/build... seems it wasn't ../../../ -ing enough. It should point down to /usr/src/kernels/$(version).

I had more problems with the /lib/modules/fglrx/build_mod/make.sh script, which was looking for the kernel source in /usr/src/linux... it's actually in /usr/src/kernels/$(version) on my system, so to get make.sh to work, I export KERNEL_PATH=/usr/src/kernels/$version) and that made make.sh happy(ier).

I had some trouble with getting the correct kernel-devel package installed; others should note that updating your kernel requires that you build the module against the correct devel sources (should be obvious, but something I missed and that if you're using a smp (multiprocessor/Pentium 4 HT/Pentium D) kernel, you need to match that as well. Fedora Core 5 package was kernel-smp-devel-$(version)-$(arch).rpm.

The aticonfig utility that ati will instruct you to use is GARBAGE. It totally trashed my xorg.conf config, and I had to restore it. Using aticonfig will make other nice things like system-config-display break with totally cryptic python trace errors. Instead of using aticonfig, I'd highly recommend just changing the existing driver from "radeon" (the default in my setup) to "fglrx" in xorg.conf. You can do this with system-config-display or with gedit/nano/pico/vi/emacs ;-)

Tips for finding out what went wrong:
- After running ati-driver-installer-8.28.8.run, look at /usr/share/fglrx/fglrx-install.log for errors. Errors are horribly not reported back to the GUI installer, so the GUI will be like, "Everything went great!" and this text file will be like, "You suck and have the uniprocessor kernel sources installed :P"

- Building by hand from /lib/modules/fglrx/build_mod/make.sh will dump out more obvious errors in the build process.

- If you build the module but it just won't load, run 'depmod', try 'modprobe fglrx', and look at 'dmesg'. Or, you could just reboot and have everything work, like me...

- If you build stuff wrong, like I did, it becomes more obvious using 'modinfo fglrx'. Compare the vermagic: line to the output of 'uname -r' to make sure the module matches your kernel.

- Be prepared to rebuild this driver the next time you update (yum/up2date/apt-get) your kernel.

- Slightly ot, but you can test that the hardware acceleration of the driver is working with 'glxinfo'. What you want is "direct rendering: Yes" Then, when you run glxgears, it won't totally blow goats and will actually move pretty quickly. And - playing ppracer won't be an exercise in futility.

Last edited by bentz; 09-07-2006 at 12:16 PM.
 
Old 09-07-2006, 12:13 PM   #9
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
Sorry... that was just a brain dump.
 
Old 09-08-2006, 01:10 PM   #10
The_paladin
Member
 
Registered: Feb 2006
Distribution: Debian "Etch"
Posts: 47

Rep: Reputation: 15
Quote:
Originally Posted by rickh
I removed xserver-xorg-video-ati, which took a metapackage named xserver-xorg-video-all with it. Changed xorg.conf to use vesa drivers ... rebooted to make sure the xorg modules didn't reload. Switched to single user mode, and I was then able to modprobe fglrx.

Can I see your xorg.conf?
The only way I can get a screen is to disable DRI in the kernel, or else it blackscreens at xservers start. I've tried to remove xserver-xorg-video-ati and reinstall ati's own driver, with the black screen as a result.
 
Old 09-08-2006, 02:00 PM   #11
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
Here are the pertinant sections, but the file did not change as a result of the proprietary driver installation. I manually went into the file and changed the driver to "fglrx" after modprobing the fglrx kernel module.
Code:
Section "Module"
        Load    "bitmap"
        Load    "dbe"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "type1"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc105"
        Option          "XkbLayout"     "us"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ExplorerPS/2"
        Option          "Emulate3Buttons"       "true"
EndSection

Section "Device"
        Identifier      "ATI Technologies, Inc. Radeon Xpress 200 (RS480)"
        Driver          "fglrx"
        BusID           "PCI:1:5:0"
EndSection

Section "Monitor"
        Identifier      "WDE LCM-19v1"
        Option          "DPMS"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "ATI Technologies, Inc. Radeon Xpress 200 (RS480)"
        Monitor         "WDE LCM-19v1"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                Modes           "1280x1024" "1152x864" "1024x768" "832x624" "800x600" "720x400" "640x480"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection
 
Old 09-08-2006, 02:37 PM   #12
The_paladin
Member
 
Registered: Feb 2006
Distribution: Debian "Etch"
Posts: 47

Rep: Reputation: 15
Thank you, but I figured out what was wrong...A missing package caused the black screen i my case. But now I have a new problem: If I configure xorg via xorg.conf to use fglrx, I can't run a lot of programs... Nautilus, Openoffice, Synaptic, to name a few, simply won't run. But if I change back to vesa driver in the xorg.conf, all programs runs fine. What's wrong here?
 
Old 09-08-2006, 07:15 PM   #13
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
Are you really using Sarge? I think you're bound to have trouble there. Sarge is not meant to upgrade, it's "Stable." Part of what that means is don't screw with it unless you really know what you're doing.

As far as Ati's driver's are concerned, what version did you get? ... And, did you just run the script, or did you create the Debian specific .deb files?

Last edited by rickh; 09-08-2006 at 07:19 PM.
 
Old 09-08-2006, 09:11 PM   #14
The_paladin
Member
 
Registered: Feb 2006
Distribution: Debian "Etch"
Posts: 47

Rep: Reputation: 15
Quote:
Originally Posted by rickh
Are you really using Sarge? I think you're bound to have trouble there. Sarge is not meant to upgrade, it's "Stable." Part of what that means is don't screw with it unless you really know what you're doing.

As far as Ati's driver's are concerned, what version did you get? ... And, did you just run the script, or did you create the Debian specific .deb files?
-Whoa, guess I forgot to fix that. No, I'm running Etch.
I created and installed from the specific .deb files from ati's 8.28.8 driver, as per method 2 on this page:
http://wiki.cchtml.com/index.php/Deb...allation_Guide
 
Old 09-08-2006, 09:40 PM   #15
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Original Poster
Rep: Reputation: 57
...and the "m-a a-i fglrx" seemed to work ok? Lsmod shows "fglrx?" Kinda hard to guess at what's wrong ... My experience is that after you try lots of things, something works, and I'm never sure what it was.

I'm having such a problem with fonts right now ... but I think I'm gaining.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Xorg 7 Ati Drivers Houseoffun Linux - Software 3 03-23-2006 04:12 PM
new Xorg drivers for ATI.... trscookie Linux - Hardware 10 03-10-2005 01:18 AM
ATI Xorg Drivers hammerstein05 Slackware 7 01-19-2005 12:52 PM
xorg-6.8.0 and ati drivers Dartelin Linux - Hardware 1 09-19-2004 12:27 PM
ATI Drivers 3.12.0 with Xorg 6.7, Xorg 6.8 Gary987 Linux - Hardware 0 09-15-2004 07:10 PM


All times are GMT -5. The time now is 12:23 PM.

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