there are a few other questions that talk about this but most of them are not for secondary monitors, or at least they don't seem to be, and I've hit a point where I'm not sure if I'm missing something or not.

My 2560x1440 monitor got a crack in it (the screen got bumped with a keyboard while we were moving things around) and it has made the right 2cm and bottom 10cm of the screen unusable. There's still 2480x1140 worth of pixels here which are as good as the day I bought it so I'm trying to set up xrandr so it ignores the portions of the monitor I don't want to use.

My current config is:

xrandr --fb 4480x1440 \
--output eDP1 --pos 0x0 \
--output HDMI-0 --pos 1920x0 --mode 2560x1440 --set Border 0,0,80,300

eDP1 is my laptop's primary display (1920x1080), and HDMI-0 is the damaged monitor I want to use only a portion of.

The config I have above positions everything fine, including a border that excludes the part of the monitor I don't want to use, but makes up for that area with panning space.

A visual representation of the current & desired configuration

What I'd actually like is for xrandr to disregard the excess of HDMI-1 while still rendering at the resolution of 2560x1440, so all I end up with is:

  • black bars in the area I don't want to use
  • no overflow to pan to
  • the cropped area ignored by desktop managers (I use i3wm as my window manager)

I tried playing with modelines as has been suggested in other questions down this line of inquiry but I haven't had any luck there, and I can't reduce the framebuffer (--fb) below a size that is big enough for the two monitors together (so for side by side it can't be lower than 4480), so I've hit a point where I don't know enough to progress any further. Is there a way to do what I'm looking to do in xrandr?

  • Can you use --panning 0x0 to switch off panning? – meuh May 2 at 17:56
  • Unfortunately only kind of there, it just makes the panning worse but the space is still there: xrandr --fb 4480x1440 --output eDP1 --pos 0x0 --output HDMI-0 --pos 1920x0 --mode 2560x1440 --set Border 0,0,80,300 --panning 2560x1440+1920+0/4480x1440+0+0/0/0/80/300 I tried this but the border settings in panning don't seem to do anything, I'm not really sure how that aspect of xrandr is meant to work as there isn't a lot of documentation on the --panning option. – MalucoMarinero May 3 at 5:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.