Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [xrandr]

xrandr is a X Window System extension, which allows clients to dynamically change X screens, so as to resize, rotate and reflect the root window of a screen.

Filter by
Sorted by
Tagged with
97 votes
7 answers
560k views

How to set custom resolution using xrandr when the resolution is not available in 'Display Settings'

I'm a new Linux user trying to change the screen resolution as there is no option under display. I have successfully managed to add new resolutions by fluke by following online guide. I don't have a ...
nick's user avatar
  • 981
76 votes
11 answers
73k views

A tool for automatically applying RandR configuration when external display is plugged in

is there a tool which enables one to: remember current RandR configuration (position, orientation, resolution etc) on per-monitor basis, automatically apply last known good configuration as soon as ...
Yaroslav Fedevych's user avatar
22 votes
1 answer
99k views

xrandr doesn't detect monitor on hdmi port

I installed Arch on my laptop but I don't think this problem is specfic to Arch. The only problem at the moment is that the display connected to the hdmi port isn't detected. For example running from ...
sashang's user avatar
  • 736
18 votes
2 answers
29k views

VNC-Server as a virtual X11 monitor to expand screen

From a currently running X11 session, I would like to provide/run a VNC server such that it appears to my system as a second, “virtual” monitor – i.e. so that I can position it using xrandr and drag/...
Joachim Breitner's user avatar
10 votes
1 answer
4k views

Due to a broken monitor, I need to setup only the right half of my screen

The left side of my full hd monitor is broken, in order to use only the good part the resolution needs to be 1274x1080, aligned to the right. A simple xrandr -s 1274x1080 will get the right ...
Luis Pacheco's user avatar
32 votes
5 answers
122k views

How to get EDID for a single monitor?

Pending an answer to xrandr detects amplifier as monitor a possible workaround is to blacklist devices with specific EDIDs. Unfortunately xrandr --verbose prints everything in a format which is ...
l0b0's user avatar
  • 51.5k
15 votes
2 answers
3k views

Set Xorg to use only part of the screen

My screen has 1280 x 1024 resolution. But unfortunately, rightmost belt of 200 pixels is damaged and unable do display any image. How can I set that the Xorg will treat my screen as 1080 x 1024 ...
Rok Kralj's user avatar
  • 346
67 votes
3 answers
29k views

How does Linux's display work?

The Linux's display system uses multiple technology, protocols, extensions, applications, servers (daemon), drivers and concepts to achieve the windowing system for instance: Xorg, Wayland, X11, ...
intika's user avatar
  • 14.5k
12 votes
7 answers
35k views

xrandr fails randomly with "Configure crtc X failed" on dock with multiple monitors

TL;DR: xrandr fails randomly on my system with the error message xrandr: Configure crtc X failed on my setup with two monitors, that are connected to a dockingstation. After I turn on and off single ...
Max N.'s user avatar
  • 221
9 votes
2 answers
3k views

Xrandr problem trying to avoid broken display

Days ago I broke my laptop display by accident, the right side of the screen is damaged, but the most part of the left side is usable. I did some research trying to find a way to modify the dimension ...
Daniel's user avatar
  • 103
21 votes
3 answers
24k views

Wayland equivalent of arandr

On my main computer, I use xrandr and/or arandr with i3 to configure and save multiple different screen layouts and map them to various keyboard shortcuts. I recently installed Fedora with Gnome on ...
pictorexcrucia's user avatar
21 votes
2 answers
133k views

How to scale the resolution/display of the desktop and/or applications?

While using Xorg X11, on KDE/Gnome/XFCE how can we scale the display/resolution for the whole desktop and/or per application? (when this is not available on the settings GUI) The purpose is to keep ...
intika's user avatar
  • 14.5k
17 votes
5 answers
38k views

Cannot add new mode in xrandr for external monitor

Today I was trying to connect my second monitor to my notebook. I have: nvidia graphic card 304.43 drivers [support xrandr 1.2] archlinux [up-to-date] awesome wm xrandr 1.3 My problem is with bigger ...
Borgo's user avatar
  • 171
9 votes
1 answer
22k views

VNC-Server as a virtual X11 monitor to expand screen problem

I tried to follow this To create a virtual screen on my display so I can show it on a remote monitor with a vnc client but when I try to add my mode xrandr --addmode VIRTUAL1 xrandr will tell me I ...
jNull's user avatar
  • 339
7 votes
2 answers
43k views

Multiple screens on debian

I have two screens on my computer, but they all show the same image (i.e I can't activate dual screen). I saw on some blogs that I need to configure xrandr for this, but it fails to do so. Here is ...
S4M's user avatar
  • 197
6 votes
2 answers
3k views

What is the xcalib -screen number for the HDMI monitor?

I must use a VGA-to-DVI cable and a HDMI cable to run two monitors. I'm trying to invert the colors on both monitors but I can only invert one of them: $ xcalib -invert -alter -s 0 #works $ xcalib -...
jcalfee314's user avatar
6 votes
2 answers
25k views

How to set scaling mode for external displays on intel GPU

I can set the display scaling mode for the internal laptop panel with: xrandr --output LVDS1 --set "scaling mode" "Full aspect" This however does not work for external displays (DP1, VGA1, DP1) ...
BubuIIC's user avatar
  • 873
6 votes
1 answer
17k views

Extension “RANDR” missing on xvfb

My system: $lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty Xvfb: $ dpkg -s xvfb Package: xvfb ...
kekit's user avatar
  • 73
4 votes
0 answers
31k views

"xrandr: Failed to get size of gamma for output default" for Guest CENTOS 6.6, HOST OS Windows 7 enterprise

I am getting the following errors: xrandr: Failed to get size of gamma for output default Screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768 default connected 1024x768+0+0 0mm ...
Dimag Kharab's user avatar
4 votes
2 answers
22k views

Cannot rotate screen with xrandr

OS: Linux Mint The output of inxi -xG: Graphics: Card: NVIDIA GF108 [GeForce GT 440] bus-ID: 02:00.0 X.Org: 1.13.0 drivers: vesa (unloaded: fbdev) Resolution: [email protected] ...
Jack's user avatar
  • 43
3 votes
2 answers
2k views

Check if display is powered on in Linux

Is there a way to check if a display is powered on in Linux? I tried xrandr and xset but neither of these two gives me any information about monitor power. Using xrandr I can identify if the vga cable ...
Jatin Kumar's user avatar
1 vote
1 answer
1k views

How to get xrandr to output three 1680x1050 video signals over this USB-C dock at 60Hz?

I have three identical 1680x1050 monitors and am trying to use them via the “HP G5 USB-C dock” on my Razer Blade 15" 2018 laptop and its Thunderbolt 3 port. With xrandr I can get all displays ...
Robert Siemer's user avatar
28 votes
5 answers
72k views

Mirror dual monitors with different resolutions

I use the following xrandr command to mirror my 17" laptop with a 27" external monitor, so I can use it to do presentations: xrandr --output LVDS1 --mode 1600x900 --output HDMI1 --mode 1920x1080 --...
milarepa's user avatar
  • 1,456
22 votes
1 answer
17k views

Why is laptop screen called eDP1?

In my new laptop, using i915 and the intel driver of Xorg, the laptop screen is called eDP1 in Randr $ xrandr eDP1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 277mm x 156mm ...
Martin Monperrus's user avatar
20 votes
3 answers
54k views

Add VIRTUAL output to Xorg

I want to create a dummy, virtual output on my Xorg server on current Intel iGPU (on Ubuntu 16.04.2 HWE, with Xorg server version 1.18.4). It is the similiar to Linux Mint 18.2, which one of the ...
Paulus's user avatar
  • 303
17 votes
1 answer
8k views

How to modify the default setting adopted by xrandr when connecting an external monitor?

I am confronted with a problem when connecting the external monitor while the computer is open. At that point it seems that xrandr adopts one of the combinations that do not work. As a workaround to ...
user avatar
13 votes
2 answers
14k views

Save display settings for specific monitor

When I'm connecting an external Monitor to my notebook (specs below), whether with VGA or Displayport, I always have to configure the screen resolution and display position. At the moment I'm doing ...
klingt.net's user avatar
  • 1,655
12 votes
1 answer
13k views

How to turn off specific display on command line with wayland

Previously I used a linux system which didn't use Wayland and I was able to control my displays through the xrandr program. So to turn off my third display I used this command: $ xrandr --output DP-1 ...
kayahr's user avatar
  • 241
11 votes
2 answers
18k views

Changing the way automatic screen rotation works in Gnome shell

I recently acquired a Lenovo Yoga 3 11" convertible notebook. It works well with out-of-the-box with Ubuntu Gnome LTS 16.04.2 - WiFi, Bluetooth, even suspend and resume work without any issues so far. ...
hoe's user avatar
  • 301
11 votes
3 answers
18k views

How to get external monitor resolution set by xrandr to persist

tl;dr My laptop keeps forgetting the correct resolution of the external monitor attached to it. How can I make the configuration "stick"? Details I have a laptop running Linux Mint attached to an ...
Kazark's user avatar
  • 979
11 votes
2 answers
5k views

Dual monitors with 2 videos driver with xrandr 1.4

I'm trying to dual-screen with 2 differents video card drivers (i915 & nvidia) but as you can see xrandr is only listing nvidia provider. I am using Arch Linux. I unsuccessfully tried finding ...
Francis's user avatar
  • 111
9 votes
3 answers
64k views

HDMI not detected by `xrandr` [closed]

There's no output from my HDMI port and my TV shows NO Signal. My Current OS: Linux Mint 15 Things I have tried with no success: Change the HDMI cable Install another operating system ( Windows 7, ...
Youssef K. Yassin's user avatar
9 votes
1 answer
11k views

xrandr --pos doesn't do anything

I hooked up a tv to my linux computer. I noticed the screen was offset by about 200px to the right, leaving behind a black vertical strip on the left of the screen and cutting off a portion of the ...
learningtech's user avatar
8 votes
4 answers
27k views

How to change LCD intensivity/brightness

How to change brightness of LCD want image look deemed and soft the xrandr --output LVDS1 --gamma 0.8:0.8:1.1 change only gamma but not the brightness of image. I have no option --brightness for ...
Yurij73's user avatar
  • 1,992
7 votes
1 answer
1k views

My monitor is partially broken. How can I decrease the viewable space using xrandr or any similar tool?

My secondary monitor is partially broken in the top 1/3 of the screen so I want to add blackbars and have something like in the picture below. The top part it's how everything is now. The bottom part ...
Maccer's user avatar
  • 253
6 votes
1 answer
38k views

Cannot connect external monitor via USB-C (no Display Port listed in xrandr), Ubuntu 20.04

I'm trying to connect an external monitor using the USB-C port and an adapter on my Asus laptop, using Ubuntu. I know the setup (cable, adapter, monitor) are all working because I can connect it on a ...
Bernardo Loureiro's user avatar
6 votes
2 answers
8k views

Detecting monitors on machine over local ssh connection

I need to write a script to check on video related things on machines in the local network, e.g. Is a monitor plugged in? Are the video drivers up to date and appropriate for the hardware? Is Xorg ...
jayhendren's user avatar
  • 8,400
6 votes
2 answers
14k views

xrandr issue when panning second monitor

I'm using Linux Mint Cinnamon on a macbook (with HiDPI display), the primary monitor looks great but the second one (which is not an HiDPI monitor) is terrible... by using xrandr I forced it to scale ...
daveoncode's user avatar
6 votes
1 answer
2k views

XRandR crops displayed area on certain multi-monitor configurations

I have total of four monitors. One (1680x1050) is connected to integrated Intel display adapter, and three (1440x900 and two 1920x1080) are connected to dedicated ATI display adapter. With certain ...
montiainen's user avatar
5 votes
0 answers
2k views

How tell xrandr to let my mouse move between monitors?

I have both an internal and external display which I'd like to pass my cursor over. When I start the computer with the external connected, my display manager starts with the wrong DPI, and I have to ...
wdkrnls's user avatar
  • 457
5 votes
1 answer
8k views

xrandr: clone and scale

I regularly use my notebook for teaching, with the full screen shown on the projector. With projectors getting better, I often find the projectors resolution to be higher or different than the ones ...
user52366's user avatar
  • 211
5 votes
0 answers
616 views

xrandr detects amplifier as monitor

To help with setting up multi-monitor X I'm using a simple script to get screen resolution information using xrandr. This was working fine until I tried attaching an amplifier to attempt to use HDMI ...
l0b0's user avatar
  • 51.5k
4 votes
1 answer
3k views

Do the "right" xrandr calls when I connect/disconnect monitors

So I have a laptop I take to work and connect to a big monitor. Right now, when I get to work I do the following Connect my laptop to the monitor run xrandr --output DP1 --mode 2560x1600 --right-of ...
azani's user avatar
  • 243
4 votes
1 answer
2k views

How can I make xrandr modifications persist for more than 1 second?

Updates: This question describes similar symptoms Ubuntu - Xrandr doesn't change my resolution, but it seems like the underlying cause is different as there are no changes to my Xorg-log files in ...
joelostblom's user avatar
  • 1,931
4 votes
1 answer
1k views

adding new resolution in multi monitor setup via xrandr

I have two monitors with different max. resolutions (2560x1440 and 1920x1080). In windows I am able to configure the max resolution for both monitors but in linux (manjaro, proprietary nvidia drivers ...
Marek Kordík's user avatar
3 votes
2 answers
7k views

How to correlate xorg.conf config for nvidia gpu with xrandr detected screens?

I have a situation with RHEL 7.9 and an RTX 2070 in an Alienware M15 that I haven't made much progress on lately. I downloaded the latest compatible driver from Nvidia (file name: NVIDIA-Linux-x86_64-...
SeligkeitIstInGott's user avatar
3 votes
3 answers
18k views

Second monitor not recognized - xorg.conf file

I'm trying to use this monitor Acer XB270H, with my Ubuntu laptop, but it is not recognized, appears cropped with incorrect resolution. Note: I first was using the docking station with the monitor DP ...
DependencyHell's user avatar
3 votes
1 answer
2k views

XRandR script runs correctly from command line, fails as cron job

I'm running LXDE on Fedora 21. My script's purpose is to extend the display across two monitors: #!/bin/sh xrandr --output VIRTUAL1 --off --output LVDS1 --mode 1440x900 --pos 1280x124 --rotate normal ...
saltface's user avatar
  • 215
3 votes
1 answer
454 views

Is it possible to have xrandr in different modes based on workspace?

Is it possible to have xrandr at --right-of the screen in workspace1 and --same-as at workspace2? (I'm using openbox) If you interested why I want to do this: I'm having a presentation and I need to ...
Ravexina's user avatar
  • 2,658
3 votes
1 answer
5k views

Stretch window over two monitors with "gap" in between

I have a dual monitor setup with Compiz as window manager on Ubuntu 14.04. I can resize a window to stretch over both windows. However, while the physical display panels are a few centimeters apart, ...
Thomas W.'s user avatar
  • 323