headset-scanout-info.nu
edited
1input -sn 1 "If Monado is running, please stop it. Press any key to continue."
2
3let displays = drm_info -j
4| from json
5| get ($in | columns | last)
6| get crtcs.mode
7| enumerate
8| where item != null
9| get index
10print "\ncollected existing displays"
11
12input -sn 1 "Please start Monado, then press any key to continue."
13print ""
14
15let info = drm_info -j
16| from json
17| get ($in | columns | last)
18| get crtcs.mode
19| enumerate
20| where item != null and index not-in $displays
21| get item
22
23print $info
24print "Please share this YAML representation of the above data (with ``` symbols):"
25print "```"
26print ($info | to yaml)
27print "```"