NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Display Drivers on Linux
New Posts  All Forums:Forum Nav:

Display Drivers on Linux

post #1 of 16
Thread Starter 
Hey, here is what your /etc/X11/XF86Config(-4) should look like for the device section, after the ATI drivers have been installed, the proprietary ones from www.ati.com:

# === ATI device section ===

Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# === Fire GL DDX driver module specific settings ===
# === Screen Management ===
Option "DesktopSetup" "0x00000000"
Option "Display2" "0"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
BusID "PCI:1:0:0" # vendor=1002, device=4c66
Screen 0
EndSection

As you can see, the driver MUST be fglrx if you want acceleration.
By the way Return to Castle of Wolfenstein is really really nice, fast and smooth, once you enable the 'ATI trueForm' option in the settings of the game.
post #2 of 16
i had problemss getting the drivers to work. Mind giving me a run down on the commands you used to install them?
post #3 of 16
Thread Starter 

breakmyn,

Okies, run down isn't a possible thing considering i run debian and LR-s neither has rpms packages, but debs and source instead.

But the important point to remember, is that you first need to compile your own kernel, as the ati drivers need to have your present running kernel headers. Get the sources of the kernel you are using from your distro ( RH, mdk ? ). The sources usually install in /usr/src/linux. Google for a kernel HowTO, or go to the best HowTO site, the www.tldp.org

Once your kernel compiled, and ya rebooted on it, dll the fglrx-glc22.rpm for your X version ( 4.2.X nowadays ) from www.ati.com.

Then use the --force option of the rpm command ( rpm --help, or man rpm will tell ya precisly, as well as the installations notes on the ati driver download page ), i believe the command should be something like :
rpm --force -Ivh fglrx-glc22.rpm
The install needs to be forced as the package will overwrite your /usr/lib/libGL.so.1 file, the OpenGL library. Once this is done, as root, of course, you should cd /lib/modules/fglrx
from there
cd build
./make.sh
gcc - bkblblblbl == > compiling the module, little output. Check that it end with no errors ( Error1 ).
then
cd ..
./make_install.sh
==>This will load the fglrx module in your kernel, give you a warning about tainting the kernel, cause it is not an open source driver, and unload the module.
if ya are successful till here the biggest is done. If Errors and mistake when building the module/driver, it means that you didn't compile your kernel properly, or put an option that makes the built fail. THINGS to WATCH are AGP, do not compile the AGP support IN, but as a module !!

After this is done, type: 'fglconfig[enter]' command provided with the drivers to configure a new /etc/X11/XF86Config(-4) file. Answer the questions the best you can, then modprobe fglrx[enter] to load the module, and finally startx
Tried hard ...Let me know if ya succesful

post #4 of 16
I'm grabbing the kernel sources today. I'll try recompiling it. That was my problem as I assumed that the rpms had everything I needed to make the new drivers work.

It appears that the learning curve on how to compile the kernel will be my biggest obstacle. Course if I screw it I can just re-install and try again
post #5 of 16
In the middle of compiling a new kernel. Using the TLDP howto and my Linux book.

How long does it usually take to compile the kernel?
I've done:
make xconfig
make dep
make modules
make modules_install
nohup make bzImage &
tail -f nohup.out


oops my kernel popped. Time to re-install.
post #6 of 16
Thread Starter 

Nice work

Here is my method:
after make xconfig, save ya config to a file cause it is painful to re do it everyday. then:
make dep && make bzImage modules modules_install
One line kernel compile
If no errors, type make install ( will run lilo for you and install the new kernel, mv the previous one to /boot/vmlinuz.old.
In anyway afetr make install : don't reboot right away, instaed edit, as root, your /etc/lilo.conf file and open another terminal and ls -l /boot/vmlinuz* will show you all your kernels. Make sure that the /etc/lilo.conf reflect what you want. If you are getting confused to which is what, don't forget to look at the date of the file
Once lilo.conf edited, run as root : /sbin/lilo[enter]
This ESSENTIAL to run lilo before reboting on a new kernel, otherwise changes will not be proceeded. Hope that help. Compiling kernels is gonna teach a GREAT deal about hardware
post #7 of 16
I did something wrong. I think I got the order of operation wrong as I can't boot failsafe. Oh well, try try again.
post #8 of 16
OK, I've finally tried to take the time to do this on my RedHat side. Naturally, I've got a problem or I wouldn't be posting here :-)

With the kernel source on my machine already, I followed a combination of the instructions here as well as the ones posted by ATI. Ultimately, I end up with the X*-4 file properly configured (it seems)...but a blank screen in X. Oddly, though, X is running. If I connect a monitor to my external VGA port, a low-rez xdm pops up and I can "do things" [because something is goofy about the rez, the mouse doesn't work properly; it skips around.]

Now, I've tried everything I can think of so far to fix this and I can't get it...no, no X! Ack! /var/log/X*0.log doesn't tell me anything useful (iirc). I've cut+pasted laclasse's stock config here, no luck.

Suggestions welcome and encouraged :-)

Details...5660, RedHat 8.0. Anything else?

Thanks.
post #9 of 16
I had the same difficulties and finally decided to just run the DRI-CVS source, which has support for the M9000 card.

Not sure of the performance however, I get about 1000-2000 on glxgears.

Brian.
post #10 of 16
Ok, I got the ATI drivers to work with RedHat!

Naturally, I can't remember everything that we did here, but the gist of it was as follows: the fglx-created XF86Config file had something in it which was conflicting with RH's view of the world.

We fixed it by grabbing the "original" XF-backup and moving it into place. We then plopped the ATI "section" into it and, after goofing on it (matching strings...we just kept looking at the /var/logs for clues) and, bingo! I, too, get 1-2000 FPS in glxgears (1200 steadily with opera, xmms streaming, and a 1/2 dozen terminals open).

Only problem: RH really WANTS to be at 1600x1200. Any efforts I make to lower the resolution to, say, 1280, cause the screen resolution to stay at 1600 but the desktop to stay at 1200 (i.e., 3/4s of the screen is filled, upper-left justified). I've monkeyed with XF86Config for a while, no luck. Thoughts?
post #11 of 16
Thread Starter 

Ummm

Your TFT is a 1600x1200 native ? I think the same problems occurs with windows drivers.....The pain is that the tft native resolution is 1600x1200, and doing lower will just make things mushy, and forced. The ati m9 talks best to the native res of your screen. Thats why i bought a 1400x1050, and i am just being used to that after having a 1024x768 max for years.......Thats the only thing.
I have only one mode tho, Mode "1400x1050"
in 24 bits. I use games to lower the resolution, but yes my desktop is at 1400x1050.
Good luck, let us know in case of succes.
---------------------------------------------------
Linux is growing, Linux is coming.....
post #12 of 16

Re: Ummm

Quote:
Originally posted by laclasse
Your TFT is a 1600x1200 native ? I think the same problems occurs with windows drivers.....
I definitely don't have a problem like that with the Windows drivers (I run 1280x1024 in Windows). I don't mind the 1600 in RH, after all - it LOOKS better than Windows at 1280 or 1600. It just bugs me that I can't change it.
post #13 of 16
Thread Starter 
Chiphart,

I am looking at that issue. I 'll be posting as soon as i know more.
post #14 of 16
Thanks, every little bit helps.

I'm actually thinking of going to RH8.1b to use the new XFree 4.3. Anyone else beaten me to this?
post #15 of 16
Thread Starter 

lol

On X 4.3.0, yeah, on RH, nope
post #16 of 16
Yeah, I saw that you're at 4.3.0 in another message - thoughts? Any advantage to going to 4.3.0 vs. sticking with 4.2.x and the ATI drivers?
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Display Drivers on Linux