I've gone through the steps here for using:
$: xrandr -q
in order to list connected monitors and their resolution options. I identified the monitors connected to my system: eDP-1 and HDMI-1. However, I'd like to know if there's a way to identify these names without using any graphical stack (which xrandr is a part of), and preferably, if there's any way to do this from the GRUB command line.
Searching around online, I've seen 2 other commands mentioned in relationship to this task: hwinfo
and get-edid | parse-edid
. However, neither output enabled me to find the above mentioned eDP-1 and HDMI-1 identifiers which enabled me to configure my monitor's during linux boot.
I see that these names are both roughly (but not exactly) in the /sys/class/drm/
folder:
/sys/class/drm $: lscard0 card1 card1-DP-1 card1-eDP-1 card1-HDMI-A-1 card1-HDMI-A-2 renderD128 renderD129 version
The difference being the additional -A
inside the name card1-HDMI-A-1
.
I don't really understand what I'm looking at here though and I don't know how I could deduce that the names of my attached monitors correspond to anything in this directory.