List display device names

Emil Velikov emil.l.velikov at gmail.com
Wed Nov 11 14:06:12 PST 2015


Hi Tom,

On 11 November 2015 at 13:31, Tom Deseyn <tom.deseyn at gmail.com> wrote:
> Hi all,
>
> To configure X I need to know the display device names (e.g. DFP-0). I get
> these by looking at the Xorg.log. Is there a way to list these display
> device names which is more suitable for automation? I looked at xrandr, but
> I haven't found an option which outputs these names.
>
Have a look in /sys/class/drm/. If you have two GPUs there might be a
bit of an issue - the numbers (names) will work but are not
persistent, as the boot order of drm modules may change.

-Emil


More information about the xorg-devel mailing list