From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796254583; b=Q3MISmDq9xJdd3Uf7xet85mXEIy1micdyfiu/0W6jBtVh3PCvxGYjiwyrxZoy9l/doda Ie+EcnInmgwZxEroFRIo5eITEQVJpg69FKHcqkTrBjYLu+iC4ny3q3UAa7EtrmDUCuWRk wFtmu9jeGxUaY8jAeczpF4ExiZ/4JAAuv7D+LVYMzAMO3QIoHVB5Seol+hs4uNcHgLrbM dJuFfNKEBtKA9JPc7MFK0A5H/FsFkOe7j2WIsXgm9rzLYdYVE/hhC9jldp7G5DU7KlpjR xIIWLsz0Skqtegh8PPCREjcyY0LL4fpBfb/sU+agHgW8Sm0AmO7b8h85pIUswQY/tOQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796254583; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From: X-Google-Original-From:Message-ID:Date:MIME-Version:User-Agent:To:Cc: Subject:Content-Language:Content-Type:Content-Transfer-Encoding; bh=4bqCNfCCmW9BGeYGv3XDx45EIkWjXpFrPbEiz4vl8WE=; b=ZyTbsBVImvXfzY4Uod6ZEIpzbQXNaynuWCOevzshqCcJP+LrKFYSlacrGcFH//8+n+ux VroEIyrMz+S7WZr3EinZloE1ce7rzCO7lqa213qa9xvwh/DFVtalZxZDw9pibHIwlWXTb 68GQTjiHArWlRkw2pA/2d1H/HZRC9koO0Sne7oU6AO2+e9CiGPFE+kKwENSifWAVb6P9A kGiRIDH5/YAMNEIM3B2Ob0MsOEK4f4J8umRtuPGfBSSyCL9aoKrFbLHMm5qZ+Seu1ztBF vfR2ax++z4tfaGCQhNCSdmtQfvRcleDaX5JitkwdnnPC4cWn2W35EiIYZb0ZxMTaenA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=BtaGHZ0f; arc=none smtp.remote-ip=209.85.160.172 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0FF3606A322 for ; Wed, 2 Dec 2026 23:36:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C0FF3606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=BtaGHZ0f Received: by mail-qt1-f172.google.com with SMTP id d75a77b69052e-55bd96affd2so4480411cf.1 for ; Wed, 02 Dec 2026 15:36:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796254582; x=1796859382; darn=vger.kernel.org; h=content-transfer-encoding:content-type:content-language:subject:cc :to:user-agent:mime-version:date:message-id:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=4bqCNfCCmW9BGeYGv3XDx45EIkWjXpFrPbEiz4vl8WE=; b=BtaGHZ0fUNs36id6Wl8f1DU0rDsJGFC4PHJKgogdICo+h9grGHqt95Gxm2m1QDr39v WPOQS6F9DlskkhrLh7lfbF7PknWySqKcKdz4YgsUhfkumrLVzx6ABG8CMmhJsc5ZHCVY qv909e6yoleHnoCNqIZebGk1XuoGcFNllLAx7X2gOdhyRmpbJl7JJLMkIfwIkXZqhVlk cRv2yechrsYKhOJnX4tNHeVOFo1ubIpRzyQimmSZ1Z7dRe5fLa0socJb0rQWEB4JK0dx tUSeeHqwE0ln7B6S6FPuK80zI2pRK/o/e+NNQMn/UrBRBQY830ZUG9xIY1gX6N8Q1LUR kW9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796254582; x=1796859382; h=content-transfer-encoding:content-type:content-language:subject:cc :to:user-agent:mime-version:date:message-id:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4bqCNfCCmW9BGeYGv3XDx45EIkWjXpFrPbEiz4vl8WE=; b=K8LcP27JQrNgghfXQ5HVSJMU/trbAZXLwkVb2eTkYkrPdevgNN1wmAUl110Fu6JqVK b2+MelxwHjuLyiOR7LPZWudi6Jt2XAE9gtAlcM9J2UAhuPybie9Al/4AGYnoZPA1vjcl fPRL/wjoTtVDPsaClJcvZ/fLk7myJ0PXOXR6eCj37hpw7EAAPYvapMX4DZtk5lh3Nhr3 ilZyYS/JoEUUvGOA3K6wJ9xB/9wG8IOqqzS7pALalTAY9xaGsh1x1sHIwQWKE+N/Y8Et 7bpHfXBeQ6MPqwygjtB6/AvzL0cIRHtDhKdBrc1MQny1PeDVYCLf4KSYyB1soH5aWyZT SBog== X-Gm-Message-State: APuU4Z8T63GZX/OxYmz+LyUCtsidTqFTXPezhjLQuGWzfxHBEzsRE0IT 0OgOU1UnuCfiInqj/yxcYpDYp7NC/wd1GHQttNGLolHeIyyLnU2mW06HvFpS X-Gm-Gg: AZFdTZdEm/CAdAlInkLMZHZR4+yd6nplfL1AqeEzUr2FUuK/RGPmtSGsFFZ6MH0udhM IwY3r3g73LfvWSJVESZbEmN+c8VPPEyqGGRYfEYBVfx1A95RYy7Ww9n9LeXywP+veF5QxOsc+UI tHiBtnT4C5wFEAY5NLEff83CZlcA7P5FEv1T9Zm76dRDXA5Yqlmn0pkQwCakRBo/qnzaPIOzKjb YwrpZB7/M7nlVs/CGFYjATai0doZm2/iZftLpmK/L3seXRfvo/aM11L+e/2m5TsrzVLRpVQN+KZ VaFpLRwgvEqKkdl8CO8YW9wdB3frMFyDBoMexUd0xKRaayoZnquYZKYIkZPvx6NMG6zmwbKz+E+ xqOi4XOhTk2ezUvHru0Mw6aS+VjM0QkSVdvgN8FEU+4CkXCx9/16sPvg5CKo0Kq4zBNjF1IJjpT c2ViFubUc6nRX3lBlRB0do69gEkiOE/2CojmsrQlkWHEJKaJFnYeyLgPgwr5Zw0bn15xEx6X/6M SJpgzH6JcEkn7OuQA2YCWxaUleKmzMq2+0ohAxrixthOa/2xHr+e3q1kQiRVBTIpLJX1Y7aG0L7 hYsKYXCvV8Q/Zlzp2lZOa+/AnboJEUKBOKa8jAtqML31v8yiqFWenIKC/uNupSxNFnQopsb/G7U = X-Received: by 2002:a05:622a:90a:b0:55d:bdbd:7da5 with SMTP id d75a77b69052e-55e281f7f7emr6600211cf.29.1796254581745; Wed, 02 Dec 2026 15:36:21 -0800 (PST) Received: from [192.168.0.105] (ool-44c69ba4.dyn.optonline.net. [68.198.155.164]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-55d7889f8absm342737551cf.27.2026.12.02.15.36.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 15:36:20 -0800 (PST) From: Michael Wangenstein X-Google-Original-From: Michael Wangenstein Message-ID: <00b0a41c-89a9-447a-bfd2-a66c8272ec8b@gmail.com> Date: Wed, 2 Dec 2026 18:36:19 -0500 X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com Subject: [BUG] xpad ZD Ultimate Legend (413d:2204) disconnects after last evdev close Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Dmitry and linux-input folks, I can reproduce a USB disconnect loop with a ZD Ultimate Legend 2.4 GHz receiver (413d:2204) in XInput mode on Arch Linux, kernel 7.3.6-arch1-2. Interface 00 binds to xpad. With the controller powered on and the receiver plugged in, the kernel sees the receiver disconnect after 4–5 seconds and enumerate again about 10 seconds later. Steam being open stops the loop. I tested the physical evdev joystick node with Steam closed and no other gamepad clients. These were two separate trials: - I opened the node read-only and read events for 45 seconds. The USB address stayed the same throughout. Six seconds after I closed the file descriptor, the kernel logged a USB disconnect. - I opened the same device read-only and left the descriptor open for 40 seconds without reading any events. It stayed connected. Four seconds after close, the receiver disappeared from USB again. The kernel logged “unable to receive magic message: -110” before a disconnect. While the receiver was present, its USB power/control was “on” and runtime_status was “active”. My current workaround is a user service that holds just this receiver’s evdev node open read-only. Does this look like a case for a device-specific xpad quirk? If a USB trace comparing the last close with the keep-open case would help, which part of the sequence would be most useful to capture? A related report for this model uses USB ID 045e:028e and describes missing wireless events. With my 413d:2204 receiver, events come through while the input device is open. https://github.com/paroj/xpad/issues/350 Thanks, Michael