[opensuse] Plymouth animation with Nvidia's early KMS
Out-of-the box after the installation of
nvidia-gfxG05-kmp-default | NVIDIA graphics driver kernel module for GeForce 400 series and newerthe Plymouth boot animation doesn't work.
That package owns two important files,
% cat /etc/modprobe.d/nvidia.conf options nvidia_drm modeset=1 and % cat /etc/dracut.conf.d/50-nvidia-default.conf install_items+=" /usr/bin/chmod /usr/bin/mknod /usr/bin/cat /usr/bin/echo /usr/bin/chown " add_drivers+="nvidia nvidia-drm nvidia-modeset nvidia-uvm" omit_dracutmodules+="plymouth"
So I proceed to enable early KMS via the kernel parameter, since the required dracut modules are already specified:
% cat /etc/modprobe.d/nvidia.conf options nvidia_drm modeset=1
omit_dracutmodules+="plymouth"
% cat /etc/dracut.conf.d/51-nvidia-default.conf add_dracutmodules+="plymouth"
All's fine, KMS works, but the line obviously prevents the plymouth animation. If I do (notice the 51-*.conf, so should(?) override 50-*.conf): then dracut -f still says that the module will be omitted. So, I ended up commenting this line out from 50-*.conf, and plymouth works just fine. Questions: 1. Why is plymouth disabled by default? Since the required nvidia modules are already added by this config, what can prevent plymouth from working? Aside from the nvidia-drm.modeset=1 kernel parameter? 2. How do I re-add dracut modules after they were omitted (instead of touching the default config)? I would like to use a separate file, because I assume this one gets overridden with every package upgrade, and it's generally sane to separate custom configuration from vendor configuration. -- Thank you, Alex
13.12.2018 1:28, Oleksii Vilchanskyi пишет: > Out-of-the box after the installation of >> nvidia-gfxG05-kmp-default ... > 1. Why is plymouth disabled by default? Unfortunately changelog for this RPM starts from the point it was created, but package itself is clone of earlier packages. In G04 changelog you will find - /etc/dracut.conf.d/50-nvidia.conf (TW/sle15) * exclude "plymouth" module from building initrd (boo#1047225) > 2. How do I re-add dracut modules after they were omitted (instead of > touching the default config)? I would like to use a separate file, > because I assume this one gets overridden with every package upgrade, > and it's generally sane to separate custom configuration from vendor > configuration. > This is general dracut packaging problem on *SUSE, it should install files provided by package under /usr/lib, not /etc, allowing administrator to redefine them. Anyway, files are shell scripts (at least, currently) so you can simply add configuration file that checks and removes content of omit_dracutmodules variable. Something like omit_dracutmodules="${omit_dracutmodules//plymouth}"
participants (2)
-
Andrei Borzenkov
-
Oleksii Vilchanskyi