qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded
@ 2018-12-16  5:40 james harvey
  2018-12-16 18:48 ` Fabian Lesniak
  0 siblings, 1 reply; 5+ messages in thread
From: james harvey @ 2018-12-16  5:40 UTC (permalink / raw)
  To: qemu-devel, fabian, kraxel, 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).

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-12-16 23:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-16  5:40 [Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded james harvey
2018-12-16 18:48 ` Fabian Lesniak
2018-12-16 22:00   ` james harvey
2018-12-16 22:10     ` james harvey
2018-12-16 23:05       ` james harvey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).