LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Direct Rendering for ATI card with Tungsten Graphics Mesa driver (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/direct-rendering-for-ati-card-with-tungsten-graphics-mesa-driver-641505/)

Vetruvet 05-11-2008 06:11 PM

Direct Rendering for ATI card with Tungsten Graphics Mesa driver
 
I had Compiz Fusion (with Direct Rendering) working at some point in time (about 6 months ago), but then had to re-install the OS (openSUSE 10.3). Now I can't get it to work again. I thought maybe the hardware wasn't good enough. My video card is an ATI Mobility Radeon 9100 IGP

However, when I booted with the Knoppix (5.3.1) DVD (it uses Compiz Fusion by default), it worked fine. glxinfo reported the following:
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI R200 2000602 AGP 8x x86/MMX/SSE2 NO-TCL
OpenGL version string: 1.3 Mesa 7.0.3-rc2

That caused me to think I did some other stuff that interfered with Direct Rendering. So I installed openSUSE again on a spare hard drive. Went though, enabled 3D Accel. in setup, and ran glxinfo once the installation finished. It reported pretty much the same thing as above, but a slightly different version of Mesa (for the OpenGL version string).

I have a lot of stuff/settings that I don't want to redo on a new installation. What should I do to get the Tungsten Graphics driver to be used in my current installation?

Current installation's glxinfo:
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.2 (1.5 Mesa 6.5.2)

I am convinced that my video card CAN utilize Direct Rendering (because of what Knoppix and the new installation can do).

Thanks in advance!

biophysics 05-14-2008 01:24 PM

can you see if the module:

lsmod |grep ati

Otherwise see if your xorg.conf has "ati"

modprobe -v ati
or radeon

If it is not there try replace vesa by ati and restart. Try using Yast/graphic card to reconfigure.

Vetruvet 05-14-2008 08:36 PM

'lsmod | grep ati' gave me a bunch of sound modules as well. The ones I thought necessary were:
ati_agp 12648 1
agpgrat 35764 2 drm,ati_agp

As for the modprobe command, the ati module wasn't found, but radeon completed successfully.

When I went into YaST to config the graphics card, the 3D accel. checkbox was finally available. I'll test to see if I now have direct rendering.

Thanks.

P.S. Will there be a need in the future to run 'modprobe -v radeon' again? Or is there some way to make the change permanent? Thanks again.

Vetruvet 05-14-2008 09:00 PM

Unfortunately, glxinfo still reports Mesa GLX Indirect as its OpenGL renderer. Any other suggestions (even as to what the problem might be)?

That was right after rebooting. If I do 'modprobe -v radeon', and then run glxinfo w/o rebooting, it WILL say 'Tungsten Graphics, Inc' for the OpenGL vendor.

So now I need some way to make the 'modprobe -v radeon' happen all the time.

Vetruvet 05-15-2008 02:08 PM

I've found something interesting. When glxinfo is run as a normal user (the one that's currently logged on), glxinfo says "Mesa GLX Indirect".

However, when run as root, it says "Tungsten Graphics, Inc.".

What could be causing that?

Emerson 05-15-2008 02:32 PM

Do you have DRI section in your xorg.conf? You may need to add "Mode 0666" to this section.

Vampire 05-15-2008 03:45 PM

I have a like problem with intel 965 gm, after upgrading kernel 2.6.21.5 to 2.6.24.7 all works!
You should build drm and agp modules.

Vetruvet 05-15-2008 08:45 PM

Quote:

Originally Posted by Emerson (Post 3154427)
Do you have DRI section in your xorg.conf? You may need to add "Mode 0666" to this section.

Yes, I did that already.

As for upgrading the kernel: How? (I've never done it before...)
Also, where should I look for the drm and agp sources?

Emerson 05-15-2008 11:34 PM

See your Xorg log, in particular look for dri module loading.

Vetruvet 05-16-2008 05:39 AM

Everything looks fine in /var/log/Xorg.0.log

There are no errors related to DRI.
There is a warning, though:
(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0): MC_FB_LOCATION was: 0x2fff2c00 is: 0x2fff2c00
(WW) RADEON(0): MC_AGP_LOCATION was: 0xffffffc0 is: 0xec7fec00

I don't know if that's causing a problem, though...

biophysics 05-16-2008 06:33 AM

In suse try:

glxinfo | grep -i direct
You should get something like:
direct rendering: Yes


can you boot to knoppix and try the same

and copy the xorg.conf file in a usb stick and see what is different in SUSE 's xorg.conf

Also, once you have "modprobe -v radeon" do not reboot just logout (Ctrl-Alt-backspace) - u just need to restart xserver.

carefully look into the file
/etc/sysconfig/kernel - add radeon in this file (so that you need not do it everytime.


after logging in see
ls /dev/dri/card0 -l

crw-rw---- 1 root video 226, 0 2008-05-12 19:11 /dev/dri/card0

the user _must_ belong to video group.

Also look in below:
http://en.opensuse.org/Ati#Troubleshooting

may be u have dri for root but not for user. This means you need to enable POSIX shared memory

can you post
$ df
xorg.conf

Vetruvet 05-16-2008 05:59 PM

'glxinfo | grep -i direct' reports Yes when run as root and No when run as the user.

Knoppix's xorg.conf doesn't differ much from suse's. It has a lot more modes for the monitor, and some other additions (not affecting graphics).

So I should add radeon to the MODULES_LOADED_ON_BOOT in /etc/sysconfig/kernel?

'ls /dev/dri/car0 -l':
Code:

crw-rw-rw- 1 root root 226, 0 2008-05-16 18:21 /dev/dri/card0
Should I change the group to video for /dev/dri/card0?

I already checked, my user belongs to the video group.

'df':
Code:

Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/sda3            39571276  17854988  19706156  48% /
udev                    355144        56    355088  1% /dev
/dev/sda1            35831964  19677936  16154028  55% /windows/C
tmpfs                  355144        4    355140  1% /dev/shm

xorg.conf:
Code:

# /.../
# SaX generated X11 config file
# Created on: 2008-05-15T10:45:28-0400.
#
# Version: 8.1
# Contact: Marcus Schaefer <sax@suse.de>, 2005
# Contact: SaX-User list <https://lists.berlios.de/mailman/listinfo/sax-users>
#
# Automatically generated by [ISaX] (8.1)
# PLEASE DO NOT EDIT THIS FILE!
#

Section "Files"
  FontPath    "/usr/share/fonts/misc:unscaled"
  FontPath    "/usr/share/fonts/local"
  FontPath    "/usr/share/fonts/75dpi:unscaled"
  FontPath    "/usr/share/fonts/100dpi:unscaled"
  FontPath    "/usr/share/fonts/Type1"
  FontPath    "/usr/share/fonts/URW"
  FontPath    "/usr/share/fonts/Speedo"
  FontPath    "/usr/share/fonts/PEX"
  FontPath    "/usr/share/fonts/cyrillic"
  FontPath    "/usr/share/fonts/latin2/misc:unscaled"
  FontPath    "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath    "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath    "/usr/share/fonts/latin2/Type1"
  FontPath    "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath    "/usr/share/fonts/baekmuk:unscaled"
  FontPath    "/usr/share/fonts/japanese:unscaled"
  FontPath    "/usr/share/fonts/kwintv"
  FontPath    "/usr/share/fonts/truetype"
  FontPath    "/usr/share/fonts/uni:unscaled"
  FontPath    "/usr/share/fonts/CID"
  FontPath    "/usr/share/fonts/ucs/misc:unscaled"
  FontPath    "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath    "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath    "/usr/share/fonts/hellas/misc:unscaled"
  FontPath    "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath    "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath    "/usr/share/fonts/hellas/Type1"
  FontPath    "/usr/share/fonts/misc/sgi:unscaled"
  FontPath    "/usr/share/fonts/xtest"
  FontPath    "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection

Section "ServerFlags"
  Option      "AllowMouseOpenFail" "on"
  Option      "IgnoreABI" "on"
EndSection

Section "Module"
  Load        "extmod"
  Load        "type1"
  Load        "glx"
  Load        "freetype"
  Load        "dbe"
  Load        "dri"
EndSection

Section "InputDevice"
  Driver      "kbd"
  Identifier  "Keyboard[0]"
  Option      "Protocol" "Standard"
  Option      "XkbLayout" "us"
  Option      "XkbModel" "microsoftpro"
  Option      "XkbRules" "xfree86"
EndSection


Section "InputDevice"
  Driver      "mouse"
  Identifier  "Mouse[1]"
  Option      "Buttons" "11"
  Option      "Device" "/dev/input/mice"
  Option      "Name" "Microsoft Wireless Optical Mouse 3.0"
  Option      "Protocol" "explorerps/2"
  Option      "Vendor" "Sysp"
  Option      "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
  Driver      "synaptics"
  Identifier  "Mouse[3]"
  Option      "AccelFactor" "0.07"
  Option      "BottomEdge" "650"
  Option      "Buttons" "5"
  Option      "CircScrollDelta" "0.1"
  Option      "CircScrollTrigger" "2"
  Option      "CircularScrolling" "1"
  Option      "Device" "/dev/input/mice"
  Option      "EdgeMotionMaxSpeed" "15"
  Option      "EdgeMotionMinSpeed" "15"
  Option      "Emulate3Buttons" "on"
  Option      "EmulateMidButtonTime" "75"
  Option      "FingerHigh" "17"
  Option      "FingerLow" "14"
  Option      "HorizScrollDelta" "20"
  Option      "InputFashion" "Mouse"
  Option      "LeftEdge" "120"
  Option      "MaxSpeed" "2.5"
  Option      "MaxTapMove" "110"
  Option      "MaxTapTime" "180"
  Option      "MinSpeed" "0.2"
  Option      "Name" "ALPS;Touchpad"
  Option      "Protocol" "auto-dev"
  Option      "RightEdge" "830"
  Option      "SHMConfig" "on"
  Option      "TopEdge" "120"
  Option      "UpDownScrolling" "1"
  Option      "Vendor" "Sysp"
  Option      "VertScrollDelta" "20"
  Option      "ZAxisMapping" "4 5"
EndSection


Section "Monitor"
  Option      "CalcAlgorithm" "XServerPool"
  DisplaySize  367 230
  HorizSync    30-70
  Identifier  "Monitor[0]"
  ModelName    "LGPHILIPSLCD LCD MONITOR"
  Option      "DPMS"
  VendorName  "LPL"
  VertRefresh  43-60
  UseModes    "Modes[0]"
EndSection


Section "Modes"
  Identifier  "Modes[0]"
EndSection


Section "Screen"
  DefaultDepth 24
  SubSection "Display"
    Depth      15
    Modes      "1440x900" "1024x768" "800x600"
  EndSubSection
  SubSection "Display"
    Depth      16
    Modes      "1440x900" "1024x768" "800x600"
  EndSubSection
  SubSection "Display"
    Depth      24
    Modes      "1440x900" "1024x768" "800x600"
  EndSubSection
  SubSection "Display"
    Depth      8
    Modes      "1440x900" "1024x768" "800x600"
  EndSubSection
  Device      "Device[0]"
  Identifier  "Screen[0]"
  Monitor      "Monitor[0]"
EndSection


Section "Device"
  BoardName    "RS300 5835"
  BusID        "1:5:0"
  Driver      "radeon"
  Identifier  "Device[0]"
  Option      "FSAADisableGamma" "no"
  Option      "CapabilitiesEx" "0x00000000"
  Option      "FSAAMSPosY0" "0.000000"
  Option      "FSAAMSPosX3" "0.000000"
  Option      "mtrr" "off"
  Option      "FSAAMSPosX4" "0.000000"
  Option      "FSAAMSPosY1" "0.000000"
  Option      "FSAAMSPosY2" "0.000000"
  Option      "ForceGenericCPU" "no"
  Option      "FSAAMSPosX5" "0.000000"
  Option      "FSAAScale" "1"
  Option      "GammaCorrectionI" "0x00000000"
  Option      "FSAAMSPosX0" "0.000000"
  Option      "FSAAMSPosY3" "0.000000"
  Option      "no_accel" "no"
  Option      "FSAAMSPosY4" "0.000000"
  Option      "FSAACustomizeMSPos" "no"
  Option      "UseFastTLS" "0"
  Option      "FSAAMSPosY5" "0.000000"
  Option      "FSAAEnable" "no"
  Option      "BlockSignalsOnLock" "on"
  Option      "GammaCorrectionII" "0x00000000"
  Option      "KernelModuleParm" "locked-userpages=0"
  Option      "Capabilities" "0x00000000"
  Option      "no_dri" "no"
  Option      "VideoOverlay" "on"
  Option      "PseudoColorVisuals" "off"
  Option      "StereoSyncEnable" "1"
  Option      "UseInternalAGPGART" "no"
  Option      "FSAAMSPosX1" "0.000000"
  Option      "Stereo" "off"
  Option      "OpenGLOverlay" "off"
  Option      "FSAAMSPosX2" "0.000000"
  Option      "ScreenOverlap" "0"
  Option      "CenterMode" "off"
  Screen      0
  VendorName  "ATI"
EndSection



Section "ServerLayout"
  Identifier  "Layout[all]"
  InputDevice  "Keyboard[0]" "CoreKeyboard"
  InputDevice  "Mouse[1]" "CorePointer"
  InputDevice  "Mouse[3]" "SendCoreEvents"
  Option      "Clone" "off"
  Option      "Xinerama" "off"
  Screen      "Screen[0]"
EndSection


Section "DRI"
    Mode      0666
EndSection

Section "Extensions"
  Option      "DAMAGE" "false"
EndSection


Vetruvet 05-16-2008 10:01 PM

I was just looking through relevant files (graphics drivers, dri files, drm files, etc).
Here are the folders I checked: /usr/lib/xorg/modules/drivers/, /usr/lib/xorg/modules/, /usr/lib/xorg/extensions/, /usr/lib/dri/, /lib/modules/2.6.22.5-31-default/kernel/drivers/char/drm/
One thing I noticed on ALL the files in all the above folders was that the owner was root, and the the group was also root. Maybe this is causing some kind of problem?

I already have POSIX shared memory enabled, from trying to get it to work before...

biophysics 05-17-2008 07:00 AM

Reboot the machine and login as user
glxinfo | grep -i direct'

type:
'ls /dev/dri/card0 -l'
lsmod | grep radeon

And post the result here.


Quote:

I was just looking through relevant files (graphics drivers, dri files, drm files, etc).
Here are the folders I checked: /usr/lib/xorg/modules/drivers/, /usr/lib/xorg/modules/, /usr/lib/xorg/extensions/, /usr/lib/dri/, /lib/modules/2.6.22.5-31-default/kernel/drivers/char/drm/
One thing I noticed on ALL the files in all the above folders was that the owner was root, and the the group was also root.
This is correct. do not change anything here.

Did you recompile kernel or is it SUSE default installation.

Vetruvet 05-17-2008 02:09 PM

'glxinfo | grep -i direct':
direct Rendering: No
OpenGL renderer string: Mesa GLX Indirect

'ls /dev/dri/card0 -l':
crw-rw-rw- 1 root root 226, 0 2008-05-17 14:57 /dev/dri/card0

'lsmod | grep radeon':
radeon 116228 1
drm 79636 2 radeon

I didn't _manually_ recompile the kernel. I don't know if it was ever recompiled by anything else since the installation.


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