-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XP-Pen Deco LW support tracking issue #635
Comments
Iterestingly windows driver seems to send a similar packet too: Ok, so while using a BT dongle it first sends packets that look like this: While plugged in by USB it sends this: So that fifth byte indicates whether the tablet is plugged in or not. This fourth one is probably battery status or something stupid like that. With wireshark i was able to see that this packet is being sent constanty, at 5 second intervals. I can't seem to sniff traffic that xp-pen proprietary driver for linux does, sadly, usbhid-dump says that device is unavailable, and i don't have a hardware debugger. |
Hi! Indeed, that package is the battery status of the tablet. As you mentioned, the 4rd byte is the battery percentage and the 5th byte is the battery status (charging/discharging). I'm adding support for the Deco SW and I plan to have it finished for 6.1. What it is not expected is your tablet to be handled in 6.0-rc5 though. Do you mind sharing the output of I'd need to know you tablet's vendor and product IDs. 6.0-rc5 should include support for the Deco L and the Deco S, but not for the wireless versions of the tablets... Unless they reused the same IDs (sigh). |
Yeah... They have reused same IDs, probably should have noted from the beginning. SPOILER: Output of the lsusb
|
Damn, that the same ID of the Deco L! That's going to make it really difficult to differentiate between both tablets. Since you were using WireShark, could you share a recording of the tablet connection, please? There is no need to press any button or use the pen, just connecting the tablet to a usb port. The driver gets a string descriptor from the tablet containing useful information like the number of buttons, resolution, etc I didn't manage to find a byte indicating whether the tablet has battery or not, but let's see if we can find it... |
Ok here are the bt dump plaintext data export |
Thanks for the recordings @kanashimia , they are really useful. The packet that I use to get the tablet features seems to be identical in the Deco L and Deco LW... So it won't help us. I'll need to find a different way to detect whether the tablet supports battery reporting or not. Thankfully, I'm working on support for the Deco SW and MW: So I'll try to find a method that works for the 3 tablets... I'll ping you when I made some progress. |
Hi again @kanashimia, I've working on this and I have the initial version of the patches almost ready. However, I wonder if you could share the output of On the Deco L the output is:
The relevant information is the "version" field. I'm trying to see if it is different between the Deco L and the Deco LW to add or not battery reporting. Thanks! |
Hello, it seems version ID is the same. output of libinput record
output of libinput record when connected through bluetooth dongle
You can also see that udev properties aren't set correctly for the pad. Also i found two packets when tablet is powered off and on while dongle is connected:
After doing such power cycle tablet doesn't work. |
Hi @kanashimia Thanks for the information! I generated a bundle with the required patches to support the Deco LW: digimend-kernel-drivers.zip The source code contains the changes described in this comment plus a change on top to support the Deco LW battery reporting. The zip file contains the git history, just in case you want to see what's going on. Hopefully, on tablet connection, you should be able to see its battery level and the annoying pointer jumps should be gone. Check the comment for install/uninstall instructions.
Thanks for the heads up, I didn't test this case on my Deco Pro SW, but I'll test it and see if I can fix it. I'll post here as soon as I make some progress on device reconnection. |
Hello @JoseExposito. So i've tested your changes and now cursor doesen't jump. Battery reporting still needs work.
It should show
On the other hand i've found that upon connecting a tablet
Notice the diff --git a/hid-uclogic-params.c b/hid-uclogic-params.c
index 49eb134..c655929 100644
--- a/hid-uclogic-params.c
+++ b/hid-uclogic-params.c
@@ -1245,6 +1245,7 @@ static int uclogic_params_ugee_v2_init_frame_mouse(struct uclogic_params *p)
static bool uclogic_params_ugee_v2_has_battery(struct hid_device *hdev)
{
struct uclogic_drvdata *drvdata = hid_get_drvdata(hdev);
+ struct usb_device *udev = hid_to_usb_dev(hdev);
/* The XP-PEN Deco LW vendor, product and version are identical to the
* Deco L. The only difference reported by their firmware is the device
@@ -1253,11 +1254,9 @@ static bool uclogic_params_ugee_v2_has_battery(struct hid_device *hdev)
*/
if (hdev->vendor == USB_VENDOR_ID_UGEE &&
hdev->product == USB_DEVICE_ID_UGEE_XPPEN_TABLET_DECO_L) {
- const char *dongle_name = "Hanvon Ugee Deco LW";
- const char *usb_name = "Hanvon Ugee Technology Co.,Ltd Deco LW";
+ const char *product_name = "Deco LW";
- if (strncmp(hdev->name, dongle_name, strlen(dongle_name)) == 0 ||
- strncmp(hdev->name, usb_name, strlen(usb_name)) == 0)
+ if (strncmp(udev->product, product_name, strlen(product_name)) == 0)
return true;
}
Also notice Another question left is how to make this work with bluez. |
Hi! Thanks a lot for testing it, I'm glad the battery percentage reporting is working.
Yes, my understanding is that charging status is not supported by hid-input yet. The code that should update the battery status is here: As you can see, it is set to either unknown or discharging:
The HID descriptor I provided for the Deco LW provides information about the battery status, but the pieces to handle such information are not there just yet:
I could try to implement it in a different change set, but it's always difficult to change code in the core... You can break a lot of devices that you can't even test.
Thanks! I'll update my patch to use your code.
That's expected. By default, the tablet exposes many interfaces, but most of them need to be disabled. The driver prints that message, but it doesn't imply that something failed.
Yes, I think that Bluetooth would require a fair amount of work. The device doesn't even show up in my Bluetooth settings (probably a user space problem?). You'd need help from someone with more experience dealing with Bluetooth than me. |
Hi again @kanashimia I had some time to look into this:
My tablet does something similar. When the dongle is connected and the tablet's switch is set to off, I see the Once the tablet's switch is set to on, I see the
EDIT: I tried again and the mouse works, but the pen and pad don't... Looking into it Oh! And an important question. Since you are helping so much testing the patches, would you like me to add your name and email in a Tested-by tag in the patches? I'd need your name and an email address 😄 |
Thanks a lot, I added your email to the patches 😄 The changes to handle reconnection are a bit more complicated than I'd like, so I think I'm going to submit them in a separate series because they'd be easier to review and because, even though it is a bug, I think is better to reconnect the USB dongle from time to time than having your pointer jumping around. So, for the first batch of patches, I'll summit this: Just in case you want/can test them. I'll test them for a few more days and submit them once the merge window is closed. In my ToDo list now I have the reconnection issues and the battery charging/discharging issue ;) |
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by their firmware is the product name. Add a quirk to support battery reporting on the wireless version. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by their firmware is the product name. Add a quirk to support battery reporting on the wireless version. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by their firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Hi! I just emailed the patch to add support for the Deco LW. I cc'ed you so you know the status of the code, follow or participate in the conversation and also compile/use it. |
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by their firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com> --- v1 -> v2: https://lore.kernel.org/linux-input/20221028081656.GA19766@elementary/T/ - Barnabás Pőcze: Use strstarts() instead of a custom implementation
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Signed-off-by: José Expósito <jose.exposito89@gmail.com>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Hi again @kanashimia, I just finished the patches to support reconnection. I plan to send them to the upstream kernel on January 2023, when the development cycle of Linux 6.2 starts. Here is the new driver: digimend-kernel-drivers.zip Please uninstall the previous version and install this one. This new version handles reconnections when the USB dongle use used. Meaning that, if you turn off and on you tablet using the switch placed under the frame, or connect the USB dongle with the tablet switched on, it should reconnect automatically without issues. I don't know if your tablet can be connected by Bluetooth. If so let me know and I'll add support for Bluetooth as well. Let me know if you find any issues with the tablet not reconnecting, please. Thanks!! |
At once hello @JoseExposito I tested you code and it seems to work, but there is something weird in the dmesg [SPOILER] dmesg output
I'm currently running linux 6.0.12 with like 3 another patches, that one that adds this tablets support to a mainline module, battery reporting fix, and my own fix for damn broken laptop ACPI/EC firmware, it is probably not related, but just so you know. Anyways, it actually works, just weird log output. Also you are right, this tablet works through bluetooth, but needs correct logic that is currently only implemented for USB. |
Oh yes, I forgot to mention it in this issue. While working on the reconnection issues, I'm working with another user to add support for their tablet: My tablet reports an incorrect frame type, I added that log just to check with if their tablet has the same problem or not. I'll be removed from the final patch of course. More info in the commit message:
Mmmm that message should not be there. It looks like when the tablet is trying to add the battery related files they already exists and fail. Could you verify that after disconnecting the tablet the Does this happen every time you connect your tablet? Or does it happen randomly? And, did it happen before running this version of the driver or is it something introduced by the latest version?
About Bluetooth, for some reason I'm not able to connect my tablet by Bluetooth, even using a vanilla kernel. I thought that I was because I was using a very old Bluetooth stack, but I updated to Fedora 37 and the issue remains. The user in the other issue is able to connect their tablet, so this was a work in progress change as I'm unable to test that code path. However, as you mentioned, it is going to crash when it tries to acces the USB device 🤦 Thanks for catching that up, I'll have to remove that code. |
I see, it happends when you try to plug the USB BT dongle while tablet is also connected by the USB cable, fun.
For me turning tablet itself on/off helps, but it is unreliable, it seems tablet wants similar magic reconnection handshake.
Well actually it shouldn't crash, this check should just cause the driver to immediately abort:
😅 |
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
Upgraded to the linux 6.2-rc1, and now tablet works without any patches! |
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
Cool, thanks for testing! Battery status is queued for 6.3, we will have to wait a bit more: |
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
[ Upstream commit f9ce4db ] The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend/digimend-kernel-drivers#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: DIGImend#635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Are the patches you mention here part of a specific Digimend release, or only available in the linked zip? Just wondering because I have linux kernel
From this comment |
@mal-w looking at the commits I don't think those patches were merged back here, I suggest using latest stable 6.6 kernel if you can, and not installing digimend, although 6.1 maybe will work too, digimend drivers are looking dead at this point and all of the progress is happening upstream thanking to @JoseExposito. So if you install digimend on 6.6 you will get a worse experience, that's pretty bad, some people who not know about this would report same issues again. @JoseExposito can you merge all of the upstream changes here? There is no automatic workflow (bot) here that pulls patches from the upstream, and the repo isn't as maintained as it was before. |
Hey thanks for the quick reply.
Makes sense to me... I think if there are not plans to pull in the upstream changes then for sure there should be some notice that this project's goals are instead being implemented upstream and for more casual users what this practically means (i.e. tell people to upgrade their kernel which for most users mean upgrade your distro right?)... some places that make sense to me would be
1. At the top of the README on master of this repo
2. The install section of the Readme would be a good spot as well
3. the digimend project homepage (digimend.github.io)
4. The tablets page of that same website
Not sure if that makes sense 🤔 but hopefully it does..
…On Wed, Dec 20, 2023, at 4:49 AM, Kanashimia wrote:
@mal-w <https://github.com/mal-w> looking at the commits I don't think those patches were merged back here, I suggest using latest stable 6.6 kernel if you can, and not installing digimend, although 6.1 maybe will work too, digimend drivers are looking dead at this point and all of the progress is happening upstream thanking to @JoseExposito <https://github.com/JoseExposito>.
So if you install digimend on 6.6 you will get a worse experience, that's pretty bad, some people who not know about this would report same issues again. @JoseExposito <https://github.com/JoseExposito> can you merge all of the upstream changes here?
There is no automatic workflow (bot) here that pulls patches from the upstream, and the repo isn't as maintained as it was before.
—
Reply to this email directly, view it on GitHub <#635 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AON65K235XDF76JZOYIV5CDYKKYEDAVCNFSM6AAAAAAQRONCMKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGE3DQOBRGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I keep my Let's see if the changes get merged and a new release is tagged 😄
Yes, for most user this mean upgrading their distro to a more recent version or in the case of rolling release distros like Arch, just upgrading. |
Awesome.. I upgraded my kernel and the tablet works fantastically! I also haven't seen any of the specific tracking issues mentioned in this issue. Thanks :) |
The XP-PEN Deco LW is a UGEE v2 device with a frame with 8 buttons. Its pen has 2 buttons, supports tilt and pressure. It can be connected by USB cable or using a USB Bluetooth dongle to use it in wireless mode. When it is connected using the dongle, the device battery is used to power it. Its vendor, product and version are identical to the Deco L. The only difference reported by its firmware is the product name. In order to add support for battery reporting, add a new HID descriptor and a quirk to detect the wireless version of the tablet. Link: #635 Tested-by: Mia Kanashi <chad@redpilled.dev> Tested-by: Andreas Grosse <andig.mail@t-online.de> Tested-by: Mia Kanashi <chad@redpilled.dev> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Status report:
Support is done, and is in the upstream 6.3 linux kernel or later, some patches were also backported to the 6.1 so it should mostly work too.
Everything works correctly except the kernel BT (bluetooth), that doesn't mean that the tablet won't work through BT, you just have to use BT USB adapter that comes with the tablet, when you try to pair with tablet directly through your DE, in other words without the adapter, the tablet won't function correctly.
You don't need to install digimend drivers, just use latest kernel.
Sometimes module sends bogus events for XP-Pen Deco LW, more precisely it forces cursor to be in the middle top part of the screen.
When you draw sometimes cursor jumps borking everything, the cursor jumps every time after lifting a pen.
This doesn't happen without digimend kernel modules on linux 5.19.8
This happens without digimend kernel modules on linux 6.0-rc5.
Excerpt from
evtest
:I think this is caused by this packet, excerpt from
usbhid-dump --entity=stream --model=28bd
:There is no such packet when you don't use digimend.
Deco L/M/MW probably all have same problem.
Also builtin bluetooth connection through bluez doesen't have this problem, because digimend driver quirks are not applied. By using a bluetooth dongle it works just like a wired connection, because then it works through usb and dosen't require bluez uhid stuff.
CC: @JoseExposito
The text was updated successfully, but these errors were encountered: