-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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-artist-pro-14-gen-2-driver: init at 4.0.4-240815 #347984
base: master
Are you sure you want to change the base?
Conversation
I am currently using a virtual machine to utilize NixOS because I don't have time to distro hop, I plan to switch in a couple weeks. That being said my VM is acting very funky with the package but I am unsure if that is because of an issue with the package or the VM, I am getting
Can I setup Nix on my current machine (Arch) to test it? |
Upon trying to run
on my Arch system with nix I got this,
Am I missing something obvious? |
I can confirm, I was missing something obvious. Upon uninstalling my already existing drivers and then running the command the gui did appear... I feel very silly now That being said, I think there does seem to be a problem with this "Please connect device." Here is the terminal
|
@HangedFool thanks for the quick reply! I'll be more active today as I went to sleep soon after I opened the PR. The last issue where it doesn't find the config.xml should be fixed now, please try again. Nix might not pull the latest commit using the previous test command, adding Edit: oops, looks like it segfaults, give me a few minutes |
Segfault is fixed, you can try it now. |
These tests were done on an Artist Pro 14 (Gen 2) on Arch Linux All in all fantastic job, this works nearly perfectly and the bugs I did find are incredibly minor. In fact, I would say it has a fraction of as many bugs as the AUR version had, how much of that is due to it being an updated version compared to the AUR version and how much is packaging I am unsure, but the end all be all is that I am very happy with this. The only thing I think it is missing is that it isn't in the application launcher, but I assume that that will be in the final package. |
@HangedFool Great to hear it works, and thanks for your detailed testing! I used most of the dependencies from one of the older xp-pen drivers, but I don't think they are being used. I just removed those, the GUI opens up the same for me, would you mind testing the basics? (checking whether it detects your tablet, and some basic features work is enough, no need to go through that long list) The bugs are most likely fixed by the newer version and not by packaging, but I'm curious what issues you had with the AUR package. |
Should I just rerun the command to test this? |
Yes, rerun the last test command (that has |
I believe all functionalities are intact Also, the "Shortcut Keys Toggle" actually does work, I miss-tested that And the problems with the original AUR package I felt were just quality of life stuff that I had to manually fix. Their was a problem with launching it through an application launcher, I had problems with prompts, and some other stuff |
I am unsure if this is just because it isn't a full package yet or if you even have control over this but I have noticed that when closing the gui the process doesn't end (it shouldn't so that is good) but it doesn't go into the application tray, which it should. |
I decided instead of adding this driver in a single PR and doing some refactors, I will do the refactors in a seperate PR. Also I have some other ideas regarding to all xp-pen drivers in nixpkgs. First of all with this we'd have 3 xp-pen device names: artist-pro-14-gen-2, g430 and deco-01-v2. But similar to the AUR, we could have a v3 (for g430, deco-01-v2 and many others) and a v4 (for artist-pro-14-gen-2 and many other) drivers. Currently for example if someone wants to to use an Innovator 16 device, he'd need to install deco-01-v2 because that has the same major version 3, which is quite confusing. Another idea: to improve security, instead of giving sudo to a proprietary driver (needed because of udev rules), we could make a NixOS module that loads the udev rule (just like with the OpenTabletDriver module. This would also make it possible to add a desktop entry, so people who prefer to start it from a GUI application launcher rather than CLI can. However only people on NixOS would benefit from that. With these future refactors, this would change from a user's perspective. Rather than environment.systemPackages = [ pkgs.xp-pen-artist-pro-14-gen-2-driver ]; you'd do services.xp-pen = {
enable = true;
package = xp-pen-v3; # this is optional, omitting it would use the latest v4 driver
}; Everything should work as before since I just deleted the refactor commits, but just to be sure, a final short and quick test wouldn't hurt. |
I noticed that too, I usually xkill-ed it or Ctrl+C-d it from the terminal, actually I'm not sure how the application tray works since I haven't been using it on my WM, but I might look into it later.
Yes, I noticed that too, it will be fixed it in the follow up PR. |
In regard to closing it the expected behavior is that you right click it in the application tray and hit quit, so you would not be able to close it without the tray unless you manually kill it. That is also typically how you would access it when it is already open, with the current system I think that relaunching the gui would make you have two instances of it open, the one you just launched and the one in the background, but you should be able to just click it in the application tray to recall it. So not having access to it in the tray makes it somewhat awkward to work with. |
Just tell me when <3 |
I just found out about #285660 which packages the v3 driver with a NixOS module, solving the issues I planned to fix (only running under root, no desktop file). Adding a v4 driver to that PR would be the best IMO, this PR can be closed then. |
Sorry if I'm being stupid, but I wanted to clarify the status of the package request. Is the plan to integrate the driver into the existing module? Also, regarding my next steps, you mentioned that the package request can be closed, but should I take any action beyond that? And finally, I was just a bit concerned that development might have stalled given the lack of comments over the last couple days. I don’t want to seem bothersome, but I’d appreciate any information you can share, this software is pretty important to me. Also, I just wanted to say thank you for taking the time to assist me. |
If you want to use the v4 driver for yourself, you can with the previous test command (I don't plan on deleting this branch yet, but you can make a copy of it in your own nixpkgs fork if you wish). My plan is to get the more polished #285660 PR merged first (that has a proper NixOS module and better driver names that are device independent), preferably with the v4 driver, but it likely won't happen as the author doesn't have much time to work on it. If that won't include the v4 driver, I'll make a PR for it. |
Hi @HangedFool, can you check if the v4 driver works for you and whether your previously mentioned issues are fixed in #351647? Thanks for taking your time to test it in advance. |
Correct me if I'm wrong but I don't think I am able to test it because it is a module. I am currently still using Arch, I plan to make the switch to NixOS when I have more time; which at this point is looking like it'll be at least a couple months down the line. I did think about setting up a virtual machine to test it but vbox doesn't want to accept my tablet (this may be vbox issue or it might be specific to me). But I digress, if their is a way for me to test it I would love to help, it's just that things are just really busy for me right now. |
You're right, you can't use NixOS modules on non-NixOS systems. The
I'm not too familiar with VirtualBox (or virtualisation in general), but once I passed through an FPGA board using VMWare Workstation without any extra config, just clicking on the board in Devices worked well. If you want to continue your VM attempt, can you see the tablet with
I assume many technicalities in the v3 and v4 drivers are similar, so testing both is not that mandatory but would be very good. One of the v3 driver testers is giving us great feedback and we can probably find and tackle the issues with them. Thanks for your previous testing and for still being interested, feel free to focus on other things if you are busy. You can always report issues when you'll actually use the driver on NixOS in the future. |
Fixes #347116
@HangedFool please test how it works, I saw the GUI open but don't have a tablet for it. You can run this and the GUI should open:
NIXPKGS_ALLOW_UNFREE=1 nix run github:gepbird/nixpkgs/xp-pen-init#xp-pen-artist-pro-14-gen-2-driver --impure
Postponed to an upcoming follow up PR:
If the latest xp-pen driver is backwards compatible with all the previously released tablets, we could merge all the 2 old (xp-pen-deco-01-v2-driver
andxp-pen-g430-driver
) and this (xp-pen-artist-pro-14-gen-2-driver)
package into a single one calledxp-pen-driver
. What do you think about it @virchau13 ?Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.