Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting DRI working with Intel Sonoma (i915GM) chipset
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
AngryLlama
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 111

PostPosted: Sun Jan 01, 2006 11:14 pm    Post subject: Reply with quote

VinzC wrote:
It looks like you have enabled VESA-TNG instead of VESAFB. Follow the guide http://gentoo-wiki.com/HOWTO_fbsplash again but enable VESAFB instead.

I've tried both. I just heard that vesa-tng has better support for uncommon ratios than vesafb has.
ExZombie wrote:
My BIOS doesn't have correct modes for my screen also. I solved the problem with 855resolution. I simply set it to overwrite an unused resolution with my screen's native resolution and voila - xorg can now use it. I haven't tried framebuffer, but it might work, though not at boot time, since changes 855resolution makes are not permanent.

:D :D :D :D Hooray! That fixed it. I guess I just need to add 855resolution to a rc script.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Sun Jan 01, 2006 11:27 pm    Post subject: Reply with quote

AngryLlama wrote:
VinzC wrote:
It looks like you have enabled VESA-TNG instead of VESAFB. Follow the guide http://gentoo-wiki.com/HOWTO_fbsplash again but enable VESAFB instead.

I've tried both. I just heard that vesa-tng has better support for uncommon ratios than vesafb has.

In fact not really but you have to find the appropriate code provided your VESA BIOS supports it. This is what I did with my laptop. It has a widescreen resolution; VGA mode 0x361 corresponds to 1680x1050. But then my video BIOS supports that mode and vbetest lists it. Most of all VESAFB is needed because many people - like me - have noticed the console is completely garbled when you switch from X to a framebuffer console.

Fortunately someone found a workaround, which is exposed here or in another i915 related thread.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
AngryLlama
Tux's lil' helper
Tux's lil' helper


Joined: 30 Sep 2004
Posts: 111

PostPosted: Mon Jan 02, 2006 1:05 am    Post subject: Reply with quote

I see. I do notice that the screen is garbled when switching from X to a framebuffer console. However, the screen cleans itself up within a second or two. I get better performance with vesa-tng over the normal vesa.

There is (at least) one strange mishappening. When I unplug the AC, the screen gets garbled for half a second then goes blank. I can use Ctrl+Alt+F2 to find a terminal. Ctrl+Alt+F7 brings me to a blank screen. When I plug the AC back in, kdm restarts (I think)... I can log in through kdm (again) and kde restarts.

Any Ideas? I have tried using VESA and VESA-TNG

EDIT: The problem was I only included xdm in the default run-level. I created a battery run-level and didn't add xdm to it.

BTW, 855resolution comes with an rc script: one just needs to add it with rc-update.
Back to top
View user's profile Send private message
mr2600
n00b
n00b


Joined: 22 Feb 2004
Posts: 54
Location: Florida

PostPosted: Tue Jan 03, 2006 6:06 pm    Post subject: Reply with quote

No luck still with the GMA950 and the latest 2.6.15 kernel. Still get "unrecognized device id" when trying 3d apps. I will try this on a slightly older computer with GMA900 and see if its really the hardware hanging stuff up.

At least 2D acceleration works fine. Thanks for the helpful guide still!

EDIT: It seems like the GMA950 is simply unsupported, using the useful BlinkEye stage 4 backup guide I copied the install to a machine with the slightly older GMA900 chipset and I got accelerated 3D without having to change anything. I guess this should be a heads up to anyone thinking of installing Gentoo on a i945 chipset and want onboard 3D! Maybe it will get support in 2.6.16?
Back to top
View user's profile Send private message
cynick.young
n00b
n00b


Joined: 31 Jan 2006
Posts: 2

PostPosted: Wed Feb 08, 2006 2:53 pm    Post subject: Reply with quote

I finally got the i810 driver compiled and loading properly in Xorg. I can set my resolution to 1280x800 using 855resolution. So I know the 2D portion of the driver is fine. However, 3D DRI is another story.

If I disable DRI I get around 750fps when I test with glxgears. If I enable DRI, instead of getting higher framerates, it goes down to about 200fps. Any clues as to why that might be and where I should be looking for problems?

Thanks in advance. Thanks for the original info VinzC!
Back to top
View user's profile Send private message
mr2600
n00b
n00b


Joined: 22 Feb 2004
Posts: 54
Location: Florida

PostPosted: Wed Feb 08, 2006 4:02 pm    Post subject: Reply with quote

Good news for those with GMA950 finally.

Code:

commit 5457f38e01ae2d296ff49db42254679018f13fa9
Author: Dave Airlie <airlied@starflyer.(none)>
Date:   Wed Jan 25 14:34:33 2006 +1100

    drm: add i945GM PCI ID
   
    From: Charles F. Johnson <charles.f.johnson@intel.com>
    Signed-off-by: Dave Airlie <airlied@linux.ie>


From the 2.6.16-rc2 changelog... woo hoo!
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Wed Feb 08, 2006 8:44 pm    Post subject: Reply with quote

mr2600 wrote:
Good news for those with GMA950 finally.

Code:

commit 5457f38e01ae2d296ff49db42254679018f13fa9
Author: Dave Airlie <airlied@starflyer.(none)>
Date:   Wed Jan 25 14:34:33 2006 +1100

    drm: add i945GM PCI ID
   
    From: Charles F. Johnson <charles.f.johnson@intel.com>
    Signed-off-by: Dave Airlie <airlied@linux.ie>


From the 2.6.16-rc2 changelog... woo hoo!

8) Gonna check that ASAP!

EDIT: kidding of course...
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!


Last edited by VinzC on Thu Feb 09, 2006 6:15 am; edited 1 time in total
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Wed Feb 08, 2006 8:47 pm    Post subject: Reply with quote

cynick.young wrote:
I finally got the i810 driver compiled and loading properly in Xorg. I can set my resolution to 1280x800 using 855resolution. So I know the 2D portion of the driver is fine. However, 3D DRI is another story.

If I disable DRI I get around 750fps when I test with glxgears. If I enable DRI, instead of getting higher framerates, it goes down to about 200fps. Any clues as to why that might be and where I should be looking for problems?

Tried Xorg 7? You should give it a try (seppelrockt successfully did) and it seems all problems related to DRI, hw accel. and so on are all gone.

cynick.young wrote:
Thanks in advance. Thanks for the original info VinzC!

You're welcome.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
massysett
Apprentice
Apprentice


Joined: 06 Jan 2006
Posts: 296
Location: Silver Spring, Maryland USA

PostPosted: Tue Feb 14, 2006 4:10 am    Post subject: Reply with quote

For us laggards who are still using xorg-x11 version 6.8.99.15-r4 (oh wait, we're not laggards...it's still masked! anyway...) I made a tarball to simplify installation a bit. Check here. (I had tried xorg version 7 earlier, but quite a few other packages still weren't ready for modular X.) Hopefully xorg 7 will solve this problem once and for all.

[edit: file deleted in website reorganization. Try using xorg-x11 version 7.0.]


Last edited by massysett on Mon May 29, 2006 10:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
^marcs
Apprentice
Apprentice


Joined: 09 Mar 2005
Posts: 169

PostPosted: Sun Mar 05, 2006 12:27 pm    Post subject: Reply with quote

VincZ wrote:
You should give it a try (seppelrockt successfully did) and it seems all problems related to DRI, hw accel. and so on are all gone.


You mean, i can now install modular x and all be fine?

edit:
k, ive checked it - it really works fine :) thx.
Back to top
View user's profile Send private message
metalfan
Apprentice
Apprentice


Joined: 09 Apr 2005
Posts: 260
Location: 127home0sweet0home1 .endofinternet.net

PostPosted: Wed May 17, 2006 12:12 pm    Post subject: Reply with quote

Im currently using: x11-base/xorg-x11-7.0-r1 Samsung X20, i915
but it doesn't work out of the box as described above :(

ive posted infos here:
https://forums.gentoo.org/viewtopic-t-462975-highlight-.html

Maybe anybody knows whats going on?
_________________
please add [SOLVED] to the topic if you found the answer
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Wed Dec 13, 2006 3:33 am    Post subject: ACK! I've lost my Direct Rendering! Reply with quote

I know this thread has been dormant for a while, but it has helped me before so here goes!

Somehow, over many updates and upgrades, I have lost direct rendering on my Asus Z33A--at least that's what glxinfo tells me.

Here's what I know/have:

I have installed: xorg-x11 7.1, x11-drm 20060608, and gentoo-sources 2.6.18-r4.

Relevant sections of xorg.conf

Code:

Section "Module"
   Load  "extmod"
   Load  "dri"
   Load  "dbe"
   Load  "record"
   Load  "xtrap"
   Load  "glx"
   Load  "type1"
   Load  "freetype"
   Load  "synaptics"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option     "ShadowFB"              # [<bool>]
        #Option     "DefaultRefresh"        # [<bool>]
   Identifier  "Card0"
   #Driver     "vesa"
   Driver       "i810"
   VendorName  "Intel Corp."
   BoardName   "i915GM"
   BusID       "PCI:0:2:0"
    #The following added Nov. 22/05 in attempt to improve performance
   Option     "SWCursor"   "0"
   Option       "AGPFastWrite"    "True"
   #Option       "ActiveDevice"    "LCD"
   Option       "DRI"       "True"
   ChipSet    "915GM"
   Option       "AGPMode"    "4"
   Option       "Accel"
   Option      "MonitorLayout"    "CRT,LFP"
   Option      "Clone" "On"
   Option      "CloneRefresh"   "60"
   VideoRam 32768
EndSection

Section "DRI"
   Mode 0666
EndSection


Relevant Sections of lspci
Code:

00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)


Relevant Sections of lsmod:
Code:

Module                  Size       Used by
intelfb                   30372   0
fb                          46376   1 intelfb
intel_agp              21212   1
agpgart                32528    3 intelfb,intel_agp



Relevant Sections of kernel.conf

Code:

CONFIG_AGP=m
CONFIG_AGP_INTEL=m
# CONFIG_DRM is not set

CONFIG_FB=m
CONFIG_VIDEO_SELECT=y
CONFIG_FB_I810=m
# CONFIG_FB_I810_GTF is not set
CONFIG_FB_INTEL=m


[Note that I had everything (e.g. i915, drm, etc.) built into the kernel for a while, but this wasn't giving me direct rendering so I switched to this configuration with the hope that x11-drm might help me out as described in http://www.gentoo.org/doc/en/dri-howto.xml ].

As an added bonus something wierd is happening with glxgears (perhaps this is the source of all my problems). When I try and run it I am told that it cannot find libGL.so.1. I can overcome this by copying libGL from the xorg directory into /usr/lib. If this is the right think to do (perhaps I should symlink, but to what?) then I still get told I don't have direct rendering.

Any thoughts?
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Wed Dec 13, 2006 4:40 am    Post subject: Still no luck Reply with quote

I went to http://dri.freedesktop.org/wiki/DriTroubleshooting but things still will not work. I can make it as far as "Userspace Setup" before things go south.
After rebuilding everything into the kernel (and actually linking libGL.so.1with /usr/lib) I ran glxinfo with the "export LIBGL_DEBUG=verbose" environment variable set. This returned the following.
Code:

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.7.3 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/i915_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
libGL error: dlopen /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: i915_dri.so
display: :0  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_EXT_texture_from_pixmap, GLX_OML_swap_method,
    GLX_SGI_make_current_read, GLX_SGIS_multisample, GLX_SGIX_hyperpipe,
    GLX_SGIX_swap_barrier, GLX_SGIX_fbconfig, GLX_MESA_copy_sub_buffer
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_copy_sub_buffer, 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_EXT_texture_from_pixmap
GLX version: 1.2
GLX extensions:
    GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer,
    GLX_OML_swap_method, GLX_SGI_make_current_read, GLX_SGIS_multisample,
    GLX_SGIX_fbconfig, GLX_EXT_texture_from_pixmap
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.4 (1.5 Mesa 6.5.2)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
    GL_ARB_imaging, GL_ARB_multisample, GL_ARB_multitexture,
    GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    GL_ARB_texture_compression, GL_ARB_texture_cube_map,
    GL_ARB_texture_env_add, GL_ARB_texture_env_combine,
    GL_ARB_texture_env_crossbar, GL_ARB_texture_env_dot3,
    GL_ARB_texture_mirrored_repeat, GL_ARB_texture_non_power_of_two,
    GL_ARB_texture_rectangle, GL_ARB_transpose_matrix, GL_ARB_vertex_program,
    GL_ARB_window_pos, GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
    GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
    GL_EXT_blend_logic_op, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
    GL_EXT_clip_volume_hint, GL_EXT_copy_texture, GL_EXT_draw_range_elements,
    GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
    GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_point_parameters,
    GL_EXT_polygon_offset, GL_EXT_rescale_normal, GL_EXT_secondary_color,
    GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
    GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap, GL_EXT_subtexture,
    GL_EXT_texture, GL_EXT_texture3D, GL_EXT_texture_edge_clamp,
    GL_EXT_texture_env_add, GL_EXT_texture_env_combine,
    GL_EXT_texture_env_dot3, GL_EXT_texture_lod_bias,
    GL_EXT_texture_mirror_clamp, GL_EXT_texture_object,
    GL_EXT_texture_rectangle, GL_EXT_vertex_array, GL_APPLE_packed_pixels,
    GL_ATI_draw_buffers, GL_ATI_texture_env_combine3,
    GL_ATI_texture_mirror_once, GL_ATIX_texture_env_combine3,
    GL_IBM_texture_mirrored_repeat, GL_INGR_blend_func_separate,
    GL_MESA_pack_invert, GL_MESA_ycbcr_texture, GL_NV_blend_square,
    GL_NV_fragment_program, GL_NV_light_max_exponent, GL_NV_point_sprite,
    GL_NV_texgen_reflection, GL_NV_texture_rectangle, GL_NV_vertex_program,
    GL_NV_vertex_program1_1, GL_SGI_color_matrix, GL_SGI_color_table,
    GL_SGIS_generate_mipmap, GL_SGIS_texture_border_clamp,
    GL_SGIS_texture_edge_clamp, GL_SGIS_texture_lod, GL_SGIX_depth_texture,
    GL_SGIX_shadow, GL_SGIX_shadow_ambient, GL_SUN_multi_draw_arrays

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x23 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x24 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x25 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x26 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x27 24 tc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x28 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x29 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2a 24 tc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x2b 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2c 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2d 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2e 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2f 24 dc  0 32  0 r  y  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x30 24 dc  0 32  0 r  .  .  8  8  8  8  0  0  0 16 16 16 16  0 0 Slow
0x31 24 dc  0 32  0 r  y  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow
0x32 24 dc  0 32  0 r  .  .  8  8  8  8  0 24  8 16 16 16 16  0 0 Slow


It's those top four lines that seem out of place. Looking around my system I can't seem to find i915_dri.so anywhere. I don't even have a dri directory to put it in. I seem to be missing something...

Relevant pieces of the current kernel config are as follows:
Code:

CONFIG_AGP=y
CONFIG_AGP_INTEL=y
CONFIG_DRM=y
CONFIG_DRM_I810=y
# CONFIG_DRM_I830 is not set
CONFIG_DRM_I915=y

CONFIG_FB=y
CONFIG_FB_I810=y
# CONFIG_FB_I810_GTF is not set
CONFIG_FB_INTEL=m
# CONFIG_FB_INTEL_DEBUG is not set
Back to top
View user's profile Send private message
Gentoovian
n00b
n00b


Joined: 29 May 2006
Posts: 9

PostPosted: Wed Dec 20, 2006 3:02 pm    Post subject: StartX wont start. Reply with quote

Ok, first let me say. Great thread and good info al the way back from 2005.

Now let me say what i have done so far.
-----------------------------------
1: Installed Gentoo (Kernel 2.6.18 r4)
2: Emerged - xorg-x11 7.0 (NOT 7.1)
3: Emerged - Fluxbox
4: Emerged - GDM
5: exec startfluxbox into the xinit file
6: performed startx

Got this error
-----------------
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(EE) I810(0): unknown type(0xffffffff)=0xff
(EE) I810(0): VBE initialization failed.
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
-----------------
7: Reloaded the intel options in the kernel and performed a re-compile on ther kernel
8: found this thread
9: performed setup for patch
10: ran this command (patch -p0 < ~/xorg-ebuild.diff) <-----I should not i did digest the new ebuild and complete the patch proccess

11: ran the command "startx"

Got the same error
------------------
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(EE) I810(0): unknown type(0xffffffff)=0xff
(EE) I810(0): VBE initialization failed.
(EE) Screen(s) found, but none have a usable configuration.

Fatal server error:
no screens found
XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.
-------------------

13: Posted on this thread :)

(Side note) - I have had Xorg 7.0 working before on this laptop, the only differance between now and then that i can see is the build of gentoo at the time was 2.6.16 and now im using the exact same setup under the build of 2.6.18. )

Dell D410, 1GB RAM, i915GM Video, using integrated LCD 1024x768.

Xorg posted below. Mind you the xorg was generated by X -configure and doesnt look right to me.

If wanted i would be willing to allow somone who knows there stuff to have access to the box.

Code:

Section "Module"

   Load      "dbe"     # Double buffer extension
   Load   "bitmap"
   Load   "ddc"
#   Load   "dri"
   Load   "extmod"
   Load   "freetype"
   Load   "glx"
   Load   "int10"
   Load   "record"
   Load   "type1"
   Load   "vbe"

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

# This loads the font modules
#    Load        "type1"
#    Load        "speedo"
#    Load        "xtt"
EndSection


Section "Files"
   FontPath   "/usr/share/fonts/misc"
   FontPath   "/usr/share/fonts/75dpi"
   FontPath   "/usr/share/fonts/100dpi"
   FontPath   "/usr/share/fonts/Type1"
EndSection


Section "ServerFlags"
EndSection


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



Section "InputDevice"
   Identifier   "Mouse1"
   Driver   "mouse"
   Option "Protocol"    "Auto"   # Auto detect
   Option "Device"      "/dev/input/mice"
   Option "ZAxisMapping"   "4 5 6 7"
   Option "Emulate3Buttons"
EndSection


Section "Monitor"
   Identifier  "My Monitor"
   HorizSync   31.5 - 48.5
   VertRefresh 43-72
EndSection


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


Section "Device"
  Identifier    "i915GM"
  Driver        "i810"
  BusID         "0:2:0"
  VideoRam     65536
  #VideoRam      131072
  Option        "NoAccel" "false"
  Option        "DRI" "true"
  Option        "XVideo" "true"
  Option        "VBERestore" "true"
EndSection


Section "Screen"
   Identifier  "Screen 1"
   Device      "i915GM"
   Monitor     "My Monitor"
   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
   
EndSection


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

Section "DRI"
   Mode 0666
EndSection

Section "Extensions"
   Option "Composite" "Enable"
   Option "RENDER" "Enable"
EndSection

Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Thu Dec 21, 2006 12:24 am    Post subject: Reply with quote

