LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices

Reply
 
Search this Thread
Old 03-09-2009, 03:21 AM   #1
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Rep: Reputation: 33
SDL Initialization has Failed - Stopping many Games from Loading


I have a large number of games installed via the repositories on Ubuntu 8.10 how ever many of them throw an error similar to this upon trying to load them:

Code:
Error : SDL initialization failed
Reason : No available video device
I have a NVidia 9500M GS Graphics card and I am running the 180.xx drivers. Any one have ideas ideas how I can correct this error?

Thanks,
~Jeff
 
Old 03-09-2009, 02:50 PM   #2
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Original Poster
Rep: Reputation: 33
I found this thread which appears to be the same issue I am having... how ever I do not under stand the solution that was posted anyone mind explaining how I can apply this to Ubuntu 8.10

~Jeff
 
Old 03-09-2009, 10:45 PM   #3
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 222

Rep: Reputation: 29
well, in the most layman terms i can come up with (because its all i know!) whatever points SDL to your video card, has gone amuck. and is no longer pointing to the correct (or any) thing. it suggests reading the documentation provided on the sdl website to determine what files those are, and how to point it back to the right thing.
 
Old 03-10-2009, 04:56 PM   #4
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Original Poster
Rep: Reputation: 33
Yea I understood thats what it was saying... how ever all the guides on the SDL site are about programing not about reconfiguring it on Linux/Ubuntu. Short of formatting is there any easy way to reconfigure this?

~Jeff
 
Old 03-10-2009, 05:05 PM   #5
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 65
sounds like nvidia drivers either not installed or not configured. i wonder whats ur xorg.conf says?

sudo gedit etc/X11/xorg.conf
 
Old 03-11-2009, 12:08 AM   #6
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Original Poster
Rep: Reputation: 33
xorg.conf output:

Code:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 1.0  (buildmeister@builder58)  Tue Jan 27 12:48:44 PST 2009

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 1.0  (buildmeister@builder58)  Tue Jan 27 12:47:59 PST 2009

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "type1"
    Load           "freetype"
    Load           "glx"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Seiko"
    HorizSync       30.0 - 75.0
    VertRefresh     60.0
    Option         "DPMS"
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "WDE WestinghouseSK-32H570D"
    HorizSync       30.0 - 61.0
    VertRefresh     50.0 - 75.0
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9500M GS"
EndSection

Section "Device"
    Identifier     "Device1"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce 9500M GS"
    BusID          "PCI:1:0:0"
    Screen          1
EndSection

Section "Screen"

# Removed Option "metamodes" "DFP: nvidia-auto-select +0+0"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Section "Screen"

# Removed Option "metamodes" "CRT: 1366x768 +0+0"
    Identifier     "Screen1"
    Device         "Device1"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
See anything that looks out of place?

~Jeff
 
Old 03-11-2009, 01:40 PM   #7
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 65
I guess SDL fails to pick one device out of two, maybe, back up xorg.conf and remove section Device1 - which will probably will be you video out, see if 3d acceleration comes back.

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9500M GS"
EndSection

Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 9500M GS"
BusID "PCI:1:0:0"
Screen 1
EndSection
 
Old 03-12-2009, 04:44 PM   #8
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Original Poster
Rep: Reputation: 33
Removing the second device does not change anything any other ideas?

~Jeff
 
Old 03-13-2009, 12:54 PM   #9
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 283

Rep: Reputation: 65
Funny enough, just last nite i got the same problem - suddenly no 3D acceleration at all anywere. Fixed it by installing latest kernel - 2.6.27-13-generic. 'course had to reinstall nvidia drivers. Lost sound too, but reinstalled ALSA. Now everything's back up running. Doom3,Quake4, UT2004 have no probs. Even had a good 2 hour session playing Enemy territoy.
That got me thinking, the way Ubuntu updater handles new kernel versions, if choosing all default options while updating, some users might well end up booting updated kernel thus breaking thier nvidia module. As a relatively newbie myself nowhere did i see warnings for this.
Maybe that's the case for your system too?
 
Old 03-14-2009, 12:40 AM   #10
Jeff91
Bodhi Developer
 
Registered: Jan 2009
Location: Alsip, IL
Distribution: Bodhi and Maemo
Posts: 300

Original Poster
Rep: Reputation: 33
The thing is my 3D acceleration is working just fine for all non-SDL apps. (Thusly why this thread is titled "SDL Initialization has Failed" not "3D not working" I'll try updating my Kernel later and see if that helps.

~Jeff
 
  


Reply

Tags
games, video


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
graphic initialization failed in grub sumeet inani Linux - Newbie 1 01-16-2009 03:13 AM
QT4's QGLFramebufferObject Initialization Failed shreks Linux - Software 0 12-12-2007 10:18 AM
Setting SDL up (sound in games) Janusz11 Linux - Games 1 07-15-2007 10:32 AM
Device eth0 initialization failed Inirah Linux - Newbie 1 04-07-2005 02:23 PM
Epiphany can't be used now. Mozilla initialization failed. Makaelin Linux - Software 5 10-16-2004 05:42 PM


All times are GMT -5. The time now is 10:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration