LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-25-2007, 07:37 PM   #1
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Could not initialize SDL Video subsystem:


I'm not sure what I'm missing or if there is a bug in unstable..
Several of my games will no longer run since my last update (such as bzflag)
when I attempt to launch them from the command line I get the following error
Quote:
default@debian:~$ bzflag
Could not initialize SDL Video subsystem: No available video device.
Any idea how to fix this ? I'm at a loss as to what is missing or broken here..
sdl is installed, as are my nvidia graphics drivers..

Code:
default@debian:~$ aptitude search sdl | grep -F 'i ' 
i   libsdl-gfx1.2-4                 - drawing and graphical effects extension fo
i   libsdl-gfx1.2-dev               - development files for SDL_gfx             
i   libsdl-image1.2                 - image loading library for Simple DirectMed
i   libsdl-image1.2-dev             - development files for SDL 1.2 image loadin
i   libsdl-mixer1.2                 - mixer library for Simple DirectMedia Layer
i   libsdl-net1.2                   - network library for Simple DirectMedia Lay
i   libsdl-net1.2-dev               - Development files for SDL network library 
i   libsdl-sound1.2                 - Decoder of several sound file formats for 
i   libsdl-sound1.2-dev             - Development files for SDL_sound           
i   libsdl-ttf2.0-0                 - ttf library for Simple DirectMedia Layer w
i   libsdl-ttf2.0-dev               - development files for SDL ttf library (ver
i   libsdl1.2-dev                   - Simple DirectMedia Layer development files
i   libsdl1.2debian                 - Simple DirectMedia Layer                  
i   libsdl1.2debian-alsa            - Simple DirectMedia Layer (with X11 and ALS
i   vlc-plugin-sdl                  - SDL video and audio output plugin for VLC 
p   xmess-sdl                       - SDL binaries for the Multi Emulator Super 
i A xpilot-ng-client-sdl            - Client for XPilot NG
Code:
debian:/var/log# cat Xorg.0.log | grep WW
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(WW) Warning, couldn't open module type1
(WW) NVIDIA(GPU-0): Unable to read EDID for display device CRT-1
(WW) *** WARNING the legacy keyboard driver "keyboard" is deprecated
(WW) *** Using the new "kbd" driver for "Generic Keyboard".


debian:/var/log# cat Xorg.0.log | grep EE
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) Failed to load module "type1" (module does not exist, 0)
Code:
default@debian:~$ lsmod | grep nvidia
nvidiafb               44540  0 
fb_ddc                  2592  1 nvidiafb
i2c_algo_bit            5892  1 nvidiafb
vgastate                8256  1 nvidiafb
nvidia               7248948  24 
agpgart                31912  2 nvidia,intel_agp
i2c_core               23552  8 eeprom,lm85,lm83,nvidiafb,fb_ddc,i2c_algo_bit,nvidia,i2c_i801
Code:
debian:~# apt-cache policy nvidia-glx
nvidia-glx:
  Installed: 100.14.11-1
  Candidate: 100.14.11-1

debian:~# apt-cache policy libsdl1.2debian
libsdl1.2debian:
  Installed: 1.2.11-9
  Candidate: 1.2.11-9
Code:
debian:~# slocate libSDL-1.2.so.0

/usr/share/nwn/SDL-1.2.5/SDL-1.2.5/src/.libs/libSDL-1.2.so.0.0.5
/usr/share/nwn/SDL-1.2.5/SDL-1.2.5/src/.libs/libSDL-1.2.so.0
/usr/share/nwn/lib_/libSDL-1.2.so.0
/usr/share/nwn/lib_/libSDL-1.2.so.0.0.5
/usr/lib/libSDL-1.2.so.0.11.0
/usr/lib/libSDL-1.2.so.0
/usr/local/games/ut2004/System/libSDL-1.2.so.0
/usr/local/lib/libSDL-1.2.so.0.0.5
/usr/local/lib/libSDL-1.2.so.0

Any pointers would be appreciated..
 
Old 07-25-2007, 08:07 PM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
The SDL homepage: http://www.libsdl.org/ Includes some tuts, docs and other interesting stuff
Article on SDL in Linux Journal

The error is in your first codesnippit: "No available video device". That means that SDL is installed and configured, but it's default link to video devices doesn't match those on your system. Figure out where these devices are on your system, where SDL expects them (docs!) and if possible, sym-link these locations. Otherwise, recompile SDL using the device nodes your system uses for video devices.

No, I won't rant about why Unstable is named Unstable
 
Old 07-25-2007, 08:10 PM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249

Original Poster
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Quote:
Originally Posted by Dutch Master

No, I won't rant about why Unstable is named Unstable
so true..


Ugh some new bug listings that weren't there when I updated... (at least I don't recall seeing them at the time.. )

Code:
grave bugs of nvidia-kernel-source (100.14.11-1 -> 100.14.11-1) <pending>
 #434379 - nvidia-kernel-source: Various errors when compiling the module with 2.6.22 (Debian supplied)
 #432746 - nvidia-kernel-source: module build fails with error message
 #432182 - nvidia-kernel-source: System unexpected freezes
Summary:
 nvidia-kernel-source(3 bugs)
I'm going to guess my problem lies in there with the module compile...

Maybe I'll just boot back to 2.6.18 for the time being.

Last edited by farslayer; 07-25-2007 at 08:50 PM.
 
Old 03-24-2009, 09:04 AM   #4
albertz
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
SDL will try to detect automatically the best video driver for you and can fail sometimes if that one doesn't work.

You can force some other mode.

E.g., the following should always work:

Code:
SDL_VIDEODRIVER=x11 bzflag
Whereby the X11 video driver is probably slow.
 
Old 03-24-2009, 09:04 AM   #5
albertz
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
Here is a full list:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

Can you respond which of these worked for you? (I am one of the developers of the game OpenLieroX which also uses SDL; and we could builtin some fallbacks if the default video mode doesn't work.)
 
Old 03-24-2009, 09:58 AM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Although the question is now nearly 2 yrs old and not even mine, you may want to check the video driver designated in xorg.conf to use as default. That way you know the driver is present and at a pre-defined location (provided the user did a standard install).
 
Old 03-24-2009, 10:55 AM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249

Original Poster
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Wow. It's been so long I don't even recall how this got worked out. Probably was a bug I suffered from for a limited time between updates.

I've certainly played enough bzflag in the last two years, to know it's been addressed.


OpenLieroX - Worms like clone (sorta).. Looks interesting ,I see it's not in the Debian repositories, but there is a .deb available for Download.. I'll have to take a look

Last edited by farslayer; 03-24-2009 at 11:00 AM.
 
Old 03-25-2009, 03:22 AM   #8
albertz
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
An SDL mailinglist user refered to this problem here, that's why I thought I'll post a possibility here. I didn't really noticed that it is that old. Anyway, perhaps it helps some other Google-user who stumbles to this entry.
 
Old 04-26-2009, 09:11 PM   #9
iochinome
Member
 
Registered: Mar 2009
Posts: 32

Rep: Reputation: 15
I have this same problem! (but for luvcview, which uses SDL)

it tells me this:

Couldnt initialize SDL: No available video device

when i try to start it up. i have no idea what to do here, i am still a linux novice. any ideas?

thanks!
 
Old 04-27-2009, 02:37 AM   #10
albertz
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by iochinome View Post
I have this same problem! (but for luvcview, which uses SDL)

it tells me this:

Couldnt initialize SDL: No available video device

when i try to start it up. i have no idea what to do here, i am still a linux novice. any ideas?

thanks!
Have you read and tried the previous suggestions?

Esp, take a look here:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

And try to specify some environment variables. Most important for you (for this problem) is SDL_VIDEODRIVER. If you set it to x11, it should always work.
 
  


Reply


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
Mplayer: Could not initialize video filters (-vf) or video output (-vo) miceagol Linux - Software 2 06-04-2006 10:35 AM
Problem with UT2004demo... Couldn't initialize SDL... orktes Linux - Games 3 08-09-2005 12:37 PM
HELP! Couldn't initialize SDL: No available video device orktes Linux - Software 6 03-24-2004 02:04 PM
error message: Couldn't initialize SDL: Found no sufficiently capable X11 visuals JimBass Linux - Software 2 03-05-2004 07:50 AM
SDL: Could not initialize video zot Linux - Hardware 0 06-24-2003 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:32 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration