LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   3D Acceleration not working on Intel 915GM (Asus W5G (http://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/3d-acceleration-not-working-on-intel-915gm-asus-w5g-550984/)

wild_oscar 05-03-2007 11:20 AM

3D Acceleration not working on Intel 915GM (Asus W5G
 
The specs:

- OpenSuse 10.2
- Current kernel: 2.6.18.8
- Asus W5G laptop

The situation:

1) Had 3D Acceleration disabled in the Display configuration and video worked good;

2) Followeed these steps http://www.novell.com/coolsolutions/feature/17174.html to try out the 3D rotating desktop feature, from "Configuring Gnome to Run Xgl" to the end. To complete it, I had to enable 3D acceleration in the Display configuration.

3) Things were good till I tried a Video. Can't watch it - audio is good but video playback is choppy. I realized this is probably due to having enabled "3D acceleration", as some months ago I had given up on enabling that feature because of this problem.


The investigation:

1) I've followed this post http://www.linuxquestions.org/questi...d.php?t=402003, except kernel recompilation (because a)I don't know how to and am affraid of messing up and b)Isn't the 2.6.18 good enough?), without any luck. Even with

Code:

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

and

Code:

      Section "DRI"
    Mode 0666
 EndSection

I stil get:

glxinfo | grep render

direct rendering: No
OpenGL renderer string: Mesa GLX Indirect
(shouldn't it be something other than Indirect?)

I get this either in user or as root.

2)glxgears gives me what I think are lousy FPS count: arround 9 or 10 !! (40-50 frames in 5 seconds)

I'm sort of lost in the whole DRI business, and I can't figure out what else to try out in order to have the 3D working and decent video output...
My feeling is that everything would be solved if I got
direct rendering: Yes
(would it?)

Can any noble and whizz character help me out?

wild_oscar 05-03-2007 11:27 AM

More info:

/var/log/Xorg.0.log currently does not have any (EE) error entry.

chrisortiz 05-03-2007 02:37 PM

what modules do you have loaded?
Code:

lsmod

wild_oscar 05-04-2007 05:25 AM

Quote:

Originally Posted by chrisortiz
what modules do you have loaded?
Code:

lsmod

It's quite big. Probably the relevant part is this?

Code:

i810                  22784  0
i915                  23040  3
drm                    71316  5 i810,i915


The whole thing for reference
Code:

Module                  Size  Used by
button                10896  0
joydev                13504  0
sg                    38044  0
st                    40860  0
sd_mod                24704  0
sr_mod                20132  0
scsi_mod              136712  4 sg,st,sd_mod,sr_mod
i810                  22784  0
i915                  23040  3
drm                    71316  5 i810,i915
xt_pkttype              6016  5
ipt_LOG                10624  15
xt_limit                6912  15
af_packet              29320  0
snd_pcm_oss            53376  0
snd_mixer_oss          21248  1 snd_pcm_oss
snd_seq                60272  0
snd_seq_device        12812  1 snd_seq
cpufreq_conservative    11912  0
cpufreq_ondemand      10892  1
cpufreq_userspace      9088  0
cpufreq_powersave      5888  0
speedstep_centrino    12832  1
freq_table              8832  1 speedstep_centrino
asus_acpi              21148  0
battery                14468  0
ac                      9476  0
ip6t_REJECT            9344  3
xt_tcpudp              7296  21
ipt_REJECT              9472  3
xt_state                6272  16
iptable_mangle          7040  0
iptable_nat            11524  0
ip_nat                21804  1 iptable_nat
iptable_filter          7168  1
ip6table_mangle        6528  0
ip_conntrack          52960  3 xt_state,iptable_nat,ip_nat
nfnetlink              11032  2 ip_nat,ip_conntrack
ip_tables              17604  3 iptable_mangle,iptable_nat,iptable_filter
ip6table_filter        7040  1
ip6_tables            18756  2 ip6table_mangle,ip6table_filter
x_tables              18180  10 xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,xt_tcpudp,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables
ipv6                  263584  15 ip6t_REJECT
nls_utf8                6272  2
ntfs                  210580  2
loop                  20488  0
dm_mod                60184  0
usbhid                52192  0
ide_cd                42272  0
cdrom                  38432  2 sr_mod,ide_cd
pcmcia                40892  0
ipw2200              110020  0
snd_hda_intel          23060  1
ieee80211              34632  1 ipw2200
snd_hda_codec        164352  1 snd_hda_intel
ohci1394              37040  0
ieee80211_crypt        10112  1 ieee80211
sdhci                  21644  0
mmc_core              28672  1 sdhci
yenta_socket          30348  1
rsrc_nonstatic        17024  1 yenta_socket
pcmcia_core            43412  3 pcmcia,yenta_socket,rsrc_nonstatic
snd_pcm                86916  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              27908  2 snd_seq,snd_pcm
ieee1394              102584  1 ohci1394
8139too                30592  0
firmware_class        14080  2 pcmcia,ipw2200
snd                    61188  10 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_pcm,snd_timer
mii                    9600  1 8139too
soundcore              13792  1 snd
snd_page_alloc        14472  2 snd_hda_intel,snd_pcm
ehci_hcd              34696  0
uhci_hcd              26892  0
intel_agp              27804  1
usbcore              115024  3 usbhid,ehci_hcd,uhci_hcd
agpgart                35528  3 drm,intel_agp
parport_pc            42084  0
lp                    15652  0
parport                39752  2 parport_pc,lp
reiserfs              237312  1
edd                    13892  0
fan                    8964  0
piix                  14084  0 [permanent]
thermal                18568  0
processor              34664  2 speedstep_centrino,thermal
ide_disk              20480  5
ide_core              130248  3 ide_cd,piix,ide_disk


