SheepShaver for Windows

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

DickeFix
Space Cadet
Posts: 7
Joined: Thu Sep 09, 2010 4:14 pm
Location: Sweden

Re: SheepShaver for Windows

Post by DickeFix »

I have used Basilisk and Sheepshaver from the beginning on almost daily basis. Thanks to the emulators, the software that I wrote in the 1990's for 68k and PPC Macintosh is still developed (using Think Pascal and Codewarrior) and run on both Windows and MacOSX platforms. It is currently used by more than twenty companies and universities for R&D and education. I feel therefore in debt to the developers and the E-maculation forum, especially Cat_7 and Ronald P. Regensburg, for their long tireless commitment.

I run Sheepshaver on a Thinkpad X1 Carbon 4th generation with Windows 10 Pro 21H2. I want to report two issues.

1. The versions of SheepShaver later than 2015-03-01 become unresponsive when the computer wakes up after sleep mode.

2. Recently there seems to be a incompatibility between Conexant SmartAudio HD driver (dated 2021-08-22) and all Sheepshaver and Basilisk versions. The sound works but the CPU usage of the "System" process becomes stuck at 33%. The problem disappears if the Conexant driver is disabled and another sound driver is used, e.g., with a Bluetooth speaker. Alternatively, I can "Disable Sound Output" in Basilisk or Sheepshaver to get the CPU usage down. I have not had this problem before and a Lenovo X201 with the same Windows version but a Conexant driver from 2012 does not have the problem. However, the 2012 driver is incompatible with the Lenovo X1 and rolling back the driver to 2018 version does not help.

I wonder if anyone else experienced these problems and found a fix.
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: SheepShaver for Windows

Post by adespoton »

Is this only with SheepShaver, or also with BasiliskII? That may point to whether it's a memory mapping issue or something else.
DickeFix
Space Cadet
Posts: 7
Joined: Thu Sep 09, 2010 4:14 pm
Location: Sweden

Re: SheepShaver for Windows

Post by DickeFix »

The problem with high CPU usage of the "System" process is both with BasiliskII and SheepShaver, regardless if JIT is enabled or not.
DickeFix
Space Cadet
Posts: 7
Joined: Thu Sep 09, 2010 4:14 pm
Location: Sweden

Re: SheepShaver for Windows

Post by DickeFix »

DickeFix wrote: Tue Feb 15, 2022 10:40 pm The problem with high CPU usage of the "System" process is both with BasiliskII and SheepShaver, regardless if JIT is enabled or not.
After some more testing I find that the Conexant driver causes the same high CPU usage of System process with other applications when sound is used (e.g. Firefox, Microsoft Edge and VLC). With other sound drivers, it is not the same problem. Hence, I conclude this problem is due to Conexant driver, not Basilisk/Sheepshaver.

However, the problem that Sheepshaver versions after 2015 do not wake up after sleep remains.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: SheepShaver for Windows

Post by Cat_7 »

Hi,

I just tested wake up after 5 minutes of sleep with the latest build on Windows 10 host.
The SheepShaver window is black after logging into Windows again, but returns to normal after a click.
Mac OS 9.0 then seems to function correctly.

This was with a Mac OS "doing nothing" at sleep/wake up time. What might be different at your place?

Best,
Cat_7
DickeFix
Space Cadet
Posts: 7
Joined: Thu Sep 09, 2010 4:14 pm
Location: Sweden

Re: SheepShaver for Windows

Post by DickeFix »

Thanks Cat_7. I really appreciate your work with this forum and SheepShaver.

Yes, I should have stated that the problem is intermittent. I have a feeling it most often occurs when the computer been in sleep mode for several hours. I will investigate if I find more clues, e.g., if it indeed depends on the time it has been in sleep mode or if it depends on the tasks running in the Mac OS environment. The SheepShaver version March 1 2015 never has this problem but all later versions I have tested has it.
psh
Tinkerer
Posts: 47
Joined: Mon May 17, 2021 10:41 am

Re: SheepShaver for Windows

Post by psh »

Hi!
recently, i tried to use Mac OS 9 with well-known working ROM. It doesnt have sound which is weird cuz the last time i checked my Mac OS 9 on other laptop, it does have sound.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver for Windows

Post by Ronald P. Regensburg »

Did you enable sound? From the setup manual:

If sound output doesn't work out of the box:
With Mac OS 9: Select “built-in” for the output device in the “Sound” control panel.


("Select" means actually clicking "Built-in" to highlight it.)
psh
Tinkerer
Posts: 47
Joined: Mon May 17, 2021 10:41 am

Re: SheepShaver for Windows

Post by psh »

Ronald P. Regensburg wrote: Sat Apr 30, 2022 11:02 am Did you enable sound? From the setup manual:

If sound output doesn't work out of the box:
With Mac OS 9: Select “built-in” for the output device in the “Sound” control panel.


("Select" means actually clicking "Built-in" to highlight it.)
it doesnt appear for some reason
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver for Windows

Post by Ronald P. Regensburg »

