Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: X.org Direct Rendering with Radeon M6 LY
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
hotplainrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 92

PostPosted: Fri Sep 10, 2004 3:35 am    Post subject: HOWTO: X.org Direct Rendering with Radeon M6 LY Reply with quote

X.org Direct Rendering with Radeon M6 LY

14 Sept 2004 Version 1.2: Existence of AGP cards.
13 Sept 2004 Version 1.1: Added sinetific changes

This should work for every linux distro out there with minimal changes.

First step: The kernel

I prefer to use the drivers in the kernel because its available there already.
Configure your kernel and make sure you have these options just like this.

Code:
Linux Kernel Configuration
      Device Drivers  --->
        Character devices  --->
          <*> /dev/agpgart (AGP Support)
          <*> [whatever-your-chipset-is] chipset
          [*] Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)
          <*>   ATI Radeon


Recompile and use the new kernel.


Second step: The xorg.conf

Generate a Xorg.conf.new by running
Code:
X -configure


Edit the Xorg.conf.new accordingly.

Code:

Section "ServerLayout"
    .............
EndSection

Section "Files"
    .............
EndSection

Section "Module"
    ............
       # Add these lines
        Load  "dri"
        Load  "glx"
EndSection

Section "InputDevice"
     .............
EndSection

Section "InputDevice"
    .............
EndSection

Section "Monitor"
    .............
EndSection

Section "Device"
        # Make sure your configuration is like this
        Identifier  "Card0"
        Driver      "radeon"
        Option      "DPMS"
        # If you have a PCI card, add the following line:
          Option      "BusType" "PCI"
        # If you have a AGP card, add the following line:
          Option      "AGPMode" "4"

        Option      "BackingStore" "on"
        Option      "EnablePageFlip" "on"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon Mobility M6 LY"
        # Don't edit this line, every notebook has a different value (X -configure command will determine it)
        BusID       "PCI:0:20:0"
EndSection

Section "Screen"
    .............
        DefaultDepth 24
        # Change "24" to "16" if your card doesnt do Direct Rendering.
    .............
EndSection

# Add this section if you don't have it.
# Make sure its EXACTLY the SAME.
Section "DRI"
    Mode 0666
EndSection


Now copy xorg.conf.new to /etc/X11/xorg.conf

Third step: Start X !

(Gentoo-specific) Run:
Code:

opengl-update xorg-x11


Start X then type in console:
Code:

glxinfo | grep direct


If your configuration is correct you should get:
Code:

disabling TCL support
direct rendering: Yes


Yes, there is no TCL in Radeon M6 LY PCI card :( but at least direct rendering works.

If you don't see that, check again your configuration.

Forgive me if there is anything wrong in my first guide for linux.


Last edited by hotplainrice on Tue Sep 14, 2004 7:13 am; edited 4 times in total
Back to top
View user's profile Send private message
sinetific
n00b
n00b


Joined: 05 Nov 2003
Posts: 26

PostPosted: Mon Sep 13, 2004 12:32 pm    Post subject: Reply with quote

Just to note use the lspci command to find your card's BusID:
Code:
 lspci | grep Radeon

For Xorg you need to use the BusType option instead of ForcePCIMode. ForcePCIMode is now depricated.
Code:

Section "Device"
        # Make sure your configuration is like this
        Identifier  "Card0"
        Driver      "radeon"
        Option      "DPMS"
        Option      "BusType" "PCI"
        Option      "BackingStore" "on"
        Option      "EnablePageFlip" "on"
        VendorName  "ATI Technologies Inc"
        BoardName   "Radeon Mobility M6 LY"
        # Don't edit this line, every notebook has a different value.
        BusID       "PCI:1:0:0"
EndSection
Back to top
View user's profile Send private message
acdispatcher
n00b
n00b


Joined: 26 Feb 2004
Posts: 42

PostPosted: Mon Sep 13, 2004 4:29 pm    Post subject: Reply with quote

AGP or PCI :?:

Here is my xorg:
Code:

Section "Device"
    Identifier "device1"
    VendorName "ATI"
    BoardName "ATI Radeon"
    Driver "radeon"
    BusID "1:0:0"
    Option "DPMS"
    Option "BusType" "PCI"
    Option "EnablePageFlip" "true"
    Option "BackingStore" "on"
EndSection


When I do that I get around 495 FPS on glxgears (I know they are not the best test). I usually have my setup like this:

Code:

Section "Device"
    Identifier "device1"
    VendorName "ATI"
    BoardName "ATI Radeon"
    Driver "radeon"
    BusID "1:0:0"
    Option "DPMS"
    Option "AGPMode" "4"
    Option "EnablePageFlip" "true"
    Option "BackingStore" "on"
EndSection


I have had AGPMode "4" for a long time with no lockups or difficulties. When I do I get FPS around 635. Also my Xorg.0.log has:

Quote:

(--) Chipset ATI Radeon Mobility M6 LY (AGP) found
and
(--) RADEON(0): Chipset: "ATI Radeon Mobility M6 LY (AGP)" (ChipID = 0x4c59)
(--) RADEON(0): Linear framebuffer at 0xe8000000
(--) RADEON(0): VideoRAM: 32768 kByte (64 bit DDR SDRAM)
(II) RADEON(0): AGP card detected
(**) RADEON(0): Forced into PCI mode

but also found
(II) RADEON(0): [drm] created "radeon" driver at busid "pci:0000:01:00.0"


Not sure if Im suppose to have AGPMode or PCI but Ill go with AGP.

glxinfo with Option "BusType" "PCI" :
Code:

acdispatcher@arora ~ $ glxinfo
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20030328 x86/MMX/SSE2 NO-TCL
OpenGL version string: 1.2 Mesa 6.1


glxinfo with AGPMode "4"

Code:

acdispatcher@arora ~ $ glxinfo
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_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating,
    GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
client glx extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_allocate_memory,
    GLX_MESA_swap_control, GLX_MESA_swap_frame_usage, GLX_OML_swap_method,
    GLX_OML_sync_control, GLX_SGI_make_current_read, GLX_SGI_swap_control,
    GLX_SGI_video_sync, GLX_SGIS_multisample, GLX_SGIX_fbconfig,
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_swap_control,
    GLX_MESA_swap_frame_usage, GLX_OML_swap_method, GLX_SGI_video_sync,
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
OpenGL vendor string: Tungsten Graphics, Inc.
OpenGL renderer string: Mesa DRI Radeon 20030328 AGP 4x x86/MMX/SSE2 NO-TCL
OpenGL version string: 1.2 Mesa 6.1


Note the "OpenGL renderer string:" line on each
_________________
Budget PC -
DFI NF3 250Gb Socket 754
AMD Sempron 3100+
1.5 GB Crucial DDR 400(PC 3200)
SAMSUNG 160GB SATA
NVIDIA 6600
Back to top
View user's profile Send private message
hotplainrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 92

PostPosted: Tue Sep 14, 2004 7:07 am    Post subject: Reply with quote

:) Well, thats the first time I'm seeing a Radeon M6 (AGP) ! That's why you lost performance because you have an agp card. Thanks for the feedback.
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Sat Sep 18, 2004 12:04 am    Post subject: Reply with quote

Looks a bit like http://www.gentoo.org/doc/en/dri-howto.xml -- which, coincidentally, I wrote using an M6 LY.
Back to top
View user's profile Send private message
ash2ash
n00b
n00b


Joined: 19 Sep 2004
Posts: 6

PostPosted: Sun Sep 19, 2004 10:49 pm    Post subject: Reply with quote

I tried this on my IBM X22 laptop. Works great - problem is, when I suspend, it doesn't resume. I'm going to see if any kernel options will fix it, but does anyone here have a solution to this problem?

If not, I'm probably going to go back to using the vga driver :(
Back to top
View user's profile Send private message
dberkholz
Retired Dev
Retired Dev


Joined: 18 Mar 2003
Posts: 1008
Location: Minneapolis, MN, USA

PostPosted: Mon Sep 20, 2004 6:47 am    Post subject: Reply with quote

ash2ash wrote:
I tried this on my IBM X22 laptop. Works great - problem is, when I suspend, it doesn't resume. I'm going to see if any kernel options will fix it, but does anyone here have a solution to this problem?

If not, I'm probably going to go back to using the vga driver :(

Suspend is still a _very_ risky proposition using X. Your best bet is to stop X, not use a framebuffer console, then suspend and resume from that state. Some Radeons will be able to suspend and resume successfully in xorg 6.8, but most cards will not, except by luck.

Note that by risky, I mean unlikely to work properly, opposed to likely to damage your hardware.
Back to top
View user's profile Send private message
hotplainrice
Tux's lil' helper
Tux's lil' helper


Joined: 25 Apr 2004
Posts: 92

PostPosted: Mon Sep 20, 2004 12:18 pm    Post subject: Reply with quote

What version of swsusp2 are you using?
Back to top
View user's profile Send private message
vord
n00b
n00b


Joined: 15 Nov 2003
Posts: 31

PostPosted: Wed Sep 22, 2004 12:09 pm    Post subject: Reply with quote

after trying step2, i get the following error:
Code:
X Window System Version 6.8.0
Release Date: 8 September 2004
X Protocol Version 11, Revision 0, Release 6.8
Build Operating System: Linux 2.4.27 i686 [ELF]
Current Operating System: Linux uranium 2.4.27 #12 Wed Sep 22 11:12:16 CDT 2004 i686
Build Date: 22 September 2004
        Before reporting problems, check http://wiki.X.Org
        to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Sep 22 11:50:29 2004
Using vt 7
List of video drivers:
        radeon
        atimisc
        r128
        mga
        glint
        nv
        tga
        s3
        s3virge
        sis
        rendition
        neomagic
        i740
        tdfx
        savage
        cirrus
        vmware
        tseng
        trident
        chips
        apm
        i128
        nsc
        i810
        ati
        ark
        cyrix
        siliconmotion
        via
        vesa
        vga
        dummy
        fbdev
        v4l
        i810
(EE) Failed to load module "i810" (once-only module, 0)
(++) Using config file: "/root/xorg.conf.new"


Xorg detected your mouse at device /dev/mouse.
Please check your config if the mouse is still not
operational, as by default Xorg tries to autodetect
the protocol.

Your xorg.conf file is /root/xorg.conf.new

To test the server, run 'X -config /root/xorg.conf.new'


this is xorg-x11-6.8.0-r1, kernel-2.4.27 [configured as in Step1 of this thread]

here is lspci output:
Code:
0000:00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
0000:00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 05)
0000:00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 05)
0000:00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 05)
0000:00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 05)
0000:00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 05)
0000:00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 05)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 05)
0000:00:1f.6 Modem: Intel Corp. Intel 537 [82801BA/BAM AC'97 Modem] (rev 05)
0000:01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY
0000:02:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 Controller (PHY/Link)
0000:02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
0000:02:09.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)
0000:02:09.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller (rev 01)

_________________
--vordhosbn
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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