Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ATI Radeon 7000 / XFree86
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Wed Jul 14, 2004 10:39 pm    Post subject: ATI Radeon 7000 / XFree86 Reply with quote

Greetings,

I have an ATI Radeon 7000 AGP video card 64MB.
I have completed the Gentoo Handbook.
All my system is updated and runs kernel 2.6.7-r10.
I have also enabled frame buffer and Ati Radeon in the kernel.
I am now following the Gentoo Linux Desktop Configuration Guide.
Having already completed the "# emerge xfree" installation I have a doubt for my ATI video drivers.

My Question is the following:
--------------------------------

My goal is to have in the XFree86 / Kde environment the correct video drivers so that I can fully utilize all the features my video card offers and have the optimal resolution and refresh rate.
I see that the Desktop Config. Guide covers a section "Gentoo Linux ATi FAQ"
What should I do?
- Was it OK to just install xfree (# emerge xfree)?
- Should I have emerged the ati drivers instead
# VIDEO_CARDS="radeon" emerge xfree-drm
- Is # emerge xfree just sufficient?
- Should it be first emerge xfree and then the emerge ati-drivers
or somethng similar to this?

I know that there are several articles on the Internet but I also know that some are old if compared to the new kernel releases. One of this is "[HOW-TO] Get ATI support in X with 2.6.x kernel "

Someone also told me that with the latest kernel 2.6.x I do not need anything else. Is it correct?

Please let me know what should I exactly do; what steps or manual or instructions to follow so that I can continue my installation.

Thank you very much for your interest and help to my case,
Spiro
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20113

PostPosted: Wed Jul 14, 2004 11:23 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
CompNerd
Retired Dev
Retired Dev


Joined: 16 Mar 2003
Posts: 311
Location: 127.0.0.1

PostPosted: Thu Jul 15, 2004 12:16 am    Post subject: Reply with quote

AFAIK, the ati-drivers do not support the RADEON 7000. However, you can install xfree or xorg-x11. Then use DRI to get some GL suporrt. I have not yet tried the xfree-dri, althought its suppose to support the radeon drivers better.

CompNerd
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Thu Jul 15, 2004 12:23 am    Post subject: Reply with quote

I've recently installed 2.6.7-r8 with an ATI 7500 Mobility - not the same, but a similar setup. I get ~1350 fps with glxgears. I've posted my kernel .config and XF86Config here ... look at the bottom of the page ... Hope this helps.
Back to top
View user's profile Send private message
malone
Apprentice
Apprentice


Joined: 19 Feb 2004
Posts: 159
Location: The p-n junction.

PostPosted: Thu Jul 15, 2004 5:00 am    Post subject: Reply with quote

As mentioned, the ati-drivers don't support the radeon 7xxx series of cards. All you need is support in the kernel for your card. So to answer your questions,

Quote:
Was it OK to just install xfree (# emerge xfree)?

Yes.
Quote:
Should I have emerged the ati drivers instead

No.

I use a 64MB Radeon7500 in my desktop. If you already have X installed and configured, check if you have hardware accleration working by firing X up and running:
Code:
glxinfo | grep "renderer string"

This should give you something like
Code:
OpenGL renderer string: Mesa DRI Radeon 20030328 AGP 4x x86/MMX+/SSE2 TCL

If it mentions software rendering, then either your XF86Config isn't set up right, or the kernel isn't. !db!'s link has some good info for your XF86Config ...

Cheers.
_________________
malone
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Thu Jul 15, 2004 9:40 am    Post subject: Reply with quote

Thank you so much Malone for your reply!

I only with to ask this last question, only because it is mentioned in the Desktop Guide (http://www.gentoo.org/doc/en/desktop.xm):

"Almost every ATI board is supported by Xfree86, at least for the 2D accelerated features. The 3D support is provided either by the DRI project, which is already present inside XFree86, or by closed source drivers provided by ATI.

GPU Common Name Support
-------------------------------------------------------------
rage128 Rage128 xfree DRI
r100 Radeon7xxx, Radeon64 xfree DRI
r200,r250 Radeon8500, Radeon9000 xfree DRI, ATI DRI
r300, following Radeon9500,
Radeon9800 xfree 2D, ATI DRI

Is the above info of any relevance or importance or should I just ignore it?

Thank you,
Spiro
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Thu Jul 15, 2004 11:11 am    Post subject: Reply with quote

That tip from the Desktop Configuration Guide
Code:
r100 Radeon7xxx, Radeon64 xfree DRI
is specifically telling you that the Radeon 7000 et cie are only supported by DRI (kernel) and not the binary ATI. If they were, you would see 'ATI' in front of 'DRI', like the others. Malone gave you the right answers. Give it a try ... make sure you have the right kernel options, something along the lines of ...
Code:

---> Character devices ---> /dev/agpgart (Y)
                                      ---> Direct Rendering Manager (Y)
                                      ---> ATI Radeon (Y)
---> Graphics support ---> ATI Radeon display support (Y)
                                    ---> DDC/I2C for ATI Radeon support (Y)

... hope I'm not forgetting anything ... Hope it works out ...
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Thu Jul 15, 2004 8:26 pm    Post subject: Reply with quote

Thank you all.
All you have told me worked perfectly!

Few Questions:

(1) In X, when I type glxinfo | grep "renderer string" I get the correct OpenGL, but this way:
disabling TCL support
OpenGL renderer string: Mesa DRI Radeon........ 3DNow! No-TCL
WHAT DOES TCL MEAN AND IS IT CORRECT OR NEEDS A FIX?

(2) When I fire startx, when I tnel exit from it Ctrl+Alt+Backstaoce, I notice this written on the screen at the bottom of it:
(ww) RADEON(0): Failed to set up write-combining range (0xd0000000,0x4000000)
xterm: fatal IO error 32 (Broken pipe) or Killclient on X server ":0.0"
xterm: fatal IO error 32 (Broken pipe) or Killclient on X server ":0.0"
login: fatal IO error 32 (Broken pipe) or Killclient on X server ":0.0"
X Connection to :0.0 broken (explicit kill or server shutdown)
xinit: connection to X server lost waiting for X server to shutdown.

(3) in the XF.. log file under/var/log/ I get an error on the truetype font:
Could not init font path element /usr/X11R6/lib/X11/fonts/truetype
The directory truetype is there.
SHOULD I JUST DISABLE IT FROM THE XF86Config?

(4) Is there a command that I can see the phisical memory of my Video Card that Gentoo sees?

(5) I have included my XF86Config file. Could you please just take a look and see if you see anything to correct? I would Appreciate it a lot.

Thank you so much for your help!!!
Spiro


Code:
XF86Config:
--------------------------------------------------------------------------------
# File generated by xf86config.

# ***************
# Module section 
# ***************

Section "Module"

    Load   "dbe"

    SubSection  "extmod"

            Option    "omit xfree86-dga"   # don't initialise the DGA extension

    EndSubSection

    Load   "type1"
    Load   "speedo"
    Load   "glx"
    Load   "dri"

EndSection


# **********************************************************************
# Files section.  This allows default font and rgb paths to be set
# **********************************************************************

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/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/TrueType/"
    FontPath   "/usr/X11R6/lib/X11/fonts/freefont/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"

EndSection


# **********************
# Server flags section.
# **********************

Section "ServerFlags"

EndSection

# ------------------------------------
# **************
# Input devices
# **************

# ************************************
# Core keyboard's InputDevice section
# ************************************

Section "InputDevice"

    Identifier   "Keyboard1"
    Driver   "Keyboard"
    Option "AutoRepeat" "500 30"

# Specify which keyboard LEDs can be user-controlled (eg, with xset(1))
#    Option   "Xleds"      "1 2 3"

    Option "XkbRules"   "xfree86"
    Option "XkbModel"   "logidak"
    Option "XkbLayout"   "it"

EndSection


# ***********************************
# Core Pointer's InputDevice section
# ***********************************

Section "InputDevice"

# Identifier and driver

    Identifier   "IntelliMouse"
    Driver      "mouse"
    Option      "Protocol"       "IMPS/2"
    Option      "Device"         "/dev/mouse"
    Option      "ZAxisMapping"   "4 5"
   
EndSection


# ****************
# Monitor section
# ****************

# Any number of monitor sections may be present

Section "Monitor"

     Identifier    "Monitor0"
     VendorName    "Samsung"
     ModelName     "SyncMaster 150MP"
     DisplaySize    304.1 228.1
     HorizSync      30.0 - 69.0
     VertRefresh    56.0 - 85.0
     Option        "DPMS" "true"

EndSection


# ************************
# Graphics device section
# ************************

# Standard VGA Device:
Section "Device"

    Identifier   "Standard VGA"
    VendorName   "Unknown"
    BoardName   "Unknown"
    Driver      "vga"

EndSection

# Device configured by xf86config:

Section "Device"

    Identifier  "Videocard0"
    Driver      "radeon"
    VendorName  "ATI - Sapphaire"
    BoardName   "Radeon 7000 64M DDR TVO"
    BusID       "1:0:0"
    Option      "AGPMode" "4"
    Option      "EnableDepthMoves" "on"
    Option      "EnablePageFlip" "on"
    Option      "AGPFastWrite" "yes"
    Option      "DPMS" "true"
    VideoRam     65536

EndSection


# ****************
# Screen sections
# ****************

Section "Screen"

    Identifier  "Screen0"
    Device      "Videocard0"
    Monitor     "Monitor0"
    DefaultDepth 24

    Subsection "Display"
        Depth       8
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection

    Subsection "Display"
        Depth       16
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection

    Subsection "Display"
        Depth       24
        Modes       "1024x768" "800x600" "640x480"
        ViewPort    0 0
    EndSubsection

EndSection

# ***********************
# ServerLayout sections.
# ***********************

Section "ServerLayout"

    Identifier    "Simple Layout"
    Screen        "Screen0"

    InputDevice   "IntelliMouse"  "CorePointer"
    InputDevice   "Keyboard1"     "CoreKeyboard"

EndSection

Section "DRI"
   
      Mode 0666
 
EndSection
------------------------------------------------------------------------------
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Fri Jul 16, 2004 1:10 am    Post subject: Reply with quote

Concerning the 'disabling TCL support' message and what TCL is about ...

I'm no guru, but TCL (Tool Command Language) is an interpreted scripting language used often with the TK library o' widgets. In the rendering world, that combo is often used for handling textures, for instance. IMHO, it seems you either just don't have TCL (yet), or it's somehow disabled. I already had 'tcltk' in my USE flags, so I don't get that message. Maybe try re-emerging with the 'tcltk' flag ... I don't think this is critical for enabling DRI though, although it may prevent textures being correctly displayed in some instances ... that's why you might want to tweak with 'tcltk'.

As for the Radeon warning when running X, I don't know ... it's a warning, so not really critical. One Google search and I came up with this ... mtrr related?

IMHO, the other messages, it looks like X complaining about a brutal server shutdown coming from 'Ctrl+Alt+Backspace'.

'lspci' (as root) will give you some details on your card ... for the rest, I think you're in a good position to 'google' and 'gentoo forum' your way through them on your own. If you're going through the Desktop Configuration Guide, just move on to installing more important things like kde ...

At least you're now have DRI working ...
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Fri Jul 16, 2004 11:36 am    Post subject: Reply with quote

Hi !db!,

You stated
Quote:
"I already had 'tcltk' in my USE flags, so I don't get that message. Maybe try re-emerging with the 'tcltk' flag ... I don't think this is critical for enabling DRI though, although it may prevent textures being correctly displayed in some instances ... that's why you might want to tweak with 'tcltk'. "


Does it mean that I first add the use flag and then I perform the # emerge xfree?
If so, is it safe or poper to emerge xfree on top of xfree? Is this the way to do it if indeed all suddent I decide to add additional flags to my USE list? Das # emerge unmerge ... have anything to do with this, in this contest? Sorry for this queston but I am also trying to learn from this incident.

Thank you so much,
Spiro
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Fri Jul 16, 2004 2:57 pm    Post subject: Reply with quote

I'm not sure just how familiar you are with USE flags, but reading this is good. Assuming that you are indeed interested in always having tcl and tk support for any future packages, just edit the /etc/make.conf and add 'tcltk' as a USE flag. A complete list of USE flags is available here. Then:
Code:
emerge info

... should reflect any changes and you should see all the USE flags you're using (including those you've added). At this point, run:
Code:
emerge --pretend xfree

... and hopefully tcl and tk will be listed as xfree dependencies ... IF they're indeed xfree dependencies (see note below). If I run
Code:
emerge -pev world | grep tcltk

... I get 2 packages on my system, including python, i.e. tcltk are 'immediate' dependencies of python, which in turn is a dependency of several media and dev libraries. However, if I
Code:
cat /var/db/pkg/x11-base/xfree-4.3.0-r6/USE

... I'll get all the USE flags used when emerging xfree. In my case, I do get python and tcltk as xfree USE flags. If you do get tcl and tk listed as xfree dependencies when 'pretending' to emerge xfree, then just:
Code:
emerge xfree

... and xfree should be rebuilt with tcltk support. If for some reason tcl/tk arent't indicated as xfree dependencies, then some other package will likely make use of them down the line. At that point, you could either
Code:
emerge tk
opengl-update xfree

... and see if you still get the NO TCL message OR just wait until you finished with your other packages ... you might just want to wait and finish your desktop configuration, as there could be version incompatibility issues, i.e. larger packages may be using older versions of tcl/tk ...

In any case, if you have a pretty good idea of what you want installed on your system (e.g. KDE vs Gnome), you might want to invest some time in figuring out which USE flags suit you best ...

At that point, and 'assuming' that you're still following the Desktop Configuration Guide and tweaking with xfree, i.e. you haven't emerged bigger packages like KDE or Gnome, you then 'could' consider going through the process of 'Adapting your Entire System to New USE Flags' found in the USE flag page suggested earlier. Since you haven't emerged a whole bunch of packages, that process might not take too much time. However, I've NEVER tried this before, so CAUTION ... OR if instead you have indeed emerged a whole bunch of packages since xfree, then maybe not such a good idea ... Good luck!

EDIT: Going through the emerge man pages, 'emerge -pe <package> gives a complete dependency tree for a given package ... tcl and tk are listed as dependencies for xfree in my case.
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Sat Jul 17, 2004 7:04 am    Post subject: Reply with quote

Hi,

I added 'tcltk' in my USE flags. I emerge sysnc.
I did not find any dependency onthe emerge -pv xfree or world.
I then decided to try with the emerge tk and opengl-update xfree.
I still get the same answer (No-TCL and disabling TCL)

I assume it is too early for me. So, I will continue with kde install and others. Perhaps, this way my kde will install it on its own. If now, I will get back soon.

I have not tried the emerge -pe <package> I will try it.

Thank you by now,
Spiro
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Sat Jul 17, 2004 12:41 pm    Post subject: Reply with quote

Quote:
I added 'tcltk' in my USE flags ... I did not find any dependency on the emerge -pv xfree or world

I think you wouldn't. The '-pv' (i.e. pretend+verbose) option will only list the immediate USE flags to be used, not the whole dependency tree. The '-pev' (i.e. pretend+emptytree+verbose) will list all the dependencies. So if ...
Code:
emerge -pev xfree

... doesn't show tcltk, then it's not a xfree dependency, or for some reason, it's not taking it into consideration. The 'e' option is, I believe, is critical for taking on recent changes to USE flag settings.
Quote:
I then decided to try with the emerge tk and opengl-update xfree.

If tcltk are indeed potential dependencies, then re-emerging xfree with the 'e' option could help ... but wait once you've successfully emerged kde ....
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Sun Jul 18, 2004 1:23 pm    Post subject: Reply with quote

OK, here is the status of my work:

(1) I emerged -pev xfree and among other dipendencies I found listed tcl...
I run # emerge xfree again.
Then, in startx, I tested again glxinfo | grep "rendered string" and got the same NO-TCL message.
Consequently, I was not able to fix this issue at present time. :cry:

(2) Could it be that there might be an hardware issue or better a conflict between the hardware and software that creates this issue related to the fb video driver (radeonfb) and (mtrr) and perhaps TCL? If so, how to detect it and fix it?
The article provided t me here talks about MTRR.
The other article talks about the overlaps issue but when I run # dmesg|grep mtrr I do not get *ERROR*. Consequently, I assumed it is not my case. Is is correct?
I wish to provide some portions of the log files content in case this can be of help:
Code:

XFree86.0.log
----------------------------------------------------------------------------
(WW) RADEON(0): Failed to set up write-combining range (0xd0000000,0x4000000)
----------------------------------------------------------------------------

cat /proc/mtrr
----------------------------------------------------------------------------
Kernel command line: ro root=/dev/hdg3 video=vesafb:ywrap,mtrr vga=0x317
mtrr: v2.0 (20020519)
----------------------------------------------------------------------------

lspci -v
----------------------------------------------------------------------------
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE] (prog-if 00 [VGA])
   Subsystem: PC Partner Limited: Unknown device 7c28
   Flags: bus master, stepping, 66Mhz, medium devsel, latency 64, IRQ 11
   Memory at d0000000 (32-bit, prefetchable) [size=dfec0000]
   I/O ports at 7800 [size=256]
   Memory at dfef0000 (32-bit, non-prefetchable) [size=64K]
   Expansion ROM at 00020000 [disabled]
   Capabilities: [58] AGP version 2.0
   Capabilities: [50] Power Management version 2
----------------------------------------------------------------------------

glxinfo -v
----------------------------------------------------------------------------
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 4x x86/MMX/3DNow! NO-TCL
OpenGL version string: 1.2 Mesa 4.0.4
........... many others ............
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    ........... many others ............
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess
Visual ID: 23  depth=24  class=TrueColor
    bufferSize=24 level=0 renderType=rgba doubleBuffer=0 stereo=0
    rgba: redSize=8 greenSize=8 blueSize=8 alphaSize=8
    auxBuffers=0 depthSize=24 stencilSize=0
    accum: redSize=0 greenSize=0 blueSize=0 alphaSize=0
    multiSample=0  multiSampleBuffers=0
    visualCaveat=None
    Opaque.
----------------------------------------------------------------------------

From within kde konsol, when I type "startx I geh the following:
----------------------------------------------------------------------------
bash-2.05b# startx
Using authority file /root/.Xauthority
Writing authority file /root/.Xauthority
Fatal server error:
Server is already active for display 0
        If this server is no longer running, remove /tmp/.X0-lock
        and start again.

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org.
----------------------------------------------------------------------------

Messages
----------------------------------------------------------------------------
Jul 18 13:06:50 trix mtrr: 0xd0000000,0x4000000 overlaps existing 0xd0000000,0x200000
Jul 18 13:06:50 trix mtrr: 0xd0000000,0x4000000 overlaps existing 0xd0000000,0x200000
radeonfb: cannot reserve FB region
----------------------------------------------------------------------------

kdm.log
----------------------------------------------------------------------------
(WW) RADEON(0): Failed to set up write-combining range (0xd0000000,0x4000000)
----------------------------------------------------------------------------

startx at root I get this:
----------------------------------------------------------------------------
# glxinfo | grep "renderer string"
disbling TCL.
OpenGL renderer string: Mesa DRI Radeon 20020611 AGP 4x x86/MMX/3DNow! NO-TCL
----------------------------------------------------------------------------

dmesg
----------------------------------------------------------------------------
Linux version 2.6.7-gentoo-r10 (root@livecd) (gcc version 3.3.3 20040412
(Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)) #1 Tue Jul 13 21:26:50 CEST 2004
mtrr: v2.0 (20020519)
Console: colour dummy device 80x25
vesafb: framebuffer at 0xd0000000, mapped to 0xd8808000, size 3072k
vesafb: mode is 1024x768x16, linelength=2048, pages=41
vesafb: protected mode interface info at c000:5502
vesafb: pmi: set display start = c00c5596, set palette = c00c55e2
vesafb: pmi: ports = 7810 7816 7854 7838 783c 785c 7800 7804 78b0 78b2 78b4
vesafb: scrolling: ywrap using protected mode interface, yres_virtual=1536
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
fb0: VESA VGA frame buffer device
radeonfb: cannot reserve FB region
Console: switching to colour frame buffer device 128x48
agpgart: Detected VIA KLE133 chipset
agpgart: Maximum main memory to use for agp memory: 321M
agpgart: AGP aperture is 64M @ 0xe0000000
[drm] Initialized radeon 1.11.0 20020828 on minor 0: ATI Technologies Inc
      Radeon RV100 QY [Radeon 7000/VE]
Console: colour dummy device 80x25
----------------------------------------------------------------------------


I have completed the installation of KDE.
Now I am about to continue with the Desktop Guide and install my aplications. Meanwhile, I wait with great hope for your assistance.

Thank you,
Spiro
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Sun Jul 18, 2004 4:10 pm    Post subject: Reply with quote

OOPS! Your issues have motivated me to Google this a bit more and I did come up with some interesting results ...

First my sincere apologies!!! My initial queries led me to believe that it was indeed a tcl/tk issue. And although there is a strong link between xfree/opengl/tcltk, the 'NO-TCL' message apparently has nothing to do with tcltk. Taken from here:
Quote:
TCL is a common name for three operations:

transformation (moving and rotating objects in a scene)
clipping (removing non-visible objects)
lighting (applying light effects on objects)

Most modern graphics cards are able to perform TCL internally with the card's chip - this allows greater speed in all applications, the main system processor(s) doesn't have to do additional work with graphics.

TCL allows far more complex scenes to be calculated in very short time.


Apparently, the ATI rv100/M6 series (Radeon VE & 7000) do not support TCL:
Quote:
rv100 / M6 Original Radeons:

Radeon VE (1 texture pipeline, no TCL)

Rereleased Radeons:

Radeon 7000 / M6 (1 texture pipeline, no TCL)

The only differences between the releases are more RAM and higher clock speeds (possible due to a manufacturing process shrink) on the 7000.

At the end of the day, it seems with your card, DRI is OK but simply without TCL support ... not really an error then ... let
Code:
glxgears

... run for 15 seconds or so and you'll get an average FPS rate for your card/architecture. Hope you get something above 1000 fps.

On another topic, you seem to have conflicts between radeonfb vs. vesafb. I had similar messages when trying to enable bootsplash support in the kernel. Doesn't seem to work well with radeonfb. Try disabling all radeon fb kernel support (while only keeping vesa) and recompile the kernel. It did get rid of the error messages for me and I can since boot with the LiveCD bootsplash image ... hope this helps ...
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Sun Jul 18, 2004 8:36 pm    Post subject: Reply with quote

Hi !db!,
thank your for your research and help.

(1)
I wish to show you this extra info and see if you would agree with me and perhaps advice me on how to solve it.

From kde, from Konsole, I get the following info:
---> bash-2.05b# cat /proc/mtrr
reg00: base=0x00000000 ( 0MB), size= 256MB: write-back, count=1
reg01: base=0x10000000 ( 256MB), size= 128MB: write-back, count=1
reg02: base=0xd0000000 (3328MB), size= 2MB: write-combining, count=1
reg03: base=0xe0000000 (3584MB), size= 64MB: write-combining, count=1
------------------------------------------------------------------------------
---> bash-2.05b# dmesg|grep mtrr
Kernel command line: ro root=/dev/hdg3 video=vesafb:ywrap,mtrr vga=0x317
mtrr: v2.0 (20020519)
mtrr: 0xd0000000,0x4000000 overlaps existing 0xd0000000,0x200000
mtrr: 0xd0000000,0x4000000 overlaps existing 0xd0000000,0x200000
bash-2.05b#
------------------------------------------------------------------------------
bash-2.05b# cat /var/log/XFree86.0.log|grep ATI|more
(--) PCI:*(1:0:0) ATI Technologies Inc Radeon RV100 QY [Radeon 7000/VE] rev 0, M
em @ 0xd0000000/27, 0xdfef0000/16, I/O @ 0x7800/8, BIOS @ 0xdfec0000/17
------------------------------------------------------------------------------

Now, according to this link I should be able to fix this issue. But, because I am not so experienced with linux I am not confident in making some changes as the article describes.
So, can you please take a look and see if you thing this way I will be able to solve my conflict issue? I believe this can be solved this way.

I would do:
My conflict is:
mtrr: 0xd0000000,0x4000000 overlaps existing 0xd0000000,0x200000
(WW) RADEON(0): Failed to set up write-combining range (0xd0000000,0x4000000)
Therefore, I would chose reg02 and do:
Code:
# echo "disable=2" > | /proc/mtrr

and then
Code:
# echo "base=0xd0000000 size=0x8000000 type=write-combining" > | /proc/mtrr

And I think it should be fine.
Now, what I do not know and well understand is the step by step to then make it into a boot-up script and add it to the boot.

(2) How about this message when I execute "startx" from my Konsole:?
Quote:
bash-2.05b# startx
Using authority file /root/.Xauthority
Writing authority file /root/.Xauthority


Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.


When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
Please report problems to xfree86@xfree86.org.


Can you help me with this? Does this have anything to do with what I did following the instructions for the "tcl"..? startx runs fine without kde.

(3) As for glxgears I get very fast FPS rate. I do not complain. Do you thing taht changing Video card with another ATI that would support TCL would acctually help my desktop? I do not work with graphics but only do e-mail and other office stuff.

Thank you,
Spiro
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Mon Jul 19, 2004 1:27 am    Post subject: Reply with quote

Cool,

Looking up my own settings, I've noticed similar messages (ouch!), which is odd as the kernel is correctly picking up the right card (just like you). Going over your links and additional sites - here and here, this seems like a minor problem (at least for me). Basically, the vesafb is resetting the mtrr and it looks like only 2MB of your graphics card is being used (2 MB = 0x200000 vs. 64MB = 0x4000000).

If I were you, I'd just reboot and let KDE start normally. Then, as root, first:
Code:
echo "disable=2" > |/proc/mtrr
echo "base=0xd0000000 size=0x4000000 type=write-combining" > |/proc/mtrr

... as you suggested (BUT CHANGE size for 0x4000000 ... 0x8000000=128MB ... you have 64MB right?) ... then reload KDE (by logging out and then choosing 'End session only'. Once back in KDE, as root:
Code:
cat /proc/mtrr

... should now reveal your mtrr settings with 64MB rather than just 2MB. Apparently, this would make a big difference if you were playing a recent video game (hard on graphics memory), but you'll notice that running:
Code:
glxgears

... will not make any difference in FPS, as glxgears doesn't seem to exploit mtrr.

Now, I've tweaked with my settings enough to consider that my only problem is the vesafb support ... and as I can remember, I only enabled vesafb to enable bootsplash, a.k.a 'eye-candy'. I don't play video-games, and resetting mtrr doesn't make any difference with the few apps I occasionaly use which are 3D-intensive. So, instead of writting a init.d script to reset at boot something which shouldn't have been incorrectly reset in the first place (as suggested in th elinks), I'll soon make a decision if I keep bootsplash and the vesafb support, OR instead get rid of the mtrr overwrite 'warning' messages through proper kernel settings ... because it is, afterall, a kernel/hardware/fb incompatibility issue.

So my suggestion to you is:
1. finish your Gentoo installation;
2. eventually decide if you do want to fine tune your 3D graphics performance (even if it's just for the Gentoo sake of it); and if so ...
3. play around with your kernel settings, recompile variants of the kernel, and check which one makes the mtrr messages go away ... if you have loads of time on your hands.

As for your other questions:
(Q2): you're probably trying to run X from another active x session. Forget it and instead look up the /var/log/XFree86.0.log once KDE is loaded.
(Q3): I would wait until you're into intensive 3D gaming before changing your card ... it's an good card and if you're satisfied with your current DRI capabilities, then keep it. You paid for it. The packages you seem to be interested in: email, internet, office apps, etc. ... will likely never use the capabilities of your card ...

Good luck with the rest of your installation! Keep me posted if you do find the right kernel settings ... I'll let you know if I do.

EDIT: Being curious, I disabled all kernel framebuffer support and took out any related video/vga boot settings in grub.conf. I now boot with a butt-ugly console, but running:
Code:
dmesg|grep mtrr

... will no longer show mtrr warning/error messages, while:
Code:
cat /proc/mtrr

... correctly shows right video card memory.

Then, I tried enabling kernel radeonfb for minimal framebuffer capabilities, but having tried for over an hour, and googled left and right, I always get the following message (in dmesg):
Quote:
radeonfb: Invalid ROM signature 0 should be 0xaa55

... and fixing any video/vga setting (or none at all) in grub always produces a blank screen, which, at a given run-level, switches eventually to the same butt-ugly console. radeonfb seems buggy, so for the moment, I'll just keep the butt-ugly console when booting and keep the correct video card memory settings. In the end, this is nothing serious: your initial boot screen is somewhat ugly, but X and KDE will look just as sharp as before, while your mtrr is correctly set.
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Mon Jul 19, 2004 3:49 pm    Post subject: Reply with quote

Hi,

I was able to apply the change and it worked perfectly.
I have to admint now that I do not know how to and where to create the script file. Then how to add it "rc-update add <script name> default" because of the dependencies.
Can you please explain step by step how to implement the script with its content, where to save it and what is the rc-update command line?

Thank you,
Spiro
Back to top
View user's profile Send private message
!db!
Apprentice
Apprentice


Joined: 25 Nov 2003
Posts: 172
Location: A frozen, barren wasteland

PostPosted: Mon Jul 19, 2004 4:34 pm    Post subject: Reply with quote

There is a good Initscripts page in the Gentoo Handbook. First read this and get familiar with the basic concepts. There would be several ways of adding those commands in the initscripts, i.e. adding your own script, changing an existing script, etc. The most important part is understanding 'when' you want this to load.

Now, let's go back a bit: vesafb is overriding your mtrr settings when the kernel image is loading, therefore the 'dmesg' errors are likely to remain. With me? If you still want to reset mtrr for improved gaming for instance, you can likely wait just before or when X is loading. That way, any apps using XFree86/OpenGL will have access to the new mtrr settings, without risking to upset the vesafb and pretty bootsplash.

Since you've just installed KDE, I think you could get away with minor changes to the existing xdm script:
Code:
nano -w /etc/init.d/xdm


Init scripts are made-up of 4 basic functions, the essential being 'start'. So try modifying the xdm start function by adding 2 lines ... something like:
Code:
start() {
        setup_dm
        echo "disable=2">|/proc/mtrr
        echo "base=0xe0000000 size=0x4000000 type=write-combining">|/proc/mtrr

        ebegin "Setting up ${SERVICE}"
        #save the prefered DM
        save_options "service" "${EXE}"
        #tell init to run /etc/X11/startDM.sh after current
        #runlevel is finished (should *not* be in the "boot"
        #                      runlevel).
        /sbin/telinit a &>/dev/null
        eend 0
}

Then do the following:
Code:
rc-update del xdm
rc-update add xdm default

... reboot and cross your fingers ... I've never tried this so you're on your own. If there is a syntax error, you'll notice as X/KDE will not start and you'll likely fall back on the command prompt. In that case, try instead adding the lines in 'setup_dm' (but that shouldn't really matter):
Code:
setup_dm() {
        source /etc/profile.env
        echo "disable=2">|/proc/mtrr
        echo "base=0xe0000000 size=0x4000000 type=write-combining">|/proc/mtrr
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"

... and after each change to xdm:
Code:
rc-update del xdm
rc-update add xdm default

... if on the other hand X/KDE do start, then just:
Code:
cat /proc/mtrr

... and check the output. Good luck!
Back to top
View user's profile Send private message
SAngeli
l33t
l33t


Joined: 16 Apr 2004
Posts: 904
Location: Italy

PostPosted: Sat Jul 24, 2004 1:35 pm    Post subject: Reply with quote

Hi,

thank you for all your support.
I was able to fix the issue exactly the way it was suggested.

The case is now closed and am very happy about it.

Thank you,
Spiro
Back to top
View user's profile Send private message
lagaffe
n00b
n00b


Joined: 04 Aug 2004
Posts: 24
Location: Lausanne (CH)

PostPosted: Wed Aug 04, 2004 8:53 am    Post subject: Reply with quote

I'm sorry to introduce myself in this discussion and so late, but I am a newcommer in the Gentoo world.

I try to install Xfree86 with my ATI Radeon 7000 64M and all above has helped me so much. But I have still a great trouble : when I load startx, I have a black screen, with my mouse that function well. If I click left the Twm menu appears.

I tried the command glxinfo | grep "renderer string" but the answer is "... error while loading shared libraries. libGL.so.1: cannot open shared object file: No such file or directory". I have also followed the steps of this speech for my kernel and watched the XF86Config but nothing changed.

So what is this glx?

Do I missed someting in my kernel?
_________________
Axiome de Kahn: quand tout a échoué lisez la doc
Back to top
View user's profile Send private message
oscarwild
l33t
l33t


Joined: 15 Jul 2003
Posts: 857
Location: Memmingen, Germany, Old Europe, Earth

PostPosted: Tue Aug 31, 2004 6:34 am    Post subject: Reply with quote

first and foremost, thank you all for this thread! It will be very helpful for me when my new gfx board has been shipped!

@lagaffe:
startx will only start a raw X session. What you rather like to do, is starting a display manager like kdm or gdm (this can be automated by the /etc/init.d/xdm script)
glx ist the openGL-eXtension for your graphics driver, enabling fast 3D graphics; however, no OpenGL-libraries are found. Please make sure, your USE-Flags (in /etc/make.conf) contain "opengl"; if not, you've got to add it and recompile xfree
Back to top
View user's profile Send private message
lagaffe
n00b
n00b


Joined: 04 Aug 2004
Posts: 24
Location: Lausanne (CH)

PostPosted: Sat Sep 11, 2004 10:09 am    Post subject: Reply with quote

oscarwild wrote:

@lagaffe:
startx will only start a raw X session. What you rather like to do, is starting a display manager like kdm or gdm (this can be automated by the /etc/init.d/xdm script)
glx ist the openGL-eXtension for your graphics driver, enabling fast 3D graphics; however, no OpenGL-libraries are found. Please make sure, your USE-Flags (in /etc/make.conf) contain "opengl"; if not, you've got to add it and recompile xfree


Thanks a lot oscarwild for your usefull explanation. I'm trying your solution a the moment. I haven't the "opengl" keyword in my USE variable.

I have compilled Xorg with the keyword "opengl" and it seems to work on that side. Therefore, another problem occurs. When I load the X session and kill this session, it is written :

FATAL: Module radeon not found.
[drm] failed to load kernel module "radeon"

I made some changes on my kernel about ati-radeon section (as mentionned before in this topic) and the problem still remains.

I changed the drivers to a "vesa" driver. There, I have a font problem with CID and Type1:

Could not init font path element /usr/share/fonts/Type1/, removing from list!

Could not init font path element /usr/share/fonts/CID/, removing from list!

What can I do? This problem occurs also with the ati or radeon drivers
_________________
Axiome de Kahn: quand tout a échoué lisez la doc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum