LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   A Guide: Enabling 3D Acceleration in X11 (https://www.linuxquestions.org/questions/slackware-14/a-guide-enabling-3d-acceleration-in-x11-402003/)

hsimah 05-02-2006 06:06 AM

Here is my xorg.conf file.
Code:

Section "Module"
    Load        "dbe"          # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load        "glx"
    Load        "dri"
EndSection

Section "DRI"
    Mode 0666
EndSection

Section "Files"
    RgbPath        "/usr/X11R6/lib/X11/rgb"
    FontPath  "/usr/X11R6/lib/X11/fonts/local/"
    FontPath  "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath  "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath  "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath  "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath  "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

Section "InputDevice"
    Identifier        "Keyboard1"
    Driver        "kbd"
EndSection

Section "InputDevice"
    Identifier        "Mouse1"
    Driver        "mouse"
    Option      "Device"      "/dev/mouse"
EndSection

Section "Monitor"
    Identifier  "My Monitor"
    Modeline    "1366x768@60" 84.50 1366 1392 1712 1744 768 783 791 807
    HorizSync  31.5 - 50.0
    VertRefresh 40-90
    Option      "DPMS"
EndSection

Section "Device"
    Identifier  "VESA Framebuffer"
    Driver      "i810"
    BusID      "PCI:0:2:0"
    VideoRam    131070
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "VESA Framebuffer"
    Monitor    "My Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth      24
        Modes "1366x768"
    EndSubsection
EndSection

Section "ServerLayout"

    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"

EndSection


cwwilson721 05-02-2006 04:35 PM

Save it to /etc/X11/xorg.works, and run 'xorgsetup', see if there is any improvement. The section that has me wacked is :
Quote:

Originally Posted by hsimah
Section "Device"
Identifier "VESA Framebuffer"
Driver "i810"
BusID "PCI:0:2:0"
VideoRam 131070
EndSection

Section "Screen"
Identifier "Screen 1"
Device "VESA Framebuffer"
Monitor "My Monitor"
DefaultDepth 24

Subsection "Display"
Depth 24
Modes "1366x768"
EndSubsection
EndSection

Compare the old/new, and see what's up. The 'framebuffer' part looks odd. It may just be a naming convention, though

Hyakutake 05-02-2006 05:04 PM

Hi all.
I've been reading this post and i've got the same problem as Pier.
ATI's driver only works after second startx (:confused:)

Don't know why does this happen but at least the driver loads...

So went on checking some logs (/var/log/Xorg.0.log)

OK, so this is first startx

Code:

in console:
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Mesa project: www.mesa3d,org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.2.1)

Xorg.0.log (removed all those II, == and **, just the WW and EE)

Code:

(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found

(WW) fglrx(0): board is an unknown third party board, chipset is supported

(WW) fglrx(0): Specified desktop setup not supported: 8

(EE) fglrx(0): [agp] Failed to set AGP mode!
(EE) fglrx(0): cannot init AGP

(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): ********************************************* *

fglrx driver not working :mad:

Log out and second startx

Code:

in console
fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon 9600 Generic
OpenGL version string: 2.0.5755 (8.24.8)

Xorg.0.log

Code:

(WW) fglrx: No matching Device section for instance (BusID PCI:1:0:1) found


(WW) fglrx(0): board is an unknown third party board, chipset is supported


(WW) fglrx(0): Specified desktop setup not supported: 8

AGP seems to be working fine after. glxgears gives 3000+ fps.

Here's my actual xorg.conf

Code:

Section "Module"
    Load        "dbe"          # Double buffer extension
    SubSection  "extmod"
      Option    "omit xfree86-dga"  # don't initialise the DGA extension
    EndSubSection
    Load        "type1"
    Load        "freetype"
    Load      "glx"
    Load      "dri"
EndSection

Section "Files"
    RgbPath        "/usr/X11R6/lib/X11/rgb"
    FontPath  "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath  "/usr/X11R6/lib/X11/fonts/TTF/"
    FontPath  "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath  "/usr/X11R6/lib/X11/fonts/CID/"
    FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath  "/usr/X11R6/lib/X11/fonts/local/"
    FontPath  "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath  "/usr/X11R6/lib/X11/fonts/cyrillic/"
EndSection

Section "InputDevice"
    Identifier        "Keyboard1"
    Driver        "kbd"
    Option "AutoRepeat" "500 30"
    Option "XkbRules"        "xorg"
    Option "XkbModel"        "pc105"
    Option "XkbLayout"        "pt"
EndSection

Section "InputDevice"
    Identifier        "Mouse1"
    Driver        "mouse"
    Option "Protocol"    "IMPS/2"
    Option "ZAxisMapping"  "4 5"
    Option "Buttons"  "5"
    Option "Device"      "/dev/mouse"
#    Option "Resolution"        "256"
EndSection

Section "Monitor"
    Identifier  "LG Monitor"
    HorizSync  30-70
    VertRefresh 50-160
EndSection

Section "Device"
    Identifier        "Standard VGA"
    VendorName        "Unknown"
    BoardName        "Unknown"
    Driver    "vga"
EndSection

Section "Device"
    Identifier  "** ATI Radeon (generic)"
    Driver      "fglrx"
EndSection

Section "Screen"
    Identifier  "Screen 1"
    Device      "** ATI Radeon (generic)"
    Monitor    "LG Monitor"
    DefaultDepth 24

    Subsection "Display"
        Depth      16
        Modes      "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
    Subsection "Display"
        Depth      24
        Modes      "1152x864" "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection
EndSection

Section "ServerLayout"
    Identifier  "Simple Layout"
    Screen "Screen 1"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

Section "DRI"
    Mode 0666
EndSection

Well... can anyone shed some light on this please, cause it kinda sucks startx twice.
Thanks in advance.

PS:If full logs are required i'll post them in case of lack of information. I use kernel 2.6.14

cwwilson721 05-02-2006 06:07 PM

Try commenting out the folowing:
Code:

Section "Device"
    Identifier        "Standard VGA"
    VendorName        "Unknown"
    BoardName        "Unknown"
    Driver    "vga"
EndSection

Reboot, startx, and see if it helps. If not, uncomment and let us know

Old_Fogie 05-02-2006 07:20 PM

What I don't understand is why are people upgrading to xorg 6.9? Am I missing something, just wondering.

cwwilson721 05-02-2006 07:23 PM

I know the feeling. "When I upgraded FOO, BAR stopped working...."

If it works, don't fix it. Sometimes, CUTTING EDGE DOES NOT WORK

Old_Fogie 05-02-2006 08:21 PM

Yep.

I bet you that these two guys, who both upgraded their Xorg's who have ATI cards have issues with KDE and not ATI drivers...here's why.

I have ATI...I crash on exit or logout of KDE with ATI drivers only. Now I use the fix I posted earlier here. But there is an issue on exit of KDE...and KDE is installed by Pat with Xorg 6.8 in their...and I doubt the version of KDE is optimized for xorg 6.9 that they put in.

Just a thought .... you guys might want to check into that. Or if you really need bleeding edge xorg with working ATI drivers..there are other versions of slackware modified for latest/greatest they claim. I can also tell you that I go the latest ATI drivers working in the rc2 of SUSE and the latest fedora..tho i was just testing them and found those distro's not to my liking and uninstalled.

cwwilson721 05-02-2006 10:51 PM

A lesson to be learned:

If you are relying on the built-in 'native' drivers, instead of 'upgrading' xorg, try to compile a new kernel.

And Fogie brings up a good point: Upgrading one part usually leads to failure of others. That is why, in my profile under my name at the upper left, I state "10.2 only Not 'current". I avoid 99% of these issues by not 'upgrading' willy-nilly, and keeping things as stock as possible. My KDE/Xorg setup works with glxgears over 2200 now, so why monkey with it?

If/when 10.3/11 comes out, I'll install that, and work on the new issues.

Old_Fogie 05-03-2006 12:03 AM

Just wanted to put a link to one of my threads here on the forums for a custom resolution for ATI card. I wanted and missed 1200x900 resolution and now have it on my 19" CRT.

http://www.linuxquestions.org/questi...8&page=1&pp=15

Bye for now.

hsimah 05-03-2006 03:29 AM

Quote:

Originally Posted by cwwilson721
Save it to /etc/X11/xorg.works, and run 'xorgsetup', see if there is any improvement. The section that has me wacked is :Compare the old/new, and see what's up. The 'framebuffer' part looks odd. It may just be a naming convention, though

I just didnt change the name from when I installed Slackware. I'll try that though. I thought it was just a name?

I upgraded Xorg because I needed support for the 915GM chipset, that isnt included in Xorg 6.8.2. I compiled it into the kernel as a module and then upgraded Xorg. I didn't think it was a problem, except DRI won't load until I restart X. It stumped me.

I ran xorgconfig and I have basically the same xorg.config as before, but without dri enabled, and with a resolution of 1024x768 (I havent added the modeline in). I stil lget the rebooting without DRI. When I add the modeline in, I get that problem again.

I am going to uninstall Xorg 6.9.0 and try with 6.8.2.

hsimah 05-03-2006 09:42 AM

I upgraded to 2.14 version of Dropline Gnome from 2.12, and the problem has gone away. 4 reboots in a row and it is working. Weird, huh?

Old_Fogie 05-03-2006 10:24 AM

Quote:

Originally Posted by hsimah
I upgraded to 2.14 version of Dropline Gnome from 2.12, and the problem has gone away. 4 reboots in a row and it is working. Weird, huh?


wow! very strange but great to hear. just so you know, I wasnt picking on you :D for upgrading your xorg, but it's just a major factor, and maybe should have been brought to light in beginning, becuase running an upgraded xorg is not a default slack 10.2 thing ya know. I'm glad you posted. Hey the modeline there I did is really just so I could get a custom resolution. It's not a requirement, I just love 1200x900 on 19" monitor is all.

cwwilson721 05-03-2006 03:31 PM

Quote:

Originally Posted by hsimah
I upgraded to 2.14 version of Dropline Gnome from 2.12,

And
Quote:

Originally Posted by Old_Fogie
becuase running an upgraded xorg is not a default slack 10.2 thing ya know

Neither is Dropline.

For future reference, I cannot/will not deal much with systems with Dropline or 'upgraded from Xorg....'. There are just WAY too many variables. This post was done and written for the stock 10.2 install.

The reason? I have 10.2, not current, on all my systems. And do not have, nor ever will have, Dropline. So all of the above advice in thread #1 is based on that premise. The lowest common denominator, if you will.

As hsimah found out, it wasn't the Xorg, nor the kernel, it was Dropline.

Glad you found that out.

hsimah 05-03-2006 07:39 PM

Yeah, I knew it would be something silly causeing the problem.

And, I am glad you do sometimes deal with Dropline systems, just cause you have helped me a lot with my laptop on these forums. Thanks a lot guys :)

Old_Fogie 05-04-2006 03:14 PM

Funny we got on topic of upgrading Xorg...as now there is a security fix for xorg in slack 10.2 and I lost 3d rendering :( off to troubleshooting.


All times are GMT -5. The time now is 03:25 PM.