User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

H2 make a 1920x1080 screen to display only 1620x1080?

Thu May 23, 2019 9:34 am

I guess it's somewhere in the overscan settings but couldn't find anything for this particular case.

I have a 1920 x 1080 (16:9) monitor and I only want to user 1620 x 1080 (3:2) of the screen surface. I plan to cover up the rest with a mat. Where can I define these setting? Thanks!
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.


User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Thu May 23, 2019 10:13 am

Yes, I had seen that but it doesn‘t include 3:2 aspect ratio.
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6874
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Thu May 23, 2019 10:46 am

Output 1920x1080 but reduce the frame buffer size to 1620x1080

Code: Select all

framebuffer_width=1620
framebuffer_height=1080
If using omxplayer, raspivid, or other application that directly renders to the screen, then you'll need to pass it window options.
--win 'x1 y1 x2 y2' for omxplayer
-p, --preview : Preview window settings <'x,y,w,h'> for raspivid
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Thu May 23, 2019 10:49 am

Thanks much!
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 4:02 am

Could it be that this doesn't work in Buster and with a Pi4?

This is what I did:

Code: Select all

cd /boot
sudo nano config.txt
framebuffer_width=1620
framebuffer_height=1080
But after rebooting fbset -s still shows the default resolution for my screen which is 1920 x 1080. No expected black bars left and right.

During the boot process, it initially changes to this size
1.jpg
1.jpg (107.15 KiB) Viewed 143 times
Then reverts back to the full size
2.jpg
2.jpg (134.68 KiB) Viewed 143 times
where it remains
3.jpg
3.jpg (90.93 KiB) Viewed 143 times
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 4:25 am

My objective is to have a pillarboxed screen with a resolution of 1620 x 1080 like this (in the example I used 1728 px instead of 1620 but the logic is the same).
Ideally, a tool like SwitchResX for the Raspberry Pi would be great.
PictureFrame.png
PictureFrame.png (45.12 KiB) Viewed 137 times
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 6:42 am

Seems like xrandr may be a solution: https://superuser.com/questions/716795/ ... -in-debian

I replaced the VGA1 with HDMI0 but that didn't work. What would be the correct name of the first HDMI port?
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6874
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 6:46 am

Pi4 by default is using the more modern Linux display apis.

Preferences / Screen Configuration.
Right click hdmi-1
Resolution
Select resolution
Click the tick to apply.

You should only need to manually resort to xrandr if your monitor doesn't advertise your desired resolution in the edid.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 7:03 am

Thanks, 6by9.

Using your method, I tried various combinations. I am using it on a screen that has an aspect ratio of 16:9 with a standard resolution of 1920x1080.

Now, if I choose for example a screen resolution of 800 x 600 which has an aspect ratio of 4:3, I would expect black bars to the left and right of the screen. But that doesn't happen. The display gets larger but it's still using the full screen size.

Maybe there's an error in my thinking but shouldn't there be black bars in 4:3?
I replaced the VGA1 with HDMI0 but that didn't work. What would be the correct name of the first HDMI port?
That would be HDMI-1.
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6874
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 7:14 am

Check the mode the pi is producing with "tvservice -s" from a command prompt. If that reports 800x600, then your monitor is doing the stretching and you need to look for settings on it.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 7:23 am

state 0xa [HDMI CUSTOM RGB full 4:3], 800x600 @ 75.00Hz, progressive
So, I guess the monitor does some automatic stretching. Will have to dig deeper here... Thanks!
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6874
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 9:05 am

sapnho wrote:
Fri Jul 12, 2019 7:23 am
state 0xa [HDMI CUSTOM RGB full 4:3], 800x600 @ 75.00Hz, progressive
So, I guess the monitor does some automatic stretching. Will have to dig deeper here... Thanks!
FWIW My Dell monitors here do the same and stretch 4:3 out to full screen. Hidden in the menus are the options to set what aspect ratio to render everything as - 1920x1080 looks very weird if you tell it to be 4:3.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
sapnho
Posts: 192
Joined: Sun Sep 14, 2014 3:49 pm
Location: Frankfurt am Main
Contact: Website

Re: H2 make a 1920x1080 screen to display only 1620x1080?

Fri Jul 12, 2019 10:50 am

The plot thickens!

I found the settings in the monitor (LG Flatron E2442V) and it works for all the default settings but not for my added setting of 1728 x 1080 px.

In this case, the menu item "Wide/Original" is greyed out and not available. And 1728x1080 is lower than 1920x1080, so it should work.
Original.jpg
Original.jpg (162.13 KiB) Viewed 58 times
www.TheDigitalPictureFrame.com
Build a really great digital picture frame with the Raspberry Pi.
With lots of great tips from this forum.

Return to “Graphics, sound and multimedia”