[Bug] plymouth theme animation broken when using linuxPackages_cachyos* kernels
What happens?
Animation is displayed only in last second on boot, it is static otherwise
What is expected to happen?
Animation displayed during all boot
If possible, please attach logs
N/A
More information
I am using this config for plymouth:
plymouth = {
enable = true;
theme = "nixos-bgrt";
themePackages = [ pkgs.nixos-bgrt-plymouth ];
};
Full config for boot:
{ pkgs, ... }:
{
security.unprivilegedUsernsClone = true; # Required for hardened kernel
services.scx.enable = true;
# TODO: enably cachy ananicy rules
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
tmp.cleanOnBoot = true;
# initrd.systemd.enable = true; # TODO: Not feature-complete yet https://blog.decent.id/post/nixos-systemd-initrd/
kernelPackages = pkgs.linuxPackages_cachyos; # TODO: evaluate switching to hardened when using nix-mineral
plymouth = {
enable = true;
theme = "nixos-bgrt";
# TODO: replace with my own theme
themePackages = [ pkgs.nixos-bgrt-plymouth ];
};
# Silent boot
initrd.verbose = false;
consoleLogLevel = 0;
# TODO: configure more parameters
kernelParams = [
"quiet"
"splash"
"vt.global_cursor_default=0"
"loglevel=3"
"rd.systemd.show_status=auto"
"rd.udev.log_level=3"
"udev.log_priority=3"
"boot.shell_on_fail"
];
# Hide the OS choice for bootloaders.
# It's still possible to open the bootloader list by pressing any key
# It will just not appear on screen unless a key is pressed
loader.timeout = 0;
};
}
Just to be sure: does it work with kernelPackages = pkgs.linuxPackages_6_12;?
I tested with linuxPackages_latest today on unstable nixpkgs, surely works
Same correct behavior with pkgs.linuxPackages_6_12
haven't stumble across this problem:
╭──╼ s0mePC-nix on NixOS 25.5.0 ❄️
┆ ~
╰─> uname -a ✓ at ❗ 00:13
Linux s0mePC-nix 6.12.6-cachyos #1-NixOS SMP PREEMPT_DYNAMIC Thu Dec 19 17:13:24 UTC 2024 x86_64 GNU/Linux
&
@s0me1newithhand7s you didn't select theme
theme = "nixos-bgrt";
@s0me1newithhand7s you didn't select theme
theme = "nixos-bgrt";
isn't "nixos-bgrt" and "nixos-bgrt-plymouth" are same? anyway - i'll try
Still the same issue on latest everything, can debug it if anyoune told me how. Current boot config:
{ pkgs, inputs, ... }:
{
services.scx.enable = true;
boot = {
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
tmp.cleanOnBoot = true;
kernelPackages = pkgs.linuxPackages_cachyos;
plymouth = {
enable = true;
theme = "nixos-bgrt";
themePackages = [ pkgs.nixos-bgrt-plymouth ];
};
# Silent boot
initrd.verbose = false;
consoleLogLevel = 0;
kernelParams = [
"quiet"
"splash"
"vt.global_cursor_default=0"
"loglevel=3"
"rd.systemd.show_status=auto"
"rd.udev.log_level=3"
"udev.log_priority=3"
"boot.shell_on_fail"
"microcode.amd_sha_check=off" # for ucodenix to work properly
];
loader.timeout = 0;
};
}
Which kernel configs are required for Plymouth?
Do you guys have some error in dmesg?
Which kernel configs are required for Plymouth?
just
plymouth = {
enable = true;
theme = "nixos-bgrt";
themePackages = [ pkgs.nixos-bgrt-plymouth ];
};
Do you guys have some error in
dmesg?
[ 2.872619] systemd[1]: Dispatch Password Requests to Console Directory Watch was skipped because of an unmet condition check (ConditionPathExists=!/run/plymouth/pid). [ 2.872712] systemd[1]: Started Forward Password Requests to Plymouth Directory Watch.
Nothing else related
Hi, same issue here, changing kernelPackages = pkgs.linuxPackages_cachyos to kernelPackages = pkgs.linuxPackages_zen makes it work without any other changes.
When switching to cachyOs kernel from latest i see this:
Version changes:
[U.] #1 initrd-linux 6.15 -> 6.15.0
[U.] #2 linux 6.15, 6.15-modules, 6.15-modules-shrunk -> 6.15.0, 6.15.0-modules, 6.15.0-modules-shrunk
Added packages:
[A.] #1 unit-systemd-tmpfiles-setup-sysroot.service
Oh, then it's something in Nixpkgs' nixosModules. Probably asserting some kernel version/passthru that I missed.
I wrote a test VM, and it works perfectly:
cd /tmp
nix build -L github:chaotic-cx/nyx#linux_cachyos.passthru.tests.plymouth.driverInteractive \
&& result/bin/nixos-test-driver
The only thing out-of-ordinary here, is that the virtualisation stuff adds a console=tty0, and so I needed this line:
https://github.com/chaotic-cx/nyx/blob/1109c2cfdd262417b4d8148aa3cc1228679d9270/pkgs/linux-cachyos/test.nix#L61
I'm now daily driving Plymouth without issues (except a resolution change after systemd-boot, and stage-2 making it disappear).
If someone can reproduce the issue originally described here (by editing pkgs/linux-cachyos/test.nix), please re-open and post the diff.