-
-
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
unl0kr: 2.0.0 -> 3.2.0 #319126
unl0kr: 2.0.0 -> 3.2.0 #319126
Conversation
Result of 1 package built:
|
Ran the test (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replying to @uninsane from #276539 (comment) :
see #319126 which is working for me on actual hardware (x86_64 laptop, aarch64 pinephone, armv7 chromebook). i tried to run the nix tests with nix-build -A nixosTests.systemd-initrd-luks-unl0kr, but nix says i need a builder with the kvm feature for that. pretty low on my own priorities to figure that one out and show that it works in a virtual environment when i already have it working on the device in my hand...
Glad to hear this is working on real hardware, and sorry I've not been proactive in doing this update.
One of the ways NixOS maintenance scales to its high packages-per-maintainer ratio is via its automated integration tests. It would be a step backwards in that dimension if we were to merge a PR that broke such a test. At the same time, I understand that having stale packages is itself not ideal.
I realise this puts us in a tricky spot. I'm no longer a user of unl0kr, but I see I'm the only maintainer. That's not good either! :)
Is there anyone willing to be a maintainer for unl0kr (package, module, and test)?
It'd be really great to us work with upstream to figure out why this test is failing. #276539 (comment) was my past attempt, which isolated it to the 2.0.2 -> 2.0.3 upgrade. Maybe some git bisecting could find the commit that causes the test to break?
I am willing to maintain the unl0kr package since at least 2 of my devices use it. |
Could you investigate the reason why the test is failing? It's a sensitive package after all, so we are hesitant on merging this. |
I'm merging 2.0.3 before 3.2.0 I'll look into it |
2.0.3 also fails the test (#276539) https://github.com/NixOS/nixpkgs/pull/276539/checks?check_run_id=19932461278 Alternatively we could merge this since it's tested by OP? Testing this is relatively easy. In inputs.unlocker-test-nixpkgs.url = "github:NixOS/nixpkgs/refs/pull/319126/merge"; In nixpkgs.overlays = [
(final: prev: {
unl0kr = inputs.unlocker-test-nixpkgs.legacyPackages.${pkgs.system}.unl0kr;
})
]; Note that you must have flakes setup and pass |
I'll test it on a real install right now |
It does NOT work. It hangs right before the moment the UI should load. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. let's block this, until this is fixed.
I use an overlay for 3.2.0 since 3.0.0 without issues on 1 device (a 2022 Asus ROG Flow Z13). The only differences (from what I can tell) are that I do not fetch submodules and I do not specify |
Only this? unl0kr does not execute on my system |
Maybe I'm doing it wrong, but I added this as a module in my flake:
|
Suspicions confirmed, unl0kr v3.2.0 will NOT work if amdgpu is loaded. Jovian-NixOS has the same problem on the Steam Deck (albeit it's probably v2.0.0) which is solved by NOT loading amdgpu on stage 1. |
I'll retest this with amdgpu disabled |
I'm going to see if DRM may be necessary |
Looks like amdgpu has a conflict with unl0kr regardless. |
to be clear, 2.0.0 works for you, but 3.2.0 fails regardless of and does your device show any signs of life in the display before reaching unl0kr (i.e. initrd logging)? |
My device displays fine (unless it's a steam deck running jovian nixos), it just frezes/unl0kr doesn't work. 2.0.3+ seems to fail regardless of the backend, and seems to be caused by amdgpu in stage 1 |
I'll probably step up as the maintainer since I want to add the much needed configuration feature (for themes and hacks) and because I actively use unl0kr on at least two of my devices. FYI, having the config there is not enough, especially since unl0kr can't read it at boot (seems like a huge oversight, but then again NixOS has ways to work around this, which I've used and tested. All that remains is to translate my imperative crud to something declarative and stateful) |
I will add that I had a similar issue before with nvidia/i915 and early DRM, unl0kr would not start, so maybe this is not just a conflict with unl0kr and amdgpu. I have only tested this on 1 device, and it has hybrid graphics, so I was not sure if it was an isolated case. Interesting!
I have been successfully using a small module to add config file support (used like this), but adding extra commandline flags required more work. Having support for it in the official module would be huge. |
i use |
I'm first going to only update the service then attempt a version bump so we at least have an update on unl0kr |
Just had unl0kr v2.0.0 freeze on my system. Looks like we really can't predict what'll happen just yet. Either way, I'll do a PR with the changes done to the unl0kr service by Electrostasy. FYI I have been talking to the BuffyBox devs and Johannes suggests that early video loading may interfere with the framebuffer device and/or its availability. |
Here's my unl0kr service PR: #339787 |
Be warned that if it gets merged you might encounter a merge conflict with this PR |
1557f07
to
9eabc03
Compare
i've switched my systems from unl0kr to buffyboard (a framebuffer keyboard, packaged here). leaving this PR open seems to have caused confusion elsewhere, that i intend to do more work on it (i don't), so i'm closing it. anyone who wants to shepherd this: feel free to pull the branch and open a new PR. |
Description of changes
Things done
pkgCross.aarch64-multiplatform
,pkgsCross.armv7l-hf-multiplatform
)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.