What does not appear? "Built-in" for the Output device?

Open Sound control panel.
At the left select "Output" and then at the right select "Built-in".

If that does not work, trash "Sound Preferences" (from System Folder:Preferences) and shut down SheepShaver. Then try again.
psh
Tinkerer
Posts: 47
Joined: Mon May 17, 2021 10:41 am

Re: SheepShaver for Windows

Post by psh »

Ronald P. Regensburg wrote: Sat Apr 30, 2022 11:26 am What does not appear? "Built-in" for the Output device?

Open Sound control panel.
At the left select "Output" and then at the right select "Built-in".

If that does not work, trash "Sound Preferences" (from System Folder:Preferences) and shut down SheepShaver. Then try again.
Still not working even though i trashed "Sound Preferences" and emptied the trash
psh
Tinkerer
Posts: 47
Joined: Mon May 17, 2021 10:41 am

Re: SheepShaver for Windows

Post by psh »

psh wrote: Sat Apr 30, 2022 12:23 pm
Ronald P. Regensburg wrote: Sat Apr 30, 2022 11:26 am What does not appear? "Built-in" for the Output device?

Open Sound control panel.
At the left select "Output" and then at the right select "Built-in".

If that does not work, trash "Sound Preferences" (from System Folder:Preferences) and shut down SheepShaver. Then try again.
Still not working even though i trashed "Sound Preferences" and emptied the trash
UPDATE:
It solved by moving Apple Audio Extension into trash and emptying the trash. This extension is the culprit for missing sound on Mac OS 9 (and also sometimes causes OS 9.2 crashes during its bootup)
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver for Windows

Post by Ronald P. Regensburg »

Yes, if the Apple Audio Extension happens to be installed it should be removed. This instruction is in the setup guide for macOS hosts, apparently not in the setup guide for Windows.

This extension is normally not installed with a default MacOS 9 installation in SheepShaver. It may be installed with a custom installation, or it may be present in a System Folder that is copied from somewhere else.
dumdum66
Space Cadet
Posts: 1
Joined: Sun Sep 25, 2022 4:33 pm

Re: SheepShaver for Windows

Post by dumdum66 »

New to this community. Using Sheepshaver for a number of years to get access to some older of my own files. Glad this is possible due to the efforts you guys put in. Merci
brudibru
Space Cadet
Posts: 2
Joined: Fri Sep 30, 2022 12:09 pm

Re: SheepShaver for Windows

Post by brudibru »

Hello,

Sorry if this question has been asked before but I haven't found a solution to my problem anywhere and I hope you can help me:

I am trying unsuccessfully to run sheep shaver via command lines in windows 10 because I want to launch games with batch files (using the prefs files)

I can run sheepshaver.exe via a command line but if I add: --config sheepshaver_prefs (or any custom prefs files) or even --h nothing happens, sheep shaver doesn't launch and I don't have any error message

I have the latest version of sheep shaver for windows and I have installed the keycodes.

Thanks in advancefor your help !
User avatar
adespoton
Forum All-Star
Posts: 4227
Joined: Fri Nov 27, 2009 5:11 am
Location: Emaculation.com
Contact:

Re: SheepShaver for Windows

Post by adespoton »

Does this help?

viewtopic.php?p=73171#p73171

Seems like it was broken for a few years and then fixed with a release earlier this year. Are you certain you have the latest build? By date, not by version number?
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: SheepShaver for Windows

Post by Cat_7 »

Hi,

I just tested this again, and it works at my place.

Was your current prefs file created with the SheepShaver GUI? Or did you let SheepShaver create an empty one when you started it with SheepShaver.exe --config sheepshaver_prefs?
Does SheepShaver run when you start it through the GUI?

Can you post the content of your prefs file?

Best,
Cat_7
brudibru
Space Cadet
Posts: 2
Joined: Fri Sep 30, 2022 12:09 pm

Re: SheepShaver for Windows

Post by brudibru »

Thanks a lot for the answers !

I was using the specially prepared pippin setup and I had updated sheepshaver with the latest version (or thought I had).

I have tried with a fresh version and now it works !!

A big thank you for your quick and useful replies. You have helped me a lot !!!
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: SheepShaver for Windows

Post by Cat_7 »

There is a new SheepShaver for Windows build available in the first post.

Best,
Cat_7
Marty2Mac
Space Cadet
Posts: 2
Joined: Sat Dec 10, 2022 11:10 am

Re: SheepShaver for Windows

Post by Marty2Mac »

Hello @ll

First, Thanks for the great programming work. Good job :) :smile:

and Second:
How works commandline:
I tried many different arguments styles by this

Unix options:
--display STRING
X display to use

General options:
--disk STRING
device/file name of Mac volume [default=none]
--floppy STRING
device/file name of Mac floppy drive [default=none]
--cdrom STRING
device/file names of Mac CD-ROM drive [default=none]
--extfs STRING
root path of ExtFS [default=none]
--scsi0 STRING
SCSI target for Mac SCSI ID 0 [default=none]
--scsi1 STRING
SCSI target for Mac SCSI ID 1 [default=none]
--scsi2 STRING
SCSI target for Mac SCSI ID 2 [default=none]
--scsi3 STRING
SCSI target for Mac SCSI ID 3 [default=none]
--scsi4 STRING
SCSI target for Mac SCSI ID 4 [default=none]
--scsi5 STRING
SCSI target for Mac SCSI ID 5 [default=none]
--scsi6 STRING
SCSI target for Mac SCSI ID 6 [default=none]
--screen STRING
video mode [default=none]
--windowmodes NUMBER
bitmap of allowed window video modes [default=0]
--screenmodes NUMBER
bitmap of allowed fullscreen video modes [default=0]
--seriala STRING
device name of Mac serial port A [default=none]
--serialb STRING
device name of Mac serial port B [default=none]
--rom STRING
path of ROM file [default=none]
--bootdrive NUMBER
boot drive number [default=0]
--bootdriver NUMBER
boot driver number [default=0]


Unrecognized option '--disk' ??? (Tried to load with disk argument)


sheepshaver.exe --cdrom "D:\Mac\MacOS80.iso" (Sheepshaver doesnt load and open)
sheepshaver.exe -cdrom "D:\Mac\MacOS80.iso" (Sheepshaver doesnt load and open)
sheepshaver.exe '--cdrom "D:\Mac\MacOS80.iso"' (No Iso mounted but Sheepshaver runs)
sheepshaver.exe '--cdrom' "D:\Mac\MacOS80.iso" (No Iso mounted but Sheepshaver runs)
sheepshaver.exe '--cdrom'="D:\Mac\MacOS80.iso" (No Iso mounted but Sheepshaver runs)
sheepshaver.exe --cdrom="D:\Mac\MacOS80.iso" (Sheepshaver doesnt load and open)
sheepshaver.exe -cdrom="D:\Mac\MacOS80.iso" (Sheepshaver doesnt load and open)
sheepshaver.exe '--cdrom=D:\Mac\MacOS80.iso' (No Iso mounted but Sheepshaver runs)

any idea how to load disk/hd/CDrom with SheepShaver.exe ? :shock:
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: SheepShaver for Windows

Post by Cat_7 »

Hi,

While you can run SheepShaver without the GUI, it would be best to configure it with the GUI, as the values entered behind the preferences keywords might not be obvious. Once you use the GUI to run/install you can either run SheepShaver.exe by pointing to the prefs file, or create a command line with all prefs listed as in the prefs file (with a -- in front of each argument).

Best,
Cat_7
Marty2Mac
Space Cadet
Posts: 2
Joined: Sat Dec 10, 2022 11:10 am

Re: SheepShaver for Windows

Post by Marty2Mac »

Thanks for your reply

Because I would like to have the sheepshaver dynamic so that I can exchange the iso at any time since I use a frontend for my emulators myself.

I added a quick and dirty Solution for me:

if (strcmp(argv, "--help") == 0) {
usage(argv[0]);
} else if (strcmp(argv, "--config") == 0) {
argv[i++] = NULL;
if (i < argc) {
extern std::string UserPrefsPath; // from prefs_windows.cpp
UserPrefsPath = to_tstring(argv);
argv = NULL;
}
-------------------
} else if (strcmp(argv, "--cdrom") == 0) {
argv[i++] = NULL;
if (i < argc) {
PrefsAddString("cdrom", argv); // Update
argv = NULL;
}
----------------------
} else if (argv[0] == '-') {
fprintf(stderr, "Unrecognized option '%s'\n", argv);
usage(argv[0]);
}

SheepShaver.exe --cdrom ".\Operation_System\Mac OS System 8.0 (German)\MacOS v8.0 (German).iso" can load the iso :)
Cap'n Tycho
Space Cadet
Posts: 5
Joined: Wed Mar 08, 2023 4:17 am

Re: SheepShaver for Windows

Post by Cap'n Tycho »

Hi,
Firstly, thank you so much to everyone who's worked on this.

Unfortunately I've been encountering an error with fullscreen mode since I performed a clean install of Sheepshaver which causes the 4:3 image to be stretched to the display's 16:9 aspect ratio. I have tried every permutation of the display settings but nothing seems to be resolving this. I wasn't able to find any other mention of this issue, so I thought I'd ask here for some help.
User avatar
Ronald P. Regensburg
Expert User
Posts: 7821
Joined: Thu Feb 09, 2006 10:24 pm
Location: Amsterdam, Netherlands

Re: SheepShaver for Windows

Post by Ronald P. Regensburg »

Which are your settings in the Graphics/Sound tab in the GUI?
Cap'n Tycho
Space Cadet
Posts: 5
Joined: Wed Mar 08, 2023 4:17 am

Re: SheepShaver for Windows

Post by Cap'n Tycho »

window type: window
window refresh rate: dynamic
width: 800
height: 600
quickdraw accel: yes
render driver: Open GL (software performed same, direct3d would crash sheepshaver)
vsync: no
disable sound: no
Post Reply