Hot answers tagged

53

Here are the steps you need to add a new custom resolution and apply it. Following steps are for adding a 1920x1080 resolution, but you can use it for any other resolution you want. But make sure your monitor and onboard graphics support that resolution. # First we need to get the modeline string for xrandr # Luckily, the tool "gtf" will help you calculate ...


21

Why is it called eDP1? Because it is an embedded display port style adapter, and not a video graphics array style one.


18

Lead #1: monitor-edid I'm not that up on EDID and monitors but I did find this tool, monitor-edid which might be of use to you here as well. Forgive me if it's off base, I'm trying to also learn more about this space, given the variety of questions you ask on the topic. $ monitor-edid EISA ID: LEN4036 EDID version: 1.3 EDID extension blocks: 0 Screen ...


15

This occurs becaues you have another screen already active, in this case DP2. DP2 here is a monitor running off of a DisplayPort. The laptop is a Lenovo x230 and it was booted with an Ultrabase 3 docking station. You can resolve this issue by simply turning off the screen using, xrandr --output DP2 --off Now, in XFCE or similar workstation you should see ...


15

The option --size/-s can be used: xrandr -s 1440x900 Should work with RandR version 1.1 or newer.


15

Create a 20-intel.conf file: sudo vi /usr/share/X11/xorg.conf.d/20-intel.conf Add the following configuration information into the file: Section "Device" Identifier "intelgpu0" Driver "intel" Option "VirtualHeads" "2" EndSection This tells the Intel GPU to create 2 virtual displays. You can change the number of VirtualHeads to your needs. ...


14

The output of xrandr --props contains hex EDID strings for each connected display in a less verbose way. Here's a simple Python script exploiting this to grab an EDID for a specific connected monitor. I haven't found any other distro-packaged CLI tools that work for EDID extraction on my NVidia-based system, but most tools for parsing a binary EDID seem to ...


13

First find out the name of each display e.g. using xrandr --current. Then the following command should work to duplicate them. $ xrandr --output <projector> --same-as <desktop>


12

If you don't mind panning on laptop try this: xrandr --output LVDS1 --rate 60 --mode 1920x1080 --fb 1920x1080 --panning 1920x1080* --output HDMI1 --mode 1920x1080 --same-as LVDS1


11

I am not sure if you have created the string following xrandr --newmode by yourself or have you copied it from somewhere else, but it won't work in its current form. I recommend to do it step by step. First, you need to generate the new mode. I recommend using 60Hz with LCD or 85Hz with CRT monitor gtf 1280 1024 60 You will get something like: # ...


9

If you happen to be using a x86 or powerpc arch, you could use read-edid. On debian this is available here. Usage is simply (you need to be root): $ sudo get-edid > /tmp/edid and then parse the structure: $ parse-edid < /tmp/edid Checksum Correct Section "Monitor" Identifier "HP v220" ModelName "HP v220" VendorName "HWP" # Monitor ...


8

Disable X11 forwarding (using -x switch to ssh) and set the DISPLAY environment variable for machine B. For example, this will tell you the settings for :0 on machine B: ssh -x machineB DISPLAY=:0 xrandr


8

Check out: http://howto-pages.org/ModeLines/ , they have a good explanation of Xorg modelines. Then go to http://xtiming.sourceforge.net/cgi-bin/xtiming.pl and input the specs for the size of the screen that you can use. This will give you a Modeline that you can add to your xorg.conf file. Fields 4, 5, 6, & 7 correspond to the following valudes: ...


8

xrandr --fb 1920x1080 --output LVDS1 --mode 1600x900 --scale-from 1920x1080 --output HDMI1 --mode 1920x1080 --scale 1x1 --same-as LVDS1 or you could do it another way around to use the resolution of LVDS1 as base resolution, but then you have lower quality on HDMI1.


8

tl;dr: Force a "virtual" output of your gfx card to a display mode, and export that with x11vnc. You can achieve this, but there are a few prerequisites: A graphics card with multi-head capabilities (= can render several "desktop" surfaces). Which is most cards these days. x11vnc, a mature software (x11vnc) to export X11 surfaces (among others) to VNC ...


8

With awesome 4.0 on Debian stretch, no patch as in the answer of Sardathrion is needed, that is to change your dpi to get a proper screen setup, you need to 1) Create the .Xresources file with your settings, that is Xft.dpi: 192 If you are wondering about the right DPI value, see this post. I used the next value that was a multiple of 96. For more ...


