Home

Display settings. Monitors. Manage multi-monitor setups

xrandr

Querying Display Information

You can use xrandr without any options to get a list of connected displays, their resolutions, and supported modes.

xrandr

List all monitors:

xrandr --listmonitors

Changing Screen Resolution

To change the resolution of a specific display, use the following syntax:

xrandr --output < display_name > --mode < resolution >

# Example:
xrandr --output HDMI-1 --mode 1920x1080
xrandr --output HDMI-1 --mode 2560x1440

...

Disable a monitor. E.g. laptop monitor (eDP-1)

xrandr --output eDP-1 --off

Reset settings (re-enable the laptop monitor):

xrandr --auto

Configuring Multiple Displays

To position multiple displays relative to each other:

xrandr --output < display_name1 > --left-of < display_name2 >

Other options include --right-of, --above, and --below.

To set up a dual monitor configuration with a primary monitor on the left and a secondary monitor on the left, you might use:

xrandr --output HDMI-1 --primary --auto --output eDP-1 --auto --left-of HDMI-1

# or a secondary monitor on the right
xrandr --output HDMI-1 --primary --auto --output eDP-1 --auto --right-of HDMI-1

...

Print out current screen resolution

xdpyinfo | grep 'dimensions:'  
# or  
xrandr | grep '*' 

Monitor Brightness: xbacklight

To do..

Date:

Screen Dimensions