From owner-freebsd-virtualization@freebsd.org Tue Feb 18 07:06:55 2020 Return-Path: Delivered-To: freebsd-virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BAF6F25708F for ; Tue, 18 Feb 2020 07:06:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48MBjq4YMxz4b37 for ; Tue, 18 Feb 2020 07:06:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9A03725708E; Tue, 18 Feb 2020 07:06:55 +0000 (UTC) Delivered-To: virtualization@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 99BB025708D for ; Tue, 18 Feb 2020 07:06:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48MBjq3Bm1z4b2q for ; Tue, 18 Feb 2020 07:06:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 67F1A1C387 for ; Tue, 18 Feb 2020 07:06:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01I76tTJ012941 for ; Tue, 18 Feb 2020 07:06:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01I76teh012940 for virtualization@FreeBSD.org; Tue, 18 Feb 2020 07:06:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 244079] QEMU / KVM Q35 USB Tablet (EVTouch) input device not captured by evdev Date: Tue, 18 Feb 2020 07:06:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: drum@graphica.com.au X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: virtualization@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Feb 2020 07:06:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244079 --- Comment #2 from John Hartley --- Hi Vladimir, thank you very much for response. I have done as suggested: <> # dmesg | grep USB uhci0: port 0xb0a0-0xb0bf irq 16 at de= vice 29.0 on pci0 uhci1: port 0xb080-0xb09f irq 17 at de= vice 29.1 on pci0 uhci2: port 0xb060-0xb07f irq 18 at de= vice 29.2 on pci0 ehci0: mem 0xc8b83000-0xc8b83fff i= rq 19 at device 29.7 on pci0 usbus0: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 usbus1: 12Mbps Full Speed USB v1.0 ugen3.2: at usbus3 ukbd0: on usbus3 ugen3.3: at usbus3 ugen3.4: at usbus3 utouch0: on usbus3 ums0: on usbus3 <> <> # python3.7 -m evdev.evtest ID Device Name Phys=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 Uniq ---------------------------------------------------------------------------= --------------------------------------------------------------- 0 /dev/input/event0 System keyboard multiplexer kbdmux0=20=20= =20=20=20=20=20=20=20=20=20=20 1 /dev/input/event1 System mouse sysmouse=20=20= =20=20=20=20=20=20=20=20=20 2 /dev/input/event2 AT keyboard atkbd0=20=20= =20=20=20=20=20=20=20=20=20=20=20 3 /dev/input/event3 IntelliMouse Explorer psm0=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 4 /dev/input/event4 QEMU QEMU USB Keyboard, class 0/0, rev 2.00/0.00, = addr 2 ukbd0 68284-0000:00:1d.7-1 5 /dev/input/event5 QEMU QEMU USB Tablet, class 0/0, rev 2.00/0.00, ad= dr 4 utouch0 28754-0000:00:1d.7-5 6 /dev/input/event6 QEMU QEMU USB Mouse, class 0/0, rev 2.00/0.00, add= r 3 ums0 89126-0000:00:1d.7-4 Select devices [0-6]: 5 Listening for events (press ctrl-c to exit) ... time 1582007519.619301 --------- SYN_DROPPED -------- time 1582007519.619301 --------- SYN_REPORT -------- time 1582007519.638179 type 3 (EV_ABS), code 0 (ABS_X), value 22015 time 1582007519.638179 type 3 (EV_ABS), code 1 (ABS_Y), value 26495 time 1582007519.638179 --------- SYN_REPORT -------- time 1582007519.642895 type 3 (EV_ABS), code 0 (ABS_X), value 21663 time 1582007519.642895 type 3 (EV_ABS), code 1 (ABS_Y), value 27348 time 1582007519.642895 --------- SYN_REPORT -------- time 1582007519.65342 type 3 (EV_ABS), code 0 (ABS_X), value 21215 time 1582007519.65342 type 3 (EV_ABS), code 1 (ABS_Y), value 28585 time 1582007519.65342 --------- SYN_REPORT -------- time 1582007519.66421 type 3 (EV_ABS), code 0 (ABS_X), value 20863 time 1582007519.66421 type 3 (EV_ABS), code 1 (ABS_Y), value 29823 time 1582007519.66421 --------- SYN_REPORT -------- time 1582007519.677026 type 3 (EV_ABS), code 0 (ABS_X), value 20607 time 1582007519.677026 type 3 (EV_ABS), code 1 (ABS_Y), value 31060 time 1582007519.677026 --------- SYN_REPORT -------- time 1582007519.686741 type 3 (EV_ABS), code 0 (ABS_X), value 20415 time 1582007519.686741 type 3 (EV_ABS), code 1 (ABS_Y), value 32297 time 1582007519.686741 --------- SYN_REPORT -------- time 1582007536.383169 type 3 (EV_ABS), code 0 (ABS_X), value 12031 time 1582007536.383169 type 3 (EV_ABS), code 1 (ABS_Y), value 17108 time 1582007536.383169 --------- SYN_REPORT -------- time 1582007536.449228 type 3 (EV_ABS), code 0 (ABS_X), value 12063 time 1582007536.449228 --------- SYN_REPORT -------- time 1582007536.744538 type 3 (EV_ABS), code 1 (ABS_Y), value 17066 time 1582007536.744538 --------- SYN_REPORT -------- time 1582007536.754257 type 3 (EV_ABS), code 0 (ABS_X), value 12095 time 1582007536.754257 type 3 (EV_ABS), code 1 (ABS_Y), value 17023 time 1582007536.754257 --------- SYN_REPORT -------- time 1582007536.765432 type 3 (EV_ABS), code 0 (ABS_X), value 12127 time 1582007536.765432 type 3 (EV_ABS), code 1 (ABS_Y), value 16980 time 1582007536.765432 --------- SYN_REPORT -------- time 1582007536.779227 type 3 (EV_ABS), code 0 (ABS_X), value 12159 time 1582007536.779227 type 3 (EV_ABS), code 1 (ABS_Y), value 16938 time 1582007536.779227 --------- SYN_REPORT -------- time 1582007536.786433 type 3 (EV_ABS), code 0 (ABS_X), value 12223 time 1582007536.786433 type 3 (EV_ABS), code 1 (ABS_Y), value 16895 time 1582007536.786433 --------- SYN_REPORT -------- time 1582007536.805982 type 3 (EV_ABS), code 0 (ABS_X), value 12255 time 1582007536.805982 type 3 (EV_ABS), code 1 (ABS_Y), value 16852 time 1582007536.805982 --------- SYN_REPORT -------- time 1582007536.809289 type 3 (EV_ABS), code 0 (ABS_X), value 12319 time 1582007536.809289 type 3 (EV_ABS), code 1 (ABS_Y), value 16810 time 1582007536.809289 --------- SYN_REPORT -------- time 1582007536.822264 type 3 (EV_ABS), code 0 (ABS_X), value 12351 time 1582007536.822264 type 3 (EV_ABS), code 1 (ABS_Y), value 16767 time 1582007536.822264 --------- SYN_REPORT -------- time 1582007536.831691 type 3 (EV_ABS), code 0 (ABS_X), value 12383 time 1582007536.831691 type 3 (EV_ABS), code 1 (ABS_Y), value 16724 time 1582007536.831691 --------- SYN_REPORT -------- time 1582007536.854654 type 3 (EV_ABS), code 0 (ABS_X), value 12415 time 1582007536.854654 type 3 (EV_ABS), code 1 (ABS_Y), value 16682 time 1582007536.854654 --------- SYN_REPORT -------- time 1582007537.103654 type 1 (EV_KEY), code 272 (['BTN_LEFT', 'BTN_MOUSE'= ]), value 1 time 1582007537.103654 --------- SYN_REPORT -------- time 1582007537.236717 type 3 (EV_ABS), code 0 (ABS_X), value 12479 time 1582007537.236717 --------- SYN_REPORT -------- time 1582007537.2603 type 3 (EV_ABS), code 0 (ABS_X), value 12511 time 1582007537.2603 --------- SYN_REPORT -------- time 1582007537.279146 type 1 (EV_KEY), code 272 (['BTN_LEFT', 'BTN_MOUSE'= ]), value 0 time 1582007537.279146 --------- SYN_REPORT -------- time 1582007537.280155 type 3 (EV_ABS), code 0 (ABS_X), value 12543 time 1582007537.280155 type 3 (EV_ABS), code 1 (ABS_Y), value 16724 time 1582007537.280155 --------- SYN_REPORT -------- time 1582007537.282278 type 3 (EV_ABS), code 0 (ABS_X), value 12607 time 1582007537.282278 --------- SYN_REPORT -------- time 1582007537.292983 type 3 (EV_ABS), code 0 (ABS_X), value 12671 time 1582007537.292983 type 3 (EV_ABS), code 1 (ABS_Y), value 16767 time 1582007537.292983 --------- SYN_REPORT -------- time 1582007537.313748 type 3 (EV_ABS), code 0 (ABS_X), value 12735 time 1582007537.313748 --------- SYN_REPORT -------- time 1582007537.315358 type 3 (EV_ABS), code 0 (ABS_X), value 12895 ... ... ... time 1582007545.415462 --------- SYN_REPORT -------- <> So I am now getting Absolute X/Y (which is what I want) but when I do startx the mouse is not working correctly. NOTE: I have following enabled via /etc/rc.conf: dbus_enable=3D"YES" All other mouse/pointer related items are commented out (ie disabled): #moused_enable=3D"YES" #hald_enable=3D"YES" The xinput indicates that the evdev driver has not loaded and Xorg is defaulting to mouse_drv: <> # cat xinput-01.txt=20 =E2=8E=A1 Virtual core pointer id=3D2 [master p= ointer (3)] =E2=8E=9C =E2=86=B3 Virtual core XTEST pointer id=3D4 [= slave pointer (2)] =E2=8E=9C =E2=86=B3 sysmouse id=3D7 [= slave pointer (2)] =E2=8E=9C =E2=86=B3 Mouse id=3D8 [= slave pointer (2)] =E2=8E=A3 Virtual core keyboard id=3D3 [master k= eyboard (2)] =E2=86=B3 Virtual core XTEST keyboard id=3D5 [slave k= eyboard (3)] =E2=86=B3 kbdmux id=3D6 [slave k= eyboard (3)] <> So issue is now how to get evdev input device connected to xorg... can you provide any tip / link on this ? Thank you. Cheers, John Hartley. --=20 You are receiving this mail because: You are the assignee for the bug.=