You are not logged in.

#1 2024-02-18 10:15:41

Haspe
Member
Registered: 2024-02-18
Posts: 5

[SOLVED] Black Bars on Smaller Resolution Instead of Stretched Mode

Hello!

I've been figuring out, how could I set smaller resolution, but keeping the aspect ratio instead of getting stretched output, without result - clarify: I want the black bars.

I have following NVIDIA Packages Installed:

lib32-nvidia-utils 545.29.06-1
nvidia-dkms 545.29.06-4
nvidia-settings 545.29.06-1
nvidia-utils 545.29.06-4

I am unable to change "ViewPortOut" value in NVIDIA Settings. (Driver is not allowing to do that?)

Is there a way to create this mode with xrandr for example?

$ xrandr

Screen 0: minimum 8 x 8, current 3440 x 1440, maximum 32767 x 32767
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 connected primary 3440x1440+0+0 (normal left inverted right x axis y axis) 797mm x 334mm
   3440x1440     60.00*+ 144.00   100.00  
   2560x1440     60.00  
   2560x1080     60.00    59.94  
   1920x1200     59.88  
   1920x1080     60.00    59.94  
   1680x1050     59.95  
   1600x1200     60.00  
   1600x900      60.00  
   1440x900      59.89  
   1366x768      59.79  
   1280x1024     75.02    69.83    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      75.03    70.07    60.00  
   800x600       75.00    72.19    60.32    56.25  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.95    59.94    59.93  
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
        h: width  2560 start 2792 end 3072 total 3584 skew    0 clock 225.66KHz
        v: height 1440 start 1443 end 1448 total 1568           clock 143.91Hz

Plus a bonus question, why am I allowed to have 144hz or 100hz modes on large resolution, but not on smaller ones?

Thanks in advance!

Last edited by Haspe (2024-02-18 14:15:32)

Offline

#2 2024-02-18 13:34:48

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,547

Re: [SOLVED] Black Bars on Smaller Resolution Instead of Stretched Mode

Please use [code][/code] tags. Edit your post in this regard.
You're getting the modes the edid advertises and some generic ones, if you've KMS enabled you can inspect the edid

for OUT in /sys/class/drm/card0*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

If you don't have KMS enabled, you've other problems tbw.

I am unable to change "ViewPortOut" value in NVIDIA Settings. (Driver is not allowing to do that?)

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

You very much can change this, but there're contraints.
Try to set ViewPortIn to 1024x768 and ViewPortOut to 1024x768+1208+336 and keep the Panning at 3440x1440
Should™ get you 1024x768 in the center of a black screen.

Offline

#3 2024-02-18 13:50:48

Haspe
Member
Registered: 2024-02-18
Posts: 5

Re: [SOLVED] Black Bars on Smaller Resolution Instead of Stretched Mode

seth wrote:

Please use [code][/code] tags. Edit your post in this regard.
You're getting the modes the edid advertises and some generic ones, if you've KMS enabled you can inspect the edid

for OUT in /sys/class/drm/card0*; do echo $OUT; edid-decode $OUT/edid; echo "================="; done

You'll need https://aur.archlinux.org/packages/edid-decode-git

If you don't have KMS enabled, you've other problems tbw.

I am unable to change "ViewPortOut" value in NVIDIA Settings. (Driver is not allowing to do that?)

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855

You very much can change this, but there're contraints.
Try to set ViewPortIn to 1024x768 and ViewPortOut to 1024x768+1208+336 and keep the Panning at 3440x1440
Should™ get you 1024x768 in the center of a black screen.

I'll look into this edid a bit later. I also tested this latter suggestion, and it worked, so it was not a driver thing at all, just a skill issue.

Thanks! smile

Offline

#4 2024-02-18 13:58:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,547

Re: [SOLVED] Black Bars on Smaller Resolution Instead of Stretched Mode

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB