Repository navigation
Eliminate early KMS usage in favor of proper systemd chainload - #236
Conversation
2d7012b to
b328f81
Compare
b328f81 to
c1e08d3
Compare
c1e08d3 to
92842a2
Compare
|
Undrafted, cachyos-drm-awaiter was merged and it's ready for testing. |
According to Arch Wiki SimpleDRM is default, and indeed Plymouth still works after I removed EDIT: Obviously, I had installed |
Anyway, thank you for testing! |
92842a2 to
d63162f
Compare
|
Since cachyos-drm-awaiter with latest updates now can generate dependencies for any GPU drivers, not only for main vendors, there's no point in listining it in every profile, so this PR will remove only early kms usage from hooks. |
|
It would make more sense to install drm/gpu related package as part of chwd gpu profile install Servers wouldnt need drm awaiter |
d63162f to
8c5d3e8
Compare
Okay, I returned it back to chwd. |
8c5d3e8 to
ff28191
Compare
vnepogodin
left a comment
There was a problem hiding this comment.
nvidia-dkms-580xx.prime missed
Signed-off-by: Vasiliy Stelmachenok <ventureo@cachyos.org>
ff28191 to
3c11d2e
Compare
Indeed, done. |
I’ve always considered early KMS as a workaround for issues with race conditions when loading between driver and display manager/graphics environment. Here is another approach, that allows us to solve this "right" in my opinion, as it simply ties graphics services (getty/display-manager) to wait for all graphic drivers. To do this, we ship generator that creates
drm-module-load.targetat runtime which injects dependencies for all GPU drivers of current hardware and a udev rule that activates it if module loading is successful. If load failed, that’s okay, we haveJobTimeoutSec, which allowsdrm-module-load.targetto fail but load the rest of the services that depend on it (asWants=implies soft dependencies).To avoid breaking the work plymouth, we should switch to using simple-drm (that is, specify
UseSimpledrm=1in/etc/plymouth/plymouthd.conf, I thought this should be done on the calamares side). This is what Fedora does and it seems normal for them, see: https://fedoraproject.org/wiki/Changes/PlymouthUseSimpledrmThis will certainly require careful testing by other users, but from my testing, it works pretty well. The main advantage is the absence of bloated initramfs, which often becomes an obstacle for configurations with Btrfs snapshots and a separate /boot, as we now do when using limine-snapper-sync, which led us to decide to use ESP partition size 4 Gb by default, which I find excessive.
Fixes: CachyOS/cachyos-calamares#250 #262 CachyOS/distribution#529