From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYPAw-0007lm-1I for qemu-devel@nongnu.org; Sun, 16 Dec 2018 00:41:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYPAu-0007aT-8G for qemu-devel@nongnu.org; Sun, 16 Dec 2018 00:41:13 -0500 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]:38424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYPAt-0007Yx-ST for qemu-devel@nongnu.org; Sun, 16 Dec 2018 00:41:12 -0500 Received: by mail-ot1-x344.google.com with SMTP id e12so9318192otl.5 for ; Sat, 15 Dec 2018 21:41:09 -0800 (PST) MIME-Version: 1.0 From: james harvey Date: Sun, 16 Dec 2018 00:40:58 -0500 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: [Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, fabian@lesniak-it.de, kraxel@redhat.com, Eric Blake Running qemu 3.1.0. virt-viewer 7.0. spice, spice-gtk, and spice-protocol all git versions from the past week or so. I have a Logitech G600 mouse. The scroll wheel can be pushed left or right. On Arch Linux host, "evtest" shows these as event codes 275 (BTN_SIDE) and 276 (BTN_EXTRA.) In host, they work as expected, by default as back and forward in supporting programs such as web browsers. On Arch Linux guest, "evtest" shows these events as supported for the "ImExPS/2 Generic Explorer Mouse", but it doesn't show those events as happening when I push the scroll wheel left or right. Other events work fine. On Windows 7 guest, there's no effect from pushing the scroll wheel left or right, either. I'm happy to help debug where the event forwarding is breaking down, but have no idea how to do that. Patch v1 for these buttons from Nov 24, 2016: https://www.mail-archive.com/qemu-devel@nongnu.org/msg415246.html Patch v2 from Nov 28, 2016: https://www.mail-archive.com/qemu-devel@nongnu.org/msg415690.html Patch v3 from Dec 6, 2016: https://www.mail-archive.com/qemu-devel@nongnu.org/msg417007.html The v1 notes say: 'Note that the guest has to switch the ps2 mouse into IMEX mode, otherwise events of the extra buttons are ignored. For example on a Windows guest one needs to manually select the "Microsoft PS/2 Mouse" driver.' I'll admit I'm not sure what IMEX mode is. QEMU is providing the PS/2 mouse emulation by default, and I don't see a way to give qemu options for it. Regardless, following this note's instructions for "IMEX mode", in Windows 7 guest, changing the driver from the default "Microsoft - PS/2 Compatible Mouse" to "Microsoft - Microsoft PS/2 Mouse" and rebooting guest has no effect. The extra buttons still don't work. Windows 7 Device Manager does show 2 "Mice and other pointing devices". First is "HID-compliant mouse" (HID\VID_0627&PID_0001&REV_0000) which shows it's USB, so I'm guessing that's the absolute movement EvTouch USB Graphics Tablet. Second is the PS/2 - currently set to "Microsoft PS/2 Mouse" (ACPI\PNP0F13).