From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.205.69.213 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795596295; b=FnKIlCVMnAKlveEFfX5KsZJ58iugVUuI8NKd8t4NIYWSRVnnNNZjNwP7g/8lBjlGmU3P oM4XGJPTbsFtWyS6kpN0S1GTcD8ELZqte3demLob8l4KPQ0nHkrBFms0wNKP+QD/qEpPF 50TxOYVBMN8P6Sdpuv0wt9zE+9iJe6rB1Kq1JFWlpVNc98vFwMCAdTyLvnwewLpoDg77A DZEIuaPM2wklPjWAxkYIWRDycNi5O9PaVUsQkTiEQd/8zWGncRRGDf9jAKH5h1JBnebVO cW50J8vSTCaDhRcBsVeasStn7VjEHjkRgtdWcSA/XCTYQOrhItfJswuYdGXJT1S7gQQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795596295; h=DMARC-Filter:Received:DKIM-Signature:Date:From:To:Cc:Message-ID: In-Reply-To:References:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding:Feedback-ID; bh=R96DXJsWBuRJFlPcP6o5E7C442A28/cuqXp8JkZ7KZI=; b=YyrxVy1P8WnGAQZE3K8nWAcQSa/8di9tsRotBpaZEUaRFb+wIlGdoSqhOSSkRfvi2W82 64EzQBuVYZCobCMpPg/aUjc2PVKOsPP3ekq5A3Z6PUJC9Xc7X6yuXVOU2ebRJxVDLRFbw aWvagW8mdYf/S1BPEX33grX27VXsGYc8aefRyLjXJZikvNkAmEfVpWI6XHf76Tu22Lvh8 OBNXmoT6M65A7Gv7jscpg9CyOHYvTO2cZGOekhCZtIrZSwA5awpJ41k0BWvnzAML6QxVF zkJkW8auUKw26X5Qp2Lm6Z0/NZ2hzf00PKn0aRHsL9JPYldoKRBuv4YQQZjN90unv0Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=tutamail.com; spf=pass smtp.mailfrom=tutamail.com; dkim=pass header.d=tutamail.com header.i=@tutamail.com header.a=rsa-sha256 header.s=s1 header.b="Vp//PgOr"; arc=none smtp.remote-ip=185.205.69.213 Received: from mail.w13.tutanota.de (mail.w13.tutanota.de [185.205.69.213]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4FA48606A31E for ; Wed, 25 Nov 2026 08:44:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4FA48606A31E Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=tutamail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tutamail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=tutamail.com header.i=@tutamail.com header.a=rsa-sha256 header.s=s1 header.b=Vp//PgOr Received: from tutadb.w10.tutanota.de (w10.api.tuta.com [IPv6:fd:ac::d:10]) by mail.w13.tutanota.de (Postfix) with ESMTP id AE9BB1ABA4115 for ; Wed, 25 Nov 2026 09:44:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1795596293; s=s1; d=tutamail.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=R96DXJsWBuRJFlPcP6o5E7C442A28/cuqXp8JkZ7KZI=; b=Vp//PgOr+8t/wWcDjMCqxr9FvarZxcIG/CqTG2kJEkPi23A2S0gQIkdXFzkmEYvT l5wcTcOB41n4fxy/jr2khKo1XtDVPjexsjz4ARSeQU5+1/EB7lFjtw0lIOZ5KijlxHI Q/JuMZmGfDCRA8sPkKEWiJPD69Bwkuyjb40u8NOl8i5+DqJZapoUymDYXZTED1gYEal RgQ76Ab/+/CIn8mPGAs5qPTEKa4eAqTvitndyArFUi156xwdsvJq0dMcCApSUSIDsL2 ePBhpwb9QnP0Kswpx+ojQGDfwfVjmJI5h74pRcoWcpg7UiHzviPmqKRKpJKtjRmLDXS ucIcKhUrdg== Date: Wed, 25 Nov 2026 09:44:53 +0100 (CET) From: willowswaving@tutamail.com To: Linux Input Cc: Jikos , Bentiss Message-ID: In-Reply-To: References: Subject: Re: FWD: [RFC] HID: uclogic: Add support for Xencelabs Pen Display (28bd:520d) and request for switch-to-vendor-mode sequence 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Feedback-ID: 015fe4ab774a31809b4b05b8c610ead356bcc03e5c866e6007fd3e8866c7c0a22bb5af78b76e2b2d682867fe72df3c2e2eae226386f9c0a8fc7fe2cb63b896dd32:TurnOnPrivacy!:tutamail Update: The manufacturer reflashed the firmware. The device PID is now chan= ged to=C2=A028bd:520a. The hardware is working and is sending raw HID repor= ts without needing any magic-byte switching (see attached hexdump). It seem= s we just need to add the 520a PID to hid-uclogic and provide the correct r= eport descriptor mapping. 2026/11/7 20:03 =E6=9D=A5=E8=87=AA willowswaving@tutamail.com: > > >> Subject: Re: [RFC] HID: uclogic: Add support for Xencelabs Pen Display (= 28bd:520d) and request for switch-to-vendor-mode sequence >> >> Hello, >> >> >> I am writing to send a friendly ping regarding the support for the Xence= labs Pen Display (28bd:520d). I understand you are very busy, and I just wa= nted to check if there is any update or if there is any additional informat= ion I can provide to help move this forward. >> >> >> The device is still available for testing. I would be happy to try any p= atches or collect further USB traces if needed. >> >> >> Thank you for your time. >> >> >> Best regards, >> >> Willows >> >> 2026/10/18 17:13 =E6=9D=A5=E8=87=AA willowswaving@tutamail.com: >> >>>> Hello, >>>> >>>> I would like to report a missing device support in the hid-uclogic >>>> driver, and ask for guidance on how to properly add it. >>>> >>>> Device information >>>> ------------------ >>>> =C2=A0 Name:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Xencelabs Pen Display >>>> =C2=A0 Vendor ID:=C2=A0 0x28bd (Hanvon Ugee / XP-Pen) >>>> =C2=A0 Product ID: 0x520d >>>> =C2=A0 Firmware:=C2=A0=C2=A0 20250121(230322) >>>> =C2=A0 Model:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 UG902_LPH2412_P10 >>>> >>>> Problem >>>> ------- >>>> The device is not handled by hid-uclogic. With hid-generic, the device >>>> is registered only as a mouse and no pen events (ABS_X, ABS_Y, >>>> ABS_PRESSURE, ABS_TILT) are reported to userspace. >>>> >>>> When I add the device ID to hid-uclogic-core.c, the driver binds, but >>>> the resulting interface is still a mouse. evtest shows no pen events. >>>> This suggests the device is still in "firmware mode" and never gets >>>> switched into the vendor reporting mode that exposes the pen interface= . >>>> >>>> Key observations from testing >>>> ----------------------------- >>>> 1. lsusb reports only one interface (bNumInterfaces =3D 1, interface 0= , >>>> =C2=A0=C2=A0 HID class, mouse). It has only two interrupt endpoints: >>>> =C2=A0=C2=A0=C2=A0=C2=A0 - 0x81 (IN, 64 bytes) >>>> =C2=A0=C2=A0=C2=A0=C2=A0 - 0x01 (OUT, 64 bytes) >>>> =C2=A0=C2=A0 Note: There is NO endpoint 0x03, which is the endpoint us= ed by >>>> =C2=A0=C2=A0 uclogic_ugee_v2_probe_endpoint in hid-uclogic-params.c. A= ny attempt >>>> =C2=A0=C2=A0 to send magic bytes to 0x03 fails with "Invalid endpoint = address". >>>> >>>> 2. Reading the string descriptor at index 0x64 under LANGID 0x0409 >>>> =C2=A0=C2=A0 successfully returns a 14-byte binary blob (13 bytes of c= ontent). >>>> =C2=A0=C2=A0 Raw HEX: 0e03289a78e60300ff1fd8130100 >>>> =C2=A0=C2=A0 (Other indexes return normal strings like the serial numb= er and >>>> =C2=A0=C2=A0 "hanvon ugee Tech"). Reading index 0x64 does NOT switch t= he device. >>>> >>>> 3. Sending the UGEE v2 magic bytes (02 b0 04 00 00 00 00 00 00 00) >>>> =C2=A0=C2=A0 via SET_REPORT (Feature 0x02, Output 0x02, Feature 0x03) = returns >>>> =C2=A0=C2=A0 success, but the device never re-enumerates. >>>> >>>> 4. A vendor-specific control request (bRequest 0xb0, wValue 0x0402) >>>> =C2=A0=C2=A0 times out. >>>> >>>> 5. Note: Sending unexpected control transfers to this device can cause >>>> =C2=A0=C2=A0 the USB HID interface to hang. It requires a complete pow= er cycle >>>> =C2=A0=C2=A0 (unplugging USB and power) to recover. >>>> >>>> Request >>>> ------- >>>> Could someone with access to the Xencelabs USB documentation, or >>>> someone who has reverse-engineered the 520d, share the correct >>>> sequence to switch this device into vendor mode? >>>> >>>> Specifically: >>>> =C2=A0 - Is the 0x64 string descriptor read the right trigger, or is a >>>> =C2=A0=C2=A0=C2=A0 specific control transfer required? >>>> =C2=A0 - If a control transfer is needed, what is the correct bRequest= , >>>> =C2=A0=C2=A0=C2=A0 wValue, wIndex, and endpoint? >>>> =C2=A0 - Are there known quirks for this device? >>>> >>>> If a capture from the Windows driver is needed, I can provide one. >>>> If you have any hints, I will be happy to prepare a proper patch >>>> with hid-uclogic-params.c changes and re-test. >>>> >>>> I am attaching the text files with: >>>> =C2=A0 - lsusb -v output for 28bd:520d >>>> =C2=A0 - the raw HID report descriptor (usbhid-dump) >>>> =C2=A0 - the string descriptor enumeration (showing 0x64) >>>> =C2=A0 - dmesg logs showing the binding behavior. >>>> >>>> Thank you very much for your time. >>>> >>>> Best regards, >>>> Willows >>>> > >