hashash 05-04-2007 01:07 PM

well..at least you have the i810 module.
And if you followed the link you mention, you have the driver 'i810' section in your xorg.conf..

now maybe if you can look at the log file? /var/log/xorg.0.log ...?
grep for 'EE' and 'WW'

Also try:
>export LIBGL_DEBUG=verbose (or set depending on your shell)
>glxgears

wild_oscar 05-04-2007 01:22 PM

Quote:

Originally Posted by hashash
well..at least you have the i810 module.
And if you followed the link you mention, you have the driver 'i810' section in your xorg.conf..

Yes, I have:
Code:

Section "Device"
  BoardName    "915 GM"
  BusID        "0:2:0"
  Driver      "i810"
  Identifier  "Device[0]"
  Option      "NoDDC"
  Option      "DRI" "true"
  Screen      0
  VendorName  "Intel"
  Videoram    64000
EndSection

VideoRam part was added by me a few days ago, first with 128 MB and now with 64 MB, with no apparent change in performance.

Quote:

Originally Posted by hashash
now maybe if you can look at the log file? /var/log/xorg.0.log ...?
grep for 'EE' and 'WW'

Grep for "(EE)" gives nothing (just the line (WW) warning, (EE) error, (NI) not implemented, (??) unknown.).

Grep "(WW)" yelds:
Code:

