"WARNING: Cannot open /dev/dsp (Input/output error)" solved

About SheepShaver, a PPC Mac emulator for Windows, MacOS X, and Linux that can run System 7.5.3 to MacOS 9.0.4.

Moderators: Cat_7, Ronald P. Regensburg, ClockWise

Post Reply
takhisis
Space Cadet
Posts: 1
Joined: Wed Dec 21, 2016 3:42 am

"WARNING: Cannot open /dev/dsp (Input/output error)" solved

Post by takhisis »

I've solved my problem, I just wanted to let other people know who might come across the same issue, because I couldn't find anything when I googled the error message.

If you're running SheepShaver from linux (where OSS is now replaced with pulseaudio) and you get a dialog box saying "Sheepshaver warning: No audio device found, audio output will be disabled" and in stderr it says:

WARNING: Cannot open /dev/dsp (Input/output error)
WARNING: Cannot open ESD connection

then try running "padsp SheepShaver" instead. I'm wondering if this should be part of the instructions for using SheepShaver on linux, because from what I've read, pulseaudio is pretty standard nowadays so although /dev/dsp exists, it won't work without the padsp wrapper.
User avatar
adespoton
Forum All-Star
Posts: 4226
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: "WARNING: Cannot open /dev/dsp (Input/output error)" sol

Post by adespoton »

Yes; good suggestion. PulseAudio is indeed the default on most major distros (followed by ALSA), so documenting that would be a good idea.
Iqtedar
Space Cadet
Posts: 2
Joined: Fri Jun 16, 2017 5:06 pm

Re: "WARNING: Cannot open /dev/dsp (Input/output error)" sol

Post by Iqtedar »

I agree. This solution should definitely be documented on that page because due to its absence, I wasted several days trying to get the audio to work on my Ubuntu host. For anyone else in the same position, you need to install the 'osspd' package:

Code: Select all

sudo apt-get install osspd
, then run SheepShaver via the Terminal with the command:

Code: Select all

padsp /usr/bin/SheepShaver
OR

Code: Select all

padsp ./SheepShaver
as appropriate. It is also recommended to remove the Apple Audio Extension from within the MacOS and make sure 'Built-in' is selected in the sound control panel.

Is there a setting in SheepShaver that can be made so that it can be launched directly in the GUI, i.e. without having to type the above command? I tried /dev/padsp, /dev/osspd and /dev/pulseaudio in the 'Audio Output Device' field under the 'Graphics/Sound' tab, but neither make a difference.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: "WARNING: Cannot open /dev/dsp (Input/output error)" sol

Post by Cat_7 »

I added your info in the guide for linux.

Thanks,
Cat_7
User avatar
tobor74
Space Cadet
Posts: 1
Joined: Wed Jun 28, 2017 12:31 pm

Re: "WARNING: Cannot open /dev/dsp (Input/output error)" sol

Post by tobor74 »

Hi guys, I've installed osspd and started SheepShaver as your instructions say
but I still have this error on raspbian
Any clue?

thanks!
Post Reply