Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using the 'udev library libudev' to detect connection and disconnection of displays (monitors) on my system. The display names reported by udev are found in the /system/class/drm directory on my system. The names look like the following:


I am also using xrandr, which reports display names that look like the following:


Clearly, the two libraries are talking about the same names, but the names themselves differ. Can anyone out there tell me how I can map the names found under the /sys/class/drm virtual file system with the names reported by 'xrandr'?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.