You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating my system (to nixos-24.05) I am experiencing crashes when running ddcutil (2.1.4) from within the systemd-udevd systemd (255.6) services. The same command works when run as my user so this is not necessarilly a bug in ddcutil and I suspect it has something to do with the hardening of the systemd unit. The systemd unit runs as root so it is not simply the missing i2c group, I think.
(EDIT): The same setup worked fine before the update (ddcutil 2.0.0). Leaving the new system as is but using ddcutil 2.0.0 fixes the problem. So maybe this is actually some kind of regression.
I have hardened branch 2.1.5-dev to avoid the abort.
However, there's a more fundamental problem. Release 2.x makes extensive use of /sys and drm in an attempt to improve performance. However, it turns out that there is variation in how video drivers populate /sys. (What is your hardware platform, what is the video driver?) In your case, it appears that /sys is not fully populated when ddcutil is run by systemd at startup.
Hello and thank you for ddcutil!
After updating my system (to nixos-24.05) I am experiencing crashes when running
ddcutil
(2.1.4) from within thesystemd-udevd
systemd (255.6) services. The same command works when run as my user so this is not necessarilly a bug inddcutil
and I suspect it has something to do with the hardening of the systemd unit. The systemd unit runs as root so it is not simply the missing i2c group, I think.(EDIT): The same setup worked fine before the update (ddcutil 2.0.0). Leaving the new system as is but using ddcutil 2.0.0 fixes the problem. So maybe this is actually some kind of regression.
The systemd unit is this here: https://github.com/systemd/systemd/blob/c09f7e5a8208fab5680bfeba8df5707887a8c080/units/systemd-udevd.service.in
and the udev rule (although probably irrelevant)
Thanks in advance!
The text was updated successfully, but these errors were encountered: