You are not logged in.
Hi,
I have a udev rule to apply a tag to my GPU before Mutter starts so that it uses the correct renderer. I enabled autologin today, and now the rule doesn't fire before Mutter starts. Is there any way to make GDM or the graphical session target depend on udev rules firing?
In /etc/udev/rules.d/61-mutter-gpu.rules:
SUBSYSTEM=="drm", ENV{DEVTYPE}=="drm_minor", ENV{DEVNAME}=="/dev/dri/card[0-1]", SUBSYSTEMS=="pci", ATTRS{vendor}=="0x10de", ATTRS{device}=="0x2489", TAG+="mutter-device-preferred-primary"
Currently, if I boot without autologin, the rule fires while I'm on the GDM login screen (verified by switching to the tty and checking udevadm info). If I instead boot with autologin, it goes to desktop without firing, then fires there as shown in udevadm but not journalctl; then restarting the graphical session applies it correctly. I'm looking for "GPU /dev/dri/card1 selected primary given udev rule", not "GPU /dev/dri/card0 selected primary from builtin panel presence" in journalctl, and CURRENT_TAGS=:master-of-seat:uaccess:seat:mutter-device-preferred-primary: in udevadm info.
Thanks!
Offline
Edit the gdm service and depend on the relevant device.
https://superuser.com/questions/1469766 … enerically
https://wiki.archlinux.org/title/System … ided_units
Offline