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
5
votes
1 answer

xsetwacom unable to find output

Xrandr shows two monitors. I want to use xsetwacom to move all devices to HDMI-0 however the xsetwacom command towards the bottom does not recognize HDMI-0 Outputs: cloz@CLOZ-ELITE:~$ xrandr Screen 0: minimum 8 x 8, current 3840 x 1080, maximum…
Cloz
  • 73
  • 5
5
votes
1 answer

HDMI no signal debian

I'm using a lenovo ideapad 320s. I can see that HDMI1 is connected in xrandr but no picture. Is it possible that the hardware is too new? and should I just move to debian testing to see if that works? In xfce4 gui display application I can see that…
Eeme
  • 61
  • 3
5
votes
2 answers

X11 - Xrandr giving me false monitors

I was trying to find all monitors and their coordinates (width w, height h, x origin/top-left-most x, and y origin/top-left-most y) and was using this code, it works good on some systems. But on other systems I get false and duplicate entries. Would…
yatg
  • 1,121
  • 1
  • 9
  • 15
5
votes
0 answers

Change display mode under Linux

I'm trying to grasp programming graphics with Xlib and OpenGL. I can create windows etc., but I stuck at changing display modes. I can list available video modes with Xrandr functions (XRRSizes, XRRRates, XRRGetScreenInfo, XRRConfigSizes), check…
SasQ
  • 14,009
  • 7
  • 43
  • 43
5
votes
2 answers

How to observe changes in connected monitors via Xlib?

I'm trying to write a program that would detect external monitors being plugged in and automatically enable and configure them through Xlib. I know that there is XRandr extension that allows this. My question is, how do I enable receiving XRandr…
kyku
  • 5,892
  • 4
  • 43
  • 51
4
votes
2 answers

Automatically resizing X11 display when connecting an external monitor

I have a laptop running Ubuntu to which I connect an external monitor when I'm at the office. Usually this requires me to run xrandr --auto in order for the laptop to re-size the display to match the external monitor. It would be nice if this could…
JesperE
  • 63,317
  • 21
  • 138
  • 197
3
votes
1 answer

"Can't open display" with xrandr when I run it over SSH, happening on Ubuntu20.04

I would like to control display configuration of my Ubuntu20.04 through SSH. Windows machine issues the command via SSH, Ubuntu will execute it. It worked with Ubuntu 18.04, but it doesn't after I upgraded it to 20.04. What I did with 18.04 was like…
klhiwe
  • 31
  • 1
  • 2
3
votes
1 answer

Relationship between pixel and record on plotting a graph

Get my monitor's info with xrandr. xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 VGA-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm 1920x1080 60.00*+ There are only…
showkey
  • 482
  • 42
  • 140
  • 295
3
votes
2 answers

Command line tool to Screenshot multiple monitors separately

Problem-statement I use scrot to take screenshots, which works perfectly except when I have multiple monitors or displays. In that case scrot joins the screenshots of different monitors into one single output. From the manpage, scrot supports an…
3
votes
1 answer

Wrong SDL origin axis in 1080x1920 resolution

I am facing an issue with the SDL library and different resolution than 1920x1080. I want to copy display an image of dimension 1080x608 at the center of a screen of resolution 1080x1920 (portrait). I have only one plugged monitor screen. I used the…
user7364588
  • 1,014
  • 2
  • 12
  • 32
3
votes
2 answers

How to execute a shell command under Linux unsing QProcess?

I am trying to read the screen resolution from within a Qt application, but without using the GUI module. So I have tried using: xrandr |grep \* |awk '{print $1}' command through QProcess, but it shows a warning and does not give any…
Som
  • 185
  • 15
3
votes
1 answer

Getting "output eDP-1 not found" from xrandr after upgrading to Ubuntu 17.10 when I try to change brightness

I have a ThinkPad X1 Yoga (2nd gen) and when running Ubuntu 17.04 I could change the brightness like this: $ xrandr --output eDP-1 --brightness .7 Now, when I do that under 17.10 I get this: warning: output eDP-1 not found; ignoring xrandr: Need…
Jorvis
  • 3,159
  • 1
  • 17
  • 16
3
votes
1 answer

Getting screen info with xcb and randr

I was trying to write some simple graphics with Xlib, XF86VidMode, and OpenGL. I had two issues: Xlib doesn't seem to have the equivalent of WM_TIMER, so I wrote a SIGALRM handler that sent messages to unblock the message loop, but since such usage…
user5713492
  • 954
  • 5
  • 11
3
votes
1 answer

Change X11 dpi on the fly on NixOS

I expect xrandr --dpi 180 to change the dpi from 90 to 180 on the fly per-session and thus downscale resolution, but nothing happens. Am I missing something? I was able to change the dpi with the silly hack of adding fonts.fontconfig.dpi=180 to…
rem
  • 893
  • 4
  • 18
3
votes
1 answer

Is it possible to obtain a monitor description using Xrandr?

I'm writing a cross platform library which provides low level access to the window system (Win32/Cocoa/X11/Wayland). Right now I'm working on getting info about connected monitors. My "screen-info" utility writes the following output with my current…
user813022