(WW) The directory "/usr/share/fonts/local" does not exist.
(WW) The directory "/usr/share/fonts/PEX" does not exist.
(WW) The directory "/usr/share/fonts/latin2/misc" does not exist.
(WW) The directory "/usr/share/fonts/latin2/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/latin2/100dpi" does not exist.
(WW) The directory "/usr/share/fonts/latin2/Type1" does not exist.
(WW) The directory "/usr/share/fonts/latin7/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/baekmuk" does not exist.
(WW) The directory "/usr/share/fonts/japanese" does not exist.
(WW) The directory "/usr/share/fonts/kwintv" does not exist.
(WW) The directory "/usr/share/fonts/CID" does not exist.
(WW) The directory "/usr/share/fonts/ucs/misc" does not exist.
(WW) The directory "/usr/share/fonts/ucs/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/ucs/100dpi" does not exist.
(WW) The directory "/usr/share/fonts/hellas/misc" does not exist.
(WW) The directory "/usr/share/fonts/hellas/75dpi" does not exist.
(WW) The directory "/usr/share/fonts/hellas/100dpi" does not exist.
(WW) The directory "/usr/share/fonts/hellas/Type1" does not exist.
(WW) The directory "/usr/share/fonts/misc/sgi" does not exist.
(WW) The directory "/usr/share/fonts/xtest" does not exist.
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(WW) I810(0): Bad V_BIOS checksum
(WW) I810(0): Bad V_BIOS checksum
(WW) I810(0): Option "CalcAlgorithm" is not used
(WW) AIGLX: 3D driver claims to not support visual 0x23
(WW) AIGLX: 3D driver claims to not support visual 0x24
(WW) AIGLX: 3D driver claims to not support visual 0x25
(WW) AIGLX: 3D driver claims to not support visual 0x26
(WW) AIGLX: 3D driver claims to not support visual 0x27
(WW) AIGLX: 3D driver claims to not support visual 0x28
(WW) AIGLX: 3D driver claims to not support visual 0x29
(WW) AIGLX: 3D driver claims to not support visual 0x2a
(WW) AIGLX: 3D driver claims to not support visual 0x2b
(WW) AIGLX: 3D driver claims to not support visual 0x2c
(WW) AIGLX: 3D driver claims to not support visual 0x2d
(WW) AIGLX: 3D driver claims to not support visual 0x2e
(WW) AIGLX: 3D driver claims to not support visual 0x2f
(WW) AIGLX: 3D driver claims to not support visual 0x30
(WW) AIGLX: 3D driver claims to not support visual 0x31
(WW) AIGLX: 3D driver claims to not support visual 0x32
(WW) I810(0): Successfully set original devices
(WW) I810(0): Setting the original video mode instead of restoring
(WW) I810(0): Successfully set original devices (2)

I actually just realized this part:
(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
(WW) I810(0): Bad V_BIOS checksum
(WW) I810(0): Bad V_BIOS checksum

Can it be related? What's the solution?

Quote:

Also try:
>export LIBGL_DEBUG=verbose (or set depending on your shell)
>glxgears
Not quite sure what is intended with the LIBGL variable (what do you mean by setting it to verbose?). Setting this variable does not change the output of glxgears...
As I said, glxgears gives crappy FPS count:
Code:

45 frames in 5.1 seconds =  8.838 FPS
43 frames in 5.1 seconds =  8.453 FPS
411 frames in 5.1 seconds = 80.032 FPS
446 frames in 5.1 seconds = 87.569 FPS
44 frames in 5.1 seconds =  8.607 FPS
42 frames in 5.0 seconds =  8.366 FPS
41 frames in 5.1 seconds =  8.026 FPS


chrisortiz 05-05-2007 12:38 AM

Quote:

(WW) I810(0): Bad V_BIOS checksum
(WW) I810(0): Bad V_BIOS checksum
i ran into something like that when i tried to change the ram amount with my i845G i think when i removed the entry direct rendering worked again.
Code:

#VideoRam 64000
It should automagically go with the amount of ram the bios has set for it.

hashash 05-05-2007 01:57 AM

Quote:

(WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
is this a dual head card? (does it have two video outputs?) This can be ignored if you do ..since its looking for a match for the second one in the xorg.conf (You dont need it, even to enable the other one..)

Code:

  BusID        "0:2:0"
Do you need this? I dont have such an entry, but it still manages to detect it. Also try chrisortiz's suggestion, the ram should be detected automatically...

If these fails, do post the entire log file. .maybe there are other clues..?

(Others: Whats the protocol here of posting log files..?)

hashash 05-05-2007 01:59 AM

Quote:

Not quite sure what is intended with the LIBGL variable (what do you mean by setting it to verbose?). Setting this variable does not change the output of glxgears...
It just spits out more info in case something is wrong, I was able to use it to debug my problem:
http://forums.debian.net/viewtopic.p...931&highlight=

wild_oscar 05-05-2007 06:45 AM

Quote:

Originally Posted by chrisortiz
i ran into something like that when i tried to change the ram amount with my i845G i think when i removed the entry direct rendering worked again.
Code:

#VideoRam 64000
It should automagically go with the amount of ram the bios has set for it.

Well, even without the videoram option, direct rendering is not available.

Commenting BusID "0:2:0" does not produce any change.

If glxinfo helps:

Code:

name of display: :0.0
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 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.2 (1.5 Mesa 6.5.1)
OpenGL extensions:
    GL_ARB_depth_texture, GL_ARB_fragment_program, GL_ARB_imaging,
    GL_ARB_multitexture, GL_ARB_point_parameters, GL_ARB_point_sprite,
    GL_ARB_shadow, GL_ARB_shadow_ambient, GL_ARB_texture_border_clamp,
    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_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_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_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_object, GL_EXT_texture_rectangle,
    GL_EXT_vertex_array, GL_APPLE_packed_pixels, 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_point_sprite, GL_NV_texgen_reflection, GL_NV_texture_rectangle,
    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
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

  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
----------------------------------------------------------------------
0x2c 24 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 None
0x2d 24 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 None
0x2e 32 tc  0 32  0 r  y  .  8  8  8  8  0 24  8  0  0  0  0  0 0 Ncon
0x2f 32 tc  0 32  0 r  .  .  8  8  8  8  0  0  0  0  0  0  0  0 0 Ncon

This was also with LIBGL_DEBUG variable set, but I don't see it is any different from what it was.

What's with the " OpenGL renderer string: Mesa GLX Indirect" part? Inderect?

Any help appreciated, getting kinda desperate on finding the solution...

samstar 05-05-2007 08:05 AM

Hi guys,

Oscar, what version xorg is installed? Suse 10.2 defaults to 7.1, which didn't work for my intel hardware and the 3D desktop. Opensuse.org's site has a redundant repository with updated extra software; you can find a repository for a 7.2 xorg. Try replacing your xorg with that.

Here's the link to the repository:
http://software.opensuse.org/downloa...openSUSE_10.2/

Hope this helps,
Sam


PS
I know you've been through the xorg.0.log, but can you search through that again for any instances of "dri" and see if any messages may have been printed. On my system, they weren't labelled as warnings nor as errors.

wild_oscar 05-06-2007 02:24 PM

Quote:

Originally Posted by samstar
Hi guys,

Oscar, what version xorg is installed? Suse 10.2 defaults to 7.1, which didn't work for my intel hardware and the 3D desktop. Opensuse.org's site has a redundant repository with updated extra software; you can find a repository for a 7.2 xorg. Try replacing your xorg with that.

Here's the link to the repository:
http://software.opensuse.org/downloa...openSUSE_10.2/

Hope this helps,
Sam


PS
I know you've been through the xorg.0.log, but can you search through that again for any instances of "dri" and see if any messages may have been printed. On my system, they weren't labelled as warnings nor as errors.

Sort of...
Xorg -version says it's running
X Window System Version 7.1.99.902 (7.2.0 RC 2)

Although I follow your link and installed from Yast and it should be version 7.2-146.7!

Code:

This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X Window System Version 7.1.99.902 (7.2.0 RC 2)
Release Date: 13 November 2006
X Protocol Version 11, Revision 0, Release 7.1.99.902
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux 2.6.18.8-0.1-default #1 SMP Fri Mar 2 13:51:59 UTC 2007 i686
Build Date: 09 January 2007
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present


samstar 05-06-2007 08:16 PM

Are you sure you added the link as a package repository?

My /var/log/Xorg.0.log shows:
Code:

X Windows System Version 7.2.0
Release Date: 22 January 2007
X Protocol Version 11, Revision 0, Release 7.2
Build Operating System: openSUSE SUSE LINUX

Go into Yast and tell it to update your xorg server.

Sam

Ultrus 06-08-2007 04:32 PM

It seems I have the same problem with the same chip. I'm an idiot when it comes to the command line stuff, but I noticed that my 3D worked when I first installed openSuse clean install 10.2 from the DVD (and worked when it was 10.0). I played a game. It was great. However after my online update, my same 3D game jerks at super slow speeds. Before I ask for a step-by-step process on how to fix this, I'll do some more research and see what I can find. :)


All times are GMT -5. The time now is 06:53 AM.