[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded
From: |
james harvey |
Subject: |
[Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded |
Date: |
Sun, 16 Dec 2018 00:40:58 -0500 |
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/address@hidden/msg415246.html
Patch v2 from Nov 28, 2016:
https://www.mail-archive.com/address@hidden/msg415690.html
Patch v3 from Dec 6, 2016:
https://www.mail-archive.com/address@hidden/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).
- [Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded,
james harvey <=