Received: from eggs.gnu.org ([2001:4830:134:3::10]:58214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWGR6-0003SM-NM for qemu-devel@nongnu.org; Sun, 07 Aug 2016 01:15:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWGR2-0003kG-E8 for qemu-devel@nongnu.org; Sun, 07 Aug 2016 01:15:43 -0400 From: Programmingkid Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Sun, 7 Aug 2016 01:15:27 -0400 Message-Id: Mime-Version: 1.0 (Apple Message framework v1084) Subject: [Qemu-devel] [PATCH RFC] hw/misc/macio/cuda.c: erratic mouse fix List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The OpenBIOS Mailinglist Cc: "list@suse.de:PowerPC list:PowerPC" , qemu-devel qemu-devel 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.=20 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.=20 --- 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 --- a/hw/misc/macio/cuda.c +++ b/hw/misc/macio/cuda.c @@ -911,7 +911,7 @@ static void cuda_realizefn(DeviceState *dev, Error = **errp) s->tick_offset =3D (uint32_t)mktimegm(&tm) + RTC_OFFSET; =20 s->adb_poll_timer =3D timer_new_ns(QEMU_CLOCK_VIRTUAL, = cuda_adb_poll, s); - s->autopoll_rate_ms =3D 20; + s->autopoll_rate_ms =3D 35; s->adb_poll_mask =3D 0xffff; } =20 --=20 2.7.2