Find the answer to your Linux question:
Results 1 to 7 of 7

Thread: OGL crashing X

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    OGL crashing X

    I am running Mandriva 2006 on an Acer Aspire 3000 laptop. The video card in question is an SiS M760GX, 64MB. The system installed fine with no issue's. The desktop I always use is KDE 3.4 I believe is what Mandriva came with.

    If I run an openGL app in KDE/IceVM (a windowed mode openGL app) it seemingly works fine; I can use the app, the graphics work fine. However, if I try to move the window or switch to fullscreen mode KDE terminates smoothly and I'm back at the KDM login screen. This problem includes apps as simple as glxgears to some more heavy games. I was surprised when glxgears did the same thing, at first I thought this was an SDL issue but glxgears doesn't use SDL. So that leads me to my next test.

    I tried failsafe mode and ran the same apps, they all work 100% fine. Not a single problem for any of them, I can move em, fullscreen, they run fine...

    So I dismissed SDL as the culprit, it cannot be OpenGL since I got it working just fine in failsafe. I do believe X is a more likely candidate for causing the error... I can't be sure since everything works great in failsafe but any Window Manager it crashes.

    Any advice?
    Any logs I should post?
    Any sort of information needed?

  2. #2
    My first reaction was to recommend switching from the nv driver to nvidia driver, but now i see you have a SiS board. I guess looking at your X config file might help a bit. I had a somewhat similar problem with mandriva in that i chose to install X with 3D acceleration support and gdm/kdm/xdm wouldn't start at all. Upgrading and chosing just X solved that.

    Here's a link that might help:

  3. #3
    Any recommended options I should adjust?
    Below i have posted xorg.conf, I do not know how to put it into a source box, so sorry for the very long post.

    Any changes you would recommend?

    # File generated by XFdrake.

    # ************************************************** ********************
    # Refer to the XF86Config man page for details about the format of
    # this file.
    # ************************************************** ********************

    Section "Files"
    # Multiple FontPath entries are allowed (they are concatenated together)
    # By default, Mandrake 6.0 and later now use a font server independent of
    # the X server to render fonts.
    FontPath "unix/:-1"

    Section "ServerFlags"
    #DontZap # disable <Crtl><Alt><BS> (server abort)
    #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)
    AllowMouseOpenFail # allows the server to start up even if the mouse does not work

    Section "Module"
    Load "dbe" # Double-Buffering Extension
    Load "v4l" # Video for Linux
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "synaptics"
    Load "glx" # 3D layer

    Section "InputDevice"
    Identifier "Keyboard1"
    Driver "keyboard"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "us"
    Option "XkbOptions" "compose:rwin"

    Section "InputDevice"
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "ExplorerPS/2"
    Option "Device" "/dev/mouse"
    Option "ZAxisMapping" "6 7"

    Section "InputDevice"
    Identifier "SynapticsMouse1"
    Driver "synaptics"
    Option "Protocol" "auto-dev"
    Option "Device" "/dev/input/mice"
    Option "MinSpeed" "0.09"
    Option "MaxSpeed" "0.18"
    Option "BottomEdge" "4200"
    Option "SHMConfig" "on"
    Option "FingerLow" "25"
    Option "LeftEdge" "1700"
    Option "MaxTapMove" "220"
    Option "MaxTapTime" "180"
    Option "FingerHigh" "30"
    Option "VertScrollDelta" "100"
    Option "AccelFactor" "0.0015"
    Option "RightEdge" "5300"
    Option "TopEdge" "1700"

    Section "Monitor"
    Identifier "monitor1"
    VendorName "Generic"
    ModelName "Flat Panel 1024x768"
    HorizSync 31.5-55
    VertRefresh 40-70

    # TV fullscreen mode or DVD fullscreen output.
    # 768x576 @ 79 Hz, 50 kHz hsync
    ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630

    # 768x576 @ 100 Hz, 61.6 kHz hsync
    ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616

    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x800_120" 181.21 1280 1376 1520 1760 800 801 804 858 -HSync +Vsync

    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x800_100" 147.89 1280 1376 1512 1744 800 801 804 848 -HSync +Vsync

    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x800_85" 123.38 1280 1368 1504 1728 800 801 804 840 -HSync +Vsync

    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x800_75" 107.21 1280 1360 1496 1712 800 801 804 835 -HSync +Vsync

    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x800_60" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync

    # modeline generated by gtf(1) [handled by XFdrake]
    ModeLine "1280x800_50" 68.56 1280 1336 1472 1664 800 801 804 824 -HSync +Vsync

    Section "Device"
    Identifier "device1"
    VendorName "Silicon Integrated Systems [SiS]"
    BoardName "SiS Real256E"
    Driver "sis"
    Option "DPMS"

    Section "Screen"
    Identifier "screen1"
    Device "device1"
    Monitor "monitor1"
    DefaultColorDepth 16

    Subsection "Display"
    Depth 8
    Virtual 1280 800

    Subsection "Display"
    Depth 15
    Virtual 1280 800

    Subsection "Display"
    Depth 16
    Virtual 1280 800

    Subsection "Display"
    Depth 24
    Virtual 1280 800

    Section "ServerLayout"
    Identifier "layout1"
    InputDevice "Keyboard1" "CoreKeyboard"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "SynapticsMouse1" "AlwaysCore"
    Screen "screen1"

  4. $spacer_open
  5. #4
    the conf file looks ok to me. try this: do lsmod and write down which modules it loades and then boot in failsafe mode and do lsmod again. also try adding Load "DRI" in the modules section of xorg.conf

  6. #5
    Okay, I did a lsmod > fileout when in KDE 3.4 and failsafe.
    Then I did a 'cmp' on both files and determined all the places where the file differed.

    The lines are posted like this so the difference can be compared

    kde version
    failsafe version

    snd_intel8x0 29408 3
    snd_intel8x0 29408 0

    snd_pcm 79784 4 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
    snd_pcm 79784 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec

    snd_timer 20548 3 snd_seq,snd_pcm
    snd_timer 20548 2 snd_seq,snd_pcm

    snd 46116 13 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd _mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd _timer
    snd 46116 9 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd _mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd _timer

    So it seems some of the sound modules are loaded differently. I really cannot read those lines out, my assumption is the 2nd number in all of them is the IRQ which means the only difference between the two modes is the IRQ on a few devices. If that is correct, do you think a confliction could be happening?

    I will try Load "DRI" next, but I do not have time 2night. I felt that you may be able to find something in these differences. Thanks a bunch for your help. Excellent idea btw to check the loaded modules between the two modes. In all aspects, if failsafe can run it then kde should.


  7. #6
    i have to admit i have no idea what those numbers are. maybe you cand edit them in /etc/modules.conf or something. i must that i doubt that the sound modules are to blame for your problems. try loading these modules like it would in safe mode and see what happens.

  8. #7
    I've tried everything.
    Gotten no where...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts