From patchwork Sun Aug 7 05:15:27 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Programmingkid X-Patchwork-Id: 656443 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3s6TKq2wXrz9sXR for ; Sun, 7 Aug 2016 15:16:31 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=o6L5i51c; dkim-atps=neutral Received: from localhost ([::1]:51477 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWGRp-0003nF-4t for incoming@patchwork.ozlabs.org; Sun, 07 Aug 2016 01:16:29 -0400 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 Received: from mail-it0-x242.google.com ([2607:f8b0:4001:c0b::242]:36012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWGQt-0003ip-O8; Sun, 07 Aug 2016 01:15:31 -0400 Received: by mail-it0-x242.google.com with SMTP id j124so4283311ith.3; Sat, 06 Aug 2016 22:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-transfer-encoding:subject:date:message-id:cc:to :mime-version; bh=lXbIoB2qVJynxPC7zU5On9SSJRp8XkFAG6/OpA3Iqas=; b=o6L5i51c+mEmrPzJB+HunUdr99k/aL40dIpykOdczKWejpe7ik6eB9W/MrTDR/32Tk xtl8SM3dqKQvbDzgDe00eK/yMqQVFIjpiAGOqM87pU2v2/l38/BW+NDLSZiKWOShWvEC aO8liqtSGo6pBT7M3LNVzTAAy7t/dCDwnf31JJ+mdtv40OardxAUUbWu4xv2N/dqAiF3 Cbv1OYaiiNdiu/3HyJ0NxHxiYKP+2+hpu+vlQuO7N+iFF1AjeRwcA4lQCrc7uArXzsGC ARAAi2Zf1nFgoP598kPOktou+shwp9/3X3gwVKw0vY0ylQdbFF7JolsPp+cmZZjNBiwK Eefg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:content-transfer-encoding:subject:date :message-id:cc:to:mime-version; bh=lXbIoB2qVJynxPC7zU5On9SSJRp8XkFAG6/OpA3Iqas=; b=AfrI32ooAv1g4sUVneyt7X7e1IQG7WdKSAGmjjFZZELSHR1HR0wfWnqxXJnsnpJR35 4/IxLuRSB5miI2UcCwspRqNIVapSdCl6P+RjlLzD+U5KuNEhwKZY8ku7eqVoedrmUXMj TrrYUe/JpwLjtjY4mBFlhaW33pLppzxHcYTqYEqAFmkBgYcuajTKcENp+XH1zMwLe0nl gWyX+JJJpDBP5B01+e9LQ8VASxM/Od0wqSAX2M2MpEHoigmFF3PAMIT55XakBoB0K4+y a06QJOsnBSu6T94dfBOwJm0YQxPmVcI0rSUZoUirOBx5zOebXqO//Axik15U+BxVffow 5usg== X-Gm-Message-State: AEkooutOwzWRfLf0usMx736LtTpGfyBmKPkD9wPgzaC0WhzXwVCwgYOOWyp/t09CYuSaog== X-Received: by 10.36.17.20 with SMTP id 20mr12790527itf.94.1470546929678; Sat, 06 Aug 2016 22:15:29 -0700 (PDT) Received: from [192.168.0.6] (d199-74-164-53.col.wideopenwest.com. [74.199.53.164]) by smtp.gmail.com with ESMTPSA id v101sm11621782iov.44.2016.08.06.22.15.28 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Aug 2016 22:15:28 -0700 (PDT) From: Programmingkid Date: Sun, 7 Aug 2016 01:15:27 -0400 Message-Id: To: The OpenBIOS Mailinglist Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::242 Subject: [Qemu-devel] [PATCH RFC] hw/misc/macio/cuda.c: erratic mouse fix X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "list@suse.de:PowerPC list:PowerPC" , qemu-devel qemu-devel Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "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. 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 --- 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 = (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; }