Questions tagged [xrandr]

`xrandr` is a configuration utility to the RandR X Window System extension. This utility is useful for screen configuration.

xrandr is a configuration utility to the RandR X Window System extension. This utility is useful for screen configuration.

For more information, please visit this website

https://wiki.archlinux.org/index.php/xrandr

113 questions
65
votes
3 answers

Xrandr errors. BadName (named color or font does not exist)

I was successfully using xrandr to extend my desktop in my work place with this little "script". #!/bin/sh xrandr --newmode 1920x1080 220.64 1920 2056 2264 2608 1080 1081 1084 1128 -HSync +Vsync xrandr --addmode VGA 1920x1080 xrandr --output…
Jlbelmonte
  • 1,246
  • 1
  • 11
  • 14
33
votes
3 answers

how to add the missing RANDR extension

I have setup the xvfb server on my headless server and when I m running the DISPLAY=:99 firefox I am getting this exception missing RANDR extension Many of them said to disable some xinerna from the xorg.conf file but this file is not getting…
Mahesh More
  • 919
  • 2
  • 8
  • 20
26
votes
2 answers

Resizing an Xvfb display

Simple Question: Is there a way to resize a Xvfb display? I tried with RandR but it seems that the RandR extension is not supported by Xvfb. Are there other ways to resize the screen? Thanks for your help!
Erik
  • 11,944
  • 18
  • 87
  • 126
17
votes
5 answers

Get monitor count and resolutions in Python without xrandr command line tool

I'm running Ubuntu and I want to get the number of attached monitors, their current resolution and, if possible, their position in relation to each other. Because I don't like parsing Console output of the xrandr command line tool—at least not if I…
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
11
votes
3 answers

xrandr related, C programming

Here is an example call to xrandr: $ xrandr --output LVDS --mode 1680x1050 --pos 0x0 --rotate normal --output S-video --off --output DVI-0 --mode 1024x768 --pos 1680x104 --rotate normal Think about a system where that call has success; there are…
Paolo.Bolzoni
  • 2,416
  • 1
  • 18
  • 29
10
votes
1 answer

Use xming / vcxsrv / xwin to setup two screens for i3wm

I'd like to use i3 on my Windows 10 Linux subsystem with two monitors. With: vcxsrv.exe :1 -nodecoration -wgl -multimonitors -screen 0 3840x1160 I can create one large Window that spans over my two monitors. This configuration works with i3,…
Horst Lemke
  • 349
  • 3
  • 14
10
votes
3 answers

Extended desktop in Linux

My goal is to have an extended desktop like in windows. Linux only uses my second monitor as a mirror, which is useless. I have searched a lot on google and SO for a way to get this right. I want linux to use both my monitors for one extended…
Leo
  • 1,757
  • 3
  • 20
  • 44
9
votes
3 answers

xrandr does not show HDMI at all

I have a laptop (Asus N55SF) with NVIDIA GT555M GPU, with Elementary OS installed (based on Ubuntu). I have Bumblebee installed, with NVIDIA drivers, which works. (optirun glxspheres has higher fps than just glxspheres) When I connect a display to…
user3168485
  • 91
  • 1
  • 1
  • 3
9
votes
1 answer

Google Chrome can't run in xvfb because extension "RANDR" missing

I try to run Google Chrome on xvfb display, but google show error about RANDR extension. Problem is that I added RANDR to xvfb and it loaded it. So my steps are: Run xvfb server using command: Xvfb :1 -screen 0 1280x1024x24 +extension RANDR This…
ShockwaveNN
  • 2,227
  • 2
  • 29
  • 56
8
votes
1 answer

How do I get the resolution of RandR outputs through the xcb RandR extension?

I'm working on a project that is already using xcb and need to get the resolution of individual outputs rather than the resolution of the combined screen. Can I do this with the RandR extension for xcb? If so, how can I use my xcb_connection_t…
Aaron Landis
  • 103
  • 8
7
votes
1 answer

Is there a libXrandr API documentation?

I want to use libXrandr in C++. Is there a suitable documentation?
ManuelSchneid3r
  • 15,850
  • 12
  • 65
  • 103
7
votes
1 answer

add udev rule for external display

I wrote a small shell script configuring attached external displays with xrandr. # cat /home/didi/bin/monitor_autoswitcher.sh #!/bin/bash xrandr | grep "HDMI1 connected" if [[ $? == 0 ]]; then # is connected xrandr --output HDMI1 --right-of…
didi_X8
  • 5,018
  • 10
  • 42
  • 46
6
votes
2 answers

How to use lookahead to exclude special characters in a regular expression

I have a regular expression that I'm using to try to detect screen resolution as follows xrandr | grep -P '(.*\d+x\d+)* | awk {'print$3'} which when I use in my script gives me something like…
6
votes
3 answers

Xrandr displaying "Failed to get size of gamma for output default"

My Sys specs : **Intel i7-8700k (Coffe-lake),Mother board : ROG(Maximus X Hero) OS :Ubuntu-Gnome 16.04** I booted My new PC with Ubutnu-Gnome16.04 , after installation the screen resolution is 1024x768(4:3)--and screen is shown "Unknown…
Harish Bodduna
  • 113
  • 1
  • 2
  • 8
6
votes
2 answers

X11 restrict mouse to visible area

I am currently running Linux Mint 17.2 with Cinnamon. I have 2 monitors. When I set monitors to be adjacent in Cinnamon settings, mouse freely moves through border shared between monitors but cannot escape visible area. That is, if I set monitors to…
EvgEnZh
  • 699
  • 8
  • 13
1
2 3 4 5 6 7 8