[OpenBIOS] [PATCH RFC] hw/misc/macio/cuda.c: erratic mouse fix
programmingkidx at gmail.com
Sun Aug 7 07:15:27 CEST 2016
For everyone who is having a problem with the mouse pointer acting erratically, this patch should offer some relief. By decreasing the polling rate of the ADB mouse, the mouse pointer becomes more manageable. I was always able to reproduce the erratic mouse issue by playing an mp3 in QuickTime Player on a Mac OS 9.2 guest. With this patch the problem was almost unnoticeable.
Please let me know how well this works for you.
Note: I only have test this patch on a Mac OS X host running a Mac OS 9.2 guest. Hopefully it will fix the problem on Windows and Linux as well.
hw/misc/macio/cuda.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c
index 05c02fb..0e97d0a 100644
@@ -911,7 +911,7 @@ static void cuda_realizefn(DeviceState *dev, Error **errp)
s->tick_offset = (uint32_t)mktimegm(&tm) + RTC_OFFSET;
s->adb_poll_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, cuda_adb_poll, s);
- s->autopoll_rate_ms = 20;
+ s->autopoll_rate_ms = 35;
s->adb_poll_mask = 0xffff;
More information about the OpenBIOS