I'm looking for a method of reporting display resolution. I want to set up scripts to launch rdesktop, and I want to launch it on several machines with different resolutions, so I want a way to dynamically determine it.
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
||||
|
|
|
Use the command xrandr. Without any argument it displays the available resolutions and the current one (with an asterisk). |
|||
|
|
Alternative solution: |
|||
|
|
|
I should have looked a little harder before posting. By default, this will dump all possible display settings, this can be filtered as follows:
|
|||
|
|