From owner-freebsd-usb@freebsd.org Thu Oct 29 15:27:39 2020 Return-Path: Delivered-To: freebsd-usb@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 A6F26454CDD for ; Thu, 29 Oct 2020 15:27:39 +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 4CMTpM3ypNz3dmH for ; Thu, 29 Oct 2020 15:27:39 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8665A454C43; Thu, 29 Oct 2020 15:27:39 +0000 (UTC) Delivered-To: usb@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 86339454F91 for ; Thu, 29 Oct 2020 15:27:39 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4CMTpM35jJz3dmG for ; Thu, 29 Oct 2020 15:27:39 +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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4DD0E2F93E for ; Thu, 29 Oct 2020 15:27:39 +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 09TFRdU6097310 for ; Thu, 29 Oct 2020 15:27:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 09TFRdo0097309 for usb@FreeBSD.org; Thu, 29 Oct 2020 15:27:39 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: usb@FreeBSD.org Subject: [Bug 250724] USB gamepads are tagged as a mouse by udev Date: Thu, 29 Oct 2020 15:27:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: doctorwhoguy@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Oct 2020 15:27:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250724 Bug ID: 250724 Summary: USB gamepads are tagged as a mouse by udev Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: doctorwhoguy@gmail.com I have tested several USB gamecontrollers with FreeBSD, and there is someth= ing apparently wrong with either evdev or udev because the USB game controllers= are being detected as mice instead of joysticks. I have tried both webcamd and iichid to get them working with FreeBSD. For this example, I'll use my Logi= tech Dual Action Controller. If I plug it in, dmesg will show the device detected and attach it as a uhid device: uhid0 on uhub2 uhid0: on usbus3 If I load the iichid kernel module and plug in the controller, dmesg will s= how the following output showing that it has been attached as an hid device: ugen3.3: at usbus3 usbhid0 on uhub2 usbhid0: = on usbus3 hidbus0: on usbhid0 hgame0: on hidbus0 hidraw0: on hidbus0 And /var/log/Xorg.0.log will show the following output: [ 1145.679] (II) config/udev: Adding input device Logitech Logitech Dual Action Joystick (/dev/input/event6) [ 1145.679] (**) Logitech Logitech Dual Action Joystick: Applying InputCla= ss "evdev pointer catchall" [ 1145.679] (**) Logitech Logitech Dual Action Joystick: Applying InputCla= ss "libinput pointer catchall" [ 1145.679] (II) Using input driver 'libinput' for 'Logitech Logitech Dual Action Joystick' [ 1145.679] (**) Logitech Logitech Dual Action Joystick: always reports co= re events [ 1145.679] (**) Option "Device" "/dev/input/event6" [ 1145.679] (**) Option "_source" "server/udev" [ 1145.682] (II) event6 - Logitech Logitech Dual Action Joystick: is tagg= ed by udev as: Mouse [ 1145.683] (II) event6 - Logitech Logitech Dual Action Joystick: device = is a pointer [ 1145.684] (II) event6 - Logitech Logitech Dual Action Joystick: device removed [ 1145.684] (**) Option "config_info" "udev:/dev/input/event6" [ 1145.685] (II) XINPUT: Adding extended input device "Logitech Logitech D= ual Action Joystick" (type: MOUSE, id 12) [ 1145.691] (**) Option "AccelerationScheme" "none" [ 1145.695] (**) Logitech Logitech Dual Action Joystick: (accel) selected scheme none/0 [ 1145.695] (**) Logitech Logitech Dual Action Joystick: (accel) accelerat= ion factor: 2.000 [ 1145.695] (**) Logitech Logitech Dual Action Joystick: (accel) accelerat= ion threshold: 4 [ 1145.698] (II) event6 - Logitech Logitech Dual Action Joystick: is tagg= ed by udev as: Mouse [ 1145.699] (II) event6 - Logitech Logitech Dual Action Joystick: device = is a pointer If I unload iichid and run "webcamd -N Logitech-Logitech-Dual-Action -S unk= nown -M 0", it will also show the same output in Xorg.0.log. Udev is capable of tagging devices specifically as joysticks, but USB game controllers are bei= ng tagged as mice instead. As a result, the only functionality from the contro= ller is that the left joystick moves the mouse cursor. So I don't know if FreeBS= D's evdev support lacks support for joysticks or if maybe there's just a problem with correctly detecting these devices and giving them the proper tag. --=20 You are receiving this mail because: You are the assignee for the bug.=