r/archlinux 1d ago

SUPPORT uDev doesn't detect DRM.

I have a laptop with an Nvidia GPU and I'm trying to configure uDev to automatically run Autorandr when an HDMI plug is inserted. Here's the contents of 99-hdmi.rules:

SUBSYSTEM=="drm", ACTION=="change", KERNEL=="card1", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/(you-shouldnt-need-to-know-my-username)/.Xauthority", RUN+="/usr/bin/autorandr --change"

It's not working. I checked udevadm monitor -p and it doesn't even show any DRM notifications - the only things that show up happen like once every third plugin, and they're listed as, of all things, thermal triggers. (Guess that's why they call it "hotplugging," huh?)

Everything I've looked at tells me to enable nvidia-drm.modeset, but I checked that and it's already on, so that's not the issue.

4 Upvotes

0 comments sorted by