Gimp won't recognize genius tablet11/20/2022 ![]() ![]() see my other question/answer here for more details). So the idea of the script is to read the input from the event file of the graphics tablet, and then create the good events (no more BTN_LEFT, but BTN_TOUCH instead. The only remaining part to do is to write a proper C driver and load it directly in the kernel. Youou!!! I managed to make a python script that gives me back the pressure on a new virtual device :-D Now I can use it with Gimp/Krita/. Print("Input device ID: bus /dev/input/eventX".format(sys.argv))Īnd I realized that it's more or less the same as the Veikk mouse, and it does not work better. ![]() Time_int, _, time_dec, _, ev_type, ev_code, ev_val = struct.unpack('4IHHI',data) # type, code ( key pressed ), value (press/release) ) # FORMAT = ( Time Stamp_INT, 0, Time Stamp_DEC, 0 , I made this python script as a proof of concept: #!/usr/bin/env python3į = open("/dev/input/by-id/usb-VEIKK.INC_A30_0000001-event-mouse", "rb" ) So I don't yet have a driver, but at least it seems to be easy to read the input from the device raw communication. If you know how to parse them let me know! But it's less clear that the patterns match the pressure, too many information are sent here. I don't know how to read this binary though ^^ If I can, maybe I can use uinput to map it to a new device? ^^ Note that /dev/input contains files like mouseX, eventY, and mouse1 is correlated with the tablet, but not with the pressure, and the only file in this folder that displays lot's of information linked with the tablet is the file /dev/input/by-id/usb-VEIKK.INC_A30_0000001-event-mouse. hid-generic 0003:2FEB:0002.000E: hiddev0,hidraw2: USB HID v1.00 Device on usb-0000:00:14.0-1/input2Įdit2: hum, it seems that the device that sends the pressure can be read in sudo cat /dev/hidraw0 as the patterns differs depending the the pressure I apply. usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 2-1: New USB device found, idVendor=2feb, idProduct=0002, bcdDevice= 0.00 I saw one guy reporting that with some tweaking it was possible to make it work, but can't find any reference on that.Įdit: here is the output of dmesg usb 2-1: new full-speed USB device number 10 using xhci_hcd Unfortunately, I can't find how to enable pressure sensitivity on Linux. I just bought the graphical tablet VEIKK A30. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |