You are not logged in.

#1 2020-04-23 11:50:59

snap.ve
Member
Registered: 2020-04-02
Posts: 76

[SOLVED] xrandr black screen borders

Hello everyone! I can't find nowhere a command for xrandr to make black sidebars. Can you help me with that small problem?

Last edited by snap.ve (2020-05-06 05:04:47)

Offline

#2 2020-04-23 19:39:00

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] xrandr black screen borders

No one?

Offline

#3 2020-04-23 20:01:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] xrandr black screen borders

snap.ve wrote:

No one?

Don't do that.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2020-04-23 21:24:34

seth
Member
Registered: 2012-09-03
Posts: 64,502

Re: [SOLVED] xrandr black screen borders

xrandr does not "make black sidebars" and if you're looking to https://wiki.archlinux.org/index.php/Xr … n_property - this capability and apprpoach *drastically* depends on the HW and driver at play.

So please elaborate on your system and what your ulimtate goal is.

If you want to fix TV overscanning though, the BY FAR best approach is to deactivate it in the TV.
Otherwise you'll just either lose screen estate to have the rest blown up or scale the output down (lossy) to have the Tv scale it up (lossy).

Online

#5 2020-04-24 05:29:13

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] xrandr black screen borders

seth wrote:

xrandr does not "make black sidebars"

Actually, some parameters do something approximately similar to what I want, for example xrandr --output eDP-1-1 --mode 1024x576_120.00 --set "scaling mode" Center or xrandr --output eDP-1-1 --mode 1024x576_120.00 --scale 1.2x1 But they trim the screen either to the center or to the left side

=seth wrote:

So please elaborate on your system and what your ulimtate goal is.

I have a laptop with a wide screen, when I start games it is not comfortable for me to have a screen resolution of 16x9, I want to trim it to the gold standard 4x3

Last edited by snap.ve (2020-04-24 05:38:02)

Offline

#6 2020-04-24 06:13:31

seth
Member
Registered: 2012-09-03
Posts: 64,502

Re: [SOLVED] xrandr black screen borders

Just change the screen resolution, everything has to™ support the VESA modes, https://en.wikipedia.org/wiki/VESA_BIOS … ed_by_VESA

xrandr --output eDP-1-1 --mode 1024x768

I assume your problem is that the output will only stretch non-physical ratios (ie. you get 1024x768, but the ouput stretches it to 1366x768)?

The "xrandr … --transform" can do that, but the behavior will still relate to the actual HW and driver.

seth wrote:

*drastically* depends on the HW and driver at play

https://unix.stackexchange.com/question … -intel-gpu

For nvidia, nvidia-settings has a very convenient viewport transformation feature in the advanced display config and afaics you'll have to use that.

Online

#7 2020-04-24 13:43:45

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] xrandr black screen borders

seth wrote:

The "xrandr … --transform" can do that, but the behavior will still relate to the actual HW and driver.

seth wrote:

*drastically* depends on the HW and driver at play

https://unix.stackexchange.com/question … -intel-gpu

For nvidia, nvidia-settings has a very convenient viewport transformation feature in the advanced display config and afaics you'll have to use that.

Yes!!!! This is what I needed! Waiter, pour some tea on this gentleman at my expense! smile

Offline

#8 2020-04-24 13:51:56

snap.ve
Member
Registered: 2020-04-02
Posts: 76

Re: [SOLVED] xrandr black screen borders

One more thing! Thats fully worked on 1024x768 resolution, but i want do same on 640x480 reolution. How can i configure --transform flag for that?

UDP
Here we go

xrandr --output eDP-1-1 --mode 640x480 --panning 640x480 --transform 1.3,0,-100,0,1,0,0,0,1

Last edited by snap.ve (2020-04-24 16:02:05)

Offline

#9 2020-04-24 14:02:37

seth
Member
Registered: 2012-09-03
Posts: 64,502

Re: [SOLVED] xrandr black screen borders

Edit: There's an explanation for the "-171", just adapt that calculus.
smile

Last edited by seth (2020-04-24 14:03:03)

Online

Board footer

Powered by FluxBB