Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
855GM and DRI support, anyone got it working???
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
mody
Apprentice
Apprentice


Joined: 01 Oct 2004
Posts: 176

PostPosted: Thu Jun 23, 2005 5:55 pm    Post subject: 855GM and DRI support, anyone got it working??? Reply with quote

Hi there,
I'm having issues getting xorg to work with 'dri'.
I have a Toshiba A10 laptop with an onboard i855GM AGP.
When I enable dri I get a small square white box in the center of the screen with garbage in it. Need to shutdown with the powerbutton since the screen in unresponsive, even to switch to a console.

here is my xorg.conf:
Code:
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"   # Double buffer extension

# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
    SubSection  "extmod"
      Option    "omit xfree86-dga"   # don't initialise the DGA extension
    EndSubSection
 Load "synaptics"   # for touchpad
# This loads the font modules
    Load        "type1"
#    Load        "speedo"
    Load        "freetype"
#    Load        "xtt"

        Load   "GLcore"

# This loads the GLX module
    Load       "glx"
# This loads the DRI module
#    Load       "dri"

EndSection


Section "Device"
    Identifier  "** Intel i810 (generic)               [i810]"
    Driver      "i810"
    VideoRam    32768
    # Insert Clocks lines here if appropriate
EndSection



Section "dri"
   Group        0
   Mode         0666
EndSection
Back to top
View user's profile Send private message
bonbons
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 250

PostPosted: Thu Jun 23, 2005 5:59 pm    Post subject: Reply with quote

That card is hard to get to Work with current X versions in portage...
Last one I know that worked was 9 months ago with Xorg 6.8.0 or 6.8.1.

Since then best I get is Xorg.0.log saying DRI enabled but glxinfo says no DRI.
Don't know where the incompatibility is...
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Thu Jun 23, 2005 6:06 pm    Post subject: Reply with quote

I've got this working. Needed to update the kernel (no proper drivers in the < 2.6.8) and change the driver i810 for i915 - not everything is Just Working[tm].

Search the forums for Setting up i810 and so - there's at least one outstanding thread regarding this issue.
Back to top
View user's profile Send private message
bonbons
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 250

PostPosted: Thu Jun 23, 2005 7:08 pm    Post subject: Reply with quote

zieloo wrote:
I've got this working. Needed to update the kernel (no proper drivers in the < 2.6.8) and change the driver i810 for i915 - not everything is Just Working[tm].
On Kernel side I do have i915 driver, Xorg only has i810 for everything. DRI either Xorg original or snapshot version fetched from DRI.sf.net don't work.
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Fri Jun 24, 2005 6:01 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-260490-start-0-postdays-0-postorder-asc-highlight-i810+dri.html
hope it helps...

It's not so easy to set it up, you know. But if you follow what other pl had done you'll (most probably - it's intel :evil: ) succeed.

I'm sorry I cannot give you some instructions - I just think there's no such need as the issue has been already solved (many times)...

Check your xorg.conf (i've got some strange items there 8O ) and kernel config - enable Intel i865 chipset support (AGP_INTEL_MCH) agpgart support (as module), Intel I810 (DRM_I810), Intel 830M, 845G, 852GM, 855GM, 865G, i915 driver (DRM_I915) - all modules.

In xorg.conf:
Code:
Section "Device"
[..]
   Option      "NoAccel"       "false"
        Option      "DRI"           "true"

Don't care if it's really needed :lol:
And:
Code:

Chipset      "i915"
Driver   "i915"


Maybe uncomment 'dri' module in xorg.conf, hum?

I've also done:
Code:
#      Option    "omit xfree86-dga"   # don't initialise the DGA extension


I read your whole post. I can tell you I was getting the same - weird grey square in the middle of the screen. The line above seemed to help solve this problem. + using i915.

In one word: i810-based intel chipset is a 'bitch to set up' as Bob_P wrote :) So xorg is crap, useless piece of dog slow unconfigurable software :evil: :wink:

PS Sorry for my post being so, ehm, of a mess, it's pretty early, that's why. Feel free to post! :D
Back to top
View user's profile Send private message
bonbons
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 250

PostPosted: Fri Jun 24, 2005 9:34 am    Post subject: Reply with quote

zieloo wrote:
Code:

Chipset      "i915"
Driver   "i915"
But where do you find that i915 driver??
With Xorg there is only a i810 and i740 driver, but no i915 :?

Kernel modules I have loaded: agpgart, intel_agp, drm, i915

i810 driver versions used: 1.3.0, 1.5.69, 1.5.98 (requires more recent libdri than stock 6.8.2 one), 1.5.71 and others
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Fri Jun 24, 2005 9:43 am    Post subject: Reply with quote

bonbons wrote:
zieloo wrote:
Code:

Chipset      "i915"
Driver   "i915"
But where do you find that i915 driver??
With Xorg there is only a i810 and i740 driver, but no i915 :?

Kernel modules I have loaded: agpgart, intel_agp, drm, i915

i810 driver versions used: 1.3.0, 1.5.69, 1.5.98 (requires more recent libdri than stock 6.8.2 one), 1.5.71 and others


Ok - I'd like to see your xorg log+ kernel config (only parts of) + glxinfo if you're inetersted in this too. Btw: does xorg start correctly when you comment our Load "dri" line?
Back to top
View user's profile Send private message
bonbons
Apprentice
Apprentice


Joined: 04 Sep 2004
Posts: 250

PostPosted: Fri Jun 24, 2005 9:58 am    Post subject: Reply with quote

zieloo wrote:
Ok - I'd like to see your xorg log+ kernel config (only parts of) + glxinfo if you're inetersted in this too. Btw: does xorg start correctly when you comment our Load "dri" line?


Yes, Xorg starts fine even when I comment DRI out (in modules and device sections)
If needed I can put them all on a Webserver (so complete info is available)
Kernel config:
Code:
...
CONFIG_AGP=m
# CONFIG_AGP_ALI is not set
# CONFIG_AGP_ATI is not set
# CONFIG_AGP_AMD is not set
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=m
# CONFIG_AGP_INTEL_MCH is not set
# CONFIG_AGP_NVIDIA is not set
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_SWORKS is not set
# CONFIG_AGP_VIA is not set
# CONFIG_AGP_EFFICEON is not set
CONFIG_DRM=m
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=m
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
...


Xorg log:
Code:
...
(II) Loading /usr/lib/modules/drivers/i810_drv.o
(II) Module i810: vendor="X.Org Foundation"
        compiled for 6.8.99.3, module version = 1.5.69
        Module class: X.Org Video Driver
        ABI class: X.Org Video Driver, version 0.7
...
(II) Loading sub module "dri"
(II) LoadModule: "dri"
(II) Loading /usr/lib/modules/extensions/libdri.a
(II) Module dri: vendor="X.Org Foundation"
        compiled for 6.8.2, module version = 1.0.0
        ABI class: X.Org Server Extension, version 0.2
...
(II) I810(0): Allocated 128 kB for the ring buffer at 0x0
(II) I810(0): Allocating at least 256 scanlines for pixmap cache
(II) I810(0): Initial framebuffer allocation size: 10448 kByte
(II) I810(0): Allocated 4 kB for HW cursor at 0x7fff000 (0x06d2c000)
(II) I810(0): Allocated 16 kB for HW (ARGB) cursor at 0x7ffb000 (0x09930000)
(II) I810(0): Allocated 4 kB for Overlay registers at 0x7ffa000 (0x06d1b000).
(II) I810(0): Allocated 512 kB for the linear buffer at 0x7f7a000
(II) I810(0): Allocated 64 kB for the scratch buffer at 0x7f6a000
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 9, (OK)
drmOpenByBusid: drmOpenMinor returns 9
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
(II) I810(0): [drm] DRM interface version 1.2
(II) I810(0): [drm] created "i915" driver at busid "pci:0000:00:02.0"
(II) I810(0): [drm] added 8192 byte SAREA at 0xdf08b000
(II) I810(0): [drm] mapped SAREA 0xdf08b000 to 0xb7d8f000
(II) I810(0): [drm] framebuffer handle = 0xe8020000
(II) I810(0): [drm] added 1 reserved context for kernel
...
(II) I810(0): [drm] Registers = 0xe0000000
(II) I810(0): [drm] Back Buffer = 0xee000000
(II) I810(0): [drm] Depth Buffer = 0xed000000
(II) I810(0): [drm] ring buffer = 0xe8000000
(II) I810(0): [drm] textures = 0xe8a54000
(II) I810(0): [drm] dma control initialized, using IRQ 11
(II) I810(0): [drm] Initialized kernel agp heap manager, 38273024
(II) I810(0): [dri] visual configs initialized
(WW) I810(0): Failed to set up write-combining range (0xe8000000,0x8000000)
(II) I810(0): vgaHWGetIOBase: hwp->IOBase is 0x03d0, hwp->PIOOffset is 0x0000
GET REFRESH 0
(II) I810(0): xf86BindGARTMemory: bind key 13 at 0x01fdf000 (pgoffset 8159)
(II) I810(0): xf86BindGARTMemory: bind key 5 at 0x07fff000 (pgoffset 32767)
(II) I810(0): xf86BindGARTMemory: bind key 6 at 0x07ffb000 (pgoffset 32763)
(II) I810(0): xf86BindGARTMemory: bind key 9 at 0x07f6a000 (pgoffset 32618)
(II) I810(0): xf86BindGARTMemory: bind key 7 at 0x07ffa000 (pgoffset 32762)
(II) I810(0): xf86BindGARTMemory: bind key 8 at 0x07f7a000 (pgoffset 32634)
(II) I810(0): xf86BindGARTMemory: bind key 10 at 0x06000000 (pgoffset 24576)
(II) I810(0): xf86BindGARTMemory: bind key 11 at 0x05000000 (pgoffset 20480)
(II) I810(0): xf86BindGARTMemory: bind key 12 at 0x04ff8000 (pgoffset 20472)
...
(II) I810(0): [drm] installed DRM signal handler
(II) I810(0): [DRI] installation complete
(II) I810(0): direct rendering: Enabled
...


GLX Info:
Code:
name of display: :1.0
display: :1  screen: 0
direct rendering: No
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.2
...


xorg.conf:
Code:
...
Section "Module"
        Load            "bitmap"
        Load            "ddc"
        Load            "extmod"
        Load            "int10"
        Load            "record"
        Load            "vbe"
#       SubSection "extmod"
#               Option  "omit xfree86-dga"      # don't initialise the DGA extension
#       EndSubSection
        Load            "type1"
        Load            "freetype"
       Load            "dri"
#       Load            "GLcore" # Test...
        Load            "glx"

#       Load            "dbe"
#       Load            "xtrap"
#       Load            "speedo"
EndSection
...
Section "Device"
        Identifier      "Intel-855GM-a"
        Driver          "i810"
        VendorName      "Intel Corp."
        BoardName       "82852/855GM Integrated Graphics Device"
#       ChipSet         "852GM/855GM"
#       Card            "i810 852GM/855GM"
        Option          "MonitorLayout"         "NONE,LFP"
        Option          "DevicePresence"        "yes"
        Option          "DeviceInfo"            "yes"
#       Option          "NoAccel"               "no"    # [<bool>]
#       Option          "SWcursor"              "no"    # [<bool>]
#       Option          "ColorKey"              # <i>
#       Option          "CacheLines"            # <i>
#       Option          "Dac6Bit"               # [<bool>]
#       Option          "DRI"                   "yes"   # [<bool>]
        Option          "DDC"                   "yes"   # [<bool>]
#       Option          "ShowCache"             # [<bool>]
#       Option          "XvMCSurfaces"          # <i>
#       Option          "VBERestore"            "yes"   # [<bool>]
#       Option          "VideoKey"              # [<int>]
#       Option          "XVideo"                # [<bool>]
#       Option          "PageFlip"              # [<bool>]
#       Option          "Clone"                 "yes"
        # This option is for dualhead stuff
        Option          "FixedPipes"            "B"
        BusID           "PCI:0:2:0"
        Screen          0
EndSection
...
Section "DRI"
        Mode    0666
EndSection
Back to top
View user's profile Send private message
zieloo
Veteran
Veteran


Joined: 28 Mar 2004
Posts: 1337

PostPosted: Fri Jun 24, 2005 10:17 am    Post subject: Reply with quote

Code:
# CONFIG_DRM_I810 is not set

make it set;P

Also, make sure dri is 'dri' not 'DRI', it's supposed to be small letters.

My modules section:
Code:
Section "Module"
    Load        "dbe"
    SubSection  "extmod"
#      Option    "omit xfree86-dga"
    EndSubSection

    Load        "type1"
    Load        "speedo"
    Load        "freetype"
    Load        "xtt"
    Load        "dri"
    Load   "GLcore"
    Load   "glx"
   
   Load  "extmod"
   Load  "fbdevhw"

will look at logs closely shortly.
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