Author Topic: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors  (Read 4441 times)

0 Members and 1 Guest are viewing this topic.

Offline leo2501

  • 23
fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
I'm using arch linux and i followed this guide http://www.hard-light.net/wiki/index.php/The_fs2_open_on_Linux_Guide to know how and where to copy the retail files of the game, but when i run the startup script it dies on me with this errors

Code: [Select]
[aleyscha@aleyscha 4 ~ 20:34]$ start_freespace
Unrecognized command line parameter "-jpgtga".  Ignoring...
open /dev/[sound/]dsp: Device or resource busy
open /dev/[sound/]dsp: Device or resource busy
open /dev/[sound/]dsp: Device or resource busy
open /dev/[sound/]dsp: Device or resource busy
open /dev/[sound/]dsp: Device or resource busy
open /dev/[sound/]dsp: Device or resource busy
open /dev/[sound/]dsp: Device or resource busy
(null): "Audio could not be initialized.  If you are running any applications playing sound in the background, you should stop them before continuing."
open /dev/[sound/]dsp: Device or resource busy
ERROR: " Web cursor bitmap not found.  This is most likely due to one of three reasons: 1) You're running FreeSpace Open from somewhere other than your FreeSpace 2 folder; 2) You've somehow corrupted your FreeSpace 2 installation, e.g. by modifying or removing the retail VP files; 3) You haven't installed FreeSpace 2 at all.  (Note that installing FreeSpace Open does NOT remove the need for a FreeSpace 2 installation.) Number 1 can be fixed by simply moving the FreeSpace Open executable file to the FreeSpace 2 folder.  Numbers 2 and 3 can be fixed by installing or reinstalling FreeSpace 2." at graphics/2d.cpp:1457

 

Offline pecenipicek

  • Roast Chicken
  • 211
  • Powered by copious amounts of coffee and nicotine
    • Skype
    • Steam
    • Twitter
    • PeceniPicek's own deviantart page
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
which sound system are you using anyways? ALSA, pulse or whichever?
Skype: vrganjko
Ho, ho, ho, to the bottle I go
to heal my heart and drown my woe!
Rain may fall and wind may blow,
and many miles be still to go,
but under a tall tree I will lie!

The Apocalypse Project needs YOU! - recruiting info thread.

 

Offline Jeff Vader

  • The Back of the Hero!
  • Moderator
  • 212
  • Bwahaha
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Also,

Code: [Select]
Unrecognized command line parameter "-jpgtga".  Ignoring...If you're running a 3.6.10 build, there is no need for the -jpgtga flag.

Code: [Select]
ERROR: " Web cursor bitmap not found.  This is most likely due to one of three reasons:
1) You're running FreeSpace Open from somewhere other than your FreeSpace 2 folder;
2) You've somehow corrupted your FreeSpace 2 installation, e.g. by modifying or removing the retail VP files;
3) You haven't installed FreeSpace 2 at all.  (Note that installing FreeSpace Open does NOT remove the need for a FreeSpace 2 installation.)
Number 1 can be fixed by simply moving the FreeSpace Open executable file to the FreeSpace 2 folder. 
Numbers 2 and 3 can be fixed by installing or reinstalling FreeSpace 2."
You're sure that you have the retail files and that you're running FSO from the same folder where the retail files are?
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Is sound softmixing set up correctly? Without that, Linux sound system(s) tend to only be able to play sound from one application at a time.

You might want to try something as simple as disabling system sounds. And, of course, check that there's no media players or other sound using applications open, but basically softmixing is something you should make sure is set up correctly because it will mix the sounds from all programs you use into one stream and then the sound system will be able to play that unified (mixed) stream through to your speakers.*

You can probably try -nosound command line argument to test if the executable works otherwise, but obviously that won't give you any sound (d'oh).


*gross oversimplification warning, I just can't care of the details at the moment... not that I would know much more anyway, my experience on Linux is limited but my bitter fightes with sound systems have left some information I guess :p
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Lobo actually has his finger on the main problem. The sound error does need fixing but not actually having the game is a much bigger problem. :p

Turey's installer does NOT install the game itself any more.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Well... :P thankyou very much for the replies :)

pecenipicek: i'm using alsa on Arch Linux

Lobo: thankyou for the flag help :) and i did copy the files to /home/aleyscha/fs2/data folder... (i symlinked them from another dir, these are the contents, i'd try before copying the files directly and the error was the same)
Code: [Select]
drwx------ 2 aleyscha users      4096 Dec  7 20:27 basic_install_files/
drwx------ 2 aleyscha users      4096 Dec  7 20:28 high_res_files/
drwx------ 2 aleyscha users      4096 Dec  7 20:28 hud_config_files/
drwx------ 2 aleyscha users      4096 Dec  7 20:27 intel_anims/
drwx------ 2 aleyscha users      4096 Dec  7 20:28 music_compressed/
lrwxrwxrwx 1 aleyscha users        34 Dec  7 20:34 Media_VP -> /sdc1/bin/games/freespace2/mediavp/
-r--r--r-- 1 aleyscha users 195887233 Sep 15  1999 tango1_fs2.vp
-r--r--r-- 1 aleyscha users  72778161 Sep 15  1999 tango2_fs2.vp
-r--r--r-- 1 aleyscha users  50497261 Sep 15  1999 tango3_fs2.vp

Herra Tohtori: mmm i can listen to music in my pc with no problems, i dont think is there any audio application playing or even open when i run the program

karajorma: yes i know, i install the game with this "script" it's the arch linux package
Code: [Select]
# Contributor: Lone_Wolf <[email protected]>

pkgname=fs2_open-svn
pkgver=4933
pkgrel=1
pkgdesc="An enhancement of the original Freespace 2 engine - SVN version"
url="http://scp.indiegames.us"
arch=('i686' 'x86_64')
license=('custom:freespace2')
depends=('openal' 'libvorbis' 'sdl' 'mesa' 'libtheora')
makedepends=('subversion' 'lua')
install=fs2_open-svn.install
source=(fs2_open-svn.patch)
md5sums=('553b1d17d6486993f07e133813225626')

_svntrunk=svn://svn.icculus.org/fs2open/trunk/fs2_open
_svnmod=fs2_open

build()
{

  #Grab the sources with svn
  cd $srcdir
  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver) || return 1
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod || return 1
  fi
  msg "SVN checkout done or server timeout"
  msg "Starting make..."
  rm -r $srcdir/$_svnmod-build
  cp -r $srcdir/$_svnmod $srcdir/$_svnmod-build
  cd $srcdir/$_svnmod-build

  #Patch and build the engine
  patch -Np0 -i $srcdir/fs2_open-svn.patch || return 1
  ./autogen.sh
  ./configure --enable-speech
  make

  #Install the license
  install -D -m644 COPYING $pkgdir/usr/share/licenses/freespace2/COPYING

  #Install the engine (The engine is compiled to one binary..)
  install -D -m755 code/fs2_open_r $pkgdir/usr/bin/fs2_open_r

}

# vim:set ts=2 sw=2 et:

 

Offline Jeff Vader

  • The Back of the Hero!
  • Moderator
  • 212
  • Bwahaha
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Code: [Select]
-r--r--r-- 1 aleyscha users 195887233 Sep 15  1999 tango1_fs2.vp
-r--r--r-- 1 aleyscha users  72778161 Sep 15  1999 tango2_fs2.vp
-r--r--r-- 1 aleyscha users  50497261 Sep 15  1999 tango3_fs2.vp
Is this accurate? You only have the tango files from retail FS2. The full retail file list is:
Code: [Select]
root_fs2.vp
sparky_fs2.vp
sparky_hi_fs2.vp
stu_fs2.vp
tango1_fs2.vp
tango2_fs2.vp
tango3_fs2.vp
smarty_fs2.vp
warble_fs2.vp
... with the tango files containing only the command briefing animations.
23:40 < achillion > EveningTea: ass
23:40 < achillion > wait no
23:40 < achillion > evilbagel: ass
23:40 < EveningTea > ?
23:40 < achillion > 2-letter tab complete failure

14:08 < achillion > there's too much talk of butts and dongs in here
14:08 < achillion > the level of discourse has really plummeted
14:08 < achillion > Let's talk about politics instead
14:08 <@The_E > butts and dongs are part of #hard-light's brand now
14:08 <@The_E > well
14:08 <@The_E > EvilBagel's brand, at least

01:06 < T-Rog > welp
01:07 < T-Rog > I've got to take some very strong antibiotics
01:07 < achillion > penis infection?
01:08 < T-Rog > Chlamydia
01:08 < achillion > O.o
01:09 < achillion > well
01:09 < achillion > I guess that happens
01:09 < T-Rog > at least it's curable
01:09 < achillion > yeah
01:10 < T-Rog > I take it you weren't actually expecting it to be a penis infection
01:10 < achillion > I was not

14:04 < achillion > Sometimes the way to simplify is to just have a habit and not think about it too much
14:05 < achillion > until stuff explodes
14:05 < achillion > then you start thinking about it

22:16 < T-Rog > I don't know how my gf would feel about Jewish conspiracy porn

15:41 <-INFO > EveningTea [[email protected]] has joined #hard-light
15:47 < EvilBagel> butt
15:51 < Achillion> yes
15:53 <-INFO > EveningTea [[email protected]] has quit [Quit: http://www.mibbit.com ajax IRC Client]

18:53 < Achillion> Dicks are fun

21:41 < MatthTheGeek> you can't spell assassin without two asses

20:05 < sigtau> i'm mining titcoins from now on

00:31 < oldlaptop> Drunken antisocial educated freezing hicks with good Internet == Finland stereotype

11:46 <-INFO > Kobrar [[email protected]] has joined #hard-light
11:50 < achtung> Surely you've heard of DVDA
11:50 < achtung> Double Vaginal Double ANal
11:51 < Kobrar> ...
11:51 <-INFO > Kobrar [[email protected]] has left #hard-light []

 

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Lobo: THANKYOUUUU now the game runs (i get to the menu, didn't try to play yet)... but i have no sound yet, because of the "open /dev/[sound/]dsp: Device or resource busy" error

 

Offline pecenipicek

  • Roast Chicken
  • 211
  • Powered by copious amounts of coffee and nicotine
    • Skype
    • Steam
    • Twitter
    • PeceniPicek's own deviantart page
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
eugh, looks to me like you dont have alsa configured properly. remove the autodetect and select the exact alsa device which should be used for all sound streams.
Skype: vrganjko
Ho, ho, ho, to the bottle I go
to heal my heart and drown my woe!
Rain may fall and wind may blow,
and many miles be still to go,
but under a tall tree I will lie!

The Apocalypse Project needs YOU! - recruiting info thread.

 

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
pecenipicek: do you mean from ingame configuration menu? because i dont see any place in the menu or somewhere to edit it
« Last Edit: December 08, 2008, 10:18:11 am by leo2501 »

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors

 

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
What if you try to start it with a bare bones window manager running?
I.e. first kill the x server (ctrl+alt+backspace), then start it again with:
xinit -- :0
..then try to run fs2 open from the command line.

 

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
What if you try to start it with a bare bones window manager running?
I.e. first kill the x server (ctrl+alt+backspace), then start it again with:
xinit -- :0
..then try to run fs2 open from the command line.


nop, the same issue :( it seems that i have a sound problem but ONLY with freespace2 :S all other apps and games work perfect :S this is weird... i can play the game with the -nosound flag only :(

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Hmm... Do you have libopenal (and possibly libopenal-dev, but that might only be needed for compilation) installed? :nervous:

I'm not sure if that missing produces that Device Busy error but OpenAL is definitely needed for FS2_Open sound to work, so better sure than sorry... :p
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
Hmm... Do you have libopenal (and possibly libopenal-dev, but that might only be needed for compilation) installed? :nervous:

I'm not sure if that missing produces that Device Busy error but OpenAL is definitely needed for FS2_Open sound to work, so better sure than sorry... :p

mmm maybe... the thing is that this is a x86_64 linux pc, and a quick...
Code: [Select]
[aleyscha@aleyscha 101 ~ 08:17]$ locate openal
show me this:
Code: [Select]
/usr/bin/openal-config
/usr/lib/libopenal.a
/usr/lib/libopenal.so
/usr/lib/libopenal.so.0
/usr/lib/libopenal.so.0.0.0
/usr/lib/pkgconfig/openal.pc

maybe i need to install the 32 bits openal?  :wtf:

  

Offline leo2501

  • 23
Re: fs2_open on Linux. open /dev/[sound/]dsp: Device or resource busy errors
well... i reinstalled the game, and now it works :| so don't know what happened before :P thankyou all guys!