I've had this problem before. Each time this has happened to me it was a problem with my kernel configuration and NOT my xorg.conf.

Recompile your kernel with settings similar to the ones I have posted here (https://forums.gentoo.org/viewtopic-t-525300-highlight-.html -- No one would help me at this thread so I went elsewhere :cry: ) and then try again.

(I'd email you my 18-r4 kernel config, but I'm away from my Gentoo machine for a little while).
Back to top
View user's profile Send private message
Gentoovian
n00b
n00b


Joined: 29 May 2006
Posts: 9

PostPosted: Thu Dec 21, 2006 8:49 pm    Post subject: Reply with quote

Well i tried that. Reconfigured the kernel with the said options and now i get the following.

Code:

localhost ~ # startx
xauth:  creating new authority file /root/.serverauth.5530

X Window System Version 7.0.0
Release Date: 21 December 2005
X Protocol Version 11, Revision 0, Release 7.0
Build Operating System:UNKNOWN
Current Operating System: Linux localhost 2.6.18-gentoo-r4 #1 SMP Tue Dec 19 11:59:29 Local time zone must be set--see zic  i686
Build Date: 21 December 2006
        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: Thu Dec 21 12:44:26 2006
(EE) Unable to locate/open config file

xf86AutoConfig: Primary PCI is 0:2:0
Running "getconfig -X 70000000 -I /etc/X11,/usr/etc/X11,/usr/lib/xorg/modules,/usr/lib/X11/getconfig -v 0x8086 -d 0x2592 -r 0x03 -s 0x1028 -b 0x018f -c 0x0300"
getconfig.pl: Version 1.0.
getconfig.pl: Xorg Version: 7.0.0.0.
getconfig.pl: 23 built-in rules.
getconfig.pl: rules file '/usr/lib/X11/getconfig/xorg.cfg' has version 1.0.
getconfig.pl: 1 rule added from file '/usr/lib/X11/getconfig/xorg.cfg'.
getconfig.pl: Evaluated 24 rules with 0 errors.
getconfig.pl: Weight of result is 500.
New driver is "i810"
(==) Using default built-in configuration (53 lines)
(EE) module ABI major version (1) doesn't match the server's version (0)
(EE) Failed to load module "i810" (module requirement mismatch, 0)
(EE) module ABI major version (1) doesn't match the server's version (0)
(EE) Failed to load module "fbdev" (module requirement mismatch, 0)
(EE) module ABI major version (1) doesn't match the server's version (0)
(EE) Failed to load module "vesa" (module requirement mismatch, 0)
(EE) module ABI major version (1) doesn't match the server's version (0)
(EE) Failed to load module "vga" (module requirement mismatch, 0)
(EE) module ABI minor version (6) is newer than the server's version (5)
(EE) Failed to load module "mouse" (module requirement mismatch, 0)
(EE) module ABI minor version (6) is newer than the server's version (5)
(EE) Failed to load module "kbd" (module requirement mismatch, 0)
(EE) No drivers available.

Fatal server error:
no screens found
XIO:  fatal IO error 104 (Connection reset by peer) on X server ":0.0"
      after 0 requests (0 known processed) with 0 events remaining.
localhost ~ #
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Thu Dec 28, 2006 6:57 pm    Post subject: Reply with quote

Well that sucks. I wonder what all those "doesn't match the server's version" messages mean. In particular, which server?

Still no luck with DRI on my end either. It will have to wait until I have a more stable Internet connection, likely not until after January 6.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Fri Dec 29, 2006 11:45 am    Post subject: Reply with quote

Not sure if this would help but I found a post of a Gentoo user who said you need libdrm 2.2 or greater with mesa 6.5.2. You might want to take a look over there.

EDIT: also please make sure /usr/X11R6 is actually a symlink to ../usr.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Wed Jan 10, 2007 9:33 pm    Post subject: Still no luck Reply with quote

Good advice.

I checked though and I have libdrm 2.3 and mesa 6.5.2 installed and /usr/X11R6 is a symlink to ../usr.

The problem seems to be that I don't have a file called "i915_dri.so" anywhere. I have lots of other i915 files kicking around (particularly in /usr/src/linux-2.6.18-gentoo-r4/drivers/char/drm), but not this file.
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Sat Jan 13, 2007 8:27 am    Post subject: Reply with quote

There may be many reasons why this file is absent from your system. First what's the value of variable VIDEO_CARDS in /etc/make.conf? IIRC It should be at least equal to "i810". You can also add "vesa fbdev".

Then are you running ~ARCH or the stable branch? I know the stable branch - at the time I had my inpiron 6000 - did not suit and I had to unmask some packages. As per my own experience, going the bleeding edge way on a laptop might result in some annoyances (anyway it is not recommended by Gentoo dev's).

You must keep the DRM modules in your kernel configuration. I expect these to be present *before* you compile MESA.

As a final note: don't install DRI snapshots as everyone of us who reported attempting to do so always had to give up. Simply removing them is sometimes not enough. You might have to clean your kernel source tree entirely and recompile. I know I sometimes had to do it that way. BTW DRI snapshots are useless as of Xorg 7.0. You don't need to unmask Xorg anymore.

Hope this helps.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Sun Jan 14, 2007 8:27 pm    Post subject: Reply with quote

Currently, VIDEO_CARDS = "i915". If I was to add "vesa fbdev" should it then read, VIDEO_CARDS = "i915 vesa fbdev"?

I am, to the best of my knowledge, running a stable branch. I had to deviate from this before when modular X was still masked, in order to get DRI working the first time, but since then everything should be back where it belongs.

I currently have everything compiled directly into the kernel, but I will recompile everything as modules and try again.
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Sun Jan 14, 2007 9:11 pm    Post subject: Reply with quote

Alas, after recompiling everything as modules and then emerging mesa and mesa-progs again I still have the same problems as before.

Code:
# lsmod

Module                  Size  Used by
i915                   17088  1
drm                    62804  2 i915
etc.

#export LIBGL_DEBUG=verbose glxinfo
#glxinfo

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.7.3 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/i915_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
libGL error: dlopen /usr/lib/dri/i915_dri.so failed (/usr/lib/dri/i915_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: i915_dri.so
display: :0  screen: 0
direct rendering: No
etc.


Perhaps I should chuck "i915" and just use "i810". Is this possible?
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Mon Jan 15, 2007 6:22 am    Post subject: Reply with quote

Ah, that's it. There is no use flag video_cards_i915 for xorg-server in fact. Type equery u xorg-server and you'll see. You can keep your VIDEO_CARDS settings but just add i810 and recompile xorg and required dependencies:
Code:
# grep VIDEO_CARDS /etc/make.conf
VIDEO_CARDS = "i915 i810 vesa fbdev"
# emerge -avuDN xorg-x11

Support for i915 is offered through i810 driver (which is the one you put in xorg.conf).
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
purple_monkey
n00b
n00b


Joined: 10 Nov 2005
Posts: 26

PostPosted: Wed Jan 17, 2007 8:46 pm    Post subject: Reply with quote

Excellent. I now have direct rendering. Thank you very much.

I do notice an error when I run glxinfo though, as follows:
Code:
 # glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.7.4 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/i915_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
libGL error:
Can't open configuration file /root/.drirc: No such file or directory.
do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.
display: :0  screen: 0
direct rendering: Yes
...


Are these "No such file or directory" notes anything to worry about?
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5026
Location: Dark side of the mood

PostPosted: Wed Jan 17, 2007 9:09 pm    Post subject: Reply with quote

/etc/drirc belongs to driconf, a GTK application that sets various DRI parameters. See if you have it on your system. Otherwise emerge -avq driconf. :-) Then copy ~/.drirc to /etc/drirc and the message should go away.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
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
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Page 7 of 8

 
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