• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinoLinux ApplicationsHow to find screen resolution in pcDuino Ubuntu
Previous Next

How to find screen resolution in pcDuino Ubuntu

Posted by: Yang , June 19, 2014

[vc_row][vc_column width=”1/1″][vc_column_text]One system setting that you often check or modify in pcDuino Ubuntu desktop environment is display setting, in particular, screen resolution. There are different ways to get display resolution information on pcDuino Ubuntu, either from the command line or from GUI-based display settings.

In this tutorial, I will describe how to find screen resolution in pcDuino Ubuntu desktop environment.

Method One

One way to determine monitor resolution is via xdpyinfo, a command-line utility for showing information about an X server, including current display resolution. To check the current screen resolution from the command line, simply run:

$ xdpyinfo | grep “dimensions” | awk ‘{ print $2 }’
1280x720

Method Two

The second screen resolution command is xrandr, a command-line interface for RandR (short for “X Resize, Rotate and Reflect Extension”). The xrandr command can show you the current screen resolution, as well as all possible display settings.

$ xrandr
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1280 x 720, current 1280 x 720, maximum 1280 x 720
default connected 1280x720+0+0 0mm x 0mm
   1280x720       60.0* 

As you can see above, if you run xrandr command without any argument, you can get a list of all available screen resolutions. The currently set screen resolution is indicated with “*” marker. Therefore, to find the current display resolution only, use the following command.

$ xrandr | grep ‘*’ | awk ‘{ print $1 }’
1280x720

[/vc_column_text][/vc_column][/vc_row]

Tags: Linux Applications

Share!
Tweet

Yang

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors