Did you try xdpyinfo?
'man X' gives you an intro to the available X commands.
On 11/15/2013 09:14 AM, Stephen Berg (Contractor) wrote:
> I'm searching for a command line utility of some fashion to let me get the Xwindows screen resolution from a remote system. What I'd like is very simply a command, utility, log entry that I can reliably tell that "System X, over there on the network, is running an Xwindows session at 1920x1080."
>
> Does anyone have any ideas on how I can accomplish this? So far xrandr doesn't seem to let me do it. There's lots of "Setting mode" entries in /var/log/Xorg.0.log but no easy way to tell if that's the actual resolution currently running.
>
>