Results 1 to 8 of 8

Thread: OpenGL issues (works in WinXP, not Ubuntu)

  1. #1
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    OpenGL issues (works in WinXP, not Ubuntu)

    I like running emulators to play my old games, but I'm curious why everything related to OpenGL seems to fail on my computer using Ubuntu 12.04 (also occurred on Xubuntu 12.10).

    When ever I try to run something in OpenGL mode I get the following error...

    Example Input...
    Code:
    zsnes -v 9
    Output...
    Code:
    ...
    X Error of failed request:  BadAlloc (insufficient resources for operation)
      Major opcode of failed request:  153 (GLX)
      Minor opcode of failed request:  3 (X_GLXCreateContext)
      Serial number of failed request:  25
      Current serial number in output stream:  26

    This holds true for every SNES, N64, or PSX emulator I've tried (as well as several other 3D programs I've tried from the repos.) I also think that I can not run standard Ubuntu because of this issue (I end up being logged into Ubuntu2D).

    So far I've only been able to get zsnes to run using 512X448 resolution with no OpenGL.

    My hardware isn't great (its not a gaming rig) but the same emulators will run with OpenGL on my WinXP hard-drive (I dual-boot across 2 hard-drives).

    I'm running a Pentium4 2.8Ghz, 2G RAM, and Integrated Intel Extreme Graphics 2. There doesn't appear to be any additional drivers for my system.

    So is there a fix for this, or am I stuck having to boot into windows to play games from the 90's? I can live with that solution, but I'd rather not if it can be helped.
    Who's Awesome? You're Awesome.

  2. #2
    Join Date
    Jul 2013
    Location
    Alternia
    Beans
    140
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    That graphics chip is old. Most Linux Games today, including emulators use OpenGL 2.0 and higher. That chip uses OpenGL 1.3 according to Intel. So that's why they won't run. If your PC has an available AGP or PCI slot, look for a used graphics card that supports OpenGL 2.0 or better.
    You are such a sweetheart b-b-baby!

  3. #3
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    Quote Originally Posted by kitsuneinari78 View Post
    That graphics chip is old. Most Linux Games today, including emulators use OpenGL 2.0 and higher. That chip uses OpenGL 1.3 according to Intel. So that's why they won't run. If your PC has an available AGP or PCI slot, look for a used graphics card that supports OpenGL 2.0 or better.
    Thanks for the info. I think I'll just save up for a newer system instead of trying to keep this one alive indefinitely. Upgrading to the graphics card would require an upgrade in power supply as well. I can live with booting in to windows from time to time for now.
    Last edited by Petro Dawg; August 12th, 2013 at 02:27 AM.
    Who's Awesome? You're Awesome.

  4. #4
    Join Date
    Jun 2007
    Beans
    11,131

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    Code:
    BadAlloc (insufficient resources for operation)
    If you have an option in the BIOS to increase video RAM, try to max it out.

  5. #5
    Join Date
    Aug 2008
    Location
    Sweden
    Beans
    305
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    Quote Originally Posted by Petro Dawg View Post
    So far I've only been able to get zsnes to run using 512X448 resolution with no OpenGL.
    Can't help you with your problem. Just wanted to add that 512x448 is the native resolution for a snes, isn't that and (if possible) fullscreen mode sufficient? Or does it lag running in "software-rendering"?
    This is my signature

  6. #6
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    Quote Originally Posted by DarkAmbient View Post
    Can't help you with your problem. Just wanted to add that 512x448 is the native resolution for a snes, isn't that and (if possible) fullscreen mode sufficient? Or does it lag running in "software-rendering"?
    That resolution would be fine in full screen, if I didn't have a widescreen monitor. Also, for some reason in Ubuntu my desktop doesn't return to the correct resolution after exiting from full screen mode (which is also a bit annoying).

    @ Temüjin

    I thought I checked that at one point, but I will recheck tonight and see if my BIOS allows more video RAM.

    Thanks for the suggestions.
    Who's Awesome? You're Awesome.

  7. #7
    Join Date
    Aug 2008
    Location
    Sweden
    Beans
    305
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    You could start the emulator (or whatever app) in fullscreen, through a script where you restore your resolution manually after the app is done. This is untested but I think it should work.

    zsnes -v 9
    xrandr -s "1920x1080" <- REPLACE WITH YOUR RESOLUTION

    Add it to a new empty textfile, save it as .zsnes.sh in your homefolder
    Then open yet another empty textfile and paste:

    [Desktop Entry]
    Version=1.0
    Terminal=false
    Type=Application
    Name=ZSnes
    Exec=sh /home/USERNAME/.zsnes.sh
    Icon=zsnes (OR PATH TO CUSTOM PNG-IMAGE)

    Replace the capital text with whatever needed then save it to .local/share/applications named zsnes_xrandr.desktop
    Now you should find zsnes in the Unity-dash, and it should restore your resolution after you've runned it.


    As said it's untested.. and also just a suggestion, I was forced to do something similary running Neverwinter Nights 1 a while ago.
    Last edited by DarkAmbient; August 12th, 2013 at 07:36 PM.
    This is my signature

  8. #8
    Join Date
    Jul 2012
    Location
    Oklahoma, USA
    Beans
    Hidden!

    Re: OpenGL issues (works in WinXP, not Ubuntu)

    Well the issue is truly solved now. I ended up with another free computer with a slower processor (went from Pentium4 2.8GHz to AMD64 1GHz), but I now have Nvidia integrated graphics on the mother board. Even with the slower processor, things seem to work much better with the newer graphics chip. I don't really notice a drastic performance drop, and I can now run OpenGL applications without a problem. I still use Ubuntu2D because its a bit faster than the standard Ubuntu on my system, but I can finally run my emulators (without using Windows), and games like OpenArena without any issue at all.

    I must admit, it feels good ditching Windows 100% and doing a total Ubuntu install.

    Still unsure if I want to invest $30 for an upgrade to a used AMD X2 Dual Core chip, things seem to work well enough now, but I expect I'll have to upgrade when the next Ubuntu LTS version comes out. Hopefully, I'll be able to afford a real computer by then .
    Who's Awesome? You're Awesome.

Bookmarks

Posting Permissions

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