8

Using Fedora 26, I faced the same issue with VIRTUAL1 not being shown by xrandr command. Then I followed this instructions , to reuse an empty output, like HDMI-2, and it worked quite well, but: Gnome (and xrandr) does not recognize the empty output as connected, and does not show the virtual monitor to arrange position in extended desktop or clone. Every ...


7

I used the udev rule suggested above along with a shell script that looks like #!/bin/sh dmode="$(cat /sys/class/drm/card0-VGA-1/status)" export DISPLAY=:0 export XAUTHORITY=/home/yourusername/.Xauthority if [ "${dmode}" = disconnected ]; then /usr/bin/xrandr --auto elif [ "${dmode}" = connected ];then /usr/bin/xrandr --output VGA1 --auto --...


7

You might want to take a look at this page, titled: XSF / How to use xrandr. For starters you could try this command: $ xrandr --output VGA1 --right-of LVDS1 You can control the orientation of the monitors with respect to each other using these switches: --right-of --left-of --above --below


7

I contacted Jamie Zawinski, author of xscreensaver, to ask whether it can span one screen saver across multiple monitor, and he gave me this response: No, it doesn't do that by design because I've tried it and with 99% of the savers it looks like shit. For the ones where it doesn't look like shit, One Saver Mode looks the same. I guess he's referring to ...


7

This workaround helped me. What I do now is after performing a xrandr scale, I run an extra command which stops the mouse flicker. xrandr --output eDP-1 --auto --output HDMI-2 --auto --scale 2x2 --right-of eDP-1 # Simpler oneliner scaling xrandr --output eDP-1 --scale 0.9999x0.9999 # Stop flicker


7

I use this command to mirror my desktop with my external VGA: $ xrandr --output LVDS-1 --mode 1366x768 --scale 1x1 --output VGA-1 --same-as LVDS-1 --mode 1920x1080 --scale 0.711x0.711 LVDS-1 is the laptop screen , nativelly working in 1366X768 VGA-1 is my external VGA monitor, with native resolution 1920X1080 , scaled to 0.711 which equals close to ...


6

A small program that waits for the X server to notify it about changed monitor configuration, and then executes a given command (e.g. the autorandr mentioned in another answer) is available at: https://bitbucket.org/portix/srandrd/overview This seems to be a cleaner solution that using udev (where you have to worry about finding the right X server etc.)


6

In the binary form EDID is available at /sys/class/drm/card%d-%s/edid, where %d represents DRM device index (probably a GPU index) and %s is a connector ID that you see in xrandr output. To list all available, run ls -1 /sys/class/drm/*/edid If your GPU driver doesn't support DRM, you won't be able to get EDID this way. To view in hex form, run hexdump on ...


6

Only scaling and panning wont help. You have to specify the side of your external monitor. Please check my command, i am using external monitor to the right of my native laptop display. I have yoga 2 pro with resolution 3200x1800 and external FHD monitor. In my case i use xrandr panning option: xrandr --output eDP1 --auto --output HDMI1 --auto --panning ...


6

The Scaling mode property is not yet implemented in the intel driver (see here). It is implemented in the proprietary AMD and NVIDIA drivers and since recentlty in the open source radeon driver (here). However you can work around this limitation by performing the scaling manually with xrandr: Assume your screen has a native resolution of 1920x1080 and you ...


6

I had the same problem. In Display setting maximum resolution was 1280x720. So: using xrandr command I have seen name of this monitor and resolution list. I 've executed the script: xrandr --output {name of monitor} --mode {resolution} For example: xrandr --output DP-2-1 --mode 2560x1440


6

I met the same bug. Your workaround didn't work for me. Your trick is simply a trigger that makes the bug not to fall in. I digged in a bit and found a nice guy with a solution that might help others here as well. The main problem is that the bug we met here causes the monitor which is scrolling into the other to have a virtual screen with the size of both ...


6

#!/bin/bash display_x=640 display_y=480 xrandr -s ${display_x}x${display_y}


6

So I am messing with trying to change dual monitor setup on my machine and found your post. Because I'm interested in the actual display I'm looking for EDID resource from the attached monitor: find /sys/devices -name "edid" which produces an output like: /sys/devices/pci0000:00/0000:00:02.0/0000:03:00.0/drm/card0/card0-HDMI-A-1/edid /sys/devices/pci0000:...


Only top voted, non community-wiki answers of a minimum length are eligible