Tags: wulf7/libudev-devd
Tags
Add ID_PATH to DRM devices In create_drm_handler we add the PCI_ID udev property, but when using PRIME offloading Xorg wants to check ID_PATH in config_udev_odev_setup_attribs. This is necessary as part of the rube goldberg auto configuration of Nvidia Optimus machines. To get Xorg to play nice this change defines the ID_PATH property by querying the busid specified for the DRI node in question. This is done with the hw.dri.<cardnum>.busid sysctl. With this change we can define dynamic configs in xorg.conf.d and have X automatically use nvidia-drm.