-
Notifications
You must be signed in to change notification settings - Fork 20
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
NixOS TDP Control #78
Comments
Hi Handheld Daemon is 3 projects: hhd, adjustor (TDP), and hhd-ui. Right now I think only hhd is packaged. The other two will need to be packaged as well. HHD-UI works great as an appimage for overlay support. It just needs to be installed as an executable with one of these names: "hhd-ui.AppImage", "hhd-ui-dbg", "hhd-ui" in the system path. As for adjustor, it has recently gained a bunch of dependencies for fixing the steam slider and acting as ppd. You will also need |
For hhd-ui specifically, the AUR version unpackages the asar electron file and is 5mb because it uses electron. But fedora does not package electron, so it places the appimage in /usr/bin I think. Both approaches are realistic. |
Tagging the maintainers @appsforartists @toast003 |
I've got other priorities in my life right now, so I don't expect to get to this anytime soon. Happy to give feedback on PRs, although I'm new to Nix as well. (I got it working just-well-enough to make my Legion Go usable, and since then I've only used it for the occasional game.) |
That was only needed for hhd itself, since the udev rules that hhd generates expect |
Hhd-ui has a pr open (NixOS/nixpkgs#305027) but it got stuck cause I could not get it to build from source. It needs to be updated, and I also have more experience with nix now so I'll give it another shot |
Yeah, but whatever is looking for |
No, thankfully adding hhd-ui (and lsof) to hhd's path with |
I was able to include adjustor in handheld-daemon fine on NixOS (Legion Go) with the following configurations - adjustor package, integration under hhd. |
You could probably port that to nixpkgs under a name like |
Huh there must be something in the air because I did this same thing a couple days ago :) I think we need to go the But then
A hack here is that If we're fine with the packages being individually incomplete then the hacked version I already have working would be fine with
happy to take this on modulo a sanity check from folk above |
I took this opportunity to split out a public subset of my nix config, currently working with the latter setup of packaging https://github.com/harryaskham/collective-public/tree/main/pkgs My main uncertainty stopping a nixpkgs PR is around the python codependency resolution and whether |
Thanks for doing the legwork! I'm not really a Nix developer. I learned just enough to make my Legion Go work, and then packaged I do think it's useful/important to consistently prefer If/when you package this in a PR, please change the There's a chat room for handheld gamers that's frequented by Nix experts: That's where I got support as I was getting my system set up, and I expect you'd find great reviewers for your PR there too. |
ACK - agree about the verbosity. In my example I'd only abbreviated in the subpackage to avoid repetition so we have e.g. |
I'm making a PR to add adjustor to nixpgks, and so far I just needed to build adjustor and add it to handheld-daemon's @harryaskham did you have any issues that made you repackage handheld-daemon as a library? Since what I did seems to work so far I feel like I'm missing something |
Ah, funny timing, I was just refactoring my flakes and had just been looking at these. I believe my intention was to have the I'm not au fait with the HHD plugin system - I seem to recall that some redacted editsome was by HHD directly importing Python from the `adjustor` package (fixed either by making the `adjuster` python lib visible to the system, or adding it to `handheld-daemon`'s `propagatedBuildInputs). ^^^ (I can't find anywhere Other distro packaging looks like the two binaries are separate, I assume due to the shell orchestration. On pypi Anyway having said all that: neither works without the other and it would make sense to me that the hhd/adjustor binaries/libraries were combined, with two outputs |
I returned my ROG Ally so I'm not that interested in this issue anymore, however I like that others interested are picking it up. Should I keep it open? |
This issue is meant as a feature request as well as a place to track info and progress on this topic.
I run NixOS on my ROG Ally and
hhd
works great except for the missing overlay and TDP controls. The web app works well enough, however the TDP controls are sorely missed. What's missing in order to include it in the NixOS package?The text was updated successfully, but these errors were encountered: