Re: [Qemu-devel] hw/input/ps2.c : BTN_SIDE and BTN_EXTRA not forwarded

2018-12-16 Thread Fabian Lesniak
Probably the PS/2 mouse is not used at all because the HID Tablet takes precedence. By entering "info mice" on the monitor console you can see which mouse is currently used. If you disable or uninstall the HID Tablet, the PS/2 mouse should take over. "IMEX" is short for Intelli Mouse Explorer.

[Qemu-devel] [Bug 1653384] Re: Assertion failed with USB pass through with XHCI controller

2017-02-04 Thread Fabian Lesniak
** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1653384 Title: Assertion failed with USB pass through with XHCI controller Status in QEMU:

[Qemu-devel] [Bug 1653384] Re: Assertion failed with USB pass through with XHCI controller

2017-02-04 Thread Fabian Lesniak
These patches solve my problems. All three devices I tested using xhci work correctly now. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1653384 Title: Assertion failed with USB pass through with

[Qemu-devel] [PATCH] ps2: fix mouse mappings for right/middle button

2017-02-04 Thread Fabian Lesniak
Commit 8b0caab0 ("ps2: add support for mice with extra/side buttons") accidentally swapped right and middle mouse buttons. This commit corrects the mapping as expected by the ps2 controller. Signed-off-by: Fabian Lesniak <fab...@lesniak-it.de> --- include/hw/input/ps2.h | 4 ++--

[Qemu-devel] [Bug 1653384] Re: Assertion failed with USB pass through with XHCI controller

2017-01-12 Thread Fabian Lesniak
This patch fixes passing through a keyboard for me. I tried a Logitech K120 (046d:c31c). After that, I tried my real-world use case being a standard USB sound card (046d:0a4d). This does not crash the machine anymore, but linux reports: xhci_hcd :00:03.0: ERROR Transfer event TRB DMA ptr not

[Qemu-devel] [Bug 1653384] Re: Assertion failed with USB pass through with XHCI controller

2017-01-11 Thread Fabian Lesniak
I examined xhci_kick_epctx (frame 6) and looked into xfer and xfer->packet, maybe this helps: (gdb) bt #0 0x7fffdccb304f in raise () at /usr/lib/libc.so.6 #1 0x7fffdccb447a in abort () at /usr/lib/libc.so.6 #2 0x7fffdccabea7 in __assert_fail_base () at /usr/lib/libc.so.6 #3

[Qemu-devel] [Bug 1653384] Re: Assertion failed with USB pass through with XHCI controller

2017-01-11 Thread Fabian Lesniak
Hi, using qemu commit f634151b02ce5c80605383894f1f63f2c12e0033 configured with --python=/usr/bin/python2 --target-list=x86_64-softmmu --audio-drv-list="oss alsa sdl pa" --enable-debug running with -m 1024 -drive if=pflash,file=ovmf-arch.bin,format=raw -drive file=arch.raw,format=raw,if=virtio

[Qemu-devel] [Bug 1653384] Re: Assertion failed with USB pass through with XHCI controller

2017-01-10 Thread Fabian Lesniak
This behaviour was introduced by commit: 94b037f2a451b3dc855f9f2c346e5049a361bd55 xhci: use linked list for transfers However, QEMU does not crash yet, but linux' xhci_hcd reports errors like "ERROR Transfer event TRB DMA...". The following commit 5612564ea9cf5b9636438a1b58ae9a2ab6ca16ae xhci:

Re: [Qemu-devel] [PATCH v3 0/3] add support for mice with extra/side buttons

2017-01-09 Thread Fabian Lesniak
Ping. I forgot to CC Gerd. http://patchwork.ozlabs.org/patch/703302/ http://patchwork.ozlabs.org/patch/703304/ http://patchwork.ozlabs.org/patch/703303/ Am 06.12.2016 um 20:00 schrieb Fabian Lesniak: This patch implements event handling for 5-button ps/2 mice and appropriate event

[Qemu-devel] [PATCH v3 3/3] ui: add support for mice with extra/side buttons

2016-12-06 Thread Fabian Lesniak
Adds input event generation for BTN_SIDE and BTN_EXTRA events to gtk and input-linux methods. Signed-off-by: Fabian Lesniak <fab...@lesniak-it.de> --- ui/gtk.c | 4 ui/input-linux.c | 6 ++ 2 files changed, 10 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index e

[Qemu-devel] [PATCH v3 2/3] ps2: add support for mice with extra/side buttons

2016-12-06 Thread Fabian Lesniak
This enables the ps2 controller to process mouse events for buttons 4 and 5. Additionally, distinct definitions for the ps2 mouse button state are introduced. The legacy definitions from console.h are not used anymore. Signed-off-by: Fabian Lesniak <fab...@lesniak-it.de> --- hw/input

[Qemu-devel] [PATCH v3 0/3] add support for mice with extra/side buttons

2016-12-06 Thread Fabian Lesniak
comment on the location of the new definitions if inappropriate. The changes to qapi were improved following Eric's hints. Fabian Lesniak (3): qapi: add support for mice with extra/side buttons ps2: add support for mice with extra/side buttons ui: add support for mice with extra/side buttons

[Qemu-devel] [PATCH v3 1/3] qapi: add support for mice with extra/side buttons

2016-12-06 Thread Fabian Lesniak
Adds "side" and "extra" values to enum InputButton. The naming was borrowed from evdev since it is more descriptive than "button4" and "button5". Signed-off-by: Fabian Lesniak <fab...@lesniak-it.de> --- qapi-schema.json | 7 ++- 1 file chang

[Qemu-devel] [PATCH v2] ps2: add support for mice with extra/side buttons

2016-11-28 Thread Fabian Lesniak
events of the extra buttons are ignored. For example on a Windows guest one needs to manually select the "Microsoft PS/2 Mouse" driver. Signed-off-by: Fabian Lesniak <fab...@lesniak-it.de> --- hw/input/ps2.c | 6 ++ qapi-schema.json | 7 ++- ui/gtk.c | 4 ui/i

[Qemu-devel] [PATCH] ps2: add support for mice with extra/side buttons

2016-11-24 Thread Fabian Lesniak
events of the extra buttons are ignored. For example on a Windows guest one needs to manually select the "Microsoft PS/2 Mouse" driver. Signed-off-by: Fabian Lesniak <fab...@lesniak-it.de> --- hw/input/ps2.c | 6 ++ qapi-schema.json | 2 +- ui/gtk.c | 4 ui/i