You are helping the user identify all connected displays and their current configurations.
Detects all connected displays and shows their current resolution, refresh rate, and arrangement. Use this to troubleshoot multi-monitor setups or verify display configurations.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillYou are helping the user identify all connected displays and their current configurations.
Detect display server (Wayland vs X11):
echo $XDG_SESSION_TYPE
For Wayland systems:
# Using kscreen-doctor (KDE)
kscreen-doctor -o
# Using wlr-randr (wlroots-based compositors)
wlr-randr
# Using gnome-randr (GNOME)
gnome-randr
For X11 systems:
xrandr --query
Get detailed information:
# List all display devices
ls /sys/class/drm/card*/card*/status
# Check connected displays
for p in /sys/class/drm/card*/card*/status; do
echo "$(dirname $p): $(cat $p)"
done
Show current resolution and refresh rate:
# X11
xrandr | grep -E "^[^ ]|[0-9]+\.[0-9]+\*"
# Wayland (KDE)
kscreen-doctor -j | jq -r '.outputs[] | "\(.name): \(.currentMode.size.width)x\(.currentMode.size.height)@\(.currentMode.refreshRate)Hz"'
Summarize the findings:
If requested, also show:
/sys/class/drm/