LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-25-2003, 02:44 PM   #1
tchernobog
Member
 
Registered: Aug 2003
Distribution: Latest Gentoo; Mandrake 9.1
Posts: 37

Rep: Reputation: 15
Heroes of Might & Magic 3 (Loki) - ESD Problem


Hi!
I have just found a copy of Heroes Of Might And Magic 3 for Linux.

I've Mandrake 9.1, and whenever I start the game it says that my /dev/dsp is busy. I tried to stop artsd (with a kill based on the listing of ps -A), but it wasn't that to keep my resource busy.

I've to start esd (the daemon) in order to get this thing working. Please tell me a good way to:
a) understand what's keeping my dsp busy
b) kill it brutally
c) start the game

Byez.
 
Old 09-26-2003, 07:57 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
To kill the process that uses /dev/dsp automatically, just do:

fuser -k /dev/dsp

fuser --help
Will give you more info on it, also check out the man/info pages. It can also list what's using the file, and it does a lotmore.
So.. you could just make a shell script:

Code:
#!/bin/sh

fuser -k /dev/dsp
<Inser whatever you use to start the program with it's full path, use 'which "program name" ' to fine out the path to it>
Make a file of that, (remember not to include the <>), chmod that +x and save it in /usr/bin
Then run the file. Should work just fine

Happy gaming!
 
Old 09-27-2003, 05:26 AM   #3
tchernobog
Member
 
Registered: Aug 2003
Distribution: Latest Gentoo; Mandrake 9.1
Posts: 37

Original Poster
Rep: Reputation: 15
errata

Thank you very much!!! You saved my day...

It's just:

Code:
#!/bin/sh

su - root "-c fuser -k /dev/dsp;esdmon &"
heroes3


Uh, I also tried with "/etc/rc5.d/S17sound stop" and "S18alsa stop". It didn't worked the first time, but the second it did (?!?!?). Boh. Your way is much more clean, anyway...

Byez!
 
  


Reply



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
No sound in Heroes of Might and Magic 3 PeterWelzien Linux - Games 0 09-25-2004 05:23 AM
Heroes of Might and Magic III avatar3000 Linux - Games 0 09-07-2004 01:54 AM
Heroes of Might and Magic 3 v1.3.1a patch TXM Linux - Games 0 07-31-2004 12:31 PM
Running Heroes of MAM 3 (Loki) addisono Linux - Games 0 01-18-2004 11:09 PM
Heroes of Might and Magic?? KaktusKnight Linux - Software 2 01-23-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:49 PM.

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