Login  •  Register


The time is now: Fri May 24, 2019 1:35 pm

Emaculation wiki  •  Delete all board cookies



Post new topic  Reply to topic Page 1 of 1 [ 25 posts ]
Print view Previous topic  |  Next topic
Author Message
 Post subject: Mouse & Shared folder
PostPosted: Thu Jun 29, 2017 2:45 pm 
Offline
Space Cadet

Joined: Thu Jun 29, 2017 2:23 pm
Posts: 3
I'm a neophyte, I installed Qemu on Mac with Sierra 10.12.5, with some attempts to get it running, I have to solve two problems: the mouse runs slowly in Qemu and I do not know how to create a shared folder from Qemu and the host.
There is a solution to these problems. Thank you.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jun 29, 2017 3:41 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4565
Location: Sittard, The Netherlands
Hi,

There is no working shared folder functionality available right now.
Which Mac OS are you emulating? Have you checked the mouse speed settings in the guest OS?

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jun 29, 2017 4:49 pm 
Offline
Space Cadet

Joined: Thu Jun 29, 2017 2:23 pm
Posts: 3
Hi,
I emulate MacOs 9.2.1, about mouse tomorrow will control the settings.
I'm sorry that can not have a direct communication between Sierra and OS 9.2. Thank you.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jun 29, 2017 7:05 pm 
Offline
Forum All-Star

Joined: Wed Nov 11, 2009 5:47 pm
Posts: 1247
Location: Germany
I´m using SheepShaver to write onto the Qemu raw image.
Not that elegant but working.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jun 29, 2017 7:46 pm 
Offline
Expert User
User avatar

Joined: Thu Feb 09, 2006 10:24 pm
Posts: 5393
Location: Amsterdam, Netherlands
If the QEMU HD is formatted HFS+, you can simply mount the image file in the OSX/macOS host and copy files to it or from it. To prevent possible file system corruption, be careful not to have the volume mounted in the host OS while QEMU is running.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Jun 29, 2017 8:07 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2558
Location: Emaculation.com
Because you can mount/eject images on the fly in QEMU, you can also create a "transfer" image that you can mount on either the host or the guest. That way, you can leave QEMU running, and treat it as if you're taking a USB stick out of one machine and inserting it in the other to transfer files.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri Jun 30, 2017 7:58 am 
Offline
Space Cadet

Joined: Thu Jun 29, 2017 2:23 pm
Posts: 3
I found very useful the advice of Ronald P. Regensburg and adespoton to transfer files to and from Qemu. About my question on the mouse I have now put the speed on fast and is faster but it is not fluid, can not make precise moves.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Dec 06, 2018 9:11 am 
Offline
Space Cadet

Joined: Thu Dec 06, 2018 8:35 am
Posts: 1
Another way to transfer files - in my use case because I'm using an IDE in the host but compiling code on the ARM QEMU guest - is to setup something like fswatch in combination with a file syncing or copying tool (scp or rsync). When correctly configured this will copy files to the QEMU machine whenever they change.

scp on its own should be sufficient to move files to or from the guest without resorting to the risks of a mount-unmount cycle but requires running manually.

Couple of assumptions I've made: your host is a modern OS. fswatch works cross-platform but in subtly different ways. I've also assumed that the guest is running an ssh daemon. There's nothing stopping fswatch using FTP (and a corresponding guest FTP daemon) if that works for you. A Linux host also has inotify-based tools.

It's not strictly a shared folder but the end result is mostly the same.

HTH.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Dec 06, 2018 5:12 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2558
Location: Emaculation.com
Ringworld wrote:
I found very useful the advice of Ronald P. Regensburg and adespoton to transfer files to and from Qemu. About my question on the mouse I have now put the speed on fast and is faster but it is not fluid, can not make precise moves.


I just started experiencing the same problem; changing to -m mac99,via=pmu fixed the issue for me. Seems to be something introduced in the CUDA emulation.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Apr 23, 2019 1:35 pm 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
I have tried to improve mouse movement under macOS.

https://github.com/kanjitalk755/qemu


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Apr 23, 2019 4:59 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4565
Location: Sittard, The Netherlands
Hi,

I can't compile the source. The folder gamepad-osx is empty.
Should I somehow init the submodule?

Only submodules known are the default ones: ui/keycodemapdb tests/fp/berkeley-testfloat-3 tests/fp/berkeley-softfloat-3 dtc capstone

EDIT: I found the required files here: https://github.com/suzukiplan/gamepad-o ... 2349cdd495

Best,
Cat_7


Last edited by Cat_7 on Tue Apr 23, 2019 5:11 pm, edited 1 time in total.
 


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Apr 24, 2019 3:04 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
I found how to do mouse integration, but it didn't work QEMU3.1.0/4.0.0-rc4.

https://wiki.archlinux.org/index.php/QEMU#Mouse_integration

Does anyone know how to do mouse integration with the latest version?


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Apr 24, 2019 4:15 am 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4565
Location: Sittard, The Netherlands
I struggled with that before, but there is no tablet driver available in Mac OS 9.

Some fixes to the SDL code were made by the SDL maintainer to get a decent mouse/keyboard behaviour in Mac OS 9. Particularly when two Qemu instances were running.

As OSX hosts do not use SDL or GTK by default, it might be the mouse integration does not work for OSX guests?

Best,
Cat_7


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Apr 24, 2019 5:45 am 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2558
Location: Emaculation.com
How does VirtualBox do it? Because it definitely has Mouse Integration under macOS.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Apr 24, 2019 1:33 pm 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
According to System Profiler, the guest OS X is connected to a USB tablet.

It turned out that QEMU's mouse integration can be realized by appending "-usb tablet" argument if guest is OS X.

If Mac OS 9 has a standard USB tablet driver, the mouse integration may be realized.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed Apr 24, 2019 3:46 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2558
Location: Emaculation.com
Right... after checking, that's how VBox does it too. Of course, it doesn't run OS 9.

I know there are tablet drivers for classic Mac OS (Wacom ones, for instance), but I'm not sure offhand if OS 9 has them by default. I would expect it to, as 10.1 contains them, but Apple was not really consistent back then.

If integration doesn't work by default with "-usb tablet" then we could try installing a Wacom driver and see if that makes it work.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu Apr 25, 2019 9:46 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
I tried Wacom tablet driver with argument "-device usb-wacom-tablet".

http://macintoshgarden.org/apps/wacom

Unfortunately it behaved like a mouse (relative position) even if specifying pen mode (absolute position).


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Apr 30, 2019 10:28 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
I have developed an application for mouse integration between QEMU and Mac OS 9.

https://github.com/kanjitalk755/macos9-usb-tablet/releases

    Expand USBTablet.sit and move to System Folder -> Startup Items.
    Append "-device usb-tablet" instead of "-device usb-mouse" to argument of QEMU.

This is experimental, you may lost mouse control.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Tue Apr 30, 2019 2:27 pm 
Offline
Expert User
User avatar

Joined: Fri Feb 13, 2004 8:59 am
Posts: 4565
Location: Sittard, The Netherlands
Hi,

The application works with MacOS 9.2 when you use --M mac99 -device usb-kbd -device usb-tablet, as this does not present usb devices by default to Mac OS.
Using -M mac99,via=pmu already presents usb mouse and kbd to Mac OS, so the mouse gets stuck in the left upper corner.

Mouse control is temporarily lost before the application is loaded from the start-up folder.
It seems the mouse can move out of the Mac OS window, but it requires a click in the Mac OS window to capture it again.

The application crashes in my MacOS 9.0 when used with -M mac99 -device usb-kbd -device usb-tablet.

Best,
Cat_7


Last edited by Cat_7 on Tue Apr 30, 2019 2:35 pm, edited 1 time in total.
added some info about 9.0


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed May 01, 2019 5:44 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
Cat_7 wrote:
Using -M mac99,via=pmu already presents usb mouse and kbd to Mac OS, so the mouse gets stuck in the left upper corner.

You can't use it if you can't delete the usb-mouse.

Cat_7 wrote:
Mouse control is temporarily lost before the application is loaded from the start-up folder.

If it is System Extension, it will be effective earlier, but the document for making it was not found.

Cat_7 wrote:
It seems the mouse can move out of the Mac OS window, but it requires a click in the Mac OS window to capture it again.

The mouse grab is uncontrollable from guest OS.

Cat_7 wrote:
The application crashes in my MacOS 9.0 when used with -M mac99 -device usb-kbd -device usb-tablet.

It may not be usable if not Mac OS 9.2.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed May 01, 2019 1:34 pm 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
kanjitalk755 wrote:
Cat_7 wrote:
It seems the mouse can move out of the Mac OS window, but it requires a click in the Mac OS window to capture it again.

The mouse grab is uncontrollable from guest OS.

I have fixed mouse grab of QEMU.

https://github.com/kanjitalk755/qemu


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Wed May 01, 2019 3:28 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2558
Location: Emaculation.com
kanjitalk755 wrote:
Cat_7 wrote:
Mouse control is temporarily lost before the application is loaded from the start-up folder.

If it is System Extension, it will be effective earlier, but the document for making it was not found.


I think I've got an extension template around somewhere; I used to have luck with just shoehorning the code in to a pre-compiled shell using ResEdit as well.

Let me know if you need any help here.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu May 02, 2019 11:39 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
Please let me know if there is a sample code to make INIT.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Thu May 02, 2019 3:43 pm 
Offline
Forum All-Star
User avatar

Joined: Fri Nov 27, 2009 5:11 am
Posts: 2558
Location: Emaculation.com
Which IDE are you using? I've got sample code stashed away somewhere for MPW and also for CodeWarrior.

[edit] Found the following:
https://www.applefritter.com/node/13008 - CDEV framework for CodeWarrior
ftp://ftp.uni-potsdam.de/pub/systems/ma ... ev-src.txt - cdev-stub-cw.hqx (another CDEV stub for CodeWarrior).

[edit2] Found this:
https://retrocomputing.stackexchange.co ... sic-mac-os

IIRC, you just take the CODE resource and change it to an INIT resource, then lock it.

Also, it looks like the source for Extensions Manager is available here:
https://staticky.com/mirrors/ftp.apple. ... ool_Chest/
This would make a good framework if you want to build from scratch using MPW.


Top
 Profile  
Reply with quote Post a reply  
PostPosted: Fri May 03, 2019 9:55 am 
Offline
Tinkerer

Joined: Thu Nov 09, 2017 12:06 pm
Posts: 86
adespoton wrote:
Which IDE are you using? I've got sample code stashed away somewhere for MPW and also for CodeWarrior.

I use CodeWarrior Pro 6.

The links you introduced unfortunately did not fit my purpose.


Top
 Profile  
Reply with quote Post a reply  
Display posts from previous:  Sort by  
Post new topic  Reply to topic Page 1 of 1 [ 25 posts ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
 

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group