-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
plymouth: attempt to make flicker-free #84158
Conversation
cc @mkg20001 |
I'm getting this when building an OVA image:
|
4d02077
to
02f53d8
Compare
Should've fixed. Seemed to be a problem that occurred with the default settings. Tried booting it up with the default theme and it should work fine as long as the password issue is resolved for passwords (without bash-specific workarounds). I'll work on that when I'm able to work on the PR for an extended period of time. The default theme also has a problem with the password prompt "bullets" which I think is probably due to the font not containing the character.
|
02f53d8
to
261bea5
Compare
I believe from the people I've talked to about this, it would be #74842. |
261bea5
to
74af0f3
Compare
6df8088
to
039b3ed
Compare
# ./only_use_fb_for_cirrus_bochs.patch | ||
] ++ stdenv.lib.optionals withLabelFt [ | ||
# https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/45 | ||
./v3-0001-ply-label-Don-t-crash-if-label-plugin-fails.patch |
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.
Is this patch set necessary for flicker-free experience? I would rather not include unmerged patches using legacy libraries (freetype).
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.
It isn't necessary but without it, some of the functionality for some themes will be impacted, anything that uses display-message
won't be shown since we don't bundle the original label.so
since it's far more bloated than label-ft.so
.
But if it's just the password prompt (basically a pile of images) and the background, then no it isn't needed.
7e127d4
to
f87fbba
Compare
f87fbba
to
9075640
Compare
9075640
to
54fa026
Compare
54fa026
to
87e0a8f
Compare
87e0a8f
to
f3cf371
Compare
f3cf371
to
0209b8b
Compare
0209b8b
to
01f8df6
Compare
How can I test this in my configuration? Am I right to assume I would only need to update my nixpkgs ref to this PR? |
@berbiche you have also to enable plymouth, but then it should work. |
01f8df6
to
7c91c8d
Compare
7c91c8d
to
c1552fe
Compare
c1552fe
to
c98c1c5
Compare
c98c1c5
to
f14f826
Compare
[Daemon] | ||
ShowDelay=0 | ||
DeviceTimeout=8 |
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.
Should there be a way to make this configurable?
A lightweight alternative to the label plugin. /usr/bin/fc-match is patched so that it'll be more NixOS-y compatible but it is not expected that it will ever be used since after initrd, label.so will be present and thus will be used instead. https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/45 https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/91
In order to utilize the label-ft plugin, we need a font
f14f826
to
3128d14
Compare
I don't see a difference. https://youtu.be/wHbl62EgrlE The stage1 text is still shown, then a black screen, and after 20 seconds i see the lightdm login. i'm using Pantheon desktop should i test on a system with disk encryption? or still too early to test? |
Took a quick glance at the related PRs and still doesn't look like it's possible. The earliest I went was stage-2 I believe (I don't remember)? I think I broke initrd without plymouth (or at least if there are any secrets needed to be inputted) with the latest commit but I'll just keep it there since I usually just had it as a stash locally. |
If you rig up some plymouth prompts it should work fine for decryption and messages now. Patches are a big mess.
Not sure what's actually needed in stage-1 for this to run as early as possible.
Motivation for this change
label-ft: https://gitlab.freedesktop.org/plymouth/plymouth/-/merge_requests/91
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)