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

How can I Detect external monitor is in mirror or extended by command?

How can I detect that my external monitor is in mirror mode or extended mode or set in primary. I have done with so many commands like xrandr is there its giving me the output where I can say that what is the primary display but looking by any…
0
votes
0 answers

Filter a variable to specific part / character | Auto set resolution from filtered text | Ubuntu, Bash

I am trying to make a script that sets the resolution to 1920x1080 at 60Hz as seen below... The script should filter to get the specific parameters for xrandr as the output of both commands has some text that is not needed. Then set the resolution…
fhc
  • 3
  • 4
0
votes
0 answers

xrandr long delay (completely reproduceable!)

I'm finding that when I do "xrandr --output eDP-1 --reflect xy" it seems instantaneous, but when I then do "xrandr --output eDP-1 --reflect normal" (to put it back) there's a delay of something like three seconds (during which time the screen is…
cind
  • 1
  • 1
0
votes
0 answers

XFCE4 in a Docker container on Windows with vcxsrv - setup for multiple screens

I am currently investigating the possibilities of running a Desktop Environment(XFCE4) in a Docker container. The purpose would be creation of an isolated development environment for VHDL which would be easy to install and setup by students. I base…
patvax
  • 343
  • 3
  • 14
0
votes
0 answers

How to change resolution in 'Raspberry Pi OS' to a custom resolution

So I'm trying to implement the following resolution: 1920x127 What I have tried so far: Option 1- Added the following to /boo/config.txt file : hdmi_ignore_edid=0xa5000080 hdmi_cvt=1920 127 60 hdmi_group=2 hdmi_mode=8 Following the Raspberry Pi…
Neo
  • 195
  • 1
  • 2
  • 10
0
votes
1 answer

Does glx and xrandr version belong to client \'s hardware on remote desktop environment?

I am in an environment where computer use is ristricted. So I rented a computer on the internet(Like Aamazon EC2) to bypass restriction, develop software. I tried Install Ubuntu 18.04 LTS 64bit Install xfce4, tightvnc for build remote desktop…
user13497562
0
votes
1 answer

How to retrieve only 2 words before other ones using shell?

I'm creating an automate script for xrandr and I would like to only retrieve the actual output from it, I know that it should be the 2 words before the connected word (e.g. DP-0) using the xrandr --verbose: xrandr --verbose Screen 0: minimum 8 x 8,…
6872162
  • 7
  • 3
0
votes
2 answers

How do I set a default xrandr mode

I have a small script that I manually need to execute each day to set my refresh rate to 120Hz. This is what the script has: #!/bin/bash xrandr --output HDMI-1 --mode 1920x1080 --rate 120 echo 120Hz Has been Enabled How can I set this as my…
Granwille
  • 159
  • 1
  • 7
0
votes
1 answer

Custom Rofi menu wont return selected value

I am trying to make a Rofi menu within i3wm that I can call to adjust external monitors and such. I am able to call and run the script perfectly fine however When I select an option from the menu nothing is returned and the commands to adjust the…
0
votes
1 answer

XLib Disconnection Callback

I use XLib and XRand to get some information about the connected displays on an embedded system. class Foo { private: Display *_display{}; public: Foo() { _display = XOpenDisplay(":0.0"); } void getSomeInfo() const { …
Murat Şeker
  • 1,651
  • 1
  • 16
  • 29
0
votes
1 answer

X server crashes when I try to change dual-display orientation

Ultimately I am trying to mirror my displays, but no matter how I try, doing so will crash my system (at least the X server, and I can't seem to get it running again) so I have to reboot. I recently set up a dual-monitor system running Fedora 25. I…
Csteele5
  • 1,262
  • 1
  • 18
  • 36
0
votes
1 answer

Persistent resolution using xrandr in VNC

I have Linux PC which is remote and boots up in text mode. I do access X on this machine via VNC. However I do have requirement to resize the resolution ( different monitors ). I know xrandr is meant for this. However whenever I add new mode…
ekchom
  • 113
  • 13
0
votes
1 answer

Disable user interactions for a specific screen on Linux

We have a PC with two physical monitors and a desktop app that is used to serve customers. Our use case is as follows: Screen A is used by the employee Screen B is facing the customer The OS is Ubuntu (Xubuntu 18.04 Bionic to be specific) running…
yktoo
  • 2,696
  • 1
  • 23
  • 35
0
votes
1 answer

xrandr: jail mouse

I already asked this questions over at Ask Ubunutu. Unfortunately I have not received an answer. As this question is not Ubunutu specific, I am trying it here. I am using xrandr via console to enable/disable secondary monitors. This work fine so…
MrUbu
  • 1
  • 1
0
votes
1 answer

Avoid parsing Xrandr output

i need to get information from xrandr into my software. Suppose thats my output from xrandr -q: Screen 0: minimum 8 x 8, current 1920 x 1968, maximum 32767 x 32767 LVDS1 connected primary 1366x768+309+1200 (normal left inverted right x axis y axis)…
plazmakeks
  • 161
  • 1
  • 10