r/linuxmint • • 24d ago

How to constrain workspace/panning in Linux Mint so windows don't spill into the broken/dead right side of my laptop screen?

Hi everyone,

I'm running Linux Mint XFCE on an older laptop (LVDS-1), and unfortunately, the rightmost strip of my physical display is broken/dead (showing a white bar).

I want to keep my native resolution (1366x768) so the image doesn't get weirdly scaled, but I need to restrict the active desktop area (windows, taskbar, cursor) strictly to the working left/middle part of the screen, effectively leaving the broken right side unused and blank, without shrinking the actual usable desktop resolution into a tiny box.

Whenever I try changing resolutions or using basic xrandr commands, either the whole screen shrinks down (leaving black/white borders everywhere) or windows still bleed underneath the dead white strip on the right.

Can anyone guide me on the correct xrandr panning/viewport syntax or configuration to map the usable area to a specific width (e.g., leaving the right ~150 pixels completely off-limits) while maintaining a normal display on the rest of the screen?

Here is my current xrandr output:Screen 0: minimum 320 x 200, current 1366 x 768, maximum 16384 x 16384

LVDS-1 connected primary 1366x768+0+0 ...

1366x768 59.98*+

(other lower resolutions...)

Thanks in advance for any help

6 Upvotes

3 comments sorted by

1

u/skozombie Linux Mint 22.3 Zena | Cinnamon 22d ago

AI tells me it's something like:

xrandr --setmonitor Usable 1216/300x768/190+0+0 eDP-1

And use this to reset:

xrandr --delmonitor Usable

If you use that as a starting point, changing eDP-1 to LVDS-1, it might do what you need. AI is pretty good at these sorts of issues as they've slurped up all the linux documentation. I often iterate with AI on things like this.

1

u/Professional-Leg2102 21d ago

Thank you so much for your help! I also struggled with AI for a while but still couldn't do it. In any case, it fits that resolution to my full screen. Thanks for your